From ce1e3ddd3cbec272c616da76c236df65837592fc Mon Sep 17 00:00:00 2001 From: Github Actions Date: Fri, 1 Nov 2024 11:41:36 +0000 Subject: [PATCH] ci: automatic build fixes --- ...der-a0a9ce2c.js => ClipLoader-2c26140d.js} | 2 +- ...on-f43a72c1.js => DailyMotion-6aad69b1.js} | 2 +- ...ebook-daf1a2ca.js => Facebook-72db1bb1.js} | 2 +- ...yer-9d32e443.js => FilePlayer-55e9654a.js} | 2 +- ...altura-8bcc4a6a.js => Kaltura-87b4078c.js} | 2 +- ...cloud-d94e55a6.js => Mixcloud-df4ac210.js} | 2 +- ...review-dd642161.js => Preview-7d6901d8.js} | 2 +- ...leton-0e0ce42e.js => Skeleton-1ccdf5c1.js} | 6 +- ...oud-ec95851e.js => SoundCloud-87105b88.js} | 2 +- .../{Stack-34a19487.js => Stack-06c1211e.js} | 2 +- ...ble-abf88c0e.js => Streamable-2865f475.js} | 2 +- build/assets/Tabs-07181cd3.js | 1 + build/assets/Tabs-79411ac3.js | 1 - build/assets/TextareaAutosize-2d5341b4.js | 2 - build/assets/TextareaAutosize-f9a84af0.js | 2 + ...{Twitch-58899c17.js => Twitch-7cd6ba27.js} | 2 +- ...phy-4efd6f29.js => Typography-0d19ae0d.js} | 2 +- ...idyard-e4f3572b.js => Vidyard-6c124b56.js} | 2 +- .../{Vimeo-be96d162.js => Vimeo-0612272f.js} | 2 +- ...{Wistia-d7d9727d.js => Wistia-30b5d4b3.js} | 2 +- ...ouTube-5d1560d4.js => YouTube-8d639dcb.js} | 2 +- build/assets/constants-6b0b8728.js | 8 - build/assets/constants-a3da365e.js | 8 + build/assets/constants-b2a2fa82.js | 1 - ...-23cd916d.js => createSvgIcon-016a2106.js} | 2 +- .../{index-c1db1c7b.js => index-00fbfb7a.js} | 8 +- build/assets/index-01d51677.js | 133 --- .../{index-39784bea.js => index-04235dc5.js} | 2 +- build/assets/index-0b4435d0.js | 47 - build/assets/index-0f75a7d3.js | 34 + build/assets/index-17930aa1.js | 6 - build/assets/index-1f5ac1eb.js | 699 --------------- build/assets/index-2a7ba5ab.js | 1 + build/assets/index-427bda35.js | 50 ++ build/assets/index-4d73db1d.js | 18 + build/assets/index-52cf0cef.js | 47 + build/assets/index-569ae916.js | 123 +++ build/assets/index-59e95d3e.js | 95 ++ build/assets/index-5c574277.js | 626 +++++++++++++ build/assets/index-64813bbe.js | 96 -- .../{index-85afbf1a.js => index-738555e7.js} | 26 +- .../{index-63bb73bc.js => index-746c11fc.js} | 144 +-- build/assets/index-751d453d.js | 77 -- build/assets/index-77fe94be.js | 92 -- build/assets/index-8331965f.js | 74 -- build/assets/index-8344fca4.js | 1 - .../{index-9d4b2019.js => index-a01f56a3.js} | 80 +- .../{index-7e993c6c.js => index-a24c814f.js} | 82 +- build/assets/index-a2878e02.css | 1 - build/assets/index-a4521012.js | 34 - build/assets/index-b416b1a9.js | 532 ----------- ...{index-b60658ac.css => index-b4d03b7b.css} | 2 +- build/assets/index-b6fe9242.js | 92 ++ build/assets/index-bb616035.js | 95 -- .../{index-5f0e754b.js => index-bd13c6c5.js} | 2 +- build/assets/index-bde6e5ef.js | 834 ++++++++++++++++++ .../{index-69075348.js => index-bf769610.js} | 10 +- build/assets/index-c99ee90f.js | 133 +++ build/assets/index-d36a9cfa.js | 50 -- build/assets/index-da03d4e9.js | 77 ++ .../{index-f63e96f7.js => index-e0614544.js} | 18 +- build/assets/index-e8159074.js | 123 --- build/assets/index-f2ef880b.js | 18 - build/assets/index.esm-258646ab.js | 1 - build/assets/map-3259c6de.js | 1 + build/assets/map-8d3cef29.js | 1 - build/index.html | 4 +- 67 files changed, 2357 insertions(+), 2295 deletions(-) rename build/assets/{ClipLoader-a0a9ce2c.js => ClipLoader-2c26140d.js} (97%) rename build/assets/{DailyMotion-f43a72c1.js => DailyMotion-6aad69b1.js} (95%) rename build/assets/{Facebook-daf1a2ca.js => Facebook-72db1bb1.js} (96%) rename build/assets/{FilePlayer-9d32e443.js => FilePlayer-55e9654a.js} (98%) rename build/assets/{Kaltura-8bcc4a6a.js => Kaltura-87b4078c.js} (95%) rename build/assets/{Mixcloud-d94e55a6.js => Mixcloud-df4ac210.js} (95%) rename build/assets/{Preview-dd642161.js => Preview-7d6901d8.js} (97%) rename build/assets/{Skeleton-0e0ce42e.js => Skeleton-1ccdf5c1.js} (65%) rename build/assets/{SoundCloud-ec95851e.js => SoundCloud-87105b88.js} (95%) rename build/assets/{Stack-34a19487.js => Stack-06c1211e.js} (87%) rename build/assets/{Streamable-abf88c0e.js => Streamable-2865f475.js} (95%) create mode 100644 build/assets/Tabs-07181cd3.js delete mode 100644 build/assets/Tabs-79411ac3.js delete mode 100644 build/assets/TextareaAutosize-2d5341b4.js create mode 100644 build/assets/TextareaAutosize-f9a84af0.js rename build/assets/{Twitch-58899c17.js => Twitch-7cd6ba27.js} (95%) rename build/assets/{Typography-4efd6f29.js => Typography-0d19ae0d.js} (59%) rename build/assets/{Vidyard-e4f3572b.js => Vidyard-6c124b56.js} (95%) rename build/assets/{Vimeo-be96d162.js => Vimeo-0612272f.js} (96%) rename build/assets/{Wistia-d7d9727d.js => Wistia-30b5d4b3.js} (96%) rename build/assets/{YouTube-5d1560d4.js => YouTube-8d639dcb.js} (97%) delete mode 100644 build/assets/constants-6b0b8728.js create mode 100644 build/assets/constants-a3da365e.js delete mode 100644 build/assets/constants-b2a2fa82.js rename build/assets/{createSvgIcon-23cd916d.js => createSvgIcon-016a2106.js} (94%) rename build/assets/{index-c1db1c7b.js => index-00fbfb7a.js} (51%) delete mode 100644 build/assets/index-01d51677.js rename build/assets/{index-39784bea.js => index-04235dc5.js} (99%) delete mode 100644 build/assets/index-0b4435d0.js create mode 100644 build/assets/index-0f75a7d3.js delete mode 100644 build/assets/index-17930aa1.js delete mode 100644 build/assets/index-1f5ac1eb.js create mode 100644 build/assets/index-2a7ba5ab.js create mode 100644 build/assets/index-427bda35.js create mode 100644 build/assets/index-4d73db1d.js create mode 100644 build/assets/index-52cf0cef.js create mode 100644 build/assets/index-569ae916.js create mode 100644 build/assets/index-59e95d3e.js create mode 100644 build/assets/index-5c574277.js delete mode 100644 build/assets/index-64813bbe.js rename build/assets/{index-85afbf1a.js => index-738555e7.js} (92%) rename build/assets/{index-63bb73bc.js => index-746c11fc.js} (53%) delete mode 100644 build/assets/index-751d453d.js delete mode 100644 build/assets/index-77fe94be.js delete mode 100644 build/assets/index-8331965f.js delete mode 100644 build/assets/index-8344fca4.js rename build/assets/{index-9d4b2019.js => index-a01f56a3.js} (96%) rename build/assets/{index-7e993c6c.js => index-a24c814f.js} (62%) delete mode 100644 build/assets/index-a2878e02.css delete mode 100644 build/assets/index-a4521012.js delete mode 100644 build/assets/index-b416b1a9.js rename build/assets/{index-b60658ac.css => index-b4d03b7b.css} (89%) create mode 100644 build/assets/index-b6fe9242.js delete mode 100644 build/assets/index-bb616035.js rename build/assets/{index-5f0e754b.js => index-bd13c6c5.js} (74%) create mode 100644 build/assets/index-bde6e5ef.js rename build/assets/{index-69075348.js => index-bf769610.js} (88%) create mode 100644 build/assets/index-c99ee90f.js delete mode 100644 build/assets/index-d36a9cfa.js create mode 100644 build/assets/index-da03d4e9.js rename build/assets/{index-f63e96f7.js => index-e0614544.js} (58%) delete mode 100644 build/assets/index-e8159074.js delete mode 100644 build/assets/index-f2ef880b.js delete mode 100644 build/assets/index.esm-258646ab.js create mode 100644 build/assets/map-3259c6de.js delete mode 100644 build/assets/map-8d3cef29.js diff --git a/build/assets/ClipLoader-a0a9ce2c.js b/build/assets/ClipLoader-2c26140d.js similarity index 97% rename from build/assets/ClipLoader-a0a9ce2c.js rename to build/assets/ClipLoader-2c26140d.js index 6f7679eca..06f5fd15e 100644 --- a/build/assets/ClipLoader-a0a9ce2c.js +++ b/build/assets/ClipLoader-2c26140d.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-b416b1a9.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` +import{r as m}from"./index-bde6e5ef.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } diff --git a/build/assets/DailyMotion-f43a72c1.js b/build/assets/DailyMotion-6aad69b1.js similarity index 95% rename from build/assets/DailyMotion-f43a72c1.js rename to build/assets/DailyMotion-6aad69b1.js index 56a2a4e02..e1767f5fd 100644 --- a/build/assets/DailyMotion-f43a72c1.js +++ b/build/assets/DailyMotion-6aad69b1.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-b416b1a9.js";import{u as D,p as O}from"./index-9d4b2019.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{g as P,r as v}from"./index-bde6e5ef.js";import{u as D,p as O}from"./index-a01f56a3.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-daf1a2ca.js b/build/assets/Facebook-72db1bb1.js similarity index 96% rename from build/assets/Facebook-daf1a2ca.js rename to build/assets/Facebook-72db1bb1.js index df49b0873..ea500014d 100644 --- a/build/assets/Facebook-daf1a2ca.js +++ b/build/assets/Facebook-72db1bb1.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-b416b1a9.js";import{u as P,p as m}from"./index-9d4b2019.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{g as _,r as g}from"./index-bde6e5ef.js";import{u as P,p as m}from"./index-a01f56a3.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-9d32e443.js b/build/assets/FilePlayer-55e9654a.js similarity index 98% rename from build/assets/FilePlayer-9d32e443.js rename to build/assets/FilePlayer-55e9654a.js index 28dfe764c..5ba9d7e21 100644 --- a/build/assets/FilePlayer-9d32e443.js +++ b/build/assets/FilePlayer-55e9654a.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-b416b1a9.js";import{u as O,p as A}from"./index-9d4b2019.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{g as b,r as _}from"./index-bde6e5ef.js";import{u as O,p as A}from"./index-a01f56a3.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/Kaltura-8bcc4a6a.js b/build/assets/Kaltura-87b4078c.js similarity index 95% rename from build/assets/Kaltura-8bcc4a6a.js rename to build/assets/Kaltura-87b4078c.js index e71af3073..d4c25cfa5 100644 --- a/build/assets/Kaltura-8bcc4a6a.js +++ b/build/assets/Kaltura-87b4078c.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-b416b1a9.js";import{u as _,p as m}from"./index-9d4b2019.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{g as y,r as f}from"./index-bde6e5ef.js";import{u as _,p as m}from"./index-a01f56a3.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/Mixcloud-d94e55a6.js b/build/assets/Mixcloud-df4ac210.js similarity index 95% rename from build/assets/Mixcloud-d94e55a6.js rename to build/assets/Mixcloud-df4ac210.js index 0844fb00c..db3a99f73 100644 --- a/build/assets/Mixcloud-d94e55a6.js +++ b/build/assets/Mixcloud-df4ac210.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-b416b1a9.js";import{u as m,p as g}from"./index-9d4b2019.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{g as _,r as f}from"./index-bde6e5ef.js";import{u as m,p as g}from"./index-a01f56a3.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/Preview-dd642161.js b/build/assets/Preview-7d6901d8.js similarity index 97% rename from build/assets/Preview-dd642161.js rename to build/assets/Preview-7d6901d8.js index 4cf5b30ca..f710ed059 100644 --- a/build/assets/Preview-dd642161.js +++ b/build/assets/Preview-7d6901d8.js @@ -1 +1 @@ -import{g as y,r as b}from"./index-b416b1a9.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{g as y,r as b}from"./index-bde6e5ef.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/Skeleton-0e0ce42e.js b/build/assets/Skeleton-1ccdf5c1.js similarity index 65% rename from build/assets/Skeleton-0e0ce42e.js rename to build/assets/Skeleton-1ccdf5c1.js index 6d89822ec..afab97c9c 100644 --- a/build/assets/Skeleton-0e0ce42e.js +++ b/build/assets/Skeleton-1ccdf5c1.js @@ -1,4 +1,4 @@ -import{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j as M,f as j,h as A}from"./index-b416b1a9.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{c as x,d as y,bu as b,s as R,e as o,f as S,bv as u,r as _,u as $,a as U,j as M,h as j,i as A}from"./index-bde6e5ef.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } @@ -23,7 +23,7 @@ import{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j 100% { transform: translateX(100%); } -`)),T=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=X(t.shape.borderRadius)||"px",i=N(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:_(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(m||(m=r` +`)),T=R("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=X(t.shape.borderRadius)||"px",i=N(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:S(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(m||(m=r` animation: ${0} 2s ease-in-out 0.5s infinite; `),K),({ownerState:t,theme:a})=>t.animation==="wave"&&u(f||(f=r` position: relative; @@ -48,4 +48,4 @@ import{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j right: 0; top: 0; } - `),P,(a.vars||a).palette.action.hover)),W=S.forwardRef(function(a,e){const i=$({props:a,name:"MuiSkeleton"}),{animation:n="pulse",className:l,component:s="span",height:h,style:v,variant:k="text",width:C}=i,d=U(i,E),c=o({},i,{animation:n,component:s,variant:k,hasChildren:!!d.children}),w=F(c);return M.jsx(T,o({as:s,ref:e,className:j(w.root,l),ownerState:c},d,{style:o({width:C,height:h},v)}))}),O=W;export{O as S}; + `),P,(a.vars||a).palette.action.hover)),W=_.forwardRef(function(a,e){const i=$({props:a,name:"MuiSkeleton"}),{animation:n="pulse",className:l,component:s="span",height:h,style:v,variant:C="text",width:k}=i,d=U(i,E),c=o({},i,{animation:n,component:s,variant:C,hasChildren:!!d.children}),w=F(c);return M.jsx(T,o({as:s,ref:e,className:j(w.root,l),ownerState:c},d,{style:o({width:k,height:h},v)}))}),O=W;export{O as S}; diff --git a/build/assets/SoundCloud-ec95851e.js b/build/assets/SoundCloud-87105b88.js similarity index 95% rename from build/assets/SoundCloud-ec95851e.js rename to build/assets/SoundCloud-87105b88.js index d3075d0f3..dfb221b95 100644 --- a/build/assets/SoundCloud-ec95851e.js +++ b/build/assets/SoundCloud-87105b88.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-b416b1a9.js";import{u as b,p as v}from"./index-9d4b2019.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-bde6e5ef.js";import{u as b,p as v}from"./index-a01f56a3.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-34a19487.js b/build/assets/Stack-06c1211e.js similarity index 87% rename from build/assets/Stack-34a19487.js rename to build/assets/Stack-06c1211e.js index f8aca002d..bcfe4b07d 100644 --- a/build/assets/Stack-34a19487.js +++ b/build/assets/Stack-06c1211e.js @@ -1 +1 @@ -import{r as E,$ as Mt,_ as ae,b as T,bw as Ft,bx as Wt,by as Vt,bz as Lt,bA as Nt,b3 as Qe,b2 as Ae,bB as Ht,bv as It,bC as Ut,j as Q,bD as Ze,h as ke,c as Te,d as ht,s as Be,bE as qt,u as Me,i as gt,f as zt}from"./index-b416b1a9.js";import{J as et,b9 as Xt,y as tt,z as rt,X as Yt}from"./index-1f5ac1eb.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Kt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Pt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?M:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),k=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Pe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Z(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case M:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Zr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,P=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?M:F,V=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[V],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[V],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?K(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,k[g]=Ke-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Or.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=tt(w,r),b=E.useRef(null),u=tt(b,h),g=E.useRef(u);rt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),rt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return Q.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(Xt,{disablePortal:s,container:P,children:Q.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Me({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:k,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; +import{r as E,$ as Mt,a as ae,e as T,c2 as Ft,c3 as Wt,c4 as Vt,c5 as Lt,c6 as Nt,by as Qe,bx as Ae,c7 as Ht,c1 as It,c8 as Ut,j as Q,c9 as Ze,i as je,c as Te,d as ht,l as et,m as tt,s as Be,ca as qt,u as Me,k as gt,h as zt}from"./index-bde6e5ef.js";import{y as rt,a_ as Xt,U as Yt}from"./index-5c574277.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Kt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>je({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Pt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var kr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function Dr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=kr(n.padding,r),h=Ve(a),p=i==="y"?M:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function jr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:Dr,effect:jr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),j=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=j.x,d=j.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Pe(c)))}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?ke(Ir(e,r)):Z(t)?qr(t,r):ke(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case M:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=ke(Object.assign({},b,P)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var j=$[n];Object.keys(R).forEach(function(S){var D=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=j[V]*D})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=D?"width":"height",k=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=D?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(k[j]<=0),s&&G.push(k[B]<=0,k[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Zr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,P=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(y){if(a){var S,D=u==="y"?M:F,V=u==="y"?N:H,k=u==="y"?"height":"width",B=y[u],z=B+m[D],G=B-m[V],me=p?-A[k]/2:0,Oe=O===te?P[k]:A[k],ie=O===te?-A[k]:-P[k],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[D],ge=X[V],_=ce(0,P[k],ee[k]),Ee=b?P[k]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[k]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),kt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,Dt=B+Ee-Ue-kt,jt=B+$t-Ue,qe=ce(p?we(z,Dt):z,B,p?K(G,jt):G);y[u]=qe,j[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,j[g]=Ke-J}t.modifiersData[o]=j}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Or.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rje({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(De(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(De(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let k=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(k=k.concat(i)),v&&v.modifiers!=null&&(k=k.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:k}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const j=Eo(),S=(o=x.root)!=null?o:"div",D=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:j.root});return Q.jsx(S,T({},D,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=De(o);P=R&&Oo(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(Xt,{disablePortal:s,container:P,children:Q.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ko=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=ko;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const Do=E.createContext(void 0),St=Do;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function jo(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return je(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Me({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,D=>{if(!Se(D,["Input","Select"]))return;const V=Se(D,["Select"])?D.props.input:D;V&&jo(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,D=>{Se(D,["Input","Select"])&&(mt(D.props,!0)||mt(D.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const j=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:j,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-abf88c0e.js b/build/assets/Streamable-2865f475.js similarity index 95% rename from build/assets/Streamable-abf88c0e.js rename to build/assets/Streamable-2865f475.js index a3cd7b01e..99160a49a 100644 --- a/build/assets/Streamable-abf88c0e.js +++ b/build/assets/Streamable-2865f475.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-b416b1a9.js";import{u as _,p as b}from"./index-9d4b2019.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{g as m,r as f}from"./index-bde6e5ef.js";import{u as _,p as b}from"./index-a01f56a3.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Tabs-07181cd3.js b/build/assets/Tabs-07181cd3.js new file mode 100644 index 000000000..c613d24c9 --- /dev/null +++ b/build/assets/Tabs-07181cd3.js @@ -0,0 +1 @@ +import{d as ft,c as pt,s as O,B as Pt,k as Lt,e as b,r as c,u as ht,a as rt,h as L,j as S,i as St,m as Zt,q as Nt,p as ut}from"./index-bde6e5ef.js";import{J as $t,B as kt,U as lt,y as te}from"./index-5c574277.js";import{c as Ft}from"./createSvgIcon-016a2106.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:B,wrapped:nt=!1}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,B),x&&x(R)},_=R=>{g&&!I&&y&&y(R,B),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),B=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},B))}))}),Be=ye;function Ce(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Ce,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Be,scrollButtons:B="auto",selectionFollowsFocus:nt,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",Z=C?"bottom":"right",at=C?"clientHeight":"clientWidth",V=C?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:C,scrollButtons:B,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!C,scrollableY:E&&C,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Bt,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Ct.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(C)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];C?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(B==="auto"&&(xt||gt)||B===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&B!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&B!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,B,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Ct.set(l,et);const i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Bt.overflow,[C?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Bt.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/Tabs-79411ac3.js b/build/assets/Tabs-79411ac3.js deleted file mode 100644 index 3ac027ae1..000000000 --- a/build/assets/Tabs-79411ac3.js +++ /dev/null @@ -1 +0,0 @@ -import{d as ft,c as pt,s as O,i as Pt,b,r as c,u as ht,_ as rt,f as L,j as S,h as St,m as Lt}from"./index-b416b1a9.js";import{b4 as Nt,z as Zt,R as $t,L as kt,X as lt,G as ut,J as te}from"./index-1f5ac1eb.js";import{c as Ft}from"./createSvgIcon-23cd916d.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:i,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,i&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ie=c.forwardRef(function(e,r){const i=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=i,X=rt(i,re),Y=b({},i,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ie,ae=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,i={},n=()=>{}){const{ease:d=de,duration:h=300}=i;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),i=c.useRef(),n=c.useRef(null),d=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=i.current;d(),u!==i.current&&e(i.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(i.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:i}=t;return St({root:["root",r,i&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var i,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(i=p.StartScrollButtonIcon)!=null?i:ae,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let i=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(i)return;i=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:i,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const i=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=i,Ot=rt(i,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},i,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let a;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];a=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:a}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let a=0,s;if(B)s="top",l&&o&&(a=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;a=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:a,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),at=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),at(l)},It=()=>{const o=z.current[it];let l=0;const a=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[it]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const a=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=a?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=a?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:a}=wt();if(!(!a||!l)){if(a[Q]l[Z]){const s=l[K]+(a[Z]-l[Z]);at(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const a=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(a),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const a=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(a);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const a=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:a&&!vt&&Mt,selected:a,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,a=te(l).activeElement;if(a.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,a,zt);break;case v:o.preventDefault(),ot(l,a,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-2d5341b4.js b/build/assets/TextareaAutosize-2d5341b4.js deleted file mode 100644 index 702f65f78..000000000 --- a/build/assets/TextareaAutosize-2d5341b4.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as o,_ as B,j as p,b as v,l as I}from"./index-b416b1a9.js";import{y as D,L as T,z as F,R as P}from"./index-1f5ac1eb.js";const U=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const G=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=B(l,U),{current:A}=o.useRef(x!=null),b=o.useRef(null),L=D(O,b),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=b.current,n=T(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` -`&&(t.value+=" ");const g=n.boxSizing,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),y&&(s=Math.min(Number(y)*d,s)),s=Math.max(s,d);const _=s+(g==="border-box"?w+a:0),j=Math.abs(s-u)<=1;return{outerHeightStyle:_,overflow:j}},[y,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);F(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=b.current,w=T(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),F(()=>{W()}),o.useEffect(()=>{c.current=0},[x]);const N=e=>{c.current=0,A||W(),R&&R(e)};return p.jsxs(o.Fragment,{children:[p.jsx("textarea",v({value:x,onChange:N,ref:L,rows:h,style:v({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),p.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:v({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{G as T}; diff --git a/build/assets/TextareaAutosize-f9a84af0.js b/build/assets/TextareaAutosize-f9a84af0.js new file mode 100644 index 000000000..d8ab9cec5 --- /dev/null +++ b/build/assets/TextareaAutosize-f9a84af0.js @@ -0,0 +1,2 @@ +import{r as o,a as _,l as I,m as T,j as v,e as b,o as D}from"./index-bde6e5ef.js";import{B as F,J}from"./index-5c574277.js";const P=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const U={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,P),{current:A}=o.useRef(y!=null),p=o.useRef(null),B=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +`&&(t.value+=" ");const g=n.boxSizing,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const j=s+(g==="border-box"?m+a:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:L}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||D.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=J(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const N=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:N,ref:B,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},U.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-58899c17.js b/build/assets/Twitch-7cd6ba27.js similarity index 95% rename from build/assets/Twitch-58899c17.js rename to build/assets/Twitch-7cd6ba27.js index 3aeaed271..9245223f4 100644 --- a/build/assets/Twitch-58899c17.js +++ b/build/assets/Twitch-7cd6ba27.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-b416b1a9.js";import{u as C,p as N}from"./index-9d4b2019.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-bde6e5ef.js";import{u as C,p as N}from"./index-a01f56a3.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-4efd6f29.js b/build/assets/Typography-0d19ae0d.js similarity index 59% rename from build/assets/Typography-4efd6f29.js rename to build/assets/Typography-0d19ae0d.js index d2252b702..fa274279b 100644 --- a/build/assets/Typography-4efd6f29.js +++ b/build/assets/Typography-0d19ae0d.js @@ -1 +1 @@ -import{c as T,d as B,s as W,i as u,b as s,r as C,u as M,_ as R,j as P,f as j,h as U}from"./index-b416b1a9.js";import{e as _}from"./Stack-34a19487.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:p}=a,e={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return U(e,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),i=A(n.color),o=_(s({},n,{color:i})),{align:p="inherit",className:e,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,$),m=s({},o,{align:p,color:i,className:e,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",b=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(b.root,e)},x))}),V=D;export{V as T}; +import{c as b,d as B,s as W,k as u,e as s,r as C,u as M,a as R,j as P,h as j,i as U}from"./index-bde6e5ef.js";import{e as N}from"./Stack-06c1211e.js";function _(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,_,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},k={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},z=a=>k[a]||a,A=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=z(n.color),o=N(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,$),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(T.root,i)},x))}),O=A;export{O as T}; diff --git a/build/assets/Vidyard-e4f3572b.js b/build/assets/Vidyard-6c124b56.js similarity index 95% rename from build/assets/Vidyard-e4f3572b.js rename to build/assets/Vidyard-6c124b56.js index 65f64abb2..2d7a01882 100644 --- a/build/assets/Vidyard-e4f3572b.js +++ b/build/assets/Vidyard-6c124b56.js @@ -1 +1 @@ -import{g,r as v}from"./index-b416b1a9.js";import{u as b,p as O}from"./index-9d4b2019.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{g,r as v}from"./index-bde6e5ef.js";import{u as b,p as O}from"./index-a01f56a3.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-be96d162.js b/build/assets/Vimeo-0612272f.js similarity index 96% rename from build/assets/Vimeo-be96d162.js rename to build/assets/Vimeo-0612272f.js index 1893ae7b5..3fbe96577 100644 --- a/build/assets/Vimeo-be96d162.js +++ b/build/assets/Vimeo-0612272f.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-b416b1a9.js";import{u as m,p as _}from"./index-9d4b2019.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{g as d,r as f}from"./index-bde6e5ef.js";import{u as m,p as _}from"./index-a01f56a3.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-d7d9727d.js b/build/assets/Wistia-30b5d4b3.js similarity index 96% rename from build/assets/Wistia-d7d9727d.js rename to build/assets/Wistia-30b5d4b3.js index 0e8658a17..e476f28e6 100644 --- a/build/assets/Wistia-d7d9727d.js +++ b/build/assets/Wistia-30b5d4b3.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-b416b1a9.js";import{u as v,p as w}from"./index-9d4b2019.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{g as m,r as g}from"./index-bde6e5ef.js";import{u as v,p as w}from"./index-a01f56a3.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-5d1560d4.js b/build/assets/YouTube-8d639dcb.js similarity index 97% rename from build/assets/YouTube-5d1560d4.js rename to build/assets/YouTube-8d639dcb.js index 79bcbebcd..c19ae3d90 100644 --- a/build/assets/YouTube-5d1560d4.js +++ b/build/assets/YouTube-8d639dcb.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-b416b1a9.js";import{u as L,p as Y}from"./index-9d4b2019.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{g as U,r as I}from"./index-bde6e5ef.js";import{u as L,p as Y}from"./index-a01f56a3.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/constants-6b0b8728.js b/build/assets/constants-6b0b8728.js deleted file mode 100644 index 6d10215d0..000000000 --- a/build/assets/constants-6b0b8728.js +++ /dev/null @@ -1,8 +0,0 @@ -import{t,aD as s,aB as a,aC as o,aE as n}from"./index-b416b1a9.js";import{aw as c}from"./index-1f5ac1eb.js";const E={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},i="Sources Table",r="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",l="alphabetically",_="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",C=t(c)` - && { - vertical-align: middle; - margin: 5px 0 0 4px; - padding: 4px; - transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); - } -`;export{l as A,u as D,p as E,A as I,r as Q,C as S,d as T,S as V,_ as a,I as b,i as c,E as s}; diff --git a/build/assets/constants-a3da365e.js b/build/assets/constants-a3da365e.js new file mode 100644 index 000000000..f76ba2afe --- /dev/null +++ b/build/assets/constants-a3da365e.js @@ -0,0 +1,8 @@ +import{w as t,a_ as s,aY as a,aZ as o,a$ as n}from"./index-bde6e5ef.js";import{ap as c}from"./index-5c574277.js";const i={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",p="date",u="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=t(c)` + && { + vertical-align: middle; + margin: 5px 0 0 4px; + padding: 4px; + transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1); + } +`;export{_ as A,p as D,u as E,A as I,E as Q,L as S,d as T,S as V,l as a,I as b,r as c,i as s}; diff --git a/build/assets/constants-b2a2fa82.js b/build/assets/constants-b2a2fa82.js deleted file mode 100644 index 91c6d9386..000000000 --- a/build/assets/constants-b2a2fa82.js +++ /dev/null @@ -1 +0,0 @@ -const e={label:"Not Selected",value:"Not Selected"},a={label:"No Parent",value:"No Parent"},l=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],o=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],t=/^[^\s].*$/;export{a as N,o as O,l as a,e as i,t as n}; diff --git a/build/assets/createSvgIcon-23cd916d.js b/build/assets/createSvgIcon-016a2106.js similarity index 94% rename from build/assets/createSvgIcon-23cd916d.js rename to build/assets/createSvgIcon-016a2106.js index 4c0b632d5..d52b61c57 100644 --- a/build/assets/createSvgIcon-23cd916d.js +++ b/build/assets/createSvgIcon-016a2106.js @@ -1 +1 @@ -import{c as I,d as C,s as w,i as f,r as v,u as R,_ as b,b as g,j as S,f as j,h as N}from"./index-b416b1a9.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; +import{c as I,d as C,s as w,k as f,r as v,u as R,a as b,e as g,j as S,h as j,i as N}from"./index-bde6e5ef.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; diff --git a/build/assets/index-c1db1c7b.js b/build/assets/index-00fbfb7a.js similarity index 51% rename from build/assets/index-c1db1c7b.js rename to build/assets/index-00fbfb7a.js index 332b36949..45107eda1 100644 --- a/build/assets/index-c1db1c7b.js +++ b/build/assets/index-00fbfb7a.js @@ -1,10 +1,10 @@ -import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v as n,F as l}from"./index-b416b1a9.js";import{u as a,M as O,A as D,a as E,S as Q,C as R,b as U,F as W}from"./index-1f5ac1eb.js";const H=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:v}=G(o=>o),{isAdmin:d}=N(o=>o),I=L(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(Q,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(J,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{M as a,X as $,V as B,v as T,D as z,a0 as G,E as D,a5 as E,j as e,H as t,w as c,x as n,F as l}from"./index-bde6e5ef.js";import{M as L,A as N,a as O,S as R,C as U,b as W,F as X}from"./index-5c574277.js";const J=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:x}=a("settings"),{open:h}=a("blueprintGraph"),{open:b}=a("feedback"),g=$(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:v}=G(o=>o),{isAdmin:d}=D(o=>o),I=E(),A=()=>{m(null),k(),j(),f(),g("/")},M=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(H,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:M,children:[e.jsx(s,{children:e.jsx(L,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(N,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(Q,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(X,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 1; transition: opacity 1s; background: ${n.BG2}; position: relative; -`,q=c(l)` +`,H=c(l)` background: blue; align-items: center; justify-content: center; @@ -87,7 +87,7 @@ import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v a justify-content: center; border: none; } -`,J=c(i)` +`,Q=c(i)` position: absolute; bottom: 16px; left: 50%; @@ -96,4 +96,4 @@ import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v a justify-content: center; align-items: center; font-size: 24px; -`;export{H as MainToolbar}; +`;export{J as MainToolbar}; diff --git a/build/assets/index-01d51677.js b/build/assets/index-01d51677.js deleted file mode 100644 index 7ef0f92f7..000000000 --- a/build/assets/index-01d51677.js +++ /dev/null @@ -1,133 +0,0 @@ -import{aB as j,aC as E,aD as b,aE as R,aF as $,aG as D,aH as U,aI as G,t as p,v as u,z as O,r as f,j as e,F as r,T as C,aJ as J,aA as K,q as Q,az as m,aK as X,a0 as ee,aL as te,aM as se,Z as ne,P as oe,aN as re}from"./index-b416b1a9.js";import{aL as ae,B as z,ah as ie,u as ce,a0 as le,a1 as de}from"./index-1f5ac1eb.js";import{B as ue}from"./index-8331965f.js";import{S as pe}from"./index-17930aa1.js";import{e as xe}from"./index.esm-258646ab.js";import{C as he}from"./ClipLoader-a0a9ce2c.js";import{T as fe}from"./index-64813bbe.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?$:ve.test(t)?E:A.test(t)?j:be.test(t)?D:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:U:G}const Be=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=O(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await J(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs($e,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ae(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(z,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(he,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(ie,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},$e=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - width: 141px; - height: 61px; - border: 1px solid ${u.GRAY7}; - border-radius: 6px; - padding: 16px; - .title { - font-family: Barlow; - color: ${u.secondaryText4}; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - color: ${u.white}; - font-size: 18px; - font-style: normal; - font-weight: 500; - } -`,Ae=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - color: ${u.secondaryText4}; - .title { - font-family: Barlow; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - font-size: 14px; - font-style: normal; - font-weight: 400; - } -`,ke=p(C)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,Ne=p(r)` - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - gap: 2px; - - .errorIcon { - display: block; - font-size: 13px; - min-height: 13px; - min-width: 13px; - } - - span { - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - overflow: hidden; - white-space: normal; - letter-spacing: 0.2px; - cursor: pointer; - padding-left: 4px; - font-size: 13px; - font-family: Barlow; - line-height: 18px; - } -`,Pe=p(r)` - display: flex; - align-items: center; - color: ${u.primaryRed}; - position: relative; - margin-top: 20px; -`,L=p.span` - display: inline-flex; - align-items: center; - justify-content: center; - margin-top: 2px; - - svg { - width: 16px; - height: 16px; - } -`,Ie=/^(https?:\/\/)/g,Le=/(www\.)?/g,De=/[\w-]+(\.[\w-]+)*/g,Ue=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/g,Ge=/(\/[^\s?]*)?/g,Oe=/(\?[^\s]*)?/g,Z=new RegExp(`${Ie.source}${Le.source}${De.source}${Ue.source}?${Ge.source}${Oe.source}$`,"i"),M=t=>{if(t==null?void 0:t.match(Z)){const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}return!1},Ze=({type:t,onNextStep:s,allowNextStep:n})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(Me,{children:"Add Content"})})}),e.jsx(r,{mb:12,children:e.jsx(fe,{id:"cy-youtube-channel-id",maxLength:250,name:"source",placeholder:"Paste your url here...",rules:{...K,...t!==$?{pattern:{message:"Please enter a valid URL",value:Z},validate:{source:M}}:{}}})}),e.jsx(r,{children:e.jsx(z,{color:"secondary","data-testid":"add-content-btn",disabled:!n,onClick:s,size:"large",variant:"contained",children:"Next"})})]}),Me=p(C)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,T={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[b]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},Fe=({onNextStep:t,onPrevStep:s,type:n,value:o})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(We,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(qe,{children:[e.jsx("img",{alt:T[n].label,className:"badge__img",src:T[n].img}),e.jsx(Ye,{children:T[n].label})]}),e.jsx(He,{children:Be(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(Ve,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(z,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),He=p(r)` - font-family: Barlow; - font-size: 14px; - font-weight: 400; - line-height: 16px; - letter-spacing: 0em; - text-align: left; - margin-top: 15px; - color: ${u.GRAY3}; - max-width: 300px; - overflow: hidden; - text-overflow: ellipsis; - word-wrap: break-word; -`,We=p(C)` - font-family: Barlow; - font-size: 14px; - font-weight: 500; - line-height: 17px; - letter-spacing: 0px; - text-align: left; -`,Ye=p(C)` - font-family: Barlow; - font-size: 20px; - font-weight: 600; - line-height: 16px; - letter-spacing: 0em; - text-align: left; - color: ${u.white}; -`,qe=p(r)` - display: flex; - flex-direction: row; - align-items: center; - gap: 12px; -`,Ve=p(z)` - && { - background: ${u.white}; - color: ${u.BG2}; - - &:active, - &:hover, - &:focus { - background: ${u.white}; - color: ${u.BG2}; - } - } -`,F=async(t,s,n,o)=>{const y=_(s)?"radar":"add_node",a={};if(s===$)a.media_url=t.source,a.content_type="audio_video";else if(s===D){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;a.tweet_id=S}}else a.tweet_id=t.source;a.content_type="tweet"}else if(s===U)a.content_type="webpage",a.web_page=t.source;else if(s===G)a.content_type="document",a.text=t.source;else if(s===j){const[,i]=(t.source||"").match(A)||[];if(i)a.source=i,a.source_type=s;else return}else(s===E||s===b||s===R)&&(a.source=t.source,a.source_type=s);t.latitude&&t.longitude&&(a.latitude=t.latitude,a.longitude=t.longitude);let x="",d;X?d=await te.enable():d=await ee.enable(),a.pubkey=d==null?void 0:d.pubkey,x=await se();try{const i=await ne.post(`/${y}`,JSON.stringify(a),{Authorization:x});if(await oe(n),i.data.project_id&&o(i.data.project_id),i.error){const{message:c}=i.error;throw new Error(c)}}catch(i){if(i.status===402)await re(n),await F(t,s,n,o);else{let c=m;if(i.status===400)try{const l=await i.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else i instanceof Error&&(c=i.message||m);throw new Error(c)}}},nt=()=>{const[t,s]=f.useState(0),{close:n,visible:o}=ce("addContent"),{setBudget:y}=O(g=>g),{setRunningProjectId:a}=Q(g=>g),x=le({mode:"onChange"}),{watch:d,setValue:i,reset:c}=x,[l,S]=f.useState(!1),[H,k]=f.useState("");f.useEffect(()=>()=>{k(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),W=M(N);f.useEffect(()=>{(async()=>{const h=await ze(P);i("inputType",h)})()},[P,i]);const Y=()=>{n()},I=()=>{s(t===0?_(w)?1:2:t+1)},q=()=>{s(t-1)},V=x.handleSubmit(async g=>{S(!0);try{await F(g,w,y,a),pe("Content Added"),Y()}catch(h){let B=m;if((h==null?void 0:h.status)===400){const v=await h.json();B=v.errorCode||(v==null?void 0:v.status)||m}else h instanceof Error&&(B=h.message);k(String(B))}finally{S(!1)}});return e.jsx(ue,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(de,{...x,children:e.jsxs("form",{id:"add-node-form",onSubmit:V,children:[t===0&&e.jsx(Ze,{allowNextStep:W,onNextStep:I,type:w}),t===1&&_(w)&&e.jsx(Fe,{onNextStep:I,onPrevStep:q,type:w,value:N}),t===2&&e.jsx(Te,{error:H,loading:l,onClick:()=>null,type:w})]})})})};export{nt as AddContentModal}; diff --git a/build/assets/index-39784bea.js b/build/assets/index-04235dc5.js similarity index 99% rename from build/assets/index-39784bea.js rename to build/assets/index-04235dc5.js index da2b83550..f720dcca6 100644 --- a/build/assets/index-39784bea.js +++ b/build/assets/index-04235dc5.js @@ -1,4 +1,4 @@ -import{r as P,g as Cc,b as yi,b9 as _c,ba as ed,j as L,R as td,v as Ji,bb as nd,bc as rd,bd as id}from"./index-b416b1a9.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{b3 as _t,v as Fd,f as Ad}from"./index-1f5ac1eb.js";var Pc={exports:{}},Gr={};/** +import{r as P,g as Cc,e as yi,bH as _c,bI as ed,j as L,b as td,x as Ji,bJ as nd,bK as rd,bL as id}from"./index-bde6e5ef.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{aW as _t,w as Fd,e as Ad}from"./index-5c574277.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-0b4435d0.js b/build/assets/index-0b4435d0.js deleted file mode 100644 index 5a8588684..000000000 --- a/build/assets/index-0b4435d0.js +++ /dev/null @@ -1,47 +0,0 @@ -import{t as c,v as N,T as E,F as s,N as O,r as l,j as e,aA as W,a_ as P,aY as V,q as k}from"./index-b416b1a9.js";import{B as q}from"./index-8331965f.js";import{u as x,e as F,T as G,aZ as Y,a0 as H,a1 as Z,B as I}from"./index-1f5ac1eb.js";import{T as J}from"./index-64813bbe.js";import{S as K}from"./Skeleton-0e0ce42e.js";import{C as Q}from"./ClipLoader-a0a9ce2c.js";import"./index.esm-258646ab.js";const X=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!X.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=F(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(T=>({...T,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(G,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(J,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},oe=c(E)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ne=c(E)` - color: ${N.GRAY6}; - font-family: 'Barlow'; - font-size: 12px; - font-weight: 400; - line-height: 18px; -`,se=c.span` - display: inline-flex; - align-items: center; - justify-content: center; - gap: 15px; - margin: 5px 0 0 40px; -`,re=c(s)` - align-items: center; - cursor: pointer; -`,ie=c(s)` - display: flex; - max-height: 60vh; - overflow-y: auto; - padding-right: 40px; - width: calc(100% + 40px); -`,ce=()=>{var v,S,w;const{close:r}=x("editNodeName"),d=H({mode:"onChange"}),{watch:f,setValue:a,reset:j,getValues:m}=d,[u,y]=l.useState(!1),[g,o]=l.useState(!1),[n,T]=l.useState(),t=F(),{open:B}=x("removeNode");l.useEffect(()=>(n?Object.keys(n).forEach(i=>{a(i,n[i])}):t&&Object.keys(t).forEach(i=>{a(i,t[i])}),()=>{j()}),[n,a,j,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:p}=await P({search:t==null?void 0:t.name}),M=p.find(U=>U.name===t.name);T(M)}catch(p){console.log(p)}finally{o(!1)}}})()},[t]);const D=f("imageInputType"),b=f("image_url");l.useEffect(()=>{a("imageInputType",ee(b))},[b,a]);const L=()=>{r()},h=n||t,_=async()=>{y(!0);const i=m();try{await V((h==null?void 0:h.ref_id)||"",{node_data:i});const{updateNode:p}=k.getState();p({...h,...i}),L()}catch(p){console.warn(p)}finally{y(!1)}},R=async()=>{B()},C=(S=(v=m())==null?void 0:v.name)==null?void 0:S.trim(),$=C&&(n==null?void 0:n.name.trim())!==C,z=m().image_url&&(t==null?void 0:t.image_url)!==((w=m())==null?void 0:w.image_url),A=u||g||!!b&&!D||!$&&!z;return e.jsx(le,{children:e.jsxs(Z,{...d,children:[g?e.jsx(s,{my:24,children:e.jsx(K,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(de,{color:"secondary",disabled:g||!h,onClick:R,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(me,{color:"secondary",disabled:A,onClick:_,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(pe,{children:e.jsx(Q,{color:N.lightGray,size:12})})]})]})]})})},le=c(s)` - padding: 20px; -`,de=c(I)` - && { - color: ${N.primaryRed}; - background-color: rgba(237, 116, 116, 0.1); - flex: 1; - margin-right: 10px; - - &:hover, - &:active, - &:focus { - color: ${N.primaryRed}; - background-color: rgba(237, 116, 116, 0.2); - } - } -`,pe=c.span` - margin-top: 4px; -`,me=c(I)` - width: 80% !important; - margin: 0 auto !important; -`,Ne=()=>{const{close:r}=x("editNodeName");return e.jsx(q,{id:"editNodeName",kind:"regular",onClose:r,preventOutsideClose:!0,children:e.jsx(ce,{})})};export{Ne as EditNodeNameModal}; diff --git a/build/assets/index-0f75a7d3.js b/build/assets/index-0f75a7d3.js new file mode 100644 index 000000000..18e27aeaf --- /dev/null +++ b/build/assets/index-0f75a7d3.js @@ -0,0 +1,34 @@ +import{w as a,j as e,F as s,aV as g,aW as j,z as w,H as i,x as n,M as S,a1 as y,r as m,aT as k,at as F,a3 as v,ac as T}from"./index-bde6e5ef.js";import{aX as B}from"./index-5c574277.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,M=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(C,{children:e.jsx(B,{})}),e.jsx(W,{children:"We've Got Your Feedback"}),e.jsx($,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),C=a.div` + margin-bottom: 20px; + width: 50px; + height: 50px; + + svg { + width: 100%; + height: 100%; + color: ${n.white}; + fill: none; + } + + circle { + color: ${n.SUCESS}; + } +`,W=a(i)` + font-size: 22px; + font-weight: 700; + font-family: 'Barlow'; + text-align: center; + margin-bottom: 10px; +`,$=a(i)` + font-size: 16px; + font-family: 'Barlow'; + text-align: center; + margin-bottom: 20px; + font-weight: 400; + color: ${n.GRAY6}; + padding-top: 10px; +`,I=async r=>{try{const t=await T.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},A=()=>{const{close:r,visible:t}=S("feedback"),o=y({mode:"onChange"}),{watch:x,reset:c}=o,[u,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=x("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),k("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(F,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(v,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:u?e.jsx(M,{}):e.jsx(E,{allowNextStep:h})})})})};export{A as UserFeedBackModal}; diff --git a/build/assets/index-17930aa1.js b/build/assets/index-17930aa1.js deleted file mode 100644 index 82283b605..000000000 --- a/build/assets/index-17930aa1.js +++ /dev/null @@ -1,6 +0,0 @@ -import{t as i,j as t,v as a}from"./index-b416b1a9.js";import{f as n}from"./index.esm-258646ab.js";import{ba as e}from"./index-1f5ac1eb.js";const r=i.div` - display: Flex; - justify-content: center; - align-items: center; - gap: 5px; -`,d=o=>{const c=o||"Success",s="uniqueToastId";e.isActive(s)||e.success(t.jsxs(r,{children:[t.jsx(n,{color:a.white,fontSize:24}),c]}),{toastId:s,autoClose:5e3,icon:!1,closeButton:!1})};export{d as S}; diff --git a/build/assets/index-1f5ac1eb.js b/build/assets/index-1f5ac1eb.js deleted file mode 100644 index 63d682d4f..000000000 --- a/build/assets/index-1f5ac1eb.js +++ /dev/null @@ -1,699 +0,0 @@ -import{g as La,r as p,R as v,a as E0,_ as Z1,b as U,c as f0,d as Xe,s as se,e as ze,u as Qe,j as u,f as A1,h as h0,k as Kr,i as G1,l as pn,m as Ra,n as G3,o as P3,$ as M3,W as T3,p as mn,q as Je,t as l1,v as t1,F as s1,w as L3,x as R3,L as F3,y as xn,z as qr,A as Fa,T as F1,S as O3,B as W1,C as I3,D as H3,E as N3,G as z3,H as U3,I as Z3,J as Oa,K as W3,M as K3,N as q3,O as Y3,P as X3}from"./index-b416b1a9.js";function Q3(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function J3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const el=e=>{const[t,n,r]=e.split(":"),i=parseInt(t,10),o=parseInt(n,10),a=parseInt(r,10);return i*3600+o*60+a};var Ia={exports:{}},tl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nl=tl,rl=nl;function Ha(){}function Na(){}Na.resetWarningCache=Ha;var il=function(){function e(r,i,o,a,s,l){if(l!==rl){var c=new 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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={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:Na,resetWarningCache:Ha};return n.PropTypes=n,n};Ia.exports=il();var ol=Ia.exports;const g1=La(ol);function ji(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function al(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function we(e){return e&&e.ownerDocument||document}function st(e){return we(e).defaultView||window}function ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sl=typeof window<"u"?p.useLayoutEffect:p.useEffect,dr=sl;function S0(e){const t=p.useRef(e);return dr(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ur(n,t)})},e)}let kn=!0,fr=!1,Gi;const ll={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};function cl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ll[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ul(e){e.metaKey||e.altKey||e.ctrlKey||(kn=!0)}function jn(){kn=!1}function dl(){this.visibilityState==="hidden"&&fr&&(kn=!0)}function fl(e){e.addEventListener("keydown",ul,!0),e.addEventListener("mousedown",jn,!0),e.addEventListener("pointerdown",jn,!0),e.addEventListener("touchstart",jn,!0),e.addEventListener("visibilitychange",dl,!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kn||cl(t)}function pl(){const e=p.useCallback(i=>{i!=null&&fl(i.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(fr=!0,window.clearTimeout(Gi),Gi=window.setTimeout(()=>{fr=!1},100),t.current=!1,!0):!1}function r(i){return hl(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const xl=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pi=xl;function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hr(e,t)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hr(e,t)}const Mi={disabled:!1},Ot=v.createContext(null);var kl=function(t){return t.scrollTop},Q0="unmounted",t0="exited",n0="entering",w0="entered",pr="exiting",Fe=function(e){za(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=t0,o.appearStatus=n0):l=w0:r.unmountOnExit||r.mountOnEnter?l=Q0:l=t0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Q0?{status:t0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==n0&&a!==w0&&(o=n0):(a===n0||a===w0)&&(o=pr)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===n0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this);a&&kl(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===t0&&this.setState({status:Q0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[E0.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||Mi.disabled){this.safeSetState({status:w0},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:n0},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:w0},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:E0.findDOMNode(this);if(!o||Mi.disabled){this.safeSetState({status:t0},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pr},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:t0},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Q0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Z1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Ot.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Fe.contextType=Ot;Fe.propTypes={};function g0(){}Fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g0,onEntering:g0,onEntered:g0,onExit:g0,onExiting:g0,onExited:g0};Fe.UNMOUNTED=Q0;Fe.EXITED=t0;Fe.ENTERING=n0;Fe.ENTERED=w0;Fe.EXITING=pr;const Ua=Fe;function gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){var n=function(o){return t&&p.isValidElement(o)?t(o):o},r=Object.create(null);return e&&p.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Cl(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function It(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Sl(e){return f0("MuiPaper",e)}Xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const _l=["className","component","elevation","square","variant"],Al=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return h0(o,Sl,i)},Vl=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return U({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Pi(t.elevation))}, ${ze("#fff",Pi(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dl=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=Z1(r,_l),d=U({},r,{component:o,elevation:a,square:s,variant:l}),f=Al(d);return u.jsx(Vl,U({as:o,ownerState:d,className:A1(f.root,i),ref:n},c))}),Bl=Dl;function $l(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=A1(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),k={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=A1(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),u.jsx("span",{className:h,style:k,children:u.jsx("span",{className:m})})}const jl=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ce=jl,Gl=["center","classes","className"];let gn=e=>e,Ti,Li,Ri,Fi;const mr=550,Pl=80,Ml=Kr(Ti||(Ti=gn` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Tl=Kr(Li||(Li=gn` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),Ll=Kr(Ri||(Ri=gn` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Rl=se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Fl=se($l,{name:"MuiTouchRipple",slot:"Ripple"})(Fi||(Fi=gn` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),ce.rippleVisible,Ml,mr,({theme:e})=>e.transitions.easing.easeInOut,ce.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ce.child,ce.childLeaving,Tl,mr,({theme:e})=>e.transitions.easing.easeInOut,ce.childPulsate,Ll,({theme:e})=>e.transitions.easing.easeInOut),Ol=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Z1(r,Gl),[l,c]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=p.useRef(!1),k=p.useRef(0),m=p.useRef(null),g=p.useRef(null);p.useEffect(()=>()=>{k.current&&clearTimeout(k.current)},[]);const y=p.useCallback(S=>{const{pulsate:w,rippleX:E,rippleY:_,rippleSize:V,cb:P}=S;c($=>[...$,u.jsx(Fl,{classes:{ripple:A1(o.ripple,ce.ripple),rippleVisible:A1(o.rippleVisible,ce.rippleVisible),ripplePulsate:A1(o.ripplePulsate,ce.ripplePulsate),child:A1(o.child,ce.child),childLeaving:A1(o.childLeaving,ce.childLeaving),childPulsate:A1(o.childPulsate,ce.childPulsate)},timeout:mr,pulsate:w,rippleX:E,rippleY:_,rippleSize:V},d.current)]),d.current+=1,f.current=P},[o]),x=p.useCallback((S={},w={},E=()=>{})=>{const{pulsate:_=!1,center:V=i||w.pulsate,fakeElement:P=!1}=w;if((S==null?void 0:S.type)==="mousedown"&&h.current){h.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(h.current=!0);const $=P?null:g.current,T=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,O,M;if(V||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)D=Math.round(T.width/2),O=Math.round(T.height/2);else{const{clientX:R,clientY:F}=S.touches&&S.touches.length>0?S.touches[0]:S;D=Math.round(R-T.left),O=Math.round(F-T.top)}if(V)M=Math.sqrt((2*T.width**2+T.height**2)/3),M%2===0&&(M+=1);else{const R=Math.max(Math.abs(($?$.clientWidth:0)-D),D)*2+2,F=Math.max(Math.abs(($?$.clientHeight:0)-O),O)*2+2;M=Math.sqrt(R**2+F**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{y({pulsate:_,rippleX:D,rippleY:O,rippleSize:M,cb:E})},k.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Pl)):y({pulsate:_,rippleX:D,rippleY:O,rippleSize:M,cb:E})},[i,y]),C=p.useCallback(()=>{x({},{pulsate:!0})},[x]),b=p.useCallback((S,w)=>{if(clearTimeout(k.current),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,k.current=setTimeout(()=>{b(S,w)});return}m.current=null,c(E=>E.length>0?E.slice(1):E),f.current=w},[]);return p.useImperativeHandle(n,()=>({pulsate:C,start:x,stop:b}),[C,x,b]),u.jsx(Rl,U({className:A1(ce.root,o.root,a),ref:g},s,{children:u.jsx(El,{component:null,exit:!0,children:l})}))}),Il=Ol;function Hl(e){return f0("MuiButtonBase",e)}const Nl=Xe("MuiButtonBase",["root","disabled","focusVisible"]),zl=Nl,Ul=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Zl=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=h0({root:["root",t&&"disabled",n&&"focusVisible"]},Hl,i);return n&&r&&(a.root+=` ${r}`),a},Wl=se("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kl=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:k="a",onBlur:m,onClick:g,onContextMenu:y,onDragLeave:x,onFocus:C,onFocusVisible:b,onKeyDown:S,onKeyUp:w,onMouseDown:E,onMouseLeave:_,onMouseUp:V,onTouchEnd:P,onTouchMove:$,onTouchStart:T,tabIndex:D=0,TouchRippleProps:O,touchRippleRef:M,type:R}=r,F=Z1(r,Ul),H=p.useRef(null),Z=p.useRef(null),q=Pe(Z,M),{isFocusVisibleRef:i1,onFocus:X,onBlur:N,ref:J}=pl(),[e1,n1]=p.useState(!1);c&&e1&&n1(!1),p.useImperativeHandle(i,()=>({focusVisible:()=>{n1(!0),H.current.focus()}}),[]);const[c1,b1]=p.useState(!1);p.useEffect(()=>{b1(!0)},[]);const S1=c1&&!d&&!c;p.useEffect(()=>{e1&&h&&!d&&c1&&Z.current.pulsate()},[d,h,e1,c1]);function x1(Y,te,e0=f){return S0(ye=>(te&&te(ye),!e0&&Z.current&&Z.current[Y](ye),!0))}const $1=x1("start",E),Q1=x1("stop",y),le=x1("stop",x),o1=x1("stop",V),u1=x1("stop",Y=>{e1&&Y.preventDefault(),_&&_(Y)}),d1=x1("start",T),L1=x1("stop",P),J1=x1("stop",$),ee=x1("stop",Y=>{N(Y),i1.current===!1&&n1(!1),m&&m(Y)},!1),_e=S0(Y=>{H.current||(H.current=Y.currentTarget),X(Y),i1.current===!0&&(n1(!0),b&&b(Y)),C&&C(Y)}),A=()=>{const Y=H.current;return l&&l!=="button"&&!(Y.tagName==="A"&&Y.href)},B=p.useRef(!1),L=S0(Y=>{h&&!B.current&&e1&&Z.current&&Y.key===" "&&(B.current=!0,Z.current.stop(Y,()=>{Z.current.start(Y)})),Y.target===Y.currentTarget&&A()&&Y.key===" "&&Y.preventDefault(),S&&S(Y),Y.target===Y.currentTarget&&A()&&Y.key==="Enter"&&!c&&(Y.preventDefault(),g&&g(Y))}),j=S0(Y=>{h&&Y.key===" "&&Z.current&&e1&&!Y.defaultPrevented&&(B.current=!1,Z.current.stop(Y,()=>{Z.current.pulsate(Y)})),w&&w(Y),g&&Y.target===Y.currentTarget&&A()&&Y.key===" "&&!Y.defaultPrevented&&g(Y)});let G=l;G==="button"&&(F.href||F.to)&&(G=k);const I={};G==="button"?(I.type=R===void 0?"button":R,I.disabled=c):(!F.href&&!F.to&&(I.role="button"),c&&(I["aria-disabled"]=c));const W=Pe(n,J,H),a1=U({},r,{centerRipple:o,component:l,disabled:c,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:D,focusVisible:e1}),k1=Zl(a1);return u.jsxs(Wl,U({as:G,className:A1(k1.root,s),ownerState:a1,onBlur:ee,onClick:g,onContextMenu:Q1,onFocus:_e,onKeyDown:L,onKeyUp:j,onMouseDown:$1,onMouseLeave:u1,onMouseUp:o1,onDragLeave:le,onTouchEnd:L1,onTouchMove:J1,onTouchStart:d1,ref:W,tabIndex:c?-1:D,type:R},I,F,{children:[a,S1?u.jsx(Il,U({ref:q,center:o},O)):null]}))}),Wa=Kl;function ql(e){return f0("MuiIconButton",e)}const Yl=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Xl=Yl,Ql=["edge","children","className","color","disabled","disableFocusRipple","size"],Jl=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${G1(r)}`,i&&`edge${G1(i)}`,`size${G1(o)}`]};return h0(a,ql,t)},ec=se(Wa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${G1(n.color)}`],n.edge&&t[`edge${G1(n.edge)}`],t[`size${G1(n.size)}`]]}})(({theme:e,ownerState:t})=>U({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return U({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&U({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":U({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Xl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),tc=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium"}=r,f=Z1(r,Ql),h=U({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:d}),k=Jl(h);return u.jsx(ec,U({className:A1(k.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:h},f,{children:o}))}),Ka=tc;function qa(e){return typeof e=="string"}function nc(e,t,n){return e===void 0||qa(e)?t:U({},t,{ownerState:U({},t.ownerState,n)})}function Ya(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function rc(e,t,n){return typeof e=="function"?e(t,n):e}function Xa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function ic(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const k=Oi(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=U({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=U({},n,i,r);return k.length>0&&(g.className=k),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=Ya(U({},i,r)),s=Ii(r),l=Ii(i),c=t(a),d=Oi(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=U({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=U({},c,n,l,s);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}const oc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ht(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Z1(e,oc),s=o?{}:rc(r,i),{props:l,internalRef:c}=ic(U({},a,{externalSlotProps:s})),d=Pe(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return nc(n,U({},l,{ref:d}),i)}const ac=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sc(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function lc(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function cc(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lc(e))}function uc(e){const t=[],n=[];return Array.from(e.querySelectorAll(ac)).forEach((r,i)=>{const o=sc(r);o===-1||!cc(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function dc(){return!0}function fc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=uc,isEnabled:a=dc,open:s}=e,l=p.useRef(!1),c=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),k=p.useRef(!1),m=p.useRef(null),g=Pe(t.ref,m),y=p.useRef(null);p.useEffect(()=>{!s||!m.current||(k.current=!n)},[n,s]),p.useEffect(()=>{if(!s||!m.current)return;const b=we(m.current);return m.current.contains(b.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),k.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),p.useEffect(()=>{if(!s||!m.current)return;const b=we(m.current),S=_=>{y.current=_,!(r||!a()||_.key!=="Tab")&&b.activeElement===m.current&&_.shiftKey&&(l.current=!0,d.current&&d.current.focus())},w=()=>{const _=m.current;if(_===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(_.contains(b.activeElement)||r&&b.activeElement!==c.current&&b.activeElement!==d.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!k.current)return;let V=[];if((b.activeElement===c.current||b.activeElement===d.current)&&(V=o(m.current)),V.length>0){var P,$;const T=!!((P=y.current)!=null&&P.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),D=V[0],O=V[V.length-1];typeof D!="string"&&typeof O!="string"&&(T?O.focus():D.focus())}else _.focus()};b.addEventListener("focusin",w),b.addEventListener("keydown",S,!0);const E=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(E),b.removeEventListener("focusin",w),b.removeEventListener("keydown",S,!0)}},[n,r,i,a,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0,h.current=b.target;const S=t.props.onFocus;S&&S(b)},C=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0};return u.jsxs(p.Fragment,{children:[u.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:g,onFocus:x}),u.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}function hc(e){return typeof e=="function"?e():e}const pc=p.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=p.useState(null),l=Pe(p.isValidElement(r)?r.ref:null,n);if(dr(()=>{o||s(hc(i)||document.body)},[i,o]),dr(()=>{if(a&&!o)return ur(n,a),()=>{ur(n,null)}},[n,a,o]),o){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return u.jsx(p.Fragment,{children:r})}return u.jsx(p.Fragment,{children:a&&pn.createPortal(r,a)})});function mc(e){const t=we(e);return t.body===e?st(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function nt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Hi(e){return parseInt(st(e).getComputedStyle(e).paddingRight,10)||0}function xc(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Ni(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!xc(a);s&&l&&nt(a,i)})}function Gn(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function kc(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(mc(r)){const a=ml(we(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Hi(r)+a}px`;const s=we(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Hi(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=we(r).body;else{const a=r.parentElement,s=st(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function gc(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Cc{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&nt(t.modalRef,!1);const i=gc(n);Ni(n,t.mount,t.modalRef,i,!0);const o=Gn(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Gn(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=kc(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Gn(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&nt(t.modalRef,n),Ni(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&nt(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function yc(e){return typeof e=="function"?e():e}function bc(e){return e?e.props.hasOwnProperty("in"):!1}const vc=new Cc;function wc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=vc,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:f}=e,h=p.useRef({}),k=p.useRef(null),m=p.useRef(null),g=Pe(m,f),[y,x]=p.useState(!d),C=bc(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const S=()=>we(k.current),w=()=>(h.current.modalRef=m.current,h.current.mount=k.current,h.current),E=()=>{i.mount(w(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},_=S0(()=>{const F=yc(t)||S().body;i.add(w(),F),m.current&&E()}),V=p.useCallback(()=>i.isTopModal(w()),[i]),P=S0(F=>{k.current=F,F&&(d&&V()?E():m.current&&nt(m.current,b))}),$=p.useCallback(()=>{i.remove(w(),b)},[b,i]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{d?_():(!C||!o)&&$()},[d,$,C,o,_]);const T=F=>H=>{var Z;(Z=F.onKeyDown)==null||Z.call(F,H),!(H.key!=="Escape"||H.which===229||!V())&&(n||(H.stopPropagation(),c&&c(H,"escapeKeyDown")))},D=F=>H=>{var Z;(Z=F.onClick)==null||Z.call(F,H),H.target===H.currentTarget&&c&&c(H,"backdropClick")};return{getRootProps:(F={})=>{const H=Ya(e);delete H.onTransitionEnter,delete H.onTransitionExited;const Z=U({},H,F);return U({role:"presentation"},Z,{onKeyDown:T(Z),ref:g})},getBackdropProps:(F={})=>{const H=F;return U({"aria-hidden":!0},H,{onClick:D(H),open:d})},getTransitionProps:()=>{const F=()=>{x(!1),a&&a()},H=()=>{x(!0),s&&s(),o&&$()};return{onEnter:ji(F,l==null?void 0:l.props.onEnter),onExited:ji(H,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:P,isTopModal:V,exited:y,hasTransition:C}}const Ec=["top","right","bottom","left"],We=Math.min,re=Math.max,Nt=Math.round,St=Math.floor,Ke=e=>({x:e,y:e}),Sc={left:"right",right:"left",bottom:"top",top:"bottom"},_c={start:"end",end:"start"};function xr(e,t,n){return re(e,We(t,n))}function Me(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function M0(e){return e.split("-")[1]}function Qr(e){return e==="x"?"y":"x"}function Jr(e){return e==="y"?"height":"width"}function T0(e){return["top","bottom"].includes(Te(e))?"y":"x"}function ei(e){return Qr(T0(e))}function Ac(e,t,n){n===void 0&&(n=!1);const r=M0(e),i=ei(e),o=Jr(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=zt(a)),[a,zt(a)]}function Vc(e){const t=zt(e);return[kr(e),t,kr(t)]}function kr(e){return e.replace(/start|end/g,t=>_c[t])}function Dc(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function Bc(e,t,n,r){const i=M0(e);let o=Dc(Te(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(kr)))),o}function zt(e){return e.replace(/left|right|bottom|top/g,t=>Sc[t])}function $c(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qa(e){return typeof e!="number"?$c(e):{top:e,right:e,bottom:e,left:e}}function Ut(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zi(e,t,n){let{reference:r,floating:i}=e;const o=T0(t),a=ei(t),s=Jr(a),l=Te(t),c=o==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let k;switch(l){case"top":k={x:d,y:r.y-i.height};break;case"bottom":k={x:d,y:r.y+r.height};break;case"right":k={x:r.x+r.width,y:f};break;case"left":k={x:r.x-i.width,y:f};break;default:k={x:r.x,y:r.y}}switch(M0(t)){case"start":k[a]-=h*(n&&c?-1:1);break;case"end":k[a]+=h*(n&&c?-1:1);break}return k}const jc=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=zi(c,r,l),h=r,k={},m=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Me(e,t)||{};if(c==null)return{};const f=Qa(d),h={x:n,y:r},k=ei(i),m=Jr(k),g=await a.getDimensions(c),y=k==="y",x=y?"top":"left",C=y?"bottom":"right",b=y?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[k]-h[k]-o.floating[m],w=h[k]-o.reference[k],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let _=E?E[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(E)))&&(_=s.floating[b]||o.floating[m]);const V=S/2-w/2,P=_/2-g[m]/2-1,$=We(f[x],P),T=We(f[C],P),D=$,O=_-g[m]-T,M=_/2-g[m]/2+V,R=xr(D,M,O),F=!l.arrow&&M0(i)!=null&&M!=R&&o.reference[m]/2-(MD<=0)){var P,$;const D=(((P=o.flip)==null?void 0:P.index)||0)+1,O=w[D];if(O)return{data:{index:D,overflows:V},reset:{placement:O}};let M=($=V.filter(R=>R.overflows[0]<=0).sort((R,F)=>R.overflows[1]-F.overflows[1])[0])==null?void 0:$.placement;if(!M)switch(k){case"bestFit":{var T;const R=(T=V.map(F=>[F.placement,F.overflows.filter(H=>H>0).reduce((H,Z)=>H+Z,0)]).sort((F,H)=>F[1]-H[1])[0])==null?void 0:T[0];R&&(M=R);break}case"initialPlacement":M=s;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function Zi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wi(e){return Ec.some(t=>e[t]>=0)}const Pc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Me(e,t);switch(r){case"referenceHidden":{const o=await lt(t,{...i,elementContext:"reference"}),a=Zi(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Wi(a)}}}case"escaped":{const o=await lt(t,{...i,altBoundary:!0}),a=Zi(o,n.floating);return{data:{escapedOffsets:a,escaped:Wi(a)}}}default:return{}}}}};async function Mc(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Te(n),s=M0(n),l=T0(n)==="y",c=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,f=Me(t,e);let{mainAxis:h,crossAxis:k,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof m=="number"&&(k=s==="end"?m*-1:m),l?{x:k*d,y:h*c}:{x:h*c,y:k*d}}const Tc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await Mc(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Lc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x,y:C}=y;return{x,y:C}}},...l}=Me(e,t),c={x:n,y:r},d=await lt(t,l),f=T0(Te(i)),h=Qr(f);let k=c[h],m=c[f];if(o){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",C=k+d[y],b=k-d[x];k=xr(C,k,b)}if(a){const y=f==="y"?"top":"left",x=f==="y"?"bottom":"right",C=m+d[y],b=m-d[x];m=xr(C,m,b)}const g=s.fn({...t,[h]:k,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Rc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Me(e,t),d={x:n,y:r},f=T0(i),h=Qr(f);let k=d[h],m=d[f];const g=Me(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=h==="y"?"height":"width",S=o.reference[h]-o.floating[b]+y.mainAxis,w=o.reference[h]+o.reference[b]-y.mainAxis;kw&&(k=w)}if(c){var x,C;const b=h==="y"?"width":"height",S=["top","left"].includes(Te(i)),w=o.reference[f]-o.floating[b]+(S&&((x=a.offset)==null?void 0:x[f])||0)+(S?0:y.crossAxis),E=o.reference[f]+o.reference[b]+(S?0:((C=a.offset)==null?void 0:C[f])||0)-(S?y.crossAxis:0);mE&&(m=E)}return{[h]:k,[f]:m}}}},Fc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=()=>{},...s}=Me(e,t),l=await lt(t,s),c=Te(n),d=M0(n),f=T0(n)==="y",{width:h,height:k}=r.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=d===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(g=c,m=d==="end"?"top":"bottom");const y=k-l[m],x=h-l[g],C=!t.middlewareData.shift;let b=y,S=x;if(f){const E=h-l.left-l.right;S=d||C?We(x,E):E}else{const E=k-l.top-l.bottom;b=d||C?We(y,E):E}if(C&&!d){const E=re(l.left,0),_=re(l.right,0),V=re(l.top,0),P=re(l.bottom,0);f?S=h-2*(E!==0||_!==0?E+_:re(l.left,l.right)):b=k-2*(V!==0||P!==0?V+P:re(l.top,l.bottom))}await a({...t,availableWidth:S,availableHeight:b});const w=await i.getDimensions(o.floating);return h!==w.width||k!==w.height?{reset:{rects:!0}}:{}}}};function qe(e){return Ja(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(Ja(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ja(e){return e instanceof Node||e instanceof ae(e).Node}function Le(e){return e instanceof Element||e instanceof ae(e).Element}function Ee(e){return e instanceof HTMLElement||e instanceof ae(e).HTMLElement}function Ki(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Oc(e){return["table","td","th"].includes(qe(e))}function ti(e){const t=ni(),n=me(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ic(e){let t=$0(e);for(;Ee(t)&&!Cn(t);){if(ti(t))return t;t=$0(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cn(e){return["html","body","#document"].includes(qe(e))}function me(e){return ae(e).getComputedStyle(e)}function yn(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $0(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ki(e)&&e.host||Oe(e);return Ki(t)?t.host:t}function es(e){const t=$0(e);return Cn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&xt(t)?t:es(t)}function ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=es(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=ae(i);return o?t.concat(a,a.visualViewport||[],xt(i)?i:[],a.frameElement&&n?ct(a.frameElement):[]):t.concat(i,ct(i,[],n))}function ts(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ee(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Nt(n)!==o||Nt(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function ri(e){return Le(e)?e:e.contextElement}function V0(e){const t=ri(e);if(!Ee(t))return Ke(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ts(t);let a=(o?Nt(n.width):n.width)/r,s=(o?Nt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Hc=Ke(0);function ns(e){const t=ae(e);return!ni()||!t.visualViewport?Hc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function c0(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ri(e);let a=Ke(1);t&&(r?Le(r)&&(a=V0(r)):a=V0(e));const s=Nc(o,n,r)?ns(o):Ke(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const h=ae(o),k=r&&Le(r)?ae(r):r;let m=h.frameElement;for(;m&&r&&k!==h;){const g=V0(m),y=m.getBoundingClientRect(),x=me(m),C=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*g.x,b=y.top+(m.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,c*=g.y,d*=g.x,f*=g.y,l+=C,c+=b,m=ae(m).frameElement}}return Ut({width:d,height:f,x:l,y:c})}function zc(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Ee(n),o=Oe(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=Ke(1);const l=Ke(0);if((i||!i&&r!=="fixed")&&((qe(n)!=="body"||xt(o))&&(a=yn(n)),Ee(n))){const c=c0(n);s=V0(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Uc(e){return Array.from(e.getClientRects())}function rs(e){return c0(Oe(e)).left+yn(e).scrollLeft}function Zc(e){const t=Oe(e),n=yn(e),r=e.ownerDocument.body,i=re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+rs(e);const s=-n.scrollTop;return me(r).direction==="rtl"&&(a+=re(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function Wc(e,t){const n=ae(e),r=Oe(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const c=ni();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function Kc(e,t){const n=c0(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ee(e)?V0(e):Ke(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function qi(e,t,n){let r;if(t==="viewport")r=Wc(e,n);else if(t==="document")r=Zc(Oe(e));else if(Le(t))r=Kc(t,n);else{const i=ns(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Ut(r)}function is(e,t){const n=$0(e);return n===t||!Le(n)||Cn(n)?!1:me(n).position==="fixed"||is(n,t)}function qc(e,t){const n=t.get(e);if(n)return n;let r=ct(e,[],!1).filter(s=>Le(s)&&qe(s)!=="body"),i=null;const o=me(e).position==="fixed";let a=o?$0(e):e;for(;Le(a)&&!Cn(a);){const s=me(a),l=ti(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||xt(a)&&!l&&is(e,a))?r=r.filter(d=>d!==a):i=s,a=$0(a)}return t.set(e,r),r}function Yc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?qc(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,d)=>{const f=qi(t,d,i);return c.top=re(f.top,c.top),c.right=We(f.right,c.right),c.bottom=We(f.bottom,c.bottom),c.left=re(f.left,c.left),c},qi(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Xc(e){return ts(e)}function Qc(e,t,n){const r=Ee(t),i=Oe(t),o=n==="fixed",a=c0(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Ke(0);if(r||!r&&!o)if((qe(t)!=="body"||xt(i))&&(s=yn(t)),r){const c=c0(t,!0,o,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=rs(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yi(e,t){return!Ee(e)||me(e).position==="fixed"?null:t?t(e):e.offsetParent}function os(e,t){const n=ae(e);if(!Ee(e))return n;let r=Yi(e,t);for(;r&&Oc(r)&&me(r).position==="static";)r=Yi(r,t);return r&&(qe(r)==="html"||qe(r)==="body"&&me(r).position==="static"&&!ti(r))?n:r||Ic(e)||n}const Jc=async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||os,o=this.getDimensions;return{reference:Qc(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}};function e5(e){return me(e).direction==="rtl"}const t5={convertOffsetParentRelativeRectToViewportRelativeRect:zc,getDocumentElement:Oe,getClippingRect:Yc,getOffsetParent:os,getElementRects:Jc,getClientRects:Uc,getDimensions:Xc,getScale:V0,isElement:Le,isRTL:e5};function n5(e,t){let n=null,r;const i=Oe(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(s||t(),!f||!h)return;const k=St(d),m=St(i.clientWidth-(c+f)),g=St(i.clientHeight-(d+h)),y=St(c),C={rootMargin:-k+"px "+-m+"px "+-g+"px "+-y+"px",threshold:re(0,We(1,l))||1};let b=!0;function S(w){const E=w[0].intersectionRatio;if(E!==l){if(!b)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(S,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,C)}n.observe(e)}return a(!0),o}function r5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ri(e),d=i||o?[...c?ct(c):[],...ct(t)]:[];d.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=c&&s?n5(c,n):null;let h=-1,k=null;a&&(k=new ResizeObserver(x=>{let[C]=x;C&&C.target===c&&k&&(k.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{k&&k.observe(t)})),n()}),c&&!l&&k.observe(c),k.observe(t));let m,g=l?c0(e):null;l&&y();function y(){const x=c0(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&n(),g=x,m=requestAnimationFrame(y)}return n(),()=>{d.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f&&f(),k&&k.disconnect(),k=null,l&&cancelAnimationFrame(m)}}const i5=(e,t,n)=>{const r=new Map,i={platform:t5,...n},o={...i.platform,_c:r};return jc(e,t,{...i,platform:o})},o5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ui({element:r.current,padding:i}).fn(n):{}:r?Ui({element:r,padding:i}).fn(n):{}}}};var Mt=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Zt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Zt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Zt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function as(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xi(e,t){const n=as(e);return Math.round(t*n)/n}function Qi(e){const t=p.useRef(e);return Mt(()=>{t.current=e}),t}function a5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,k]=p.useState(r);Zt(h,r)||k(r);const[m,g]=p.useState(null),[y,x]=p.useState(null),C=p.useCallback(F=>{F!=E.current&&(E.current=F,g(F))},[g]),b=p.useCallback(F=>{F!==_.current&&(_.current=F,x(F))},[x]),S=o||m,w=a||y,E=p.useRef(null),_=p.useRef(null),V=p.useRef(d),P=Qi(l),$=Qi(i),T=p.useCallback(()=>{if(!E.current||!_.current)return;const F={placement:t,strategy:n,middleware:h};$.current&&(F.platform=$.current),i5(E.current,_.current,F).then(H=>{const Z={...H,isPositioned:!0};D.current&&!Zt(V.current,Z)&&(V.current=Z,pn.flushSync(()=>{f(Z)}))})},[h,t,n,$]);Mt(()=>{c===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,f(F=>({...F,isPositioned:!1})))},[c]);const D=p.useRef(!1);Mt(()=>(D.current=!0,()=>{D.current=!1}),[]),Mt(()=>{if(S&&(E.current=S),w&&(_.current=w),S&&w){if(P.current)return P.current(S,w,T);T()}},[S,w,T,P]);const O=p.useMemo(()=>({reference:E,floating:_,setReference:C,setFloating:b}),[C,b]),M=p.useMemo(()=>({reference:S,floating:w}),[S,w]),R=p.useMemo(()=>{const F={position:n,left:0,top:0};if(!M.floating)return F;const H=Xi(M.floating,d.x),Z=Xi(M.floating,d.y);return s?{...F,transform:"translate("+H+"px, "+Z+"px)",...as(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:Z}},[n,s,M.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:T,refs:O,elements:M,floatingStyles:R}),[d,T,O,M,R])}const s5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],l5={entering:{opacity:1},entered:{opacity:1}},c5=p.forwardRef(function(t,n){const r=Ra(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:f,onEntering:h,onExit:k,onExited:m,onExiting:g,style:y,timeout:x=i,TransitionComponent:C=Ua}=t,b=Z1(t,s5),S=p.useRef(null),w=Pe(S,s.ref,n),E=M=>R=>{if(M){const F=S.current;R===void 0?M(F):M(F,R)}},_=E(h),V=E((M,R)=>{Za(M);const F=It({style:y,timeout:x,easing:l},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",F),M.style.transition=r.transitions.create("opacity",F),d&&d(M,R)}),P=E(f),$=E(g),T=E(M=>{const R=It({style:y,timeout:x,easing:l},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",R),M.style.transition=r.transitions.create("opacity",R),k&&k(M)}),D=E(m),O=M=>{o&&o(S.current,M)};return u.jsx(C,U({appear:a,in:c,nodeRef:S,onEnter:V,onEntered:P,onEntering:_,onExit:T,onExited:D,onExiting:$,addEndListener:O,timeout:x},b,{children:(M,R)=>p.cloneElement(s,U({style:U({opacity:0,visibility:M==="exited"&&!c?"hidden":void 0},l5[M],y,s.props.style),ref:w},R))}))}),u5=c5;function d5(e){return f0("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const f5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],h5=e=>{const{classes:t,invisible:n}=e;return h0({root:["root",n&&"invisible"]},d5,t)},p5=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>U({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),m5=p.forwardRef(function(t,n){var r,i,o;const a=Qe({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:d={},componentsProps:f={},invisible:h=!1,open:k,slotProps:m={},slots:g={},TransitionComponent:y=u5,transitionDuration:x}=a,C=Z1(a,f5),b=U({},a,{component:c,invisible:h}),S=h5(b),w=(r=m.root)!=null?r:f.root;return u.jsx(y,U({in:k,timeout:x},C,{children:u.jsx(p5,U({"aria-hidden":!0},w,{as:(i=(o=g.root)!=null?o:d.Root)!=null?i:c,className:A1(S.root,l,w==null?void 0:w.className),ownerState:U({},b,w==null?void 0:w.ownerState),classes:S,ref:n,children:s}))}))}),x5=m5;function k5(e){return f0("MuiButton",e)}const g5=Xe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),_t=g5,C5=p.createContext({}),y5=C5,b5=p.createContext(void 0),v5=b5,w5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],E5=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${G1(t)}`,`size${G1(i)}`,`${o}Size${G1(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${G1(i)}`],endIcon:["endIcon",`iconSize${G1(i)}`]},l=h0(s,k5,a);return U({},a,l)},ss=e=>U({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),S5=se(Wa,{shouldForwardProp:e=>G3(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${G1(n.color)}`],t[`size${G1(n.size)}`],t[`${n.variant}Size${G1(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return U({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":U({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ze(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":U({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${_t.focusVisible}`]:U({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${_t.disabled}`]:U({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ze(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_t.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_t.disabled}`]:{boxShadow:"none"}}),_5=se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${G1(n.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ss(e))),A5=se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${G1(n.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ss(e))),V5=p.forwardRef(function(t,n){const r=p.useContext(y5),i=p.useContext(v5),o=P3(r,t),a=Qe({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:k=!1,endIcon:m,focusVisibleClassName:g,fullWidth:y=!1,size:x="medium",startIcon:C,type:b,variant:S="text"}=a,w=Z1(a,w5),E=U({},a,{color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:k,fullWidth:y,size:x,type:b,variant:S}),_=E5(E),V=C&&u.jsx(_5,{className:_.startIcon,ownerState:E,children:C}),P=m&&u.jsx(A5,{className:_.endIcon,ownerState:E,children:m}),$=i||"";return u.jsxs(S5,U({ownerState:E,className:A1(r.className,_.root,d,$),component:c,disabled:f,focusRipple:!k,focusVisibleClassName:A1(_.focusVisible,g),ref:n,type:b},w,{classes:_,children:[V,s,P]}))}),ii=V5;function D5(e){return f0("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const B5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],$5=e=>{const{open:t,exited:n,classes:r}=e;return h0({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},D5,r)},j5=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>U({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),G5=se(x5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),P5=p.forwardRef(function(t,n){var r,i,o,a,s,l;const c=Qe({name:"MuiModal",props:t}),{BackdropComponent:d=G5,BackdropProps:f,className:h,closeAfterTransition:k=!1,children:m,container:g,component:y,components:x={},componentsProps:C={},disableAutoFocus:b=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:w=!1,disablePortal:E=!1,disableRestoreFocus:_=!1,disableScrollLock:V=!1,hideBackdrop:P=!1,keepMounted:$=!1,onBackdropClick:T,open:D,slotProps:O,slots:M}=c,R=Z1(c,B5),F=U({},c,{closeAfterTransition:k,disableAutoFocus:b,disableEnforceFocus:S,disableEscapeKeyDown:w,disablePortal:E,disableRestoreFocus:_,disableScrollLock:V,hideBackdrop:P,keepMounted:$}),{getRootProps:H,getBackdropProps:Z,getTransitionProps:q,portalRef:i1,isTopModal:X,exited:N,hasTransition:J}=wc(U({},F,{rootRef:n})),e1=U({},F,{exited:N}),n1=$5(e1),c1={};if(m.props.tabIndex===void 0&&(c1.tabIndex="-1"),J){const{onEnter:o1,onExited:u1}=q();c1.onEnter=o1,c1.onExited=u1}const b1=(r=(i=M==null?void 0:M.root)!=null?i:x.Root)!=null?r:j5,S1=(o=(a=M==null?void 0:M.backdrop)!=null?a:x.Backdrop)!=null?o:d,x1=(s=O==null?void 0:O.root)!=null?s:C.root,$1=(l=O==null?void 0:O.backdrop)!=null?l:C.backdrop,Q1=Ht({elementType:b1,externalSlotProps:x1,externalForwardedProps:R,getSlotProps:H,additionalProps:{ref:n,as:y},ownerState:e1,className:A1(h,x1==null?void 0:x1.className,n1==null?void 0:n1.root,!e1.open&&e1.exited&&(n1==null?void 0:n1.hidden))}),le=Ht({elementType:S1,externalSlotProps:$1,additionalProps:f,getSlotProps:o1=>Z(U({},o1,{onClick:u1=>{T&&T(u1),o1!=null&&o1.onClick&&o1.onClick(u1)}})),className:A1($1==null?void 0:$1.className,f==null?void 0:f.className,n1==null?void 0:n1.backdrop),ownerState:e1});return!$&&!D&&(!J||N)?null:u.jsx(pc,{ref:i1,container:g,disablePortal:E,children:u.jsxs(b1,U({},Q1,{children:[!P&&d?u.jsx(S1,U({},le)):null,u.jsx(fc,{disableEnforceFocus:S,disableAutoFocus:b,disableRestoreFocus:_,isEnabled:X,open:D,children:p.cloneElement(m,c1)})]}))})}),M5=P5,T5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gr(e){return`scale(${e}, ${e**2})`}const L5={entering:{opacity:1,transform:gr(1)},entered:{opacity:1,transform:"none"}},Pn=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ls=p.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:f,onExited:h,onExiting:k,style:m,timeout:g="auto",TransitionComponent:y=Ua}=t,x=Z1(t,T5),C=p.useRef(),b=p.useRef(),S=Ra(),w=p.useRef(null),E=Pe(w,o.ref,n),_=R=>F=>{if(R){const H=w.current;F===void 0?R(H):R(H,F)}},V=_(d),P=_((R,F)=>{Za(R);const{duration:H,delay:Z,easing:q}=It({style:m,timeout:g,easing:a},{mode:"enter"});let i1;g==="auto"?(i1=S.transitions.getAutoHeightDuration(R.clientHeight),b.current=i1):i1=H,R.style.transition=[S.transitions.create("opacity",{duration:i1,delay:Z}),S.transitions.create("transform",{duration:Pn?i1:i1*.666,delay:Z,easing:q})].join(","),l&&l(R,F)}),$=_(c),T=_(k),D=_(R=>{const{duration:F,delay:H,easing:Z}=It({style:m,timeout:g,easing:a},{mode:"exit"});let q;g==="auto"?(q=S.transitions.getAutoHeightDuration(R.clientHeight),b.current=q):q=F,R.style.transition=[S.transitions.create("opacity",{duration:q,delay:H}),S.transitions.create("transform",{duration:Pn?q:q*.666,delay:Pn?H:H||q*.333,easing:Z})].join(","),R.style.opacity=0,R.style.transform=gr(.75),f&&f(R)}),O=_(h),M=R=>{g==="auto"&&(C.current=setTimeout(R,b.current||0)),r&&r(w.current,R)};return p.useEffect(()=>()=>{clearTimeout(C.current)},[]),u.jsx(y,U({appear:i,in:s,nodeRef:w,onEnter:P,onEntered:$,onEntering:V,onExit:D,onExited:O,onExiting:T,addEndListener:M,timeout:g==="auto"?null:g},x,{children:(R,F)=>p.cloneElement(o,U({style:U({opacity:0,transform:gr(.75),visibility:R==="exited"&&!s?"hidden":void 0},L5[R],m,o.props.style),ref:E},F))}))});ls.muiSupportAuto=!0;const R5=ls;function F5(e){return f0("MuiPopover",e)}Xe("MuiPopover",["root","paper"]);const O5=["onEntering"],I5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],H5=["slotProps"];function Ji(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function eo(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function to(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mn(e){return typeof e=="function"?e():e}const N5=e=>{const{classes:t}=e;return h0({root:["root"],paper:["paper"]},F5,t)},z5=se(M5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U5=se(Bl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Z5=p.forwardRef(function(t,n){var r,i,o;const a=Qe({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:h,className:k,container:m,elevation:g=8,marginThreshold:y=16,open:x,PaperProps:C={},slots:b,slotProps:S,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:E=R5,transitionDuration:_="auto",TransitionProps:{onEntering:V}={},disableScrollLock:P=!1}=a,$=Z1(a.TransitionProps,O5),T=Z1(a,I5),D=(r=S==null?void 0:S.paper)!=null?r:C,O=p.useRef(),M=Pe(O,D.ref),R=U({},a,{anchorOrigin:c,anchorReference:f,elevation:g,marginThreshold:y,externalPaperSlotProps:D,transformOrigin:w,TransitionComponent:E,transitionDuration:_,TransitionProps:$}),F=N5(R),H=p.useCallback(()=>{if(f==="anchorPosition")return d;const o1=Mn(l),d1=(o1&&o1.nodeType===1?o1:we(O.current).body).getBoundingClientRect();return{top:d1.top+Ji(d1,c.vertical),left:d1.left+eo(d1,c.horizontal)}},[l,c.horizontal,c.vertical,d,f]),Z=p.useCallback(o1=>({vertical:Ji(o1,w.vertical),horizontal:eo(o1,w.horizontal)}),[w.horizontal,w.vertical]),q=p.useCallback(o1=>{const u1={width:o1.offsetWidth,height:o1.offsetHeight},d1=Z(u1);if(f==="none")return{top:null,left:null,transformOrigin:to(d1)};const L1=H();let J1=L1.top-d1.vertical,ee=L1.left-d1.horizontal;const _e=J1+u1.height,A=ee+u1.width,B=st(Mn(l)),L=B.innerHeight-y,j=B.innerWidth-y;if(y!==null&&J1L){const G=_e-L;J1-=G,d1.vertical+=G}if(y!==null&&eej){const G=A-j;ee-=G,d1.horizontal+=G}return{top:`${Math.round(J1)}px`,left:`${Math.round(ee)}px`,transformOrigin:to(d1)}},[l,f,H,Z,y]),[i1,X]=p.useState(x),N=p.useCallback(()=>{const o1=O.current;if(!o1)return;const u1=q(o1);u1.top!==null&&(o1.style.top=u1.top),u1.left!==null&&(o1.style.left=u1.left),o1.style.transformOrigin=u1.transformOrigin,X(!0)},[q]);p.useEffect(()=>(P&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[l,P,N]);const J=(o1,u1)=>{V&&V(o1,u1),N()},e1=()=>{X(!1)};p.useEffect(()=>{x&&N()}),p.useImperativeHandle(s,()=>x?{updatePosition:()=>{N()}}:null,[x,N]),p.useEffect(()=>{if(!x)return;const o1=al(()=>{N()}),u1=st(l);return u1.addEventListener("resize",o1),()=>{o1.clear(),u1.removeEventListener("resize",o1)}},[l,x,N]);let n1=_;_==="auto"&&!E.muiSupportAuto&&(n1=void 0);const c1=m||(l?we(Mn(l)).body:void 0),b1=(i=b==null?void 0:b.root)!=null?i:z5,S1=(o=b==null?void 0:b.paper)!=null?o:U5,x1=Ht({elementType:S1,externalSlotProps:U({},D,{style:i1?D.style:U({},D.style,{opacity:0})}),additionalProps:{elevation:g,ref:M},ownerState:R,className:A1(F.paper,D==null?void 0:D.className)}),$1=Ht({elementType:b1,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:T,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:c1,open:x},ownerState:R,className:A1(F.root,k)}),{slotProps:Q1}=$1,le=Z1($1,H5);return u.jsx(b1,U({},le,!qa(b1)&&{slotProps:Q1,disableScrollLock:P},{children:u.jsx(E,U({appear:!0,in:x,onEntering:J,onExited:e1,timeout:n1},$,{children:u.jsx(S1,U({},x1,{children:h}))}))}))}),W5=Z5;function K5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cs(...e){return t=>e.forEach(n=>K5(n,t))}function L0(...e){return p.useCallback(cs(...e),e)}const us=p.forwardRef((e,t)=>{const{children:n,...r}=e,i=p.Children.toArray(n),o=i.find(q5);if(o){const a=o.props.children,s=i.map(l=>l===o?p.Children.count(a)>1?p.Children.only(null):p.isValidElement(a)?a.props.children:null:l);return p.createElement(Cr,U({},r,{ref:t}),p.isValidElement(a)?p.cloneElement(a,void 0,s):null)}return p.createElement(Cr,U({},r,{ref:t}),n)});us.displayName="Slot";const Cr=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...Y5(r,n.props),ref:t?cs(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Cr.displayName="SlotClone";const ds=({children:e})=>p.createElement(p.Fragment,null,e);function q5(e){return p.isValidElement(e)&&e.type===ds}function Y5(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const X5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],p0=X5.reduce((e,t)=>{const n=p.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?us:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(s,U({},a,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Q5(e,t){e&&pn.flushSync(()=>e.dispatchEvent(t))}const J5=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?E0.createPortal(p.createElement(p0.div,U({},i,{ref:t})),r):null}),e6=J5;var no=Object.prototype.hasOwnProperty;function ut(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ut(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(no.call(e,n)&&++r&&!no.call(t,n)||!(n in t)||!ut(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function kt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)a[s]=arguments[s+4];e.call(this,a),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=i,this.target=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Se=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Se.prototype._applyRule=function(t,n){var r=this;return function(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];return r.chain.push(new bn(n,t.apply(r,i),i,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};Se.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new t6(n,t.simple,t.async)),this};Se.prototype._clone=function(){return new Se(this.chain.slice(),this.nextRuleModifiers.slice())};Se.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Se.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(i){n.push(new oi(r,t,i))}}),n};Se.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new oi(n,t,r)}})};Se.prototype.testAsync=function(t){var n=this;return new Promise(function(r,i){ps(t,n.chain.slice(),r,i)})};function ps(e,t,n,r){if(t.length){var i=t.shift();i._testAsync(e).then(function(){ps(e,t,n,r)},function(o){r(new oi(i,e,o))})}else n(e)}var ro=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function n6(e,t){return t===void 0&&(t=!1),{simple:function(n){return ro(n,t)||e.check(n)===void 0},async:function(n){return ro(n,t)||e.testAsync(n)}}}function Y1(){return typeof Proxy<"u"?ms(new Se):yr(new Se)}var dt={};Y1.extend=function(e){Object.assign(dt,e)};Y1.clearCustomRules=function(){dt={}};function ms(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var i=ms(e._clone());if(r in Wt)return i._applyModifier(Wt[r],r);if(r in dt)return i._applyRule(dt[r],r);if(r in br)return i._applyRule(br[r],r)}})}function yr(e){var t=function(i,o){return Object.keys(i).forEach(function(a){o[a]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var c=yr(o._clone()),d=c._applyRule(i[a],a).apply(void 0,s);return d}}),o},n=t(br,e),r=t(dt,n);return Object.keys(Wt).forEach(function(i){Object.defineProperty(r,i,{get:function(){var o=yr(r._clone());return o._applyModifier(Wt[i],i)}})}),r}var Wt={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return At(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(At(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&At(t).every(e)}},async:function(e){return function(t){return Promise.all(At(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return io(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return io(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function io(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function At(e){return typeof e=="string"?e.split(""):e}var br={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||r6;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return C0("string")},boolean:function(){return C0("boolean")},undefined:function(){return C0("undefined")},null:function(){return C0("null")},array:function(){return C0("array")},object:function(){return C0("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return i6(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:n6};function C0(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function r6(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function i6(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var i=e[r];try{i.check((t||{})[r])}catch(o){o.target=r,n.push(o)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(i){var o=e[i];return o.testAsync((t||{})[i]).catch(function(a){a.target=i,n.push(a)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var f1="colors",R1="sizes",K="space",o6={gap:K,gridGap:K,columnGap:K,gridColumnGap:K,rowGap:K,gridRowGap:K,inset:K,insetBlock:K,insetBlockEnd:K,insetBlockStart:K,insetInline:K,insetInlineEnd:K,insetInlineStart:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockEnd:K,marginBlockStart:K,marginInline:K,marginInlineEnd:K,marginInlineStart:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockEnd:K,paddingBlockStart:K,paddingInline:K,paddingInlineEnd:K,paddingInlineStart:K,top:K,right:K,bottom:K,left:K,scrollMargin:K,scrollMarginTop:K,scrollMarginRight:K,scrollMarginBottom:K,scrollMarginLeft:K,scrollMarginX:K,scrollMarginY:K,scrollMarginBlock:K,scrollMarginBlockEnd:K,scrollMarginBlockStart:K,scrollMarginInline:K,scrollMarginInlineEnd:K,scrollMarginInlineStart:K,scrollPadding:K,scrollPaddingTop:K,scrollPaddingRight:K,scrollPaddingBottom:K,scrollPaddingLeft:K,scrollPaddingX:K,scrollPaddingY:K,scrollPaddingBlock:K,scrollPaddingBlockEnd:K,scrollPaddingBlockStart:K,scrollPaddingInline:K,scrollPaddingInlineEnd:K,scrollPaddingInlineStart:K,fontSize:"fontSizes",background:f1,backgroundColor:f1,backgroundImage:f1,borderImage:f1,border:f1,borderBlock:f1,borderBlockEnd:f1,borderBlockStart:f1,borderBottom:f1,borderBottomColor:f1,borderColor:f1,borderInline:f1,borderInlineEnd:f1,borderInlineStart:f1,borderLeft:f1,borderLeftColor:f1,borderRight:f1,borderRightColor:f1,borderTop:f1,borderTopColor:f1,caretColor:f1,color:f1,columnRuleColor:f1,fill:f1,outline:f1,outlineColor:f1,stroke:f1,textDecorationColor:f1,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:R1,minBlockSize:R1,maxBlockSize:R1,inlineSize:R1,minInlineSize:R1,maxInlineSize:R1,width:R1,minWidth:R1,maxWidth:R1,height:R1,minHeight:R1,maxHeight:R1,flexBasis:R1,gridTemplateColumns:R1,gridTemplateRows:R1,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},a6=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,R0=()=>{const e=Object.create(null);return(t,n,...r)=>{const i=(o=>JSON.stringify(o,a6))(t);return i in e?e[i]:e[i]=n(t,...r)}},a0=Symbol.for("sxs.internal"),ai=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),oo=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:s6}=Object.prototype,vr=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),l6=/\s+(?![^()]*\))/,y0=e=>t=>e(...typeof t=="string"?String(t).split(l6):[t]),ao={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:y0((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:y0((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:y0((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:y0((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:y0((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:y0((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Tn=/([\d.]+)([^]*)/,c6=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(i)?`:is(${r})`:r):r+" "+i)),n),[]):t,u6=(e,t)=>e in d6&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,i,o)=>r+(i==="stretch"?`-moz-available${o};${vr(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${vr(e)}:${r}fit-content`)+o):String(t),d6={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Re=e=>e?e+"-":"",xs=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,i,o,a,s)=>a=="$"==!!o?r:(i||a=="--"?"calc(":"")+"var(--"+(a==="$"?Re(t)+(s.includes("$")?"":Re(n))+s.replace(/\$/g,"-"):s)+")"+(i||a=="--"?"*"+(i||"")+(o||"1")+")":"")),f6=/\s*,\s*(?![^()]*\))/,h6=Object.prototype.toString,_0=(e,t,n,r,i)=>{let o,a,s;const l=(c,d,f)=>{let h,k;const m=g=>{for(h in g){const C=h.charCodeAt(0)===64,b=C&&Array.isArray(g[h])?g[h]:[g[h]];for(k of b){const S=/[A-Z]/.test(x=h)?x:x.replace(/-[^]/g,E=>E[1].toUpperCase()),w=typeof k=="object"&&k&&k.toString===h6&&(!r.utils[S]||!d.length);if(S in r.utils&&!w){const E=r.utils[S];if(E!==a){a=E,m(E(k)),a=null;continue}}else if(S in ao){const E=ao[S];if(E!==s){s=E,m(E(k)),s=null;continue}}if(C&&(y=h.slice(1)in r.media?"@media "+r.media[h.slice(1)]:h,h=y.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,_,V,P,$,T)=>{const D=Tn.test(_),O=.0625*(D?-1:1),[M,R]=D?[P,_]:[_,P];return"("+(V[0]==="="?"":V[0]===">"===D?"max-":"min-")+M+":"+(V[0]!=="="&&V.length===1?R.replace(Tn,(F,H,Z)=>Number(H)+O*(V===">"?1:-1)+Z):R)+($?") and ("+($[0]===">"?"min-":"max-")+M+":"+($.length===1?T.replace(Tn,(F,H,Z)=>Number(H)+O*($===">"?-1:1)+Z):T):"")+")"})),w){const E=C?f.concat(h):[...f],_=C?[...d]:c6(d,h.split(f6));o!==void 0&&i(so(...o)),o=void 0,l(k,_,E)}else o===void 0&&(o=[[],d,f]),h=C||h.charCodeAt(0)!==36?h:`--${Re(r.prefix)}${h.slice(1).replace(/\$/g,"-")}`,k=w?k:typeof k=="number"?k&&S in p6?String(k)+"px":String(k):xs(u6(S,k??""),r.prefix,r.themeMap[S]),o[0].push(`${C?`${h} `:`${vr(h)}:`}${k}`)}}var y,x};m(c),o!==void 0&&i(so(...o)),o=void 0};l(e,t,n)},so=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,p6={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},lo=e=>String.fromCharCode(e+(e>25?39:97)),s0=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=lo(n%52)+r;return lo(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),J0=["themed","global","styled","onevar","resonevar","allvar","inline"],m6=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},x6=e=>{let t;const n=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,(o,a)=>{const{cssText:s}=o;let l="";if(s.startsWith("--sxs"))return"";if(i[a-1]&&(l=i[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const c in t.rules)if(t.rules[c].group===o)return`--sxs{--sxs:${[...t.rules[c].cache].join(" ")}}${s}`;return o.cssRules.length?`${l}${s}`:""}return s}).join("")},r=()=>{if(t){const{rules:s,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const c in s)delete s[c]}const i=Object(e).styleSheets||[];for(const s of i)if(m6(s)){for(let l=0,c=s.cssRules;c[l];++l){const d=Object(c[l]);if(d.type!==1)continue;const f=Object(c[l+1]);if(f.type!==4)continue;++l;const{cssText:h}=d;if(!h.startsWith("--sxs"))continue;const k=h.slice(14,-3).trim().split(/\s+/),m=J0[k[0]];m&&(t||(t={sheet:s,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:l,cache:new Set(k)})}if(t)break}if(!t){const s=(l,c)=>({type:c,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,s(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:r,toString:n}}const{sheet:o,rules:a}=t;for(let s=J0.length-1;s>=0;--s){const l=J0[s];if(!a[l]){const c=J0[s+1],d=a[c]?a[c].index:o.cssRules.length;o.insertRule("@media{}",d),o.insertRule(`--sxs{--sxs:${s}}`,d),a[l]={group:o.cssRules[d+1],index:d,cache:new Set([s])}}k6(a[l])}};return r(),t},k6=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},Z0=Symbol(),g6=R0(),co=(e,t)=>g6(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const i of n)if(i!=null)if(i[a0]){r.type==null&&(r.type=i[a0].type);for(const o of i[a0].composers)r.composers.add(o)}else i.constructor!==Object||i.$$typeof?r.type==null&&(r.type=i):r.composers.add(C6(i,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),y6(e,r,t)}),C6=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{const o=`${Re(i.prefix)}c-${s0(r)}`,a=[],s=[],l=Object.create(null),c=[];for(const h in n)l[h]=String(n[h]);if(typeof e=="object"&&e)for(const h in e){d=l,f=h,s6.call(d,f)||(l[h]="undefined");const k=e[h];for(const m in k){const g={[h]:String(m)};String(m)==="undefined"&&c.push(h);const y=k[m],x=[g,y,!oo(y)];a.push(x)}}var d,f;if(typeof t=="object"&&t)for(const h of t){let{css:k,...m}=h;k=typeof k=="object"&&k||{};for(const y in m)m[y]=String(m[y]);const g=[m,k,!oo(k)];s.push(g)}return[o,r,a,s,l,c]},y6=(e,t,n)=>{const[r,i,o,a]=b6(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(f=>{function h(){for(let k=0;kh.rules[k]={apply:m=>h[Z0].push([k,m])}),h})(n):null,l=(s||n).rules,c=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||v6;const{css:h,...k}=f,m={};for(const x in o)if(delete k[x],x in f){let C=f[x];typeof C=="object"&&C?m[x]={"@initial":o[x],...C}:(C=String(C),m[x]=C!=="undefined"||a.has(x)?C:o[x])}else m[x]=o[x];const g=new Set([...i]);for(const[x,C,b,S]of t.composers){n.rules.styled.cache.has(x)||(n.rules.styled.cache.add(x),_0(C,[`.${x}`],[],e,_=>{l.styled.apply(_)}));const w=uo(b,m,e.media),E=uo(S,m,e.media,!0);for(const _ of w)if(_!==void 0)for(const[V,P,$]of _){const T=`${x}-${s0(P)}-${V}`;g.add(T);const D=($?n.rules.resonevar:n.rules.onevar).cache,O=$?l.resonevar:l.onevar;D.has(T)||(D.add(T),_0(P,[`.${T}`],[],e,M=>{O.apply(M)}))}for(const _ of E)if(_!==void 0)for(const[V,P]of _){const $=`${x}-${s0(P)}-${V}`;g.add($),n.rules.allvar.cache.has($)||(n.rules.allvar.cache.add($),_0(P,[`.${$}`],[],e,T=>{l.allvar.apply(T)}))}}if(typeof h=="object"&&h){const x=`${r}-i${s0(h)}-css`;g.add(x),n.rules.inline.cache.has(x)||(n.rules.inline.cache.add(x),_0(h,[`.${x}`],[],e,C=>{l.inline.apply(C)}))}for(const x of String(f.className||"").trim().split(/\s+/))x&&g.add(x);const y=k.className=[...g].join(" ");return{type:t.type,className:y,selector:c,props:k,toString:()=>y,deferredInjector:s}};return ai(d,{className:r,selector:c,[a0]:t,toString:()=>(n.rules.styled.cache.has(r)||d(),r)})},b6=e=>{let t="";const n=[],r={},i=[];for(const[o,,,,a,s]of e){t===""&&(t=o),n.push(o),i.push(...s);for(const l in a){const c=a[l];(r[l]===void 0||c!=="undefined"||s.includes(c))&&(r[l]=c)}}return[t,n,r,new Set(i)]},uo=(e,t,n,r)=>{const i=[];e:for(let[o,a,s]of e){if(s)continue;let l,c=0,d=!1;for(l in o){const f=o[l];let h=t[l];if(h!==f){if(typeof h!="object"||!h)continue e;{let k,m,g=0;for(const y in h){if(f===String(h[y])){if(y!=="@initial"){const x=y.slice(1);(m=m||[]).push(x in n?n[x]:y.replace(/^@media ?/,"")),d=!0}c+=g,k=!0}++g}if(m&&m.length&&(a={["@media "+m.join(", ")]:a}),!k)continue e}}}(i[c]=i[c]||[]).push([r?"cv":`${l}-${o[l]}`,a,d])}return i},v6={},w6=R0(),E6=(e,t)=>w6(e,()=>(...n)=>{const r=()=>{for(let i of n){i=typeof i=="object"&&i||{};let o=s0(i);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in i){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(i["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete i["@import"]}_0(i,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return ai(r,{toString:r})}),S6=R0(),_6=(e,t)=>S6(e,()=>n=>{const r=`${Re(e.prefix)}k-${s0(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];_0(n,[],[],e,s=>o.push(s));const a=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(a)}return r};return ai(i,{get name(){return i()},toString:i})}),A6=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Re(this.prefix)+Re(this.scale)+this.token}toString(){return this.computedValue}},V6=R0(),D6=(e,t)=>V6(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const i=`.${n=(n=typeof n=="string"?n:"")||`${Re(e.prefix)}t-${s0(r)}`}`,o={},a=[];for(const l in r){o[l]={};for(const c in r[l]){const d=`--${Re(e.prefix)}${l}-${c}`,f=xs(String(r[l][c]),e.prefix,l);o[l][c]=new A6(c,f,l,e.prefix),a.push(`${d}:${f}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(l)}return n};return{...o,get className(){return s()},selector:i,toString:s}}),B6=R0(),fo,$6=R0(),ks=e=>{const t=(n=>{let r=!1;const i=B6(n,o=>{r=!0;const a="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,c=typeof o.theme=="object"&&o.theme||{},d={prefix:a,media:s,theme:c,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...o6},utils:typeof o.utils=="object"&&o.utils||{}},f=x6(l),h={css:co(d,f),globalCss:E6(d,f),keyframes:_6(d,f),createTheme:D6(d,f),reset(){f.reset(),h.theme.toString()},theme:{},sheet:f,config:d,prefix:a,getCssText:f.toString,toString:f.toString};return String(h.theme=h.createTheme(c)),h});return r||i.reset(),i})(e);return t.styled=(({config:n,sheet:r})=>$6(n,()=>{const i=co(n,r);return(...o)=>{const a=i(...o),s=a[a0].type,l=v.forwardRef((c,d)=>{const f=c&&c.as||s,{props:h,deferredInjector:k}=a(c);return delete h.as,h.ref=d,k?v.createElement(v.Fragment,null,v.createElement(f,h),v.createElement(k,null)):v.createElement(f,h)});return l.className=a.className,l.displayName=`Styled.${s.displayName||s.name||s}`,l.selector=a.selector,l.toString=()=>a.selector,l[a0]=a[a0],l}}))(t),t},j6=()=>fo||(fo=ks()),vg=(...e)=>j6().styled(...e);function G6(e,t,n){return Math.max(t,Math.min(e,n))}const P1={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function ho(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function po(e,t,n,r=.15){return r===0?G6(e,t,n):en?+ho(e-n,n-t,r)+n:e}function P6(e,[t,n],[r,i]){const[[o,a],[s,l]]=e;return[po(t,o,a,r),po(n,s,l,i)]}function M6(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T6(e){var t=M6(e,"string");return typeof t=="symbol"?t:String(t)}function q1(e,t,n){return t=T6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E1(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function z6(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function ys(e){return vn(e)?z6(e)[0]:e}function U6(e){return N6(e).map(t=>t.identifier)}function Ln(e){const t=ys(e);return vn(e)?t.identifier:t.pointerId}function ko(e){const t=ys(e);return[t.clientX,t.clientY]}function Z6(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return t}function Kt(e,...t){return typeof e=="function"?e(...t):e}function W6(){}function K6(...e){return e.length===0?W6:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function go(e,t){return Object.assign({},t,e||{})}const q6=32;class Y6{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:i}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=i,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?Kt(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Z6(t)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);P1.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[a,s]=n._movement,[l,c]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(s)>=c&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=l&&Math.sign(a)*l),d[1]===!1&&(d[1]=Math.abs(s)>=c&&Math.sign(s)*c)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const h=[0,0];if(r.hasCustomTransform){const[E,_]=f;h[0]=d[0]!==!1?E-d[0]:0,h[1]=d[1]!==!1?_-d[1]:0}else h[0]=d[0]!==!1?a-d[0]:0,h[1]=d[1]!==!1?s-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(h);const k=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=Kt(r.bounds,n)),this.setup&&this.setup()),n.movement=h,this.computeOffset()));const[g,y]=n.offset,[[x,C],[b,S]]=n._bounds;n.overflow=[gC?1:0,yS?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const w=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=P6(n._bounds,n.offset,w),n.delta=P1.sub(n.offset,k),this.computeMovement(),m&&(!n.last||o>q6)){n.delta=P1.sub(n.offset,k);const E=n.delta.map(Math.abs);P1.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[E[0]/o,E[1]/o],n.timeDelta=o)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const i=this.handler(E1(E1(E1({},n),t),{},{[this.aliasKey]:t.values}));i!==void 0&&(t.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function X6([e,t],n){const r=Math.abs(e),i=Math.abs(t);if(r>i&&r>n)return"x";if(i>r&&i>n)return"y"}class Q6 extends Y6{constructor(...t){super(...t),q1(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=P1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=P1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const i=typeof r.axisThreshold=="object"?r.axisThreshold[Cs(t)]:r.axisThreshold;n.axis=X6(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const J6=e=>e,Co=.15,bs={enabled(e=!0){return e},eventOptions(e,t,n){return E1(E1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Co,Co];case!1:return[0,0];default:return P1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return P1.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||J6},threshold(e){return P1.toVector(e,0)}},e4=0,gt=E1(E1({},bs),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=e4){return e},bounds(e={}){if(typeof e=="function")return o=>gt.bounds(e(o));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=e;return[[t,n],[r,i]]}}),yo={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class t4 extends Q6{constructor(...t){super(...t),q1(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=gt.bounds(i)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const i=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Ln(t),r._pointerActive=!0,this.computeValues(ko(t)),this.computeInitial(),n.preventScrollAxis&&Cs(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const i=Ln(t);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=ko(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=P1.sub(o,n._values),this.computeValues(o)),P1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=Ln(t);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[o,a]=n._distance;if(n.tap=o<=r.tapsThreshold&&a<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[s,l]=n._delta,[c,d]=n._movement,[f,h]=r.swipe.velocity,[k,m]=r.swipe.distance,g=r.swipe.duration;if(n.elapsedTimef&&Math.abs(c)>k&&(n.swipe[0]=Math.sign(s)),x>h&&Math.abs(d)>m&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,n4(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=yo[t.key];if(n){const r=this.state,i=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,i),r._keyboardActive=!0,P1.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in yo&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function n4(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Ct=typeof window<"u"&&window.document&&window.document.createElement;function vs(){return Ct&&"ontouchstart"in window}function r4(){return vs()||Ct&&window.navigator.maxTouchPoints>1}function i4(){return Ct&&"onpointerdown"in window}function o4(){return Ct&&"exitPointerLock"in window.document}function a4(){try{return"constructor"in GestureEvent}catch{return!1}}const ue={isBrowser:Ct,gesture:a4(),touch:vs(),touchscreen:r4(),pointer:i4(),pointerLock:o4()},s4=250,l4=180,c4=.5,u4=50,d4=250,f4=10,bo={mouse:0,touch:0,pen:8},h4=E1(E1({},gt),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return this.pointerLock=r&&ue.pointerLock,ue.touch&&n?"touch":this.pointerLock?"mouse":ue.pointer&&!i?"pointer":ue.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?s4:void 0,!(!ue.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:i=!0}={}}){return this.pointerButtons=r,this.keys=i,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:i=void 0}){const o=P1.toVector(e,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:e=c4,distance:t=u4,duration:n=d4}={}){return{velocity:this.transform(P1.toVector(e)),distance:this.transform(P1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return l4;case!1:return 0;default:return e}},axisThreshold(e){return e?E1(E1({},bo),e):bo},keyboardDisplacement(e=f4){return e}});E1(E1({},bs),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ue.touch&&ue.gesture)return"gesture";if(ue.touch&&r)return"touch";if(ue.touchscreen){if(ue.pointer)return"pointer";if(ue.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const i=a=>{const s=go(Kt(n,a),{min:-1/0,max:1/0});return[s.min,s.max]},o=a=>{const s=go(Kt(r,a),{min:-1/0,max:1/0});return[s.min,s.max]};return typeof n!="function"&&typeof r!="function"?[i(),o()]:a=>[i(a),o(a)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",P1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});E1(E1({},gt),{},{mouseOnly:(e=!0)=>e});E1(E1({},gt),{},{mouseOnly:(e=!0)=>e});const ws=new Map,wr=new Map;function p4(e){ws.set(e.key,e.engine),wr.set(e.key,e.resolver)}const m4={key:"drag",engine:t4,resolver:h4};function x4(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function k4(e,t){if(e==null)return{};var n=x4(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const g4={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ue.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},C4=["target","eventOptions","window","enabled","transform"];function Tt(e={},t){const n={};for(const[r,i]of Object.entries(t))switch(typeof i){case"function":n[r]=i.call(n,e[r],r,e);break;case"object":n[r]=Tt(e[r],i);break;case"boolean":i&&(n[r]=e[r]);break}return n}function y4(e,t,n={}){const r=e,{target:i,eventOptions:o,window:a,enabled:s,transform:l}=r,c=k4(r,C4);if(n.shared=Tt({target:i,eventOptions:o,window:a,enabled:s,transform:l},g4),t){const d=wr.get(t);n[t]=Tt(E1({shared:n.shared},c),d)}else for(const d in c){const f=wr.get(d);f&&(n[d]=Tt(E1({shared:n.shared},c[d]),f))}return n}class Es{constructor(t,n){q1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,i,o){const a=this._listeners,s=H6(n,r),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=E1(E1({},l),o);t.addEventListener(s,i,c);const d=()=>{t.removeEventListener(s,i,c),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class b4{constructor(){q1(this,"_timeouts",new Map)}add(t,n,r=140,...i){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...i))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let v4=class{constructor(t){q1(this,"gestures",new Set),q1(this,"_targetEventStore",new Es(this)),q1(this,"gestureEventStores",{}),q1(this,"gestureTimeoutStores",{}),q1(this,"handlers",{}),q1(this,"config",{}),q1(this,"pointerIds",new Set),q1(this,"touchIds",new Set),q1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),w4(this,t)}setEventIds(t){if(vn(t))return this.touchIds=new Set(U6(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=y4(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const a of this.gestures){const s=this.config[a],l=vo(r,s.eventOptions,!!i);if(s.enabled){const c=ws.get(a);new c(this,t,a).bind(l)}}const o=vo(r,n.eventOptions,!!i);for(const a in this.nativeHandlers)o(a,"",s=>this.nativeHandlers[a](E1(E1({},this.state.shared),{},{event:s,args:t})),void 0,!0)}for(const o in r)r[o]=K6(...r[o]);if(!i)return r;for(const o in r){const{device:a,capture:s,passive:l}=I6(o);this._targetEventStore.add(i,a,"",r[o],{capture:s,passive:l})}}}};function b0(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Es(e,t),e.gestureTimeoutStores[t]=new b4}function w4(e,t){t.drag&&b0(e,"drag"),t.wheel&&b0(e,"wheel"),t.scroll&&b0(e,"scroll"),t.move&&b0(e,"move"),t.pinch&&b0(e,"pinch"),t.hover&&b0(e,"hover")}const vo=(e,t,n)=>(r,i,o,a={},s=!1)=>{var l,c;const d=(l=a.capture)!==null&&l!==void 0?l:t.capture,f=(c=a.passive)!==null&&c!==void 0?c:t.passive;let h=s?r:F6(r,i,d);n&&f&&(h+="Passive"),e[h]=e[h]||[],e[h].push(o)};function E4(e,t={},n,r){const i=v.useMemo(()=>new v4(e),[]);if(i.applyHandlers(e,r),i.applyConfig(t,n),v.useEffect(i.effect.bind(i)),v.useEffect(()=>i.clean.bind(i),[]),t.target===void 0)return i.bind.bind(i)}function S4(e,t){return p4(m4),E4({drag:e},t||{},"drag")}function Be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Ss(e,t=[]){let n=[];function r(o,a){const s=p.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:h,children:k,...m}=f,g=(h==null?void 0:h[e][l])||s,y=p.useMemo(()=>m,Object.values(m));return p.createElement(g.Provider,{value:y},k)}function d(f,h){const k=(h==null?void 0:h[e][l])||s,m=p.useContext(k);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const i=()=>{const o=n.map(a=>p.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,_4(i,...t)]}function _4(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function F0(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function A4(e,t=globalThis==null?void 0:globalThis.document){const n=F0(e);p.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Er="dismissableLayer.update",V4="dismissableLayer.pointerDownOutside",D4="dismissableLayer.focusOutside";let wo;const B4=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$4=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,d=p.useContext(B4),[f,h]=p.useState(null),k=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=p.useState({}),g=L0(t,V=>h(V)),y=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf(x),b=f?y.indexOf(f):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=C,E=j4(V=>{const P=V.target,$=[...d.branches].some(T=>T.contains(P));!w||$||(o==null||o(V),s==null||s(V),V.defaultPrevented||l==null||l())},k),_=G4(V=>{const P=V.target;[...d.branches].some(T=>T.contains(P))||(a==null||a(V),s==null||s(V),V.defaultPrevented||l==null||l())},k);return A4(V=>{b===d.layers.size-1&&(i==null||i(V),!V.defaultPrevented&&l&&(V.preventDefault(),l()))},k),p.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(wo=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Eo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=wo)}},[f,k,r,d]),p.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Eo())},[f,d]),p.useEffect(()=>{const V=()=>m({});return document.addEventListener(Er,V),()=>document.removeEventListener(Er,V)},[]),p.createElement(p0.div,U({},c,{ref:g,style:{pointerEvents:S?w?"auto":"none":void 0,...e.style},onFocusCapture:Be(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Be(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Be(e.onPointerDownCapture,E.onPointerDownCapture)}))});function j4(e,t=globalThis==null?void 0:globalThis.document){const n=F0(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let c=function(){_s(V4,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function G4(e,t=globalThis==null?void 0:globalThis.document){const n=F0(e),r=p.useRef(!1);return p.useEffect(()=>{const i=o=>{o.target&&!r.current&&_s(D4,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Eo(){const e=new CustomEvent(Er);document.dispatchEvent(e)}function _s(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Q5(i,o):i.dispatchEvent(o)}const j0=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},P4=M3["useId".toString()]||(()=>{});let M4=0;function T4(e){const[t,n]=p.useState(P4());return j0(()=>{e||n(r=>r??String(M4++))},[e]),e||(t?`radix-${t}`:"")}const L4=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return p.createElement(p0.svg,U({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))}),R4=L4;function F4(e){const[t,n]=p.useState(void 0);return j0(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const As="Popper",[Vs,Ds]=Ss(As),[O4,Bs]=Vs(As),I4=e=>{const{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return p.createElement(O4,{scope:t,anchor:r,onAnchorChange:i},n)},H4="PopperAnchor",N4=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Bs(H4,n),a=p.useRef(null),s=L0(t,a);return p.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:p.createElement(p0.div,U({},i,{ref:s}))}),$s="PopperContent",[z4,U4]=Vs($s),Z4=p.forwardRef((e,t)=>{var n,r,i,o,a,s,l,c;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:k="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:y=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:b="partial",hideWhenDetached:S=!1,updatePositionStrategy:w="optimized",onPlaced:E,..._}=e,V=Bs($s,d),[P,$]=p.useState(null),T=L0(t,d1=>$(d1)),[D,O]=p.useState(null),M=F4(D),R=(n=M==null?void 0:M.width)!==null&&n!==void 0?n:0,F=(r=M==null?void 0:M.height)!==null&&r!==void 0?r:0,H=f+(k!=="center"?"-"+k:""),Z=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},q=Array.isArray(x)?x:[x],i1=q.length>0,X={padding:Z,boundary:q.filter(Y4),altBoundary:i1},{refs:N,floatingStyles:J,placement:e1,isPositioned:n1,middlewareData:c1}=a5({strategy:"fixed",placement:H,whileElementsMounted:(...d1)=>r5(...d1,{animationFrame:w==="always"}),elements:{reference:V.anchor},middleware:[Tc({mainAxis:h+F,alignmentAxis:m}),y&&Lc({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Rc():void 0,...X}),y&&Gc({...X}),Fc({...X,apply:({elements:d1,rects:L1,availableWidth:J1,availableHeight:ee})=>{const{width:_e,height:A}=L1.reference,B=d1.floating.style;B.setProperty("--radix-popper-available-width",`${J1}px`),B.setProperty("--radix-popper-available-height",`${ee}px`),B.setProperty("--radix-popper-anchor-width",`${_e}px`),B.setProperty("--radix-popper-anchor-height",`${A}px`)}}),D&&o5({element:D,padding:g}),X4({arrowWidth:R,arrowHeight:F}),S&&Pc({strategy:"referenceHidden",...X})]}),[b1,S1]=js(e1),x1=F0(E);j0(()=>{n1&&(x1==null||x1())},[n1,x1]);const $1=(i=c1.arrow)===null||i===void 0?void 0:i.x,Q1=(o=c1.arrow)===null||o===void 0?void 0:o.y,le=((a=c1.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[o1,u1]=p.useState();return j0(()=>{P&&u1(window.getComputedStyle(P).zIndex)},[P]),p.createElement("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:n1?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:o1,"--radix-popper-transform-origin":[(s=c1.transformOrigin)===null||s===void 0?void 0:s.x,(l=c1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},p.createElement(z4,{scope:d,placedSide:b1,onArrowChange:O,arrowX:$1,arrowY:Q1,shouldHideArrow:le},p.createElement(p0.div,U({"data-side":b1,"data-align":S1},_,{ref:T,style:{..._.style,animation:n1?void 0:"none",opacity:(c=c1.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),W4="PopperArrow",K4={top:"bottom",right:"left",bottom:"top",left:"right"},q4=p.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=U4(W4,r),a=K4[o.placedSide];return p.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},p.createElement(R4,U({},i,{ref:n,style:{...i.style,display:"block"}})))});function Y4(e){return e!==null}const X4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;const{placement:s,rects:l,middlewareData:c}=t,f=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,k=f?0:e.arrowHeight,[m,g]=js(s),y={start:"0%",center:"50%",end:"100%"}[g],x=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+h/2,C=((o=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+k/2;let b="",S="";return m==="bottom"?(b=f?y:`${x}px`,S=`${-k}px`):m==="top"?(b=f?y:`${x}px`,S=`${l.floating.height+k}px`):m==="right"?(b=`${-k}px`,S=f?y:`${C}px`):m==="left"&&(b=`${l.floating.width+k}px`,S=f?y:`${C}px`),{data:{x:b,y:S}}}});function js(e){const[t,n="center"]=e.split("-");return[t,n]}const Q4=I4,J4=N4,e8=Z4,t8=q4;function n8(e,t){return p.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const Gs=e=>{const{present:t,children:n}=e,r=r8(t),i=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),o=L0(r.ref,i.ref);return typeof n=="function"||r.isPresent?p.cloneElement(i,{ref:o}):null};Gs.displayName="Presence";function r8(e){const[t,n]=p.useState(),r=p.useRef({}),i=p.useRef(e),o=p.useRef("none"),a=e?"mounted":"unmounted",[s,l]=n8(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Vt(r.current);o.current=s==="mounted"?c:"none"},[s]),j0(()=>{const c=r.current,d=i.current;if(d!==e){const h=o.current,k=Vt(c);e?l("MOUNT"):k==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==k?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),j0(()=>{if(t){const c=f=>{const k=Vt(r.current).includes(f.animationName);f.target===t&&k&&pn.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(o.current=Vt(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function i8({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=o8({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:r,s=F0(n),l=p.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else i(c)},[o,e,i,s]);return[a,l]}function o8({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,i=p.useRef(r),o=F0(t);return p.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}const a8=p.forwardRef((e,t)=>p.createElement(p0.span,U({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),s8=a8,[wn,Eg]=Ss("Tooltip",[Ds]),En=Ds(),l8="TooltipProvider",Sr="tooltip.open",[Sg,si]=wn(l8),li="Tooltip",[c8,Sn]=wn(li),u8=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=si(li,e.__scopeTooltip),c=En(t),[d,f]=p.useState(null),h=T4(),k=p.useRef(0),m=a??l.disableHoverableContent,g=s??l.delayDuration,y=p.useRef(!1),[x=!1,C]=i8({prop:r,defaultProp:i,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(Sr))):l.onClose(),o==null||o(_)}}),b=p.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),S=p.useCallback(()=>{window.clearTimeout(k.current),y.current=!1,C(!0)},[C]),w=p.useCallback(()=>{window.clearTimeout(k.current),C(!1)},[C]),E=p.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{y.current=!0,C(!0)},g)},[g,C]);return p.useEffect(()=>()=>window.clearTimeout(k.current),[]),p.createElement(Q4,c,p.createElement(c8,{scope:t,contentId:h,open:x,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayed?E():S()},[l.isOpenDelayed,E,S]),onTriggerLeave:p.useCallback(()=>{m?w():window.clearTimeout(k.current)},[w,m]),onOpen:S,onClose:w,disableHoverableContent:m},n))},So="TooltipTrigger",d8=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Sn(So,n),o=si(So,n),a=En(n),s=p.useRef(null),l=L0(t,s,i.onTriggerChange),c=p.useRef(!1),d=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.createElement(J4,U({asChild:!0},a),p.createElement(p0.button,U({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:Be(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Be(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Be(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Be(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Be(e.onBlur,i.onClose),onClick:Be(e.onClick,i.onClose)})))}),f8="TooltipPortal",[_g,h8]=wn(f8,{forceMount:void 0}),ft="TooltipContent",p8=p.forwardRef((e,t)=>{const n=h8(ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=Sn(ft,e.__scopeTooltip);return p.createElement(Gs,{present:r||a.open},a.disableHoverableContent?p.createElement(Ps,U({side:i},o,{ref:t})):p.createElement(m8,U({side:i},o,{ref:t})))}),m8=p.forwardRef((e,t)=>{const n=Sn(ft,e.__scopeTooltip),r=si(ft,e.__scopeTooltip),i=p.useRef(null),o=L0(t,i),[a,s]=p.useState(null),{trigger:l,onClose:c}=n,d=i.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{s(null),f(!1)},[f]),k=p.useCallback((m,g)=>{const y=m.currentTarget,x={x:m.clientX,y:m.clientY},C=y8(x,y.getBoundingClientRect()),b=b8(x,C),S=v8(g.getBoundingClientRect()),w=E8([...b,...S]);s(w),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&d){const m=y=>k(y,d),g=y=>k(y,l);return l.addEventListener("pointerleave",m),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",g)}}},[l,d,k,h]),p.useEffect(()=>{if(a){const m=g=>{const y=g.target,x={x:g.clientX,y:g.clientY},C=(l==null?void 0:l.contains(y))||(d==null?void 0:d.contains(y)),b=!w8(x,a);C?h():b&&(h(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,d,a,c,h]),p.createElement(Ps,U({},e,{ref:o}))}),[x8,k8]=wn(li,{isInside:!1}),Ps=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=Sn(ft,n),c=En(n),{onClose:d}=l;return p.useEffect(()=>(document.addEventListener(Sr,d),()=>document.removeEventListener(Sr,d)),[d]),p.useEffect(()=>{if(l.trigger){const f=h=>{const k=h.target;k!=null&&k.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.createElement($4,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d},p.createElement(e8,U({"data-state":l.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(ds,null,r),p.createElement(x8,{scope:n,isInside:!0},p.createElement(s8,{id:l.contentId,role:"tooltip"},i||r))))}),g8="TooltipArrow",C8=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=En(n);return k8(g8,n).isInside?null:p.createElement(t8,U({},i,r,{ref:t}))});function y8(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function b8(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function v8(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function w8(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;or!=d>r&&n<(c-s)*(r-l)/(d-l)+s&&(i=!i)}return i}function E8(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),S8(t)}function S8(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const _8=u8,A8=d8,V8=p8,D8=C8;function B8(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function h1(e,t){if(e==null)return{};var n=B8(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let w1;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(w1||(w1={}));const $8={[w1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[w1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[w1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[w1.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[w1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[w1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[w1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[w1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[w1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[w1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[w1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Ms(e,t,...n){const[r,...i]=$8[t](...n);console[e]("LEVA: "+r,...i)}const $e=Ms.bind(null,"warn"),j8=Ms.bind(null,"log"),G8=["value"],P8=["schema"],M8=["value"],Ts=[],u0={};function _o(e){let{value:t}=e,n=h1(e,G8);for(let r of Ts){const i=r(t,n);if(i)return i}}function Ie(e,t){let{schema:n}=t,r=h1(t,P8);if(e in u0){$e(w1.ALREADY_REGISTERED_TYPE,e);return}Ts.push((i,o)=>n(i,o)&&e),u0[e]=r}function Rn(e,t,n,r){const{normalize:i}=u0[e];if(i)return i(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:o}=t,a=h1(t,M8);return{value:o,settings:a}}function T8(e,t,n,r,i,o){const{sanitize:a}=u0[e];return a?a(t,n,r,i,o):t}function Ao(e,t,n){const{format:r}=u0[e];return r?r(t,n):t}function L8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r1(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Ne(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},F8=Math.log(10);function Do(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/F8)+1,r=Math.floor(Math.log10(Math.abs(e))),i=Math.pow(10,r-n);return Math.max(i,.001)}const qt=(e,t,n)=>n===t?0:(Ye(e,t,n)-t)/(n-t),Yt=(e,t,n)=>e*(n-t)+t,O8=()=>"_"+Math.random().toString(36).substr(2,9),Bo=/\(([0-9+\-*/^ .]+)\)/,$o=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,jo=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Go=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Po=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Mo=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Ne(e){if(isNaN(Number(e)))if(Bo.test(e)){const t=e.replace(Bo,(n,r)=>String(Ne(r)));return Ne(t)}else if($o.test(e)){const t=e.replace($o,(n,r,i)=>String(Math.pow(Number(r),Number(i))));return Ne(t)}else if(jo.test(e)){const t=e.replace(jo,(n,r,i)=>String(Number(r)*Number(i)));return Ne(t)}else if(Go.test(e)){const t=e.replace(Go,(n,r,i)=>{if(i!=0)return String(Number(r)/Number(i));throw new Error("Division by zero")});return Ne(t)}else if(Po.test(e)){const t=e.replace(Po,(n,r,i)=>String(Number(r)+Number(i)));return Ne(t)}else if(Mo.test(e)){const t=e.replace(Mo,(n,r,i)=>String(Number(r)-Number(i)));return Ne(t)}else return Number(e);return Number(e)}function I8(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function H8(e,t){const n=r1({},e);return t.forEach(r=>r in e&&delete n[r]),n}function N8(e,t){return e.reduce((n,r,i)=>Object.assign(n,{[t[i]]:r}),{})}function Ls(e){return Object.prototype.toString.call(e)==="[object Object]"}const z8=e=>Ls(e)&&Object.keys(e).length===0;let ke;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(ke||(ke={}));let ge;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(ge||(ge={}));const U8=["type","__customInput"],Z8=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],W8=["type"];function Rs(e,t,n={},r){var i,o;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:r1({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:w,__customInput:E}=e,_=h1(e,U8);return Rs(E,t,_,w)}const{render:a,label:s,optional:l,order:c=0,disabled:d,hint:f,onChange:h,onEditStart:k,onEditEnd:m,transient:g}=e,y=h1(e,Z8),x=r1({render:a,key:t,label:s??t,hint:f,transient:g??!!h,onEditStart:k,onEditEnd:m,disabled:d,optional:l,order:c},n);let{type:C}=y,b=h1(y,W8);if(C=r??C,C in ke)return{type:C,input:b,options:x};let S;return r&&Ls(b)&&"value"in b?S=b.value:S=z8(b)?void 0:b,{type:C,input:S,options:r1(r1({},x),{},{onChange:h,optional:(i=x.optional)!==null&&i!==void 0?i:!1,disabled:(o=x.disabled)!==null&&o!==void 0?o:!1})}}function K8(e,t,n,r){const i=Rs(e,t),{type:o,input:a,options:s}=i;if(o)return o in ke?i:{type:o,input:Rn(o,a,n,r),options:s};let l=_o(a);return l?{type:l,input:Rn(l,a,n,r),options:s}:(l=_o({value:a}),l?{type:l,input:Rn(l,{value:a},n,r),options:s}:!1)}function To(e,t,n,r,i){const{value:o,type:a,settings:s}=e;e.value=Fs({type:a,value:o,settings:s},t,n,r),e.fromPanel=i}const q8=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function Fs({type:e,value:t,settings:n},r,i,o){const a=e!=="SELECT"&&typeof r=="function"?r(t):r;let s;try{s=T8(e,a,n,t,i,o)}catch(l){throw new q8(`The value \`${r}\` did not result in a correct value.`,t,l)}return ut(s,t)?t:s}const Os=(e,t,n=!1)=>{let r=0;return function(){const i=arguments,o=n&&!r,a=()=>e.apply(this,i);window.clearTimeout(r),r=window.setTimeout(a,t),o&&a()}},Is=e=>e.shiftKey?5:e.altKey?1/5:1;function Y8(e,t){const n=console.error;console.error=()=>{},E0.render(e,t),console.error=n}const X8=["value"],Q8=["min","max"],J8=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},Hs=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const i=parseFloat(e);if(e===""||isNaN(i))throw Error("Invalid number");const o=Ye(i,t,n);return r?o+r:o},e9=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},Ns=e=>{let{value:t}=e,n=h1(e,X8);const{min:r=-1/0,max:i=1/0}=n,o=h1(n,Q8);let a=parseFloat(t);const s=typeof t=="string"?t.substring((""+a).length):void 0;a=Ye(a,r,i);let l=n.step;l||(Number.isFinite(r)?Number.isFinite(i)?l=+(Math.abs(i-r)/100).toPrecision(1):l=+(Math.abs(a-r)/100).toPrecision(1):Number.isFinite(i)&&(l=+(Math.abs(i-a)/100).toPrecision(1)));const c=l?Do(l)*10:Do(a);l=l||c/10;const d=Math.round(Ye(Math.log10(1/c),0,2));return{value:s?a+s:a,settings:r1({initialValue:a,step:l,pad:d,min:r,max:i,suffix:s},o)}},zs=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var Us=Object.freeze({__proto__:null,schema:J8,sanitize:Hs,format:e9,normalize:Ns,sanitizeStep:zs});function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Dt(e,t){const[n,r]=e.split(" "),i={};return n!=="none"&&(i.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(i.backgroundColor=r),i}const W0={$inputStyle:()=>e=>Dt(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Dt(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Dt(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Dt(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:Q,css:Ag,createTheme:n9,globalCss:r9,keyframes:Vg}=ks({prefix:"leva",theme:qs(),utils:r1(r1({},W0),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":W0.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":W0.$focusStyle()(e)}),$hover:e=>({"&:hover":W0.$hoverStyle()(e)}),$active:e=>({"&:active":W0.$activeStyle()(e)})})}),i9=r9({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function o9(e){const t=qs();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=n9(t);return{theme:t,className:n.className}}function je(e,t){const{theme:n}=p.useContext(ci);if(!(e in n)||!(t in n[e]))return $e(w1.THEME_ERROR,e,t),"";let r=t;for(;;){let i=n[e][r];if(typeof i=="string"&&i.charAt(0)==="$")r=i.substr(1);else return i}}const Ys=Q("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),Xs=Q("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${Ys}`]:{paddingLeft:0}}),a9=Q(Xs,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),s9=Q("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),l9=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],c9=["onUpdate"];function ui(e){let{innerLabel:t,value:n,onUpdate:r,onChange:i,onKeyDown:o,type:a,id:s,inputType:l="text",rows:c=0}=e,d=h1(e,l9);const{id:f,emitOnEditStart:h,emitOnEditEnd:k,disabled:m}=M1(),g=s||f,y=p.useRef(null),x=c>0,C=x?"textarea":"input",b=p.useCallback(E=>_=>{const V=_.currentTarget.value;E(V)},[]);v.useEffect(()=>{const E=y.current,_=b(V=>{r(V),k()});return E==null||E.addEventListener("blur",_),()=>E==null?void 0:E.removeEventListener("blur",_)},[b,r,k]);const S=p.useCallback(E=>{E.key==="Enter"&&b(r)(E)},[b,r]),w=Object.assign({as:C},x?{rows:c}:{},d);return v.createElement(s9,{textArea:x},t&&typeof t=="string"?v.createElement(Xs,null,t):t,v.createElement(Ys,_1({levaType:a,ref:y,id:g,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:b(i),onFocus:()=>h(),onKeyPress:S,onKeyDown:o,disabled:m},w)))}function u9(e){let{onUpdate:t}=e,n=h1(e,c9);const r=p.useCallback(o=>t(R8(o)),[t]),i=p.useCallback(o=>{const a=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(a){o.preventDefault();const s=o.altKey?.1:o.shiftKey?10:1;t(l=>parseFloat(l)+a*s)}},[t]);return v.createElement(ui,_1({},n,{onUpdate:r,onKeyDown:i,type:"number"}))}const Xt=Q("div",{}),_r=Q("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),d9=Q("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${_r}::after`]:{opacity:.6},[`${Xt}:hover > & + ${_r}::after`]:{opacity:.6},[`${Xt}:hover > & > svg`]:{opacity:1}}),Qs=Q("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${Xt}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),Js=Q("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Qs} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),e2=Q(Js,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),f9=Q("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),h9=Q("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Ar=Q("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),p9=Q("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Ar}`]:{pointerEvents:"auto"}}}}}),t2=Q("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),m9=Q("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),x9=Q(D8,{fill:"$toolTipBackground"});function di({children:e}){const{className:t}=p.useContext(ci);return v.createElement(e6,{className:t},e)}const k9=["align"];function g9(){const{id:e,disable:t,disabled:n}=M1();return v.createElement(v.Fragment,null,v.createElement(h9,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),v.createElement("label",{htmlFor:e+"__disable"}))}function C9(e){const{id:t,optional:n,hint:r}=M1(),i=e.htmlFor||(t?{htmlFor:t}:null),o=!r&&typeof e.children=="string"?{title:e.children}:null;return v.createElement(v.Fragment,null,n&&v.createElement(g9,null),r!==void 0?v.createElement(_8,null,v.createElement(A8,{asChild:!0},v.createElement(Ar,_1({},i,e))),v.createElement(V8,{side:"top",sideOffset:2},v.createElement(m9,null,r,v.createElement(x9,null)))):v.createElement(Ar,_1({},i,o,e)))}function Ce(e){let{align:t}=e,n=h1(e,k9);const{value:r,label:i,key:o,disabled:a}=M1(),{hideCopyButton:s}=t9(),l=!s&&o!==void 0,[c,d]=p.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:r??""})),d(!0)}catch{$e(w1.CLIPBOARD_ERROR,{[o]:r})}};return v.createElement(f9,{align:t,onPointerLeave:()=>d(!1)},v.createElement(C9,n),l&&!a&&v.createElement("div",{title:`Click to copy ${typeof i=="string"?i:o} value`},c?v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),v.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):v.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),v.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const y9=["toggled"],b9=Q("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function fi(e){let{toggled:t}=e,n=h1(e,y9);return v.createElement(b9,_1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),v.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const v9=["input"];function xe(e){let{input:t}=e,n=h1(e,v9);return t?v.createElement(e2,n):v.createElement(Js,n)}function n2({value:e,type:t,settings:n,setValue:r}){const[i,o]=p.useState(Ao(t,e,n)),a=p.useRef(e),s=p.useRef(n);s.current=n;const l=p.useCallback(d=>o(Ao(t,d,s.current)),[t]),c=p.useCallback(d=>{try{r(d)}catch(f){const{type:h,previousValue:k}=f;if(h!=="LEVA_ERROR")throw f;l(k)}},[l,r]);return p.useEffect(()=>{ut(e,a.current)||l(e),a.current=e},[e,l]),{displayValue:i,onChange:o,onUpdate:c}}function bt(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=M1();return S4(i=>{i.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const o=e(i);return i.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),o},t)}function w9(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!1);return p.useEffect(()=>{const i=Os(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",i),r.current||(i(),r.current=!0),()=>window.removeEventListener("resize",i)},[e]),p.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function r2(){const e=p.useRef(null),t=p.useRef({x:0,y:0}),n=p.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const E9=["__refCount"],Fn=(e,t)=>{if(!e[t])return null;const n=e[t];return h1(n,E9)};function S9(e){const t=yt(),[n,r]=p.useState(Fn(t.getData(),e)),i=p.useCallback(c=>t.setValueAtPath(e,c,!0),[e,t]),o=p.useCallback(c=>t.setSettingsAtPath(e,c),[e,t]),a=p.useCallback(c=>t.disableInputAtPath(e,c),[e,t]),s=p.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=p.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return p.useEffect(()=>{r(Fn(t.getData(),e));const c=t.useStore.subscribe(d=>Fn(d.data,e),r,{equalityFn:kt});return()=>c()},[t,e]),[n,{set:i,setSettings:o,disable:a,storeId:t.storeId,emitOnEditStart:s,emitOnEditEnd:l}]}const _9=Q("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),i2=Q("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Vr=Q("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),o2=Q("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),a2=Q("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function A9({value:e,min:t,max:n,onDrag:r,step:i,initialValue:o}){const a=p.useRef(null),s=p.useRef(null),l=p.useRef(0),c=je("sizes","scrubberWidth"),d=bt(({event:h,first:k,xy:[m],movement:[g],memo:y})=>{if(k){const{width:C,left:b}=a.current.getBoundingClientRect();l.current=C-parseFloat(c),y=(h==null?void 0:h.target)===s.current?e:Yt((m-b)/C,t,n)}const x=y+Yt(g/l.current,0,n-t);return r(zs(x,{step:i,initialValue:o})),y}),f=qt(e,t,n);return v.createElement(o2,_1({ref:a},d()),v.createElement(i2,null,v.createElement(a2,{style:{left:0,right:`${(1-f)*100}%`}})),v.createElement(Vr,{ref:s,style:{left:`calc(${f} * (100% - ${c}))`}}))}const V9=v.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[i,o]=p.useState(!1),a=bt(({active:s,delta:[l],event:c,memo:d=0})=>(o(s),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*Is(c)),d=0),d));return v.createElement(a9,_1({dragging:i,title:e.length>1?e:""},a()),e.slice(0,r))});function s2({label:e,id:t,displayValue:n,onUpdate:r,onChange:i,settings:o,innerLabelTrim:a=1}){const s=a>0&&v.createElement(V9,{label:e,step:o.step,onUpdate:r,innerLabelTrim:a});return v.createElement(u9,{id:t,value:String(n),onUpdate:r,onChange:i,innerLabel:s})}function D9(){const e=M1(),{label:t,value:n,onUpdate:r,settings:i,id:o}=e,{min:a,max:s}=i,l=s!==1/0&&a!==-1/0;return v.createElement(xe,{input:!0},v.createElement(Ce,null,t),v.createElement(_9,{hasRange:l},l&&v.createElement(A9,_1({value:parseFloat(n),onDrag:r},i)),v.createElement(s2,_1({},e,{id:o,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:B9}=Us,$9=h1(Us,["sanitizeStep"]);var j9=r1({component:D9},$9);const G9=(e,t)=>Y1().schema({options:Y1().passesAnyOf(Y1().object(),Y1().array())}).test(t),P9=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},M9=(e,{values:t})=>t.indexOf(e),T9=e=>{let{value:t,options:n}=e,r,i;return Array.isArray(n)?(i=n,r=n.map(o=>String(o))):(i=Object.values(n),r=Object.keys(n)),"value"in e?i.includes(t)||(r.unshift(String(t)),i.unshift(t)):t=i[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:i}}};var L9=Object.freeze({__proto__:null,schema:G9,sanitize:P9,format:M9,normalize:T9});const R9=Q("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Dr=Q("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),F9=Q("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Dr}:focus + &`]:{$focusStyle:""},[`${Dr}:hover + &`]:{$hoverStyle:""}});function O9({displayValue:e,value:t,onUpdate:n,id:r,settings:i,disabled:o}){const{keys:a,values:s}=i,l=p.useRef();return t===s[e]&&(l.current=a[e]),v.createElement(R9,null,v.createElement(Dr,{id:r,value:e,onChange:c=>n(s[Number(c.currentTarget.value)]),disabled:o},a.map((c,d)=>v.createElement("option",{key:c,value:d},c))),v.createElement(F9,null,l.current),v.createElement(fi,{toggled:!0}))}function I9(){const{label:e,value:t,displayValue:n,onUpdate:r,id:i,disabled:o,settings:a}=M1();return v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(O9,{id:i,value:t,displayValue:n,onUpdate:r,settings:a,disabled:o}))}var H9=r1({component:I9},L9);const N9=e=>Y1().string().test(e),z9=e=>{if(typeof e!="string")throw Error("Invalid string");return e},U9=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Z9=Object.freeze({__proto__:null,schema:N9,sanitize:z9,normalize:U9});const W9=["displayValue","onUpdate","onChange","editable"],K9=Q("div",{whiteSpace:"pre-wrap"});function q9(e){let{displayValue:t,onUpdate:n,onChange:r,editable:i=!0}=e,o=h1(e,W9);return i?v.createElement(ui,_1({value:t,onUpdate:n,onChange:r},o)):v.createElement(K9,null,t)}function Y9(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:i}=M1();return v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(q9,_1({displayValue:n,onUpdate:r,onChange:i},t)))}var X9=r1({component:Y9},Z9);const Q9=e=>Y1().boolean().test(e),J9=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var e7=Object.freeze({__proto__:null,schema:Q9,sanitize:J9});const t7=Q("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function n7({value:e,onUpdate:t,id:n,disabled:r}){return v.createElement(t7,null,v.createElement("input",{id:n,type:"checkbox",checked:e,onChange:i=>t(i.currentTarget.checked),disabled:r}),v.createElement("label",{htmlFor:n},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function r7(){const{label:e,value:t,onUpdate:n,disabled:r,id:i}=M1();return v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(n7,{value:t,onUpdate:n,id:i,disabled:r}))}var i7=r1({component:r7},e7);const o7=["locked"];function a7({value:e,id:t,valueKey:n,settings:r,onUpdate:i,innerLabelTrim:o}){const a=p.useRef(e[n]);a.current=e[n];const s=p.useCallback(c=>i({[n]:Fs({type:"NUMBER",value:a.current,settings:r},c)}),[i,r,n]),l=n2({type:"NUMBER",value:e[n],settings:r,setValue:s});return v.createElement(s2,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:r,innerLabelTrim:o})}const s7=Q("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function l7(e){let{locked:t}=e,n=h1(e,o7);return v.createElement("svg",_1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?v.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):v.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function hi({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:i,setSettings:o}=M1(),{lock:a,locked:s}=n;return v.createElement(s7,{withLock:a},a&&v.createElement(l7,{locked:s,onClick:()=>o({locked:!s})}),Object.keys(e).map((l,c)=>v.createElement(a7,{id:c===0?i:`${i}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:r})))}const l2=(e,t)=>{const n={};let r=0,i=1/0;Object.entries(e).forEach(([o,a])=>{n[o]=Ns(r1({value:a},t[o])).settings,r=Math.max(r,n[o].step),i=Math.min(i,n[o].pad)});for(let o in n){const{step:a,min:s,max:l}=t[o]||{};!isFinite(a)&&(!isFinite(s)||!isFinite(l))&&(n[o].step=r,n[o].pad=i)}return n},c7=["lock"],u7=["value"];function d7(e){const t=Y1().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const i=Object.values(r);return i.length===e&&i.every(o=>isFinite(o))};return r=>t.test(r)||n(r)}function f7(e){return Array.isArray(e)?"array":"object"}function rt(e,t,n){return f7(e)===t?e:t==="array"?Object.values(e):N8(e,n)}const h7=(e,t,n)=>{const r=rt(e,"object",t.keys);for(let a in r)r[a]=Hs(r[a],t[a]);const i=Object.keys(r);let o={};if(i.length===t.keys.length)o=r;else{const a=rt(n,"object",t.keys);if(i.length===1&&t.locked){const s=i[0],l=r[s],c=a[s],d=c!==0?l/c:1;for(let f in a)f===s?o[s]=l:o[f]=a[f]*d}else o=r1(r1({},a),r)}return rt(o,t.format,t.keys)},p7=(e,t)=>rt(e,"object",t.keys),m7=e=>!!e&&("step"in e||"min"in e||"max"in e);function x7(e,t,n=[]){const{lock:r=!1}=t,i=h1(t,c7),o=Array.isArray(e)?"array":"object",a=o==="object"?Object.keys(e):n,s=rt(e,"object",a),l=m7(i)?a.reduce((d,f)=>Object.assign(d,{[f]:i}),{}):i,c=l2(s,l);return{value:o==="array"?e:s,settings:r1(r1({},c),{},{format:o,keys:a,lock:r,locked:!1})}}function c2(e){return{schema:d7(e.length),normalize:t=>{let{value:n}=t,r=h1(t,u7);return x7(n,r,e)},format:(t,n)=>p7(t,n),sanitize:(t,n,r)=>h7(t,n,r)}}var k7={grad:.9,turn:360,rad:360/(2*Math.PI)},Ve=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},B1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},pe=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},u2=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Lo=function(e){return{r:pe(e.r,0,255),g:pe(e.g,0,255),b:pe(e.b,0,255),a:pe(e.a)}},On=function(e){return{r:B1(e.r),g:B1(e.g),b:B1(e.b),a:B1(e.a,3)}},g7=/^#([0-9a-f]{3,8})$/i,Bt=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},d2=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:i}},f2=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:i}},Ro=function(e){return{h:u2(e.h),s:pe(e.s,0,100),l:pe(e.l,0,100),a:pe(e.a)}},Fo=function(e){return{h:B1(e.h),s:B1(e.s),l:B1(e.l),a:B1(e.a,3)}},Oo=function(e){return f2((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},it=function(e){return{h:(t=d2(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},C7=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y7=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b7=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v7=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Br={string:[[function(e){var t=g7.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?B1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?B1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=b7.exec(e)||v7.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Lo({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=C7.exec(e)||y7.exec(e);if(!t)return null;var n,r,i=Ro({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(k7[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Oo(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return Ve(t)&&Ve(n)&&Ve(r)?Lo({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!Ve(t)||!Ve(n)||!Ve(r))return null;var a=Ro({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return Oo(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!Ve(t)||!Ve(n)||!Ve(r))return null;var a=function(s){return{h:u2(s.h),s:pe(s.s,0,100),v:pe(s.v,0,100),a:pe(s.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return f2(a)},"hsv"]]},Io=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=On(this.rgba),n=t.r,r=t.g,i=t.b,a=(o=t.a)<1?Bt(B1(255*o)):"","#"+Bt(n)+Bt(r)+Bt(i)+a;var t,n,r,i,o,a},e.prototype.toRgb=function(){return On(this.rgba)},e.prototype.toRgbString=function(){return t=On(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return Fo(it(this.rgba))},e.prototype.toHslString=function(){return t=Fo(it(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=d2(this.rgba),{h:B1(t.h),s:B1(t.s),v:B1(t.v),a:B1(t.a,3)};var t},e.prototype.invert=function(){return O1({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),O1(In(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),O1(In(this.rgba,-t))},e.prototype.grayscale=function(){return O1(In(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),O1(Ho(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),O1(Ho(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?O1({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):B1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=it(this.rgba);return typeof t=="number"?O1({h:t,s:n.s,l:n.l,a:n.a}):B1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===O1(t).toHex()},e}(),O1=function(e){return e instanceof $r?e:new $r(e)},No=[],E7=function(e){e.forEach(function(t){No.indexOf(t)<0&&(t($r,Br),No.push(t))})};function S7(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,l,c=r[this.toHex()];if(c)return c;if(a!=null&&a.closest){var d=this.toRgb(),f=1/0,h="black";if(!o.length)for(var k in n)o[k]=new e(n[k]).toRgb();for(var m in n){var g=(s=d,l=o[m],Math.pow(s.r-l.r,2)+Math.pow(s.g-l.g,2)+Math.pow(s.b-l.b,2));g=0||(i[n]=e[n]);return i}function jr(e){var t=p.useRef(e),n=p.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var G0=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:y.buttons>0)&&i.current?o(zo(i.current,y,s.current)):g(!1)},m=function(){return g(!1)};function g(y){var x=l.current,C=Gr(i.current),b=y?C.addEventListener:C.removeEventListener;b(x?"touchmove":"mousemove",k),b(x?"touchend":"mouseup",m)}return[function(y){var x=y.nativeEvent,C=i.current;if(C&&(Uo(x),!function(S,w){return w&&!ot(S)}(x,l.current)&&C)){if(ot(x)){l.current=!0;var b=x.changedTouches||[];b.length&&(s.current=b[0].identifier)}C.focus(),o(zo(C,x,s.current)),g(!0)}},function(y){var x=y.which||y.keyCode;x<37||x>40||(y.preventDefault(),a({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},g]},[a,o]),d=c[0],f=c[1],h=c[2];return p.useEffect(function(){return h},[h]),v.createElement("div",O0({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:i,onKeyDown:f,tabIndex:0,role:"slider"}))}),vt=function(e){return e.filter(Boolean).join(" ")},xi=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=vt(["react-colorful__pointer",e.className]);return v.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},z1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},p2=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:z1(e.h),s:z1(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:z1(i/2),a:z1(r,2)}},Pr=function(e){var t=p2(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nn=function(e){var t=p2(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},m2=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),a=r*(1-n),s=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:z1(255*[r,s,a,a,l,r][c]),g:z1(255*[l,r,r,s,a,a][c]),b:z1(255*[a,a,l,r,r,s][c]),a:z1(i,2)}},x2=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),a=o-Math.min(t,n,r),s=a?o===t?(n-r)/a:o===n?2+(r-t)/a:4+(t-n)/a:0;return{h:z1(60*(s<0?s+6:s)),s:z1(o?a/o*100:0),v:z1(o/255*100),a:i}},k2=v.memo(function(e){var t=e.hue,n=e.onChange,r=vt(["react-colorful__hue",e.className]);return v.createElement("div",{className:r},v.createElement(mi,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:G0(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":z1(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(xi,{className:"react-colorful__hue-pointer",left:t/360,color:Pr({h:t,s:100,v:100,a:1})})))}),g2=v.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Pr({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:r},v.createElement(mi,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:G0(t.s+100*i.left,0,100),v:G0(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+z1(t.s)+"%, Brightness "+z1(t.v)+"%"},v.createElement(xi,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Pr(t)})))}),ki=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function C2(e,t,n){var r=jr(n),i=p.useState(function(){return e.toHsva(t)}),o=i[0],a=i[1],s=p.useRef({color:t,hsva:o});p.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},a(c)}},[t,e]),p.useEffect(function(){var c;ki(o,s.current.hsva)||e.equal(c=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:c},r(c))},[o,e,r]);var l=p.useCallback(function(c){a(function(d){return Object.assign({},d,c)})},[]);return[o,l]}var _7=typeof window<"u"?p.useLayoutEffect:p.useEffect,A7=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Zo=new Map,y2=function(e){_7(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Zo.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Zo.set(t,n);var r=A7();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},V7=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,a=pi(e,["className","colorModel","color","onChange"]),s=p.useRef(null);y2(s);var l=C2(n,i,o),c=l[0],d=l[1],f=vt(["react-colorful",t]);return v.createElement("div",O0({},a,{ref:s,className:f}),v.createElement(g2,{hsva:c,onChange:d}),v.createElement(k2,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},D7=function(e){var t=e.className,n=e.hsva,r=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Nn(Object.assign({},n,{a:0}))+", "+Nn(Object.assign({},n,{a:1}))+")"},o=vt(["react-colorful__alpha",t]),a=z1(100*n.a);return v.createElement("div",{className:o},v.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),v.createElement(mi,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:G0(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(xi,{className:"react-colorful__alpha-pointer",left:n.a,color:Nn(n)})))},B7=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,a=pi(e,["className","colorModel","color","onChange"]),s=p.useRef(null);y2(s);var l=C2(n,i,o),c=l[0],d=l[1],f=vt(["react-colorful",t]);return v.createElement("div",O0({},a,{ref:s,className:f}),v.createElement(g2,{hsva:c,onChange:d}),v.createElement(k2,{hue:c.h,onChange:d}),v.createElement(D7,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},$7={defaultColor:{r:0,g:0,b:0,a:1},toHsva:x2,fromHsva:m2,equal:ki},j7=function(e){return v.createElement(B7,O0({},e,{colorModel:$7}))},G7={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return x2({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=m2(e)).r,g:t.g,b:t.b};var t},equal:ki},P7=function(e){return v.createElement(V7,O0({},e,{colorModel:G7}))};function Dg(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function I0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{c(r.next(d))}catch(f){a(f)}}function l(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function H0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function T7(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function R7(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=L7.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var F7=[".DS_Store","Thumbs.db"];function O7(e){return I0(this,void 0,void 0,function(){return H0(this,function(t){return Qt(e)&&I7(e)?[2,U7(e.dataTransfer,e.type)]:H7(e)?[2,N7(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,z7(e)]:[2,[]]})})}function I7(e){return Qt(e.dataTransfer)}function H7(e){return Qt(e)&&Qt(e.target)}function Qt(e){return typeof e=="object"&&e!==null}function N7(e){return Mr(e.target.files).map(function(t){return wt(t)})}function z7(e){return I0(this,void 0,void 0,function(){var t;return H0(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return wt(r)})]}})})}function U7(e,t){return I0(this,void 0,void 0,function(){var n,r;return H0(this,function(i){switch(i.label){case 0:return e===null?[2,[]]:e.items?(n=Mr(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Z7))]):[3,2];case 1:return r=i.sent(),[2,Wo(b2(r))];case 2:return[2,Wo(Mr(e.files).map(function(o){return wt(o)}))]}})})}function Wo(e){return e.filter(function(t){return F7.indexOf(t.name)===-1})}function Mr(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Jo(n)];if(e.sizen)return[!1,Jo(n)]}return[!0,null]}function K0(e){return e!=null}function au(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(s){var l=E2(s,n),c=Xo(l,1),d=c[0],f=S2(s,r,i),h=Xo(f,1),k=h[0];return d&&k})}function Jt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function $t(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ta(e){e.preventDefault()}function su(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function lu(e){return e.indexOf("Edge/")!==-1}function cu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return su(e)||lu(e)}function be(){for(var e=arguments.length,t=new Array(e),n=0;n1?i-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Su(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var gi=p.forwardRef(function(e,t){var n=e.children,r=en(e,pu),i=V2(r),o=i.open,a=en(i,mu);return p.useImperativeHandle(t,function(){return{open:o}},[o]),v.createElement(p.Fragment,null,n(v1(v1({},a),{},{open:o})))});gi.displayName="Dropzone";var A2={disabled:!1,getFilesFromEvent:O7,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};gi.defaultProps=A2;gi.propTypes={children:g1.func,accept:g1.oneOfType([g1.string,g1.arrayOf(g1.string)]),multiple:g1.bool,preventDropOnDocument:g1.bool,noClick:g1.bool,noKeyboard:g1.bool,noDrag:g1.bool,noDragEventsBubbling:g1.bool,minSize:g1.number,maxSize:g1.number,maxFiles:g1.number,disabled:g1.bool,getFilesFromEvent:g1.func,onFileDialogCancel:g1.func,onFileDialogOpen:g1.func,useFsAccessApi:g1.bool,onDragEnter:g1.func,onDragLeave:g1.func,onDragOver:g1.func,onDrop:g1.func,onDropAccepted:g1.func,onDropRejected:g1.func,validator:g1.func};var Rr={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function V2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=v1(v1({},A2),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,k=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,x=t.useFsAccessApi,C=t.preventDropOnDocument,b=t.noClick,S=t.noKeyboard,w=t.noDrag,E=t.noDragEventsBubbling,_=t.validator,V=p.useMemo(function(){return typeof y=="function"?y:ra},[y]),P=p.useMemo(function(){return typeof g=="function"?g:ra},[g]),$=p.useRef(null),T=p.useRef(null),D=p.useReducer(_u,Rr),O=zn(D,2),M=O[0],R=O[1],F=M.isFocused,H=M.isFileDialogActive,Z=M.draggedFiles,q=p.useRef(typeof window<"u"&&window.isSecureContext&&x&&uu()),i1=function(){!q.current&&H&&setTimeout(function(){if(T.current){var G=T.current.files;G.length||(R({type:"closeDialog"}),P())}},300)};p.useEffect(function(){return window.addEventListener("focus",i1,!1),function(){window.removeEventListener("focus",i1,!1)}},[T,H,P,q]);var X=p.useRef([]),N=function(G){$.current&&$.current.contains(G.target)||(G.preventDefault(),X.current=[])};p.useEffect(function(){return C&&(document.addEventListener("dragover",ta,!1),document.addEventListener("drop",N,!1)),function(){C&&(document.removeEventListener("dragover",ta),document.removeEventListener("drop",N))}},[$,C]);var J=p.useCallback(function(j){j.preventDefault(),j.persist(),L1(j),X.current=[].concat(gu(X.current),[j.target]),$t(j)&&Promise.resolve(i(j)).then(function(G){Jt(j)&&!E||(R({draggedFiles:G,isDragActive:!0,type:"setDraggedFiles"}),c&&c(j))})},[i,c,E]),e1=p.useCallback(function(j){j.preventDefault(),j.persist(),L1(j);var G=$t(j);if(G&&j.dataTransfer)try{j.dataTransfer.dropEffect="copy"}catch{}return G&&f&&f(j),!1},[f,E]),n1=p.useCallback(function(j){j.preventDefault(),j.persist(),L1(j);var G=X.current.filter(function(W){return $.current&&$.current.contains(W)}),I=G.indexOf(j.target);I!==-1&&G.splice(I,1),X.current=G,!(G.length>0)&&(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),$t(j)&&d&&d(j))},[$,d,E]),c1=p.useCallback(function(j,G){var I=[],W=[];j.forEach(function(a1){var k1=E2(a1,n),Y=zn(k1,2),te=Y[0],e0=Y[1],ye=S2(a1,a,o),Ae=zn(ye,2),z0=Ae[0],x0=Ae[1],U0=_?_(a1):null;if(te&&z0&&!U0)I.push(a1);else{var k0=[e0,x0];U0&&(k0=k0.concat(U0)),W.push({file:a1,errors:k0.filter(function(j3){return j3})})}}),(!s&&I.length>1||s&&l>=1&&I.length>l)&&(I.forEach(function(a1){W.push({file:a1,errors:[ou]})}),I.splice(0)),R({acceptedFiles:I,fileRejections:W,type:"setFiles"}),h&&h(I,W,G),W.length>0&&m&&m(W,G),I.length>0&&k&&k(I,G)},[R,s,n,a,o,l,h,k,m,_]),b1=p.useCallback(function(j){j.preventDefault(),j.persist(),L1(j),X.current=[],$t(j)&&Promise.resolve(i(j)).then(function(G){Jt(j)&&!E||c1(G,j)}),R({type:"reset"})},[i,c1,E]),S1=p.useCallback(function(){if(q.current){R({type:"openDialog"}),V();var j={multiple:s,types:du(n)};window.showOpenFilePicker(j).then(function(G){return i(G)}).then(function(G){c1(G,null),R({type:"closeDialog"})}).catch(function(G){fu(G)?(P(G),R({type:"closeDialog"})):hu(G)&&(q.current=!1,T.current&&(T.current.value=null,T.current.click()))});return}T.current&&(R({type:"openDialog"}),V(),T.current.value=null,T.current.click())},[R,V,P,x,c1,n,s]),x1=p.useCallback(function(j){!$.current||!$.current.isEqualNode(j.target)||(j.key===" "||j.key==="Enter"||j.keyCode===32||j.keyCode===13)&&(j.preventDefault(),S1())},[$,S1]),$1=p.useCallback(function(){R({type:"focus"})},[]),Q1=p.useCallback(function(){R({type:"blur"})},[]),le=p.useCallback(function(){b||(cu()?setTimeout(S1,0):S1())},[b,S1]),o1=function(G){return r?null:G},u1=function(G){return S?null:o1(G)},d1=function(G){return w?null:o1(G)},L1=function(G){E&&G.stopPropagation()},J1=p.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=j.refKey,I=G===void 0?"ref":G,W=j.role,a1=j.onKeyDown,k1=j.onFocus,Y=j.onBlur,te=j.onClick,e0=j.onDragEnter,ye=j.onDragOver,Ae=j.onDragLeave,z0=j.onDrop,x0=en(j,xu);return v1(v1(Lr({onKeyDown:u1(be(a1,x1)),onFocus:u1(be(k1,$1)),onBlur:u1(be(Y,Q1)),onClick:o1(be(te,le)),onDragEnter:d1(be(e0,J)),onDragOver:d1(be(ye,e1)),onDragLeave:d1(be(Ae,n1)),onDrop:d1(be(z0,b1)),role:typeof W=="string"&&W!==""?W:"button"},I,$),!r&&!S?{tabIndex:0}:{}),x0)}},[$,x1,$1,Q1,le,J,e1,n1,b1,S,w,r]),ee=p.useCallback(function(j){j.stopPropagation()},[]),_e=p.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},G=j.refKey,I=G===void 0?"ref":G,W=j.onChange,a1=j.onClick,k1=en(j,ku),Y=Lr({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:o1(be(W,b1)),onClick:o1(be(a1,ee)),tabIndex:-1},I,T);return v1(v1({},Y),k1)}},[T,n,s,b1,r]),A=Z.length,B=A>0&&au({files:Z,accept:n,minSize:a,maxSize:o,multiple:s,maxFiles:l}),L=A>0&&!B;return v1(v1({},M),{},{isDragAccept:B,isDragReject:L,isFocused:F&&!r,getRootProps:J1,getInputProps:_e,rootRef:$,inputRef:T,open:o1(S1)})}function _u(e,t){switch(t.type){case"focus":return v1(v1({},e),{},{isFocused:!0});case"blur":return v1(v1({},e),{},{isFocused:!1});case"openDialog":return v1(v1({},Rr),{},{isFileDialogActive:!0});case"closeDialog":return v1(v1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return v1(v1({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return v1(v1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return v1({},Rr);default:return e}}function ra(){}function Au(e){let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(f!==t){const h=t;t=d?f:Object.assign({},t,f),n.forEach(k=>k(t,h))}},i=()=>t,o=(c,d=i,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=d(t);function k(){const m=d(t);if(!f(h,m)){const g=h;c(h=m,g)}}return n.add(k),()=>n.delete(k)},l={setState:r,getState:i,subscribe:(c,d,f)=>d||f?o(c,d,f):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,i,l),l}const Vu=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ia=Vu?p.useEffect:p.useLayoutEffect;function Du(e){const t=typeof e=="function"?Au(e):e,n=(r=t.getState,i=Object.is)=>{const[,o]=p.useReducer(y=>y+1,0),a=t.getState(),s=p.useRef(a),l=p.useRef(r),c=p.useRef(i),d=p.useRef(!1),f=p.useRef();f.current===void 0&&(f.current=r(a));let h,k=!1;(s.current!==a||l.current!==r||c.current!==i||d.current)&&(h=r(a),k=!i(f.current,h)),ia(()=>{k&&(f.current=h),s.current=a,l.current=r,c.current=i,d.current=!1});const m=p.useRef(a);ia(()=>{const y=()=>{try{const C=t.getState(),b=l.current(C);c.current(f.current,b)||(s.current=C,f.current=b,o())}catch{d.current=!0,o()}},x=t.subscribe(y);return t.getState()!==m.current&&y(),x},[]);const g=k?h:f.current;return p.useDebugValue(g),g};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}const Bu=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(a,s,l)=>{let c=a;if(s){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=a(r.getState());c=h=>{const k=a(h);if(!d(f,k)){const m=f;s(f=k,m)}},l!=null&&l.fireImmediately&&s(f,f)}return i(c)},e(t,n,r)};/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var $u=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var ju=$u;function oa(e){return ju(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var D2=function(t){var n,r;return!(oa(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,oa(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! - * is-extendable - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var Gu=D2,Ci=function(t){return Gu(t)||typeof t=="function"||Array.isArray(t)};/*! - * for-in - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var Pu=function(t,n,r){for(var i in t)if(n.call(r,t[i],i,t)===!1)break},Mu=Ci,Tu=Pu;function B2(e,t){for(var n=arguments.length,r=0;++r - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Ou=function(e,t,n,r,i){if(!Iu(e)||!t)return e;if(t=jt(t),n&&(t+="."+jt(n)),r&&(t+="."+jt(r)),i&&(t+="."+jt(i)),t in e)return e[t];for(var o=t.split("."),a=o.length,s=-1;e&&++s - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var Hu=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),i=arguments.length,o=0;++o"u")throw new TypeError("Cannot convert undefined or null to object");aa(e)||(e={});for(var t=1;t - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var Yu=Uu,Xu=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=Yu({sep:"."},t),i=r.quotes||['"',"'","`"],o;r.brackets===!0?o={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(o=r.brackets);var a=[],s=[],l=[""],c=r.sep,d=e.length,f=-1,h;function k(){if(o&&s.length)return o[s[s.length-1]]}for(;++f - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var ed=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},sa=ed,td=function(t){sa(t)||(t={});for(var n=arguments.length,r=1;r - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var id=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! - * set-value - * - * Copyright (c) 2014-2015, 2017, Jon Schlinkert. - * Released under the MIT License. - */var od=Xu,ad=td,la=D2,ca=id,sd=function(e,t,n){if(!ca(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=od(t,{sep:".",brackets:!0}).filter(ld),i=r.length,o=-1,a=e;++oe.filter(Boolean).join(".");function fd(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function hd(e,t){return Object.entries(I8(e,t)).reduce((n,[,{value:r,disabled:i,key:o}])=>(n[o]=i?void 0:r,n),{})}function pd(e,t){const n=p.useRef();return(t?ut:kt)(e,n.current)||(n.current=e),n.current}function $2(e,t){return p.useMemo(e,pd(t,!0))}function md(e){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(!0);return p.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),p.useEffect(()=>{if(r.current){r.current=!1;return}let i;const o=t.current,a=()=>{e&&(o.style.removeProperty("height"),o.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};o.addEventListener("transitionend",a,{once:!0});const{height:s}=n.current.getBoundingClientRect();return o.style.height=s+"px",e||(o.style.overflow="hidden",i=window.setTimeout(()=>o.style.height="0px",50)),()=>{o.removeEventListener("transitionend",a),clearTimeout(i)}},[e]),{wrapperRef:t,contentRef:n}}const xd=e=>{const[t,n]=p.useState(e.getVisiblePaths());return p.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:kt});return()=>r()},[e]),t};function kd(e,t,n){return e.useStore(i=>{const o=r1(r1({},n),i.data);return hd(o,t)},kt)}function j2(e=3){const t=p.useRef(null),n=p.useRef(null),[r,i]=p.useState(!1),o=p.useCallback(()=>i(!0),[]),a=p.useCallback(()=>i(!1),[]);return p.useLayoutEffect(()=>{if(r){const{bottom:s,top:l,left:c}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=s+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=c+"px",f==="down"?n.current.style.top=s+e+"px":n.current.style.bottom=window.innerHeight-l+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:o,hide:a}}E7([S7]);const gd={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Y1.extend({color:()=>e=>O1(e).isValid()});const Cd=e=>Y1().color().test(e);function G2(e,{format:t,hasAlpha:n,isString:r}){const i=gd[t]+(r&&t!=="hex"?"String":""),o=e[i]();return typeof o=="object"&&!n?H8(o,["a"]):o}const P2=(e,t)=>{const n=O1(e);if(!n.isValid())throw Error("Invalid color");return G2(n,t)},yd=(e,t)=>G2(O1(e),r1(r1({},t),{},{isString:!0,format:"hex"})),bd=({value:e})=>{const t=w7(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),i={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:P2(e,i),settings:i}};var vd=Object.freeze({__proto__:null,schema:Cd,sanitize:P2,format:yd,normalize:bd});const wd=Q("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Ed=Q("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Sd=Q("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function fa(e,t){return t!=="rgb"?O1(e).toRgb():e}function _d({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:i,emitOnEditEnd:o}=M1(),{format:a,hasAlpha:s}=n,{popinRef:l,wrapperRef:c,shown:d,show:f,hide:h}=j2(),k=p.useRef(0),[m,g]=p.useState(()=>fa(e,a)),y=s?j7:P7,x=()=>{g(fa(e,a)),f(),i()},C=()=>{h(),o(),window.clearTimeout(k.current)},b=()=>{k.current=window.setTimeout(C,500)};return p.useEffect(()=>()=>window.clearTimeout(k.current),[]),v.createElement(v.Fragment,null,v.createElement(wd,{ref:l,active:d,onClick:()=>x(),style:{color:t}}),d&&v.createElement(di,null,v.createElement(t2,{onPointerUp:C}),v.createElement(Sd,{ref:c,onMouseEnter:()=>window.clearTimeout(k.current),onMouseLeave:S=>S.buttons===0&&b()},v.createElement(y,{color:m,onChange:r}))))}function Ad(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:i,settings:o}=M1();return v.createElement(xe,{input:!0},v.createElement(Ce,null,n),v.createElement(Ed,null,v.createElement(_d,{value:e,displayValue:t,onChange:r,onUpdate:i,settings:o}),v.createElement(ui,{value:t,onChange:r,onUpdate:i})))}var Vd=r1({component:Ad},vd);function Dd(){const{label:e,displayValue:t,onUpdate:n,settings:r}=M1();return v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(hi,{value:t,settings:r,onUpdate:n}))}var Bd=r1({component:Dd},c2(["x","y","z"]));const $d=Q("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),jd=Q("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Gd({value:e,settings:t,onUpdate:n}){const r=p.useRef(),i=p.useRef(0),o=p.useRef(0),a=p.useRef(1),[s,l]=p.useState(!1),[c,d]=p.useState(!1),[f,h]=r2(),k=p.useRef(null),m=p.useRef(null);p.useLayoutEffect(()=>{if(s){const{top:D,left:O,width:M,height:R}=k.current.getBoundingClientRect();m.current.style.left=O+M/2+"px",m.current.style.top=D+R/2+"px"}},[s]);const{keys:[g,y],joystick:x}=t,C=x==="invertY"?1:-1,{[g]:{step:b},[y]:{step:S}}=t,w=je("sizes","joystickWidth"),E=je("sizes","joystickHeight"),_=parseFloat(w)*.8/2,V=parseFloat(E)*.8/2,P=p.useCallback(()=>{r.current||(d(!0),i.current&&h({x:i.current*_}),o.current&&h({y:o.current*-V}),r.current=window.setInterval(()=>{n(D=>{const O=b*i.current*a.current,M=C*S*o.current*a.current;return Array.isArray(D)?{[g]:D[0]+O,[y]:D[1]+M}:{[g]:D[g]+O,[y]:D[y]+M}})},16))},[_,V,n,h,b,S,g,y,C]),$=p.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,d(!1)},[]);p.useEffect(()=>{function D(O){a.current=Is(O)}return window.addEventListener("keydown",D),window.addEventListener("keyup",D),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",D),window.removeEventListener("keyup",D)}},[]);const T=bt(({first:D,active:O,delta:[M,R],movement:[F,H]})=>{D&&l(!0);const Z=Ye(F,-_,_),q=Ye(H,-V,V);i.current=Math.abs(F)>Math.abs(Z)?Math.sign(F-Z):0,o.current=Math.abs(H)>Math.abs(q)?Math.sign(q-H):0;let i1=e[g],X=e[y];O?(i.current||(i1+=M*b*a.current,h({x:Z})),o.current||(X-=C*R*S*a.current,h({y:q})),i.current||o.current?P():$(),n({[g]:i1,[y]:X})):(l(!1),i.current=0,o.current=0,h({x:0,y:0}),$())});return v.createElement($d,_1({ref:k},T()),s&&v.createElement(di,null,v.createElement(jd,{ref:m,isOutOfBounds:c},v.createElement("div",null),v.createElement("span",{ref:f}))))}const Pd=Q("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Md(){const{label:e,displayValue:t,onUpdate:n,settings:r}=M1();return v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(Pd,{withJoystick:!!r.joystick},r.joystick&&v.createElement(Gd,{value:t,settings:r,onUpdate:n}),v.createElement(hi,{value:t,settings:r,onUpdate:n})))}const Td=["joystick"],M2=c2(["x","y"]),Ld=e=>{let{joystick:t=!0}=e,n=h1(e,Td);const{value:r,settings:i}=M2.normalize(n);return{value:r,settings:r1(r1({},i),{},{joystick:t})}};var Rd=r1(r1({component:Md},M2),{},{normalize:Ld});const Fd=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},Od=(e,t)=>typeof t=="object"&&"image"in t,Id=({image:e})=>({value:e});var Hd=Object.freeze({__proto__:null,sanitize:Fd,schema:Od,normalize:Id});const Nd=Q("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),zd=Q("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Ud=Q("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Zd=Q("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Wd=Q("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Kd=Q("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function qd(){const{label:e,value:t,onUpdate:n,disabled:r}=M1(),{popinRef:i,wrapperRef:o,shown:a,show:s,hide:l}=j2(),c=p.useCallback(m=>{m.length&&n(m[0])},[n]),d=p.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:h,isDragAccept:k}=V2({maxFiles:1,accept:"image/*",onDrop:c,disabled:r});return v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(Nd,null,v.createElement(Ud,{ref:i,hasImage:!!t,onPointerDown:()=>!!t&&s(),onPointerUp:l,style:{backgroundImage:t?`url(${t})`:"none"}}),a&&!!t&&v.createElement(di,null,v.createElement(t2,{onPointerUp:l,style:{cursor:"pointer"}}),v.createElement(Zd,{ref:o,style:{backgroundImage:`url(${t})`}})),v.createElement(zd,f({isDragAccept:k}),v.createElement("input",h()),v.createElement(Wd,null,k?"drop image":"click or drop")),v.createElement(Kd,{onClick:d,disabled:!t})))}var Yd=r1({component:qd},Hd);const ha=Y1().number(),Xd=(e,t)=>Y1().array().length(2).every.number().test(e)&&Y1().schema({min:ha,max:ha}).test(t),tn=e=>({min:e[0],max:e[1]}),T2=(e,{bounds:[t,n]},r)=>{const i=Array.isArray(e)?tn(e):e,o={min:r[0],max:r[1]},{min:a,max:s}=r1(r1({},o),i);return[Ye(Number(a),t,Math.max(t,s)),Ye(Number(s),Math.min(n,a),n)]},Qd=({value:e,min:t,max:n})=>{const r={min:t,max:n},i=l2(tn(e),{min:r,max:r}),o=[t,n],a=r1(r1({},i),{},{bounds:o});return{value:T2(tn(e),a,e),settings:a}};var Jd=Object.freeze({__proto__:null,schema:Xd,format:tn,sanitize:T2,normalize:Qd});const ef=["value","bounds","onDrag"],tf=["bounds"],nf=Q("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function rf(e){let{value:t,bounds:[n,r],onDrag:i}=e,o=h1(e,ef);const a=p.useRef(null),s=p.useRef(null),l=p.useRef(null),c=p.useRef(0),d=je("sizes","scrubberWidth"),f=bt(({event:m,first:g,xy:[y],movement:[x],memo:C={}})=>{if(g){const{width:S,left:w}=a.current.getBoundingClientRect();c.current=S-parseFloat(d);const E=(m==null?void 0:m.target)===s.current||(m==null?void 0:m.target)===l.current;C.pos=Yt((y-w)/S,n,r);const _=Math.abs(C.pos-t.min)-Math.abs(C.pos-t.max);C.key=_<0||_===0&&C.pos<=t.min?"min":"max",E&&(C.pos=t[C.key])}const b=C.pos+Yt(x/c.current,0,r-n);return i({[C.key]:B9(b,o[C.key])}),C}),h=`calc(${qt(t.min,n,r)} * (100% - ${d} - 8px) + 4px)`,k=`calc(${1-qt(t.max,n,r)} * (100% - ${d} - 8px) + 4px)`;return v.createElement(o2,_1({ref:a},f()),v.createElement(i2,null,v.createElement(a2,{style:{left:h,right:k}})),v.createElement(Vr,{position:"left",ref:s,style:{left:h}}),v.createElement(Vr,{position:"right",ref:l,style:{right:k}}))}function of(){const{label:e,displayValue:t,onUpdate:n,settings:r}=M1(),i=h1(r,tf);return v.createElement(v.Fragment,null,v.createElement(xe,{input:!0},v.createElement(Ce,null,e),v.createElement(nf,null,v.createElement(rf,_1({value:t},r,{onDrag:n})),v.createElement(hi,{value:t,settings:i,onUpdate:n,innerLabelTrim:0}))))}var af=r1({component:of},Jd);const sf=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const i of r)i(...n)}}},lf=["type","value"],cf=["onChange","transient","onEditStart","onEditEnd"],uf=function(){const t=Du(Bu(()=>({data:{}}))),n=sf();this.storeId=O8(),this.useStore=t;const r={},i=new Set;this.getVisiblePaths=()=>{const a=this.getData(),s=Object.keys(a),l=[];Object.entries(r).forEach(([d,f])=>{f.render&&s.some(h=>h.indexOf(d)===0)&&!f.render(this.get)&&l.push(d+".")});const c=[];return i.forEach(d=>{d in a&&a[d].__refCount>0&&l.every(f=>d.indexOf(f)===-1)&&(!a[d].render||a[d].render(this.get))&&c.push(d)}),c},this.setOrderedPaths=a=>{a.forEach(s=>i.add(s))},this.orderPaths=a=>(this.setOrderedPaths(a),a),this.disposePaths=a=>{t.setState(s=>{const l=s.data;return a.forEach(c=>{if(c in l){const d=l[c];d.__refCount--,d.__refCount===0&&d.type in ke&&delete l[c]}}),{data:l}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=a=>r[a]||{},this.getData=()=>t.getState().data,this.addData=(a,s)=>{t.setState(l=>{const c=l.data;return Object.entries(a).forEach(([d,f])=>{let h=c[d];if(h){const{type:k,value:m}=f,g=h1(f,lf);k!==h.type?$e(w1.INPUT_TYPE_OVERRIDE,k):((h.__refCount===0||s)&&Object.assign(h,g),h.__refCount++)}else c[d]=r1(r1({},f),{},{__refCount:1})}),{data:c}})},this.setValueAtPath=(a,s,l)=>{t.setState(c=>{const d=c.data;return To(d[a],s,a,this,l),{data:d}})},this.setSettingsAtPath=(a,s)=>{t.setState(l=>{const c=l.data;return c[a].settings=r1(r1({},c[a].settings),s),{data:c}})},this.disableInputAtPath=(a,s)=>{t.setState(l=>{const c=l.data;return c[a].disabled=s,{data:c}})},this.set=(a,s)=>{t.setState(l=>{const c=l.data;return Object.entries(a).forEach(([d,f])=>{try{To(c[d],f,void 0,void 0,s)}catch{}}),{data:c}})},this.getInput=a=>{try{return this.getData()[a]}catch{$e(w1.PATH_DOESNT_EXIST,a)}},this.get=a=>{var s;return(s=this.getInput(a))===null||s===void 0?void 0:s.value},this.emitOnEditStart=a=>{n.emit(`onEditStart:${a}`,this.get(a),a,r1(r1({},this.getInput(a)),{},{get:this.get}))},this.emitOnEditEnd=a=>{n.emit(`onEditEnd:${a}`,this.get(a),a,r1(r1({},this.getInput(a)),{},{get:this.get}))},this.subscribeToEditStart=(a,s)=>{const l=`onEditStart:${a}`;return n.on(l,s),()=>n.off(l,s)},this.subscribeToEditEnd=(a,s)=>{const l=`onEditEnd:${a}`;return n.on(l,s),()=>n.off(l,s)};const o=(a,s,l)=>{const c={};return Object.entries(a).forEach(([d,f])=>{if(d==="")return $e(w1.EMPTY_KEY);let h=yi(s,d);if(f.type===ke.FOLDER){const k=o(f.schema,h,l);Object.assign(c,k),h in r||(r[h]=f.settings)}else if(d in l)$e(w1.DUPLICATE_KEYS,d,h,l[d].path);else{const k=K8(f,d,h,c);if(k){const{type:m,options:g,input:y}=k,{onChange:x,transient:C,onEditStart:b,onEditEnd:S}=g,w=h1(g,cf);c[h]=r1(r1(r1({type:m},w),y),{},{fromPanel:!0}),l[d]={path:h,onChange:x,transient:C,onEditStart:b,onEditEnd:S}}else $e(w1.UNKNOWN_INPUT,h,f)}}),c};this.getDataFromSchema=a=>{const s={};return[o(a,"",s),s]}},L2=new uf,df={collapsed:!1};function ff(e,t){return{type:ke.FOLDER,schema:e,settings:r1(r1({},df),t)}}const pa=e=>"__levaInput"in e,hf=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(i=>{const[o,a]=fd(i);(!r||o.toLowerCase().indexOf(r)>-1)&&dd(n,a,{[o]:{__levaInput:!0,path:i}})}),n},pf=["type","label","path","valueKey","value","settings","setValue","disabled"];function mf(e){let{type:t,label:n,path:r,valueKey:i,value:o,settings:a,setValue:s,disabled:l}=e,c=h1(e,pf);const{displayValue:d,onChange:f,onUpdate:h}=n2({type:t,value:o,settings:a,setValue:s}),k=u0[t].component;return k?v.createElement(Zs.Provider,{value:r1({key:i,path:r,id:""+r,label:n,displayValue:d,value:o,onChange:f,onUpdate:h,settings:a,setValue:s,disabled:l},c)},v.createElement(p9,{disabled:l},v.createElement(k,null))):($e(w1.NO_COMPONENT_FOR_TYPE,t,r),null)}const xf=Q("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function kf({onClick:e,settings:t,label:n}){const r=yt();return v.createElement(xe,null,v.createElement(xf,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const gf=Q("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),Cf=Q("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),yf=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function bf(e){const{label:t,opts:n}=yf(e),r=yt();return v.createElement(xe,{input:!!t},t&&v.createElement(Ce,null,t),v.createElement(gf,null,Object.entries(n).map(([i,o])=>v.createElement(Cf,{key:i,onClick:()=>o(r.get)},i))))}const vf=Q("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),R2=100;function wf(e,t){e.push(t),e.length>R2&&e.shift()}const Ef=p.forwardRef(function({initialValue:e},t){const n=je("colors","highlight3"),r=je("colors","elevation2"),i=je("colors","highlight1"),[o,a]=p.useMemo(()=>[O1(i).alpha(.4).toRgbString(),O1(i).alpha(.1).toRgbString()],[i]),s=p.useRef([e]),l=p.useRef(e),c=p.useRef(e),d=p.useRef(),f=p.useCallback((m,g)=>{if(!m)return;const{width:y,height:x}=m,C=new Path2D,b=y/R2,S=x*.05;for(let _=0;_({frame:m=>{(l.current===void 0||mc.current)&&(c.current=m),wf(s.current,m),d.current=requestAnimationFrame(()=>f(h.current,k.current))}}),[h,k,f]),p.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),v.createElement(vf,{ref:h})}),ma=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),Sf=p.forwardRef(function({initialValue:e},t){const[n,r]=p.useState(ma(e));return p.useImperativeHandle(t,()=>({frame:i=>r(ma(i))}),[]),v.createElement("div",null,n)});function xa(e){return typeof e=="function"?e():e.current}function _f({label:e,objectOrFn:t,settings:n}){const r=p.useRef(),i=p.useRef(xa(t));return p.useEffect(()=>{const o=window.setInterval(()=>{var a;document.hidden||(a=r.current)===null||a===void 0||a.frame(xa(t))},n.interval);return()=>window.clearInterval(o)},[t,n.interval]),v.createElement(xe,{input:!0},v.createElement(Ce,{align:"top"},e),n.graph?v.createElement(Ef,{ref:r,initialValue:i.current}):v.createElement(Sf,{ref:r,initialValue:i.current}))}const Af=["type","label","key"],Vf={[ke.BUTTON]:kf,[ke.BUTTON_GROUP]:bf,[ke.MONITOR]:_f},Df=v.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:i,storeId:o,emitOnEditStart:a,emitOnEditEnd:s}]=S9(e);if(!t)return null;const{type:l,label:c,key:d}=t,f=h1(t,Af);if(l in ke){const h=Vf[l];return v.createElement(h,_1({label:c,path:e},f))}return l in u0?v.createElement(mf,_1({key:o+e,type:l,label:c,storeId:o,path:e,valueKey:d,setValue:n,setSettings:r,disable:i,emitOnEditStart:a,emitOnEditEnd:s},f)):(j8(w1.UNSUPPORTED_INPUT,l,e),null)});function Bf({toggle:e,toggled:t,name:n}){return v.createElement(d9,{onClick:()=>e()},v.createElement(fi,{toggled:t}),v.createElement("div",null,n))}const $f=({name:e,path:t,tree:n})=>{const r=yt(),i=yi(t,e),{collapsed:o,color:a}=r.getFolderSettings(i),[s,l]=p.useState(!o),c=p.useRef(null),d=je("colors","folderWidgetColor"),f=je("colors","folderTextColor");return p.useLayoutEffect(()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",a||d),c.current.style.setProperty("--leva-colors-folderTextColor",a||f)},[a,d,f]),v.createElement(Xt,{ref:c},v.createElement(Bf,{name:e,toggled:s,toggle:()=>l(h=>!h)}),v.createElement(F2,{parent:i,tree:n,toggled:s}))},F2=v.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:i,toggled:o})=>{const{wrapperRef:a,contentRef:s}=md(o),l=yt(),c=([f,h])=>{var k;return(pa(h)?(k=l.getInput(h.path))===null||k===void 0?void 0:k.order:l.getFolderSettings(yi(r,f)).order)||0},d=Object.entries(i).sort((f,h)=>c(f)-c(h));return v.createElement(_r,{ref:a,isRoot:e,fill:t,flat:n},v.createElement(Qs,{ref:s,isRoot:e,toggled:o},d.map(([f,h])=>pa(h)?v.createElement(Df,{key:h.path,valueKey:h.valueKey,path:h.path}):v.createElement($f,{key:f,name:f,path:r,tree:h}))))}),jf=Q("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${e2}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),O2=40,nn=Q("i",{$flexCenter:"",width:O2,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Gf=Q("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),Pf=Q("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${nn}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Mf=Q("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Tf=Q("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:O2}}}}),Lf=v.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,i]=p.useState(""),o=p.useMemo(()=>Os(e,250),[e]),a=()=>{e(""),i("")},s=l=>{const c=l.currentTarget.value;t(!0),i(c)};return p.useEffect(()=>{o(r)},[r,o]),v.createElement(v.Fragment,null,v.createElement(Mf,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:s}),v.createElement(nn,{onClick:()=>a(),style:{visibility:r?"visible":"hidden"}},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function Rf({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:i,toggled:o,title:a,drag:s,filterEnabled:l,from:c}){const[d,f]=p.useState(!1),h=p.useRef(null);p.useEffect(()=>{var m,g;d?(m=h.current)===null||m===void 0||m.focus():(g=h.current)===null||g===void 0||g.blur()},[d]);const k=bt(({offset:[m,g],first:y,last:x})=>{t({x:m,y:g}),y&&n({x:m,y:g}),x&&r({x:m,y:g})},{filterTaps:!0,from:({offset:[m,g]})=>[(c==null?void 0:c.x)||m,(c==null?void 0:c.y)||g]});return p.useEffect(()=>{const m=g=>{g.key==="L"&&g.shiftKey&&g.metaKey&&f(y=>!y)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),v.createElement(v.Fragment,null,v.createElement(Gf,{mode:s?"drag":void 0},v.createElement(nn,{active:!o,onClick:()=>i()},v.createElement(fi,{toggled:o,width:12,height:8})),v.createElement(Tf,_1({},s?k():{},{drag:s,filterEnabled:l}),a===void 0&&s?v.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},v.createElement("circle",{cx:"2",cy:"2",r:"2"}),v.createElement("circle",{cx:"14",cy:"2",r:"2"}),v.createElement("circle",{cx:"26",cy:"2",r:"2"}),v.createElement("circle",{cx:"2",cy:"12",r:"2"}),v.createElement("circle",{cx:"14",cy:"12",r:"2"}),v.createElement("circle",{cx:"26",cy:"12",r:"2"})):a),l&&v.createElement(nn,{active:d,onClick:()=>f(m=>!m)},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},v.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),v.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),v.createElement(Pf,{toggled:d},v.createElement(Lf,{ref:h,setFilter:e,toggle:i})))}const Ff=["store","hidden","theme","collapsed"];function Of(e){let{store:t,hidden:n=!1,theme:r,collapsed:i=!1}=e,o=h1(e,Ff);const a=$2(()=>o9(r),[r]),[s,l]=p.useState(!i),c=typeof i=="object"?!i.collapsed:s,d=p.useMemo(()=>typeof i=="object"?f=>{typeof f=="function"?i.onChange(!f(!i.collapsed)):i.onChange(!f)}:l,[i]);return!t||n?null:v.createElement(ci.Provider,{value:a},v.createElement(If,_1({store:t},o,{toggled:c,setToggle:d,rootClass:a.className})))}const If=v.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:i=!1,oneLineLabels:o=!1,titleBar:a={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:s=!1,toggled:l,setToggle:c})=>{var d,f;const h=xd(e),[k,m]=p.useState(""),g=p.useMemo(()=>hf(h,k),[h,k]),[y,x]=r2(),C=i||h.length>0,b=typeof a=="object"&&a.title||void 0,S=typeof a=="object"&&(d=a.drag)!==null&&d!==void 0?d:!0,w=typeof a=="object"&&(f=a.filter)!==null&&f!==void 0?f:!0,E=typeof a=="object"&&a.position||void 0,_=typeof a=="object"&&a.onDrag||void 0,V=typeof a=="object"&&a.onDragStart||void 0,P=typeof a=="object"&&a.onDragEnd||void 0;return v.useEffect(()=>{x({x:E==null?void 0:E.x,y:E==null?void 0:E.y})},[E,x]),i9(),v.createElement(Ks.Provider,{value:{hideCopyButton:s}},v.createElement(jf,{ref:y,className:t,fill:n,flat:r,oneLineLabels:o,hideTitleBar:!a,style:{display:C?"block":"none"}},a&&v.createElement(Rf,{onDrag:$=>{x($),_==null||_($)},onDragStart:$=>V==null?void 0:V($),onDragEnd:$=>P==null?void 0:P($),setFilter:m,toggle:$=>c(T=>$??!T),toggled:l,title:b,drag:S,filterEnabled:w,from:E}),C&&v.createElement(Ws.Provider,{value:e},v.createElement(F2,{isRoot:!0,fill:n,flat:r,tree:g,toggled:l}))))}),Hf=["isRoot"];let rn=!1,i0=null;function I2(e){let{isRoot:t=!1}=e,n=h1(e,Hf);return p.useEffect(()=>(rn=!0,!t&&i0&&(i0.remove(),i0=null),()=>{t||(rn=!1)}),[t]),v.createElement(Of,_1({store:L2},n))}function Nf(e){p.useEffect(()=>{e&&!rn&&(i0||(i0=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(i0),Y8(v.createElement(I2,{isRoot:!0}),i0))),rn=!0)},[e])}function zf(e,t,n,r,i){let o,a,s,l,c;return typeof e=="string"?(a=e,o=t,Array.isArray(n)?c=n:n&&("store"in n?(l=n,c=r):(s=n,Array.isArray(r)?c=r:(l=r,c=i)))):(o=e,Array.isArray(t)?c=t:(l=t,c=n)),{schema:o,folderName:a,folderSettings:s,hookSettings:l,deps:c||[]}}function Bg(e,t,n,r,i){const{folderName:o,schema:a,folderSettings:s,hookSettings:l,deps:c}=zf(e,t,n,r,i),d=typeof a=="function",f=p.useRef(!1),h=p.useRef(!0),k=$2(()=>{f.current=!0;const T=typeof a=="function"?a():a;return o?{[o]:ff(T,s)}:T},c),m=!(l!=null&&l.store);Nf(m);const[g]=p.useState(()=>(l==null?void 0:l.store)||L2),[y,x]=p.useMemo(()=>g.getDataFromSchema(k),[g,k]),[C,b,S,w,E]=p.useMemo(()=>{const T=[],D=[],O={},M={},R={};return Object.values(x).forEach(({path:F,onChange:H,onEditStart:Z,onEditEnd:q,transient:i1})=>{T.push(F),H?(O[F]=H,i1||D.push(F)):D.push(F),Z&&(M[F]=Z),q&&(R[F]=q)}),[T,D,O,M,R]},[x]),_=p.useMemo(()=>g.orderPaths(C),[C,g]),V=kd(g,b,y),P=p.useCallback(T=>{const D=Object.entries(T).reduce((O,[M,R])=>Object.assign(O,{[x[M].path]:R}),{});g.set(D,!1)},[g,x]),$=p.useCallback(T=>g.get(x[T].path),[g,x]);return p.useEffect(()=>{const T=!h.current&&f.current;return g.addData(y,T),h.current=!1,f.current=!1,()=>g.disposePaths(_)},[g,_,y]),p.useEffect(()=>{const T=[];return Object.entries(S).forEach(([D,O])=>{O(g.get(D),D,r1({initial:!0,get:g.get},g.getInput(D)));const M=g.useStore.subscribe(R=>{const F=R.data[D];return[F.disabled?void 0:F.value,F]},([R,F])=>O(R,D,r1({initial:!1,get:g.get},F)),{equalityFn:kt});T.push(M)}),()=>T.forEach(D=>D())},[g,S]),p.useEffect(()=>{const T=[];return Object.entries(w).forEach(([D,O])=>T.push(g.subscribeToEditStart(D,O))),Object.entries(E).forEach(([D,O])=>T.push(g.subscribeToEditEnd(D,O))),()=>T.forEach(D=>D())},[w,E,g]),d?[V,P,$]:V}Ie(ge.SELECT,H9);Ie(ge.IMAGE,Yd);Ie(ge.NUMBER,j9);Ie(ge.COLOR,Vd);Ie(ge.STRING,X9);Ie(ge.BOOLEAN,i7);Ie(ge.INTERVAL,af);Ie(ge.VECTOR3D,Bd);Ie(ge.VECTOR2D,Rd);var Et=e=>e.type==="checkbox",A0=e=>e instanceof Date,I1=e=>e==null;const H2=e=>typeof e=="object";var V1=e=>!I1(e)&&!Array.isArray(e)&&H2(e)&&!A0(e),N2=e=>V1(e)&&e.target?Et(e.target)?e.target.checked:e.target.value:e,Uf=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,z2=(e,t)=>e.has(Uf(t)),Zf=e=>{const t=e.constructor&&e.constructor.prototype;return V1(t)&&t.hasOwnProperty("isPrototypeOf")},bi=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function j1(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(bi&&(e instanceof Blob||e instanceof FileList))&&(n||V1(e)))if(t=n?[]:{},!n&&!Zf(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=j1(e[r]));else return e;return t}var N0=e=>Array.isArray(e)?e.filter(Boolean):[],C1=e=>e===void 0,z=(e,t,n)=>{if(!t||!V1(e))return n;const r=N0(t.split(/[,[\].]+?/)).reduce((i,o)=>I1(i)?i:i[o],e);return C1(r)||r===e?C1(e[t])?n:e[t]:r},de=e=>typeof e=="boolean";const on={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},he={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},De={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},U2=v.createContext(null),_n=()=>v.useContext(U2),Wf=e=>{const{children:t,...n}=e;return v.createElement(U2.Provider,{value:n},t)};var Z2=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==he.all&&(t._proxyFormState[a]=!r||he.all),n&&(n[a]=!0),e[a]}});return i},ne=e=>V1(e)&&!Object.keys(e).length,W2=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ne(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||he.all))},ie=e=>Array.isArray(e)?e:[e],K2=(e,t,n)=>!e||!t||e===t||ie(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function An(e){const t=v.useRef(e);t.current=e,v.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Kf(e){const t=_n(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=v.useState(n._formState),l=v.useRef(!0),c=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=v.useRef(i);return d.current=i,An({disabled:r,next:f=>l.current&&K2(d.current,f.name,o)&&W2(f,c.current,n._updateFormState)&&s({...n._formState,...f}),subject:n._subjects.state}),v.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Z2(a,n,c.current,!1)}var ve=e=>typeof e=="string",q2=(e,t,n,r,i)=>ve(e)?(r&&t.watch.add(e),z(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),z(n,o))):(r&&(t.watchAll=!0),n);function qf(e){const t=_n(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=v.useRef(r);s.current=r,An({disabled:o,subject:n._subjects.values,next:d=>{K2(s.current,d.name,a)&&c(j1(q2(s.current,n._names,d.values||n._formValues,!1,i)))}});const[l,c]=v.useState(n._getWatch(r,i));return v.useEffect(()=>n._removeUnmounted()),l}var vi=e=>/^\w*$/.test(e),Y2=e=>N0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),p1=(e,t,n)=>{let r=-1;const i=vi(t)?[t]:Y2(t),o=i.length,a=o-1;for(;++r{const d=i._options.shouldUnregister||o,f=(h,k)=>{const m=z(i._fields,h);m&&(m._f.mount=k)};if(f(n,!0),d){const h=j1(z(i._options.defaultValues,n));p1(i._defaultValues,n,h),C1(z(i._formValues,n))&&p1(i._formValues,n,h)}return()=>{(a?d&&!i._state.action:d)?i.unregister(n):f(n,!1)}},[n,i,a,o]),v.useEffect(()=>{z(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:z(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...de(r)||de(l.disabled)?{disabled:l.disabled||r}:{},onChange:v.useCallback(d=>c.current.onChange({target:{value:N2(d),name:n},type:on.CHANGE}),[n]),onBlur:v.useCallback(()=>c.current.onBlur({target:{value:z(i._formValues,n),name:n},type:on.BLUR}),[n,i]),ref:d=>{const f=z(i._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:h=>d.setCustomValidity(h),reportValidity:()=>d.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!z(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!z(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!z(l.touchedFields,n)},error:{enumerable:!0,get:()=>z(l.errors,n)}})}}const $g=e=>e.render(Yf(e));var Xf=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},He=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Zn=(e,t,n={})=>n.shouldFocus||C1(n.shouldFocus)?n.focusName||`${e}.${C1(n.focusIndex)?t:n.focusIndex}.`:"",Ir=e=>({isOnSubmit:!e||e===he.onSubmit,isOnBlur:e===he.onBlur,isOnChange:e===he.onChange,isOnAll:e===he.all,isOnTouch:e===he.onTouched}),Hr=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const B0=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=z(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;B0(s,t)}else V1(s)&&B0(s,t)}}};var X2=(e,t,n)=>{const r=N0(z(e,n));return p1(r,"root",t[n]),p1(e,n,r),e},wi=e=>e.type==="file",Ue=e=>typeof e=="function",an=e=>{if(!bi)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Lt=e=>ve(e),Ei=e=>e.type==="radio",sn=e=>e instanceof RegExp;const ka={value:!1,isValid:!1},ga={value:!0,isValid:!0};var Q2=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!C1(e[0].attributes.value)?C1(e[0].value)||e[0].value===""?ga:{value:e[0].value,isValid:!0}:ga:ka}return ka};const Ca={isValid:!1,value:null};var J2=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Ca):Ca;function ya(e,t,n="validate"){if(Lt(e)||Array.isArray(e)&&e.every(Lt)||de(e)&&!e)return{type:n,message:Lt(e)?e:"",ref:t}}var v0=e=>V1(e)&&!sn(e)?e:{value:e,message:""},Nr=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:c,min:d,max:f,pattern:h,validate:k,name:m,valueAsNumber:g,mount:y,disabled:x}=e._f,C=z(t,m);if(!y||x)return{};const b=a?a[0]:o,S=D=>{r&&b.reportValidity&&(b.setCustomValidity(de(D)?"":D||""),b.reportValidity())},w={},E=Ei(o),_=Et(o),V=E||_,P=(g||wi(o))&&C1(o.value)&&C1(C)||an(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,$=Xf.bind(null,m,n,w),T=(D,O,M,R=De.maxLength,F=De.minLength)=>{const H=D?O:M;w[m]={type:D?R:F,message:H,ref:o,...$(D?R:F,H)}};if(i?!Array.isArray(C)||!C.length:s&&(!V&&(P||I1(C))||de(C)&&!C||_&&!Q2(a).isValid||E&&!J2(a).isValid)){const{value:D,message:O}=Lt(s)?{value:!!s,message:s}:v0(s);if(D&&(w[m]={type:De.required,message:O,ref:b,...$(De.required,O)},!n))return S(O),w}if(!P&&(!I1(d)||!I1(f))){let D,O;const M=v0(f),R=v0(d);if(!I1(C)&&!isNaN(C)){const F=o.valueAsNumber||C&&+C;I1(M.value)||(D=F>M.value),I1(R.value)||(O=Fnew Date(new Date().toDateString()+" "+i1),Z=o.type=="time",q=o.type=="week";ve(M.value)&&C&&(D=Z?H(C)>H(M.value):q?C>M.value:F>new Date(M.value)),ve(R.value)&&C&&(O=Z?H(C)+D.value,R=!I1(O.value)&&C.length<+O.value;if((M||R)&&(T(M,D.message,O.message),!n))return S(w[m].message),w}if(h&&!P&&ve(C)){const{value:D,message:O}=v0(h);if(sn(D)&&!C.match(D)&&(w[m]={type:De.pattern,message:O,ref:o,...$(De.pattern,O)},!n))return S(O),w}if(k){if(Ue(k)){const D=await k(C,t),O=ya(D,b);if(O&&(w[m]={...O,...$(De.validate,O.message)},!n))return S(O.message),w}else if(V1(k)){let D={};for(const O in k){if(!ne(D)&&!n)break;const M=ya(await k[O](C,t),b,O);M&&(D={...M,...$(O,M.message)},S(M.message),n&&(w[m]=D))}if(!ne(D)&&(w[m]={ref:b,...D},!n))return w}}return S(!0),w},Wn=(e,t)=>[...e,...ie(t)],Kn=e=>Array.isArray(e)?e.map(()=>{}):void 0;function qn(e,t,n){return[...e.slice(0,t),...ie(n),...e.slice(t)]}var Yn=(e,t,n)=>Array.isArray(e)?(C1(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Xn=(e,t)=>[...ie(t),...ie(e)];function Qf(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return N0(r).length?r:[]}var Qn=(e,t)=>C1(t)?[]:Qf(e,ie(t).sort((n,r)=>n-r)),Jn=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function Jf(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e);function jg(e){const t=_n(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:o}=e,[a,s]=v.useState(n._getFieldArray(r)),l=v.useRef(n._getFieldArray(r).map(He)),c=v.useRef(a),d=v.useRef(r),f=v.useRef(!1);d.current=r,c.current=a,n._names.array.add(r),e.rules&&n.register(r,e.rules),An({next:({values:w,name:E})=>{if(E===d.current||!E){const _=z(w,d.current);Array.isArray(_)&&(s(_),l.current=_.map(He))}},subject:n._subjects.array});const h=v.useCallback(w=>{f.current=!0,n._updateFieldArray(r,w)},[n,r]),k=(w,E)=>{const _=ie(j1(w)),V=Wn(n._getFieldArray(r),_);n._names.focus=Zn(r,V.length-1,E),l.current=Wn(l.current,_.map(He)),h(V),s(V),n._updateFieldArray(r,V,Wn,{argA:Kn(w)})},m=(w,E)=>{const _=ie(j1(w)),V=Xn(n._getFieldArray(r),_);n._names.focus=Zn(r,0,E),l.current=Xn(l.current,_.map(He)),h(V),s(V),n._updateFieldArray(r,V,Xn,{argA:Kn(w)})},g=w=>{const E=Qn(n._getFieldArray(r),w);l.current=Qn(l.current,w),h(E),s(E),n._updateFieldArray(r,E,Qn,{argA:w})},y=(w,E,_)=>{const V=ie(j1(E)),P=qn(n._getFieldArray(r),w,V);n._names.focus=Zn(r,w,_),l.current=qn(l.current,w,V.map(He)),h(P),s(P),n._updateFieldArray(r,P,qn,{argA:w,argB:Kn(E)})},x=(w,E)=>{const _=n._getFieldArray(r);Jn(_,w,E),Jn(l.current,w,E),h(_),s(_),n._updateFieldArray(r,_,Jn,{argA:w,argB:E},!1)},C=(w,E)=>{const _=n._getFieldArray(r);Yn(_,w,E),Yn(l.current,w,E),h(_),s(_),n._updateFieldArray(r,_,Yn,{argA:w,argB:E},!1)},b=(w,E)=>{const _=j1(E),V=ba(n._getFieldArray(r),w,_);l.current=[...V].map((P,$)=>!P||$===w?He():l.current[$]),h(V),s([...V]),n._updateFieldArray(r,V,ba,{argA:w,argB:_},!0,!1)},S=w=>{const E=ie(j1(w));l.current=E.map(He),h([...E]),s([...E]),n._updateFieldArray(r,[...E],_=>_,{},!0,!1)};return v.useEffect(()=>{if(n._state.action=!1,Hr(r,n._names)&&n._subjects.state.next({...n._formState}),f.current&&(!Ir(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(w=>{const E=z(w.errors,r),_=z(n._formState.errors,r);(_?!E&&_.type||E&&(_.type!==E.type||_.message!==E.message):E&&E.type)&&(E?p1(n._formState.errors,r,E):D1(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const w=z(n._fields,r);w&&w._f&&Nr(w,n._formValues,n._options.criteriaMode===he.all,n._options.shouldUseNativeValidation,!0).then(E=>!ne(E)&&n._subjects.state.next({errors:X2(n._formState.errors,E,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&B0(n._fields,(w,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&w.focus)return w.focus(),1}),n._names.focus="",n._updateValid(),f.current=!1},[a,r,n]),v.useEffect(()=>(!z(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||o)&&n.unregister(r)}),[r,n,i,o]),{swap:v.useCallback(x,[h,r,n]),move:v.useCallback(C,[h,r,n]),prepend:v.useCallback(m,[h,r,n]),append:v.useCallback(k,[h,r,n]),remove:v.useCallback(g,[h,r,n]),insert:v.useCallback(y,[h,r,n]),update:v.useCallback(b,[h,r,n]),replace:v.useCallback(S,[h,r,n]),fields:v.useMemo(()=>a.map((w,E)=>({...w,[i]:l.current[E]||He()})),[a,i])}}var er=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},ln=e=>I1(e)||!H2(e);function o0(e,t){if(ln(e)||ln(t))return e===t;if(A0(e)&&A0(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(A0(o)&&A0(a)||V1(o)&&V1(a)||Array.isArray(o)&&Array.isArray(a)?!o0(o,a):o!==a)return!1}}return!0}var e3=e=>e.type==="select-multiple",th=e=>Ei(e)||Et(e),tr=e=>an(e)&&e.isConnected,t3=e=>{for(const t in e)if(Ue(e[t]))return!0;return!1};function cn(e,t={}){const n=Array.isArray(e);if(V1(e)||n)for(const r in e)Array.isArray(e[r])||V1(e[r])&&!t3(e[r])?(t[r]=Array.isArray(e[r])?[]:{},cn(e[r],t[r])):I1(e[r])||(t[r]=!0);return t}function n3(e,t,n){const r=Array.isArray(e);if(V1(e)||r)for(const i in e)Array.isArray(e[i])||V1(e[i])&&!t3(e[i])?C1(t)||ln(n[i])?n[i]=Array.isArray(e[i])?cn(e[i],[]):{...cn(e[i])}:n3(e[i],I1(t)?{}:t[i],n[i]):n[i]=!o0(e[i],t[i]);return n}var nr=(e,t)=>n3(e,t,cn(t)),r3=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>C1(e)?e:t?e===""?NaN:e&&+e:n&&ve(e)?new Date(e):r?r(e):e;function rr(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return wi(t)?t.files:Ei(t)?J2(e.refs).value:e3(t)?[...t.selectedOptions].map(({value:n})=>n):Et(t)?Q2(e.refs).value:r3(C1(t.value)?e.ref.value:t.value,e)}var nh=(e,t,n,r)=>{const i={};for(const o of e){const a=z(t,o);a&&p1(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},q0=e=>C1(e)?e:sn(e)?e.source:V1(e)?sn(e.value)?e.value.source:e.value:e,rh=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function va(e,t,n){const r=z(e,n);if(r||vi(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=z(t,o),s=z(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var ih=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,oh=(e,t)=>!N0(z(e,t)).length&&D1(e,t);const ah={mode:he.onSubmit,reValidateMode:he.onChange,shouldFocusError:!0};function sh(e={},t){let n={...ah,...e},r={submitCount:0,isDirty:!1,isLoading:Ue(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},i={},o=V1(n.defaultValues)||V1(n.values)?j1(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:j1(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:er(),array:er(),state:er()},k=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Ir(n.mode),g=Ir(n.reValidateMode),y=n.criteriaMode===he.all,x=A=>B=>{clearTimeout(d),d=setTimeout(A,B)},C=async A=>{if(f.isValid||A){const B=n.resolver?ne((await $()).errors):await D(i,!0);B!==r.isValid&&h.state.next({isValid:B})}},b=A=>f.isValidating&&h.state.next({isValidating:A}),S=(A,B=[],L,j,G=!0,I=!0)=>{if(j&&L){if(s.action=!0,I&&Array.isArray(z(i,A))){const W=L(z(i,A),j.argA,j.argB);G&&p1(i,A,W)}if(I&&Array.isArray(z(r.errors,A))){const W=L(z(r.errors,A),j.argA,j.argB);G&&p1(r.errors,A,W),oh(r.errors,A)}if(f.touchedFields&&I&&Array.isArray(z(r.touchedFields,A))){const W=L(z(r.touchedFields,A),j.argA,j.argB);G&&p1(r.touchedFields,A,W)}f.dirtyFields&&(r.dirtyFields=nr(o,a)),h.state.next({name:A,isDirty:M(A,B),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else p1(a,A,B)},w=(A,B)=>{p1(r.errors,A,B),h.state.next({errors:r.errors})},E=A=>{r.errors=A,h.state.next({errors:r.errors,isValid:!1})},_=(A,B,L,j)=>{const G=z(i,A);if(G){const I=z(a,A,C1(L)?z(o,A):L);C1(I)||j&&j.defaultChecked||B?p1(a,A,B?I:rr(G._f)):H(A,I),s.mount&&C()}},V=(A,B,L,j,G)=>{let I=!1,W=!1;const a1={name:A},k1=!!(z(i,A)&&z(i,A)._f.disabled);if(!L||j){f.isDirty&&(W=r.isDirty,r.isDirty=a1.isDirty=M(),I=W!==a1.isDirty);const Y=k1||o0(z(o,A),B);W=!!(!k1&&z(r.dirtyFields,A)),Y||k1?D1(r.dirtyFields,A):p1(r.dirtyFields,A,!0),a1.dirtyFields=r.dirtyFields,I=I||f.dirtyFields&&W!==!Y}if(L){const Y=z(r.touchedFields,A);Y||(p1(r.touchedFields,A,L),a1.touchedFields=r.touchedFields,I=I||f.touchedFields&&Y!==L)}return I&&G&&h.state.next(a1),I?a1:{}},P=(A,B,L,j)=>{const G=z(r.errors,A),I=f.isValid&&de(B)&&r.isValid!==B;if(e.delayError&&L?(c=x(()=>w(A,L)),c(e.delayError)):(clearTimeout(d),c=null,L?p1(r.errors,A,L):D1(r.errors,A)),(L?!o0(G,L):G)||!ne(j)||I){const W={...j,...I&&de(B)?{isValid:B}:{},errors:r.errors,name:A};r={...r,...W},h.state.next(W)}b(!1)},$=async A=>n.resolver(a,n.context,nh(A||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),T=async A=>{const{errors:B}=await $(A);if(A)for(const L of A){const j=z(B,L);j?p1(r.errors,L,j):D1(r.errors,L)}else r.errors=B;return B},D=async(A,B,L={valid:!0})=>{for(const j in A){const G=A[j];if(G){const{_f:I,...W}=G;if(I){const a1=l.array.has(I.name),k1=await Nr(G,a,y,n.shouldUseNativeValidation&&!B,a1);if(k1[I.name]&&(L.valid=!1,B))break;!B&&(z(k1,I.name)?a1?X2(r.errors,k1,I.name):p1(r.errors,I.name,k1[I.name]):D1(r.errors,I.name))}W&&await D(W,B,L)}}return L.valid},O=()=>{for(const A of l.unMount){const B=z(i,A);B&&(B._f.refs?B._f.refs.every(L=>!tr(L)):!tr(B._f.ref))&&S1(A)}l.unMount=new Set},M=(A,B)=>(A&&B&&p1(a,A,B),!o0(J(),o)),R=(A,B,L)=>q2(A,l,{...s.mount?a:C1(B)?o:ve(A)?{[A]:B}:B},L,B),F=A=>N0(z(s.mount?a:o,A,e.shouldUnregister?z(o,A,[]):[])),H=(A,B,L={})=>{const j=z(i,A);let G=B;if(j){const I=j._f;I&&(!I.disabled&&p1(a,A,r3(B,I)),G=an(I.ref)&&I1(B)?"":B,e3(I.ref)?[...I.ref.options].forEach(W=>W.selected=G.includes(W.value)):I.refs?Et(I.ref)?I.refs.length>1?I.refs.forEach(W=>(!W.defaultChecked||!W.disabled)&&(W.checked=Array.isArray(G)?!!G.find(a1=>a1===W.value):G===W.value)):I.refs[0]&&(I.refs[0].checked=!!G):I.refs.forEach(W=>W.checked=W.value===G):wi(I.ref)?I.ref.value="":(I.ref.value=G,I.ref.type||h.values.next({name:A,values:{...a}})))}(L.shouldDirty||L.shouldTouch)&&V(A,G,L.shouldTouch,L.shouldDirty,!0),L.shouldValidate&&N(A)},Z=(A,B,L)=>{for(const j in B){const G=B[j],I=`${A}.${j}`,W=z(i,I);(l.array.has(A)||!ln(G)||W&&!W._f)&&!A0(G)?Z(I,G,L):H(I,G,L)}},q=(A,B,L={})=>{const j=z(i,A),G=l.array.has(A),I=j1(B);p1(a,A,I),G?(h.array.next({name:A,values:{...a}}),(f.isDirty||f.dirtyFields)&&L.shouldDirty&&h.state.next({name:A,dirtyFields:nr(o,a),isDirty:M(A,I)})):j&&!j._f&&!I1(I)?Z(A,I,L):H(A,I,L),Hr(A,l)&&h.state.next({...r}),h.values.next({name:A,values:{...a}}),!s.mount&&t()},i1=async A=>{const B=A.target;let L=B.name,j=!0;const G=z(i,L),I=()=>B.type?rr(G._f):N2(A),W=a1=>{j=Number.isNaN(a1)||a1===z(a,L,a1)};if(G){let a1,k1;const Y=I(),te=A.type===on.BLUR||A.type===on.FOCUS_OUT,e0=!rh(G._f)&&!n.resolver&&!z(r.errors,L)&&!G._f.deps||ih(te,z(r.touchedFields,L),r.isSubmitted,g,m),ye=Hr(L,l,te);p1(a,L,Y),te?(G._f.onBlur&&G._f.onBlur(A),c&&c(0)):G._f.onChange&&G._f.onChange(A);const Ae=V(L,Y,te,!1),z0=!ne(Ae)||ye;if(!te&&h.values.next({name:L,type:A.type,values:{...a}}),e0)return f.isValid&&C(),z0&&h.state.next({name:L,...ye?{}:Ae});if(!te&&ye&&h.state.next({...r}),b(!0),n.resolver){const{errors:x0}=await $([L]);if(W(Y),j){const U0=va(r.errors,i,L),k0=va(x0,i,U0.name||L);a1=k0.error,L=k0.name,k1=ne(x0)}}else a1=(await Nr(G,a,y,n.shouldUseNativeValidation))[L],W(Y),j&&(a1?k1=!1:f.isValid&&(k1=await D(i,!0)));j&&(G._f.deps&&N(G._f.deps),P(L,k1,a1,Ae))}},X=(A,B)=>{if(z(r.errors,B)&&A.focus)return A.focus(),1},N=async(A,B={})=>{let L,j;const G=ie(A);if(b(!0),n.resolver){const I=await T(C1(A)?A:G);L=ne(I),j=A?!G.some(W=>z(I,W)):L}else A?(j=(await Promise.all(G.map(async I=>{const W=z(i,I);return await D(W&&W._f?{[I]:W}:W)}))).every(Boolean),!(!j&&!r.isValid)&&C()):j=L=await D(i);return h.state.next({...!ve(A)||f.isValid&&L!==r.isValid?{}:{name:A},...n.resolver||!A?{isValid:L}:{},errors:r.errors,isValidating:!1}),B.shouldFocus&&!j&&B0(i,X,A?G:l.mount),j},J=A=>{const B={...o,...s.mount?a:{}};return C1(A)?B:ve(A)?z(B,A):A.map(L=>z(B,L))},e1=(A,B)=>({invalid:!!z((B||r).errors,A),isDirty:!!z((B||r).dirtyFields,A),isTouched:!!z((B||r).touchedFields,A),error:z((B||r).errors,A)}),n1=A=>{A&&ie(A).forEach(B=>D1(r.errors,B)),h.state.next({errors:A?r.errors:{}})},c1=(A,B,L)=>{const j=(z(i,A,{_f:{}})._f||{}).ref;p1(r.errors,A,{...B,ref:j}),h.state.next({name:A,errors:r.errors,isValid:!1}),L&&L.shouldFocus&&j&&j.focus&&j.focus()},b1=(A,B)=>Ue(A)?h.values.subscribe({next:L=>A(R(void 0,B),L)}):R(A,B,!0),S1=(A,B={})=>{for(const L of A?ie(A):l.mount)l.mount.delete(L),l.array.delete(L),B.keepValue||(D1(i,L),D1(a,L)),!B.keepError&&D1(r.errors,L),!B.keepDirty&&D1(r.dirtyFields,L),!B.keepTouched&&D1(r.touchedFields,L),!n.shouldUnregister&&!B.keepDefaultValue&&D1(o,L);h.values.next({values:{...a}}),h.state.next({...r,...B.keepDirty?{isDirty:M()}:{}}),!B.keepIsValid&&C()},x1=({disabled:A,name:B,field:L,fields:j,value:G})=>{if(de(A)){const I=A?void 0:C1(G)?rr(L?L._f:z(j,B)._f):G;p1(a,B,I),V(B,I,!1,!1,!0)}},$1=(A,B={})=>{let L=z(i,A);const j=de(B.disabled);return p1(i,A,{...L||{},_f:{...L&&L._f?L._f:{ref:{name:A}},name:A,mount:!0,...B}}),l.mount.add(A),L?x1({field:L,disabled:B.disabled,name:A,value:B.value}):_(A,!0,B.value),{...j?{disabled:B.disabled}:{},...n.progressive?{required:!!B.required,min:q0(B.min),max:q0(B.max),minLength:q0(B.minLength),maxLength:q0(B.maxLength),pattern:q0(B.pattern)}:{},name:A,onChange:i1,onBlur:i1,ref:G=>{if(G){$1(A,B),L=z(i,A);const I=C1(G.value)&&G.querySelectorAll&&G.querySelectorAll("input,select,textarea")[0]||G,W=th(I),a1=L._f.refs||[];if(W?a1.find(k1=>k1===I):I===L._f.ref)return;p1(i,A,{_f:{...L._f,...W?{refs:[...a1.filter(tr),I,...Array.isArray(z(o,A))?[{}]:[]],ref:{type:I.type,name:A}}:{ref:I}}}),_(A,!1,void 0,I)}else L=z(i,A,{}),L._f&&(L._f.mount=!1),(n.shouldUnregister||B.shouldUnregister)&&!(z2(l.array,A)&&s.action)&&l.unMount.add(A)}}},Q1=()=>n.shouldFocusError&&B0(i,X,l.mount),le=A=>{de(A)&&(h.state.next({disabled:A}),B0(i,(B,L)=>{let j=A;const G=z(i,L);G&&de(G._f.disabled)&&(j||(j=G._f.disabled)),B.disabled=j},0,!1))},o1=(A,B)=>async L=>{L&&(L.preventDefault&&L.preventDefault(),L.persist&&L.persist());let j=j1(a);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:G,values:I}=await $();r.errors=G,j=I}else await D(i);D1(r.errors,"root"),ne(r.errors)?(h.state.next({errors:{}}),await A(j,L)):(B&&await B({...r.errors},L),Q1(),setTimeout(Q1)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ne(r.errors),submitCount:r.submitCount+1,errors:r.errors})},u1=(A,B={})=>{z(i,A)&&(C1(B.defaultValue)?q(A,z(o,A)):(q(A,B.defaultValue),p1(o,A,B.defaultValue)),B.keepTouched||D1(r.touchedFields,A),B.keepDirty||(D1(r.dirtyFields,A),r.isDirty=B.defaultValue?M(A,z(o,A)):M()),B.keepError||(D1(r.errors,A),f.isValid&&C()),h.state.next({...r}))},d1=(A,B={})=>{const L=A?j1(A):o,j=j1(L),G=A&&!ne(A)?j:o;if(B.keepDefaultValues||(o=L),!B.keepValues){if(B.keepDirtyValues||k)for(const I of l.mount)z(r.dirtyFields,I)?p1(G,I,z(a,I)):q(I,z(G,I));else{if(bi&&C1(A))for(const I of l.mount){const W=z(i,I);if(W&&W._f){const a1=Array.isArray(W._f.refs)?W._f.refs[0]:W._f.ref;if(an(a1)){const k1=a1.closest("form");if(k1){k1.reset();break}}}}i={}}a=e.shouldUnregister?B.keepDefaultValues?j1(o):{}:j1(G),h.array.next({values:{...G}}),h.values.next({values:{...G}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!f.isValid||!!B.keepIsValid,s.watch=!!e.shouldUnregister,h.state.next({submitCount:B.keepSubmitCount?r.submitCount:0,isDirty:B.keepDirty?r.isDirty:!!(B.keepDefaultValues&&!o0(A,o)),isSubmitted:B.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:B.keepDirtyValues?r.dirtyFields:B.keepDefaultValues&&A?nr(o,A):{},touchedFields:B.keepTouched?r.touchedFields:{},errors:B.keepErrors?r.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},L1=(A,B)=>d1(Ue(A)?A(a):A,B);return{control:{register:$1,unregister:S1,getFieldState:e1,handleSubmit:o1,setError:c1,_executeSchema:$,_getWatch:R,_getDirty:M,_updateValid:C,_removeUnmounted:O,_updateFieldArray:S,_updateDisabledField:x1,_getFieldArray:F,_reset:d1,_resetDefaultValues:()=>Ue(n.defaultValues)&&n.defaultValues().then(A=>{L1(A,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:A=>{r={...r,...A}},_disableForm:le,_subjects:h,_proxyFormState:f,_setErrors:E,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(A){s=A},get _defaultValues(){return o},get _names(){return l},set _names(A){l=A},get _formState(){return r},set _formState(A){r=A},get _options(){return n},set _options(A){n={...n,...A}}},trigger:N,register:$1,handleSubmit:o1,watch:b1,setValue:q,getValues:J,reset:L1,resetField:u1,clearErrors:n1,unregister:S1,setError:c1,setFocus:(A,B={})=>{const L=z(i,A),j=L&&L._f;if(j){const G=j.refs?j.refs[0]:j.ref;G.focus&&(G.focus(),B.shouldSelect&&G.select())}},getFieldState:e1}}function lh(e={}){const t=v.useRef(),n=v.useRef(),[r,i]=v.useState({isDirty:!1,isValidating:!1,isLoading:Ue(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:Ue(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...sh(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,An({subject:o._subjects.state,next:a=>{W2(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),v.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),v.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),v.useEffect(()=>{e.values&&!o0(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),v.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),v.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Z2(r,o),t.current}const ch=T3` - html { - box-sizing: border-box; - } - *, *:before, *:after { - box-sizing: inherit; - } - html, body, div, span, applet, object, iframe, - h1, h2, h3, h4, h5, h6, p, blockquote, pre, - a, abbr, acronym, address, big, cite, code, - del, dfn, em, img, ins, kbd, q, s, samp, - small, strike, strong, sub, sup, tt, var, - b, u, i, center, - dl, dt, dd, ol, ul, li, - fieldset, form, label, legend, - table, caption, tbody, tfoot, thead, tr, th, td, - article, aside, canvas, details, embed, - figure, figcaption, footer, header, hgroup, - menu, nav, output, ruby, section, summary, - time, mark, audio, video { - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - -webkit-tap-highlight-color: transparent; - border: 0; - font-size: 100%; - margin: 0; - padding: 0; - text-rendering: optimizeLegibility; - vertical-align: baseline; - } - a { - cursor: pointer; - text-decoration: none; - } - body { - - &.no-scroll { - overflow: hidden; - } - } - blockquote, q { - quotes: none; - } - blockquote:before, blockquote:after, - q:before, q:after { - content: ''; - content: none; - } - table { - border-collapse: collapse; - border-spacing: 0; - } -`;function uh(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return uh(t.current,r)?t.current:t.current=r}}const i3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"bubble_chart",children:[u.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_42)",children:u.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),o3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"communities",children:[u.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_39)",children:u.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),a3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"grain",children:[u.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_45)",children:u.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),s3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"public",children:[u.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1551_36)",children:u.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function wa(e,t,n){var r,i=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var a,s=r.length,l,c=0,d=0,f=0;for(a=0;a=(l=(a+s)/2))?a=l:s=l,r=i,!(i=i[f=+d]))return r[f]=o,e;if(c=+e._x.call(null,i.data),t===c)return o.next=i,r?r[f]=o:e._root=o,e;do r=r?r[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(a+s)/2))?a=l:s=l;while((f=+d)==(h=+(c>=l)));return r[h]=i,r[f]=o,e}function ph(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let r=1/0,i=-1/0;for(let o=0,a;oi&&(i=a));if(r>i)return this;this.cover(r).cover(i);for(let o=0;oe||e>=n;)switch(a=+(ea||(o=c.x1)=f))&&(c=s[s.length-1],s[s.length-1]=s[s.length-1-d],s[s.length-1-d]=c)}else{var h=Math.abs(e-+this._x.call(null,l.data));h=(c=(a+s)/2))?a=c:s=c,t=n,!(n=n[f=+d]))return this;if(!n.length)break;t[f+1&1]&&(r=t,h=f)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[f]=o:delete t[f],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(r?r[h]=n:this._root=n),this):(this._root=o,this)}function yh(e){for(var t=0,n=e.length;t=(f=(s+c)/2))?s=f:c=f,(y=n>=(h=(l+d)/2))?l=h:d=h,i=o,!(o=o[x=y<<1|g]))return i[x]=a,e;if(k=+e._x.call(null,o.data),m=+e._y.call(null,o.data),t===k&&n===m)return a.next=o,i?i[x]=a:e._root=a,e;do i=i?i[x]=new Array(4):e._root=new Array(4),(g=t>=(f=(s+c)/2))?s=f:c=f,(y=n>=(h=(l+d)/2))?l=h:d=h;while((x=y<<1|g)===(C=(m>=h)<<1|k>=f));return i[C]=o,i[x]=a,e}function Vh(e){var t,n,r=e.length,i,o,a=new Array(r),s=new Array(r),l=1/0,c=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=i),of&&(f=o));if(l>d||c>f)return this;for(this.cover(l,c).cover(d,f),n=0;ne||e>=i||r>t||t>=o;)switch(c=(td||(s=m.y0)>f||(l=m.x1)=x)<<1|e>=y)&&(m=h[h.length-1],h[h.length-1]=h[h.length-1-g],h[h.length-1-g]=m)}else{var C=e-+this._x.call(null,k.data),b=t-+this._y.call(null,k.data),S=C*C+b*b;if(S=(h=(a+l)/2))?a=h:l=h,(g=f>=(k=(s+c)/2))?s=k:c=k,t=n,!(n=n[y=g<<1|m]))return this;if(!n.length)break;(t[y+1&3]||t[y+2&3]||t[y+3&3])&&(r=t,x=y)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[y]=o:delete t[y],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[x]=n:this._root=n),this):(this._root=o,this)}function Ph(e){for(var t=0,n=e.length;t=(m=(l+f)/2))?l=m:f=m,(w=n>=(g=(c+h)/2))?c=g:h=g,(E=r>=(y=(d+k)/2))?d=y:k=y,o=a,!(a=a[_=E<<2|w<<1|S]))return o[_]=s,e;if(x=+e._x.call(null,a.data),C=+e._y.call(null,a.data),b=+e._z.call(null,a.data),t===x&&n===C&&r===b)return s.next=a,o?o[_]=s:e._root=s,e;do o=o?o[_]=new Array(8):e._root=new Array(8),(S=t>=(m=(l+f)/2))?l=m:f=m,(w=n>=(g=(c+h)/2))?c=g:h=g,(E=r>=(y=(d+k)/2))?d=y:k=y;while((_=E<<2|w<<1|S)===(V=(b>=y)<<2|(C>=g)<<1|x>=m));return o[V]=a,o[_]=s,e}function zh(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),r=new Float64Array(t),i=new Float64Array(t);let o=1/0,a=1/0,s=1/0,l=-1/0,c=-1/0,d=-1/0;for(let f=0,h,k,m,g;fl&&(l=k),mc&&(c=m),gd&&(d=g));if(o>l||a>c||s>d)return this;this.cover(o,a,s).cover(l,c,d);for(let f=0;fe||e>=a||i>t||t>=s||o>n||n>=l;)switch(h=(nm||(c=b.y0)>g||(d=b.z0)>y||(f=b.x1)=_)<<2|(t>=E)<<1|e>=w)&&(b=x[x.length-1],x[x.length-1]=x[x.length-1-S],x[x.length-1-S]=b)}else{var V=e-+this._x.call(null,C.data),P=t-+this._y.call(null,C.data),$=n-+this._z.call(null,C.data),T=V*V+P*P+$*$;if(T=(g=(a+c)/2))?a=g:c=g,(b=k>=(y=(s+d)/2))?s=y:d=y,(S=m>=(x=(l+f)/2))?l=x:f=x,t=n,!(n=n[w=S<<2|b<<1|C]))return this;if(!n.length)break;(t[w+1&7]||t[w+2&7]||t[w+3&7]||t[w+4&7]||t[w+5&7]||t[w+6&7]||t[w+7&7])&&(r=t,E=w)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[E]=n:this._root=n),this):(this._root=o,this)}function Yh(e){for(var t=0,n=e.length;t1&&(g=k.y+k.vy),n>2&&(y=k.z+k.vz),h.visit(S);function S(w,E,_,V,P,$,T){var D=[E,_,V,P,$,T],O=D[0],M=D[1],R=D[2],F=D[n],H=D[n+1],Z=D[n+2],q=w.data,i1=w.r,X=x+i1;if(q){if(q.index>k.index){var N=m-q.x-q.vx,J=n>1?g-q.y-q.vy:0,e1=n>2?y-q.z-q.vz:0,n1=N*N+J*J+e1*e1;n11&&J===0&&(J=fe(i),n1+=J*J),n>2&&e1===0&&(e1=fe(i),n1+=e1*e1),n1=(X-(n1=Math.sqrt(n1)))/n1*o,k.vx+=(N*=n1)*(X=(i1*=i1)/(C+i1)),n>1&&(k.vy+=(J*=n1)*X),n>2&&(k.vz+=(e1*=n1)*X),q.vx-=N*(X=1-X),n>1&&(q.vy-=J*X),n>2&&(q.vz-=e1*X))}return}return O>m+X||F1&&(M>g+X||H2&&(R>y+X||Zd.r&&(d.r=d[f].r)}function c(){if(t){var d,f=t.length,h;for(r=new Array(f),d=0;dtypeof h=="function")||Math.random,n=f.find(h=>[1,2,3].includes(h))||2,c()},s.iterations=function(d){return arguments.length?(a=+d,s):a},s.strength=function(d){return arguments.length?(o=+d,s):o},s.radius=function(d){return arguments.length?(e=typeof d=="function"?d:U1(+d),c(),s):e},s}function lp(e){return e.index}function Va(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function cp(e){var t=lp,n=h,r,i=U1(30),o,a,s,l,c,d,f=1;e==null&&(e=[]);function h(x){return 1/Math.min(l[x.source.index],l[x.target.index])}function k(x){for(var C=0,b=e.length;C1&&(P=_.y+_.vy-E.y-E.vy||fe(d)),s>2&&($=_.z+_.vz-E.z-E.vz||fe(d)),T=Math.sqrt(V*V+P*P+$*$),T=(T-o[S])/T*x*r[S],V*=T,P*=T,$*=T,_.vx-=V*(D=c[S]),s>1&&(_.vy-=P*D),s>2&&(_.vz-=$*D),E.vx+=V*(D=1-D),s>1&&(E.vy+=P*D),s>2&&(E.vz+=$*D)}function m(){if(a){var x,C=a.length,b=e.length,S=new Map(a.map((E,_)=>[t(E,_,a),E])),w;for(x=0,l=new Array(C);xtypeof b=="function")||Math.random,s=C.find(b=>[1,2,3].includes(b))||2,m()},k.links=function(x){return arguments.length?(e=x,m(),k):e},k.id=function(x){return arguments.length?(t=x,k):t},k.iterations=function(x){return arguments.length?(f=+x,k):f},k.strength=function(x){return arguments.length?(n=typeof x=="function"?x:U1(+x),g(),k):n},k.distance=function(x){return arguments.length?(i=typeof x=="function"?x:U1(+x),y(),k):i},k}var up={value:()=>{}};function d3(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Rt.prototype=d3.prototype={constructor:Rt,on:function(e,t){var n=this._,r=dp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&e._call.call(void 0,t),e=e._next;--P0}function Ba(){d0=(dn=ht.now())+Vn,P0=et=0;try{pp()}finally{P0=0,xp(),d0=0}}function mp(){var e=ht.now(),t=e-dn;t>f3&&(Vn-=t,dn=e)}function xp(){for(var e,t=un,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:un=n);tt=e,Ur(r)}function Ur(e){if(!P0){et&&(et=clearTimeout(et));var t=e-d0;t>24?(e<1/0&&(et=setTimeout(Ba,e-ht.now()-Vn)),Y0&&(Y0=clearInterval(Y0))):(Y0||(dn=ht.now(),Y0=setInterval(mp,f3)),P0=1,h3(Ba))}}const kp=1664525,gp=1013904223,$a=4294967296;function Cp(){let e=1;return()=>(e=(kp*e+gp)%$a)/$a}var ja=3;function ar(e){return e.x}function Ga(e){return e.y}function yp(e){return e.z}var bp=10,vp=Math.PI*(3-Math.sqrt(5)),wp=Math.PI*20/(9+Math.sqrt(221));function Ep(e,t){t=t||2;var n=Math.min(ja,Math.max(1,Math.round(t))),r,i=1,o=.001,a=1-Math.pow(o,1/300),s=0,l=.6,c=new Map,d=m3(k),f=d3("tick","end"),h=Cp();e==null&&(e=[]);function k(){m(),f.call("tick",r),i1&&(S.fy==null?S.y+=S.vy*=l:(S.y=S.fy,S.vy=0)),n>2&&(S.fz==null?S.z+=S.vz*=l:(S.z=S.fz,S.vz=0));return r}function g(){for(var x=0,C=e.length,b;x1&&isNaN(b.y)||n>2&&isNaN(b.z)){var S=bp*(n>2?Math.cbrt(.5+x):n>1?Math.sqrt(.5+x):x),w=x*vp,E=x*wp;n===1?b.x=S:n===2?(b.x=S*Math.cos(w),b.y=S*Math.sin(w)):(b.x=S*Math.sin(w)*Math.cos(E),b.y=S*Math.cos(w),b.z=S*Math.sin(w)*Math.sin(E))}(isNaN(b.vx)||n>1&&isNaN(b.vy)||n>2&&isNaN(b.vz))&&(b.vx=0,n>1&&(b.vy=0),n>2&&(b.vz=0))}}function y(x){return x.initialize&&x.initialize(e,h,n),x}return g(),r={tick:m,restart:function(){return d.restart(k),r},stop:function(){return d.stop(),r},numDimensions:function(x){return arguments.length?(n=Math.min(ja,Math.max(1,Math.round(x))),c.forEach(y),r):n},nodes:function(x){return arguments.length?(e=x,g(),c.forEach(y),r):e},alpha:function(x){return arguments.length?(i=+x,r):i},alphaMin:function(x){return arguments.length?(o=+x,r):o},alphaDecay:function(x){return arguments.length?(a=+x,r):+a},alphaTarget:function(x){return arguments.length?(s=+x,r):s},velocityDecay:function(x){return arguments.length?(l=1-x,r):1-l},randomSource:function(x){return arguments.length?(h=x,c.forEach(y),r):h},force:function(x,C){return arguments.length>1?(C==null?c.delete(x):c.set(x,y(C)),r):c.get(x)},find:function(){var x=Array.prototype.slice.call(arguments),C=x.shift()||0,b=(n>1?x.shift():null)||0,S=(n>2?x.shift():null)||0,w=x.shift()||1/0,E=0,_=e.length,V,P,$,T,D,O;for(w*=w,E=0;E<_;++E)D=e[E],V=C-D.x,P=b-(D.y||0),$=S-(D.z||0),T=V*V+P*P+$*$,T1?(f.on(x,C),r):f.on(x)}}}function Sp(){var e,t,n,r,i,o=U1(-30),a,s=1,l=1/0,c=.81;function d(m){var g,y=e.length,x=(t===1?Si(e,ar):t===2?Ai(e,ar,Ga):t===3?Di(e,ar,Ga,yp):null).visitAfter(h);for(i=m,g=0;g1&&(m.y=S/C),t>2&&(m.z=w/C)}else{y=m,y.x=y.data.x,t>1&&(y.y=y.data.y),t>2&&(y.z=y.data.z);do g+=a[y.data.index];while(y=y.next)}m.value=g}function k(m,g,y,x,C){if(!m.value)return!0;var b=[y,x,C][t-1],S=m.x-n.x,w=t>1?m.y-n.y:0,E=t>2?m.z-n.z:0,_=b-g,V=S*S+w*w+E*E;if(_*_/c1&&w===0&&(w=fe(r),V+=w*w),t>2&&E===0&&(E=fe(r),V+=E*E),V1&&(n.vy+=w*m.value*i/V),t>2&&(n.vz+=E*m.value*i/V)),!0;if(m.length||V>=l)return;(m.data!==n||m.next)&&(S===0&&(S=fe(r),V+=S*S),t>1&&w===0&&(w=fe(r),V+=w*w),t>2&&E===0&&(E=fe(r),V+=E*E),V1&&(n.vy+=w*_),t>2&&(n.vz+=E*_));while(m=m.next)}return d.initialize=function(m,...g){e=m,r=g.find(y=>typeof y=="function")||Math.random,t=g.find(y=>[1,2,3].includes(y))||2,f()},d.strength=function(m){return arguments.length?(o=typeof m=="function"?m:U1(+m),f(),d):o},d.distanceMin=function(m){return arguments.length?(s=m*m,d):Math.sqrt(s)},d.distanceMax=function(m){return arguments.length?(l=m*m,d):Math.sqrt(l)},d.theta=function(m){return arguments.length?(c=m*m,d):Math.sqrt(c)},d}function Pa(e,t,n,r){var i,o,a=U1(.1),s,l;typeof e!="function"&&(e=U1(+e)),t==null&&(t=0),n==null&&(n=0),r==null&&(r=0);function c(f){for(var h=0,k=i.length;h1&&(m.vy+=y*b),o>2&&(m.vz+=x*b)}}function d(){if(i){var f,h=i.length;for(s=new Array(h),l=new Array(h),f=0;f[1,2,3].includes(k))||2,d()},c.strength=function(f){return arguments.length?(a=typeof f=="function"?f:U1(+f),d(),c):a},c.radius=function(f){return arguments.length?(e=typeof f=="function"?f:U1(+f),d(),c):e},c.x=function(f){return arguments.length?(t=+f,c):t},c.y=function(f){return arguments.length?(n=+f,c):n},c.z=function(f){return arguments.length?(r=+f,c):r},c}function _p(e){var t=U1(.1),n,r,i;typeof e!="function"&&(e=U1(e==null?0:+e));function o(s){for(var l=0,c=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},Vp=["sphere","force","split","earth"],Dp={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:Ap,isHovering:!1},m0=mn()((e,t)=>({...Dp,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setGraphStyle:n=>e({graphStyle:n}),setHoveredNode:n=>{e({hoveredNode:n})},setSelectedNode:n=>{const{selectedNode:r,simulation:i}=t();if((r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)){const o=i.nodes().find(a=>a.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:o,disableCameraRotation:!0})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const r=t().nearbyNodeIds;(n.length!==r.length||n[0]!==r[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,r,i)=>{const o=structuredClone(n),a=structuredClone(r),{simulation:s,simulationHelpers:l}=t();s.stop();const c=i?[]:s.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=i?[]:s.force("link").links();c.push(...o),d.push(...a);try{s.nodes(c);const f=d.filter(h=>{const{target:k,source:m}=h,g=s.nodes(),y=(k==null?void 0:k.ref_id)||k,x=(m==null?void 0:m.ref_id)||m;return g.some(C=>C.ref_id===y)&&g.some(C=>C.ref_id===x)});s.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.log(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...sr}))).force("y",null).force("radial",Pa(200,0,0,0).strength(.1)).force("center",wa().strength(1)).force("collide",or().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(r=>({...r,...sr}))).force("y",null).force("charge",Sp().strength(-20)).force("center",wa().strength(1)).force("collide",or().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:r}=Je.getState();n.stop().nodes(n.nodes().map(i=>({...i,...sr}))).force("radial",Pa(200,0,0,0).strength(.1)).force("collide",or().radius(()=>250).strength(1).iterations(1)).force("y",_p().y(i=>{const o=r.indexOf(i.node_type),a=Math.floor(o/2)*400;return o%2===0?a:-a}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:r}=t();n==="split"&&r.addSplitForce(),n==="sphere"&&r.addRadialForce(),n==="force"&&r.addDefaultForce(),r.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,r)=>{console.log("created");const i=structuredClone(n),o=structuredClone(r),a=Ep([]).numDimensions(3).stop().nodes(i).force("link",cp().links(o).id(s=>s.ref_id));e({simulation:a})}})),x3=()=>m0(e=>e.selectedNode),Gg=()=>m0(e=>e.hoveredNode),$i=()=>m0(e=>e.setSelectedNode),Pg=()=>{const e=m0(i=>i.selectedNode);if(!e)return[];const{dataInitial:t}=Je.getState();return((t==null?void 0:t.links)||[]).reduce((i,o)=>(o.source===(e==null?void 0:e.ref_id)&&i.push(o.target),o.target===(e==null?void 0:e.ref_id)&&i.push(o.source),i),[])},Bp={split:u.jsx(a3,{}),force:u.jsx(o3,{}),sphere:u.jsx(i3,{}),earth:u.jsx(s3,{})},$p=()=>{const[e,t]=m0(fh(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return u.jsx(jp,{direction:"column",children:Vp.map(r=>u.jsx(s1,{className:L3("icon",{active:e===r}),onClick:()=>n(r),children:Bp[r]},r))})},jp=l1(s1).attrs({direction:"row",align:"center",justify:"space-between"})` - padding: 6px 6px 6px 11px; - background: ${t1.BG1}; - border-radius: 200px; - .icon { - color: ${t1.GRAY6}; - font-size: 20px; - cursor: pointer; - - &:hover { - color: ${t1.GRAY3}; - } - - &:active { - color: ${t1.white}; - } - - &.active { - color: ${t1.white}; - } - } - - .icon + .icon { - margin-left: 20px; - } -`,k3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"center",children:[u.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),u.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),u.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),Gp=()=>{const[e,t]=m0(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return u.jsx(Pp,{href:"",onClick:()=>t(!e),size:"medium",startIcon:u.jsx(k3,{})})},Pp=l1(ii)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - filter: brightness(0.65); - } - } -`,g3=l1.div` - position: relative; - display: inline-flex; - align-items: center; -`,Mp=l1.div` - visibility: hidden; - width: auto; - background-color: ${({backgroundColor:e})=>e||"white"}; - color: ${({color:e})=>e||"black"}; - text-align: ${({textAlign:e})=>e||"center"}; - min-width: ${({minWidth:e})=>e||"auto"}; - border-radius: ${({borderRadius:e})=>e||"4px"}; - padding: ${({padding:e})=>e||"5px 8px"}; - position: absolute; - z-index: 1; - ${({position:e})=>{switch(e){case"top":return"bottom: 100%; left: 50%; transform: translateX(-50%);";case"left":return"right: calc(100% + 6px); top: 50%; transform: translateY(-50%);";default:return"top: 100%; left: 50%; transform: translateX(-50%);"}}} - margin-top: ${({margin:e})=>e||"0px"}; - opacity: 0; - transition: opacity 0.3s; - white-space: ${({whiteSpace:e})=>e||"nowrap"}; - overflow: hidden; - text-overflow: ellipsis; - font-size: ${({fontSize:e})=>e||"12px"}; - font-weight: ${({fontWeight:e})=>e||"600"}; - - ${g3}:hover & { - visibility: visible; - opacity: 1; - } -`,fn=({content:e,children:t,margin:n,backgroundColor:r,color:i,padding:o,fontSize:a,fontWeight:s,borderRadius:l,minWidth:c,whiteSpace:d,position:f,textAlign:h})=>u.jsxs(g3,{children:[t,u.jsx(Mp,{backgroundColor:r,borderRadius:l,color:i,fontSize:a,fontWeight:s,margin:n,minWidth:c,padding:o,position:f,textAlign:h,whiteSpace:d,children:e})]}),Dn=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=press",children:u.jsx("path",{id:"close",d:"M16 17.2833L11.5083 21.775C11.3403 21.943 11.1264 22.0271 10.8667 22.0271C10.6069 22.0271 10.393 21.943 10.225 21.775C10.0569 21.6069 9.9729 21.393 9.9729 21.1333C9.9729 20.8736 10.0569 20.6597 10.225 20.4917L14.7167 16L10.225 11.5083C10.0569 11.3403 9.9729 11.1264 9.9729 10.8667C9.9729 10.6069 10.0569 10.393 10.225 10.225C10.393 10.0569 10.6069 9.9729 10.8667 9.9729C11.1264 9.9729 11.3403 10.0569 11.5083 10.225L16 14.7167L20.4917 10.225C20.6597 10.0569 20.8736 9.9729 21.1333 9.9729C21.393 9.9729 21.6069 10.0569 21.775 10.225C21.943 10.393 22.0271 10.6069 22.0271 10.8667C22.0271 11.1264 21.943 11.3403 21.775 11.5083L17.2833 16L21.775 20.4917C21.943 20.6597 22.0271 20.8736 22.0271 21.1333C22.0271 21.393 21.943 21.6069 21.775 21.775C21.6069 21.943 21.393 22.0271 21.1333 22.0271C20.8736 22.0271 20.6597 21.943 20.4917 21.775L16 17.2833Z",fill:"currentColor"})})}),Tp=()=>{const{resetData:e}=Je(t=>t);return u.jsx(fn,{content:"Clear Graph",fontSize:"13px",position:"left",children:u.jsx(Lp,{href:"",onClick:()=>e(),size:"medium",startIcon:u.jsx(Dn,{})})})},Lp=l1(ii)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - color: #fff; - filter: brightness(0.65); - } - } -`,C3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Pause Normal",children:u.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),y3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Play & Pause",children:u.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),Rp={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},b3=l1.div` - background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${Rp[t]||"generic"}_placeholder_img.png')`}; - background-size: cover; - background-position: center; - background-repeat: no-repeat; - width: ${({size:e=45})=>e}px; - height: ${({size:e=45})=>e}px; - border-radius: ${({rounded:e})=>e?"50%":"2px"}; -`,X0={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5},Fp=mn()(R3((e,t)=>({...X0,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({...X0});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({...X0,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:X0.duration,hasError:X0.hasError})}))),Op=()=>{var b,S,w,E;const e=p.useRef(null),[t,n]=p.useState(0),r=x3(),i=$i(),[o,a]=xn(_=>[_.sidebarIsOpen,_.setSidebarOpen]),[s,l,c,d,f,h]=Fp(_=>[_.isPlaying,_.setIsPlaying,_.playingTime,_.playingNode,_.miniPlayerIsVisible,_.setMiniPlayerIsVisible]),[k,m]=(b=d==null?void 0:d.properties)!=null&&b.timestamp?d.properties.timestamp.split("-").map(_=>el(_)):[0,0],g=(c-k)/(m-k)*100;p.useEffect(()=>{var P,$;const _=((P=e.current)==null?void 0:P.offsetWidth)||0,V=(($=e.current)==null?void 0:$.scrollWidth)||0;n(V-_)},[]);const y=_=>{h(!1),_.stopPropagation()},x=()=>{i(d),a(!0)},C=o&&(r==null?void 0:r.ref_id)!==(d==null?void 0:d.ref_id)||d&&!o;return f&&d&&C?u.jsxs(Ip,{onClick:x,children:[u.jsxs(Hp,{children:[u.jsx(b3,{src:((S=d==null?void 0:d.properties)==null?void 0:S.image_url)||"",type:d.node_type}),u.jsxs(Np,{children:[u.jsxs(Kp,{ref:e,children:[u.jsx(Wp,{className:"title",scrollValue:t,children:(w=d==null?void 0:d.properties)==null?void 0:w.episode_title}),u.jsx("div",{className:"subtitle",children:(E=d==null?void 0:d.properties)==null?void 0:E.show_title})]}),u.jsx(Up,{"data-testid":"play-pause-button",onClick:_=>{l(!s),_.stopPropagation()},size:"small",children:s?u.jsx(C3,{"data-testid":"pause-icon"}):u.jsx(y3,{"data-testid":"play-icon"})})]}),u.jsx(zp,{onClick:_=>y(_),children:u.jsx(Dn,{})})]}),u.jsx(Zp,{value:g,variant:"determinate"})]}):null},Ip=l1(s1).attrs({direction:"column",align:"stretch",justify:"space-between"})` - padding: 8px; - background: ${t1.BG1}; - border-radius: 6px; - width: 320px; - height: 72px; - margin-top: 16px; - cursor: pointer; - z-index: 0; -`,Hp=l1(s1).attrs({direction:"row",align:"center",justify:"flex-start"})``,Np=l1(s1).attrs({direction:"row",align:"center",justify:"space-between"})` - flex: 1; - color: ${t1.white}; - margin-left: 11px; - - .title { - font-size: 13px; - margin-bottom: 2px; - font-weight: 500; - } - - .subtitle { - font-size: 11px; - color: ${t1.GRAY6}; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -`,zp=l1(Ka)` - padding: 8px; - color: ${t1.GRAY6}; - z-index: 100000; -`,Up=l1(Ka)` - && { - font-size: 36px; - padding: 2px; - margin-left: 8px; - overflow: hidden; - z-index: 100000; - } -`,Zp=l1(F3)` - && { - flex-shrink: 0; - height: 2px; - background-color: ${t1.white}; - color: blue; - - .MuiLinearProgress-bar { - background: rgb(65, 90, 127); - } - } -`,Wp=l1.div` - white-space: nowrap; - overflow: hidden; - width: max-content; - animation: scrollText 12s linear infinite; - - @keyframes scrollText { - 0%, - 15% { - transform: translateX(0); - } - - 60%, - 75% { - transform: translateX(${e=>-e.scrollValue}px); - } - - 100% { - transform: translateX(0); - } - } - color: #fff; -`,Kp=l1(s1)` - overflow: hidden; - flex: 1; -`,v3=()=>{const e=x3(),t=Je(i=>i.isFetching),n=xn(i=>i.universeQuestionIsOpen),{isAdmin:r}=qr(i=>i);return u.jsxs(qp,{align:"flex-end",id:"actions-toolbar",children:[u.jsxs(Yp,{children:[!t&&!n&&r&&u.jsx(Tp,{}),!t&&!n&&u.jsx(Gp,{})]}),u.jsx(s1,{align:"center",direction:"row",mt:16,children:!t&&!n&&u.jsx($p,{})}),u.jsx(Op,{},e==null?void 0:e.ref_id)]})},qp=l1(s1)` - position: absolute; - right: 20px; - bottom: 20px; - pointer-events: all; -`,Yp=l1.div` - display: flex; - flex-direction: column; - gap: 4px; -`,Xp=({type:e})=>{var s,l;let t;const[n]=Fa(c=>[c.normalizedSchemasByType]),r=e,i=(s=n[e])==null?void 0:s.primary_color,o=(l=n[e])==null?void 0:l.icon,a=o?`svg-icons/${o}.svg`:null;switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:a??"video_badge.svg",color:i??t1.CLIP};break;case"show":t={iconStart:a??"show_badge.svg",color:i??t1.SHOW};break;case"tweet":t={iconStart:a??"twitter_badge.svg",color:i??t1.TWEET};break;case"episode":t={iconStart:a??"audio_badge.svg",color:i??t1.EPISODE};break;case"document":t={iconStart:a??"notes_badge.svg",color:i??t1.TEXT};break;case(o??"organization"):t={iconStart:a??"organization_badge.svg",color:i??t1.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:a??"person_badge.svg",color:i??t1.PERSON};break;case"event":t={iconStart:a??"event_badge.svg",color:i??t1.EVENT};break;default:t={iconStart:a??"thing_badge.svg",color:i??t1.THING};break}return u.jsx(Qp,{...t,label:e})},Qp=({iconStart:e,color:t,label:n})=>u.jsxs(Jp,{color:t,children:[u.jsx("img",{alt:n,className:"badge__img",src:e}),u.jsx("div",{className:"badge__label",children:n})]}),Jp=l1(s1).attrs({direction:"row"})` - cursor: pointer; - background: ${({color:e})=>e}; - border-radius: 3px; - overflow: hidden; - justify-content: center; - align-items: center; - padding: 0 4px; - gap: 2px; - - .badge__img { - width: 10px; - height: 10px; - object-fit: contain; - } - - .badge__label { - color: ${t1.white}; - font-family: Barlow; - font-size: 8px; - font-style: normal; - font-weight: 800; - line-height: 14px; - text-transform: uppercase; - line-height: 14px; - letter-spacing: 0.48px; - padding: 0 4px; - } -`,em=({twitterHandle:e})=>u.jsx(u.Fragment,{children:u.jsx(s1,{direction:"row",children:u.jsx(s1,{align:"flex-start",pb:12,children:u.jsxs(F1,{children:["Tweet by @",e]})})})}),tm=l1(s1)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:t1.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:t1.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),nm=l1(s1)` - width: 22.5%; -`,rm=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:i,label:o,text:a,type:s,name:l,twitter_handle:c,image_url:d,guests:f}=e,h=f&&f.length>0,k=h&&typeof f[0]=="object";let m=d;return t==="guest"&&!d&&(m="person_placeholder2.png"),s==="twitter_space"&&(m="twitter_placeholder.png"),t==="topic"?null:u.jsx(tm,{borderRadius:8,px:24,py:16,children:t==="tweet"?u.jsx(em,{twitterHandle:c}):u.jsxs(u.Fragment,{children:[u.jsxs(s1,{direction:"row",children:[m&&u.jsx(nm,{}),u.jsx(s1,{align:"flex-start",pb:12,children:u.jsx(Xp,{type:t})})]}),u.jsxs(s1,{direction:"row",children:[m&&u.jsx(s1,{pr:12,children:u.jsx(b3,{src:m,type:"person"})}),u.jsxs("div",{children:[(l||o)&&u.jsx(s1,{direction:"column",children:l?u.jsx(F1,{children:l}):u.jsxs(u.Fragment,{children:[u.jsx(F1,{children:o}),a&&u.jsx(s1,{pt:4,children:u.jsxs(F1,{color:"primaryText1",kind:"tiny",children:["@",a]})})]})}),n&&u.jsx(F1,{color:"primaryText1",kind:"tiny",children:n}),r&&u.jsx(s1,{pt:4,children:u.jsx(F1,{color:"primaryText1",kind:"tiny",children:r})}),i&&u.jsx(s1,{pt:12,children:u.jsx(F1,{as:"div",kind:"regularBold",children:J3(i)})}),c&&u.jsx(s1,{pt:4,children:u.jsxs(F1,{color:"primaryText1",kind:"tiny",children:["@",c]})}),f&&f.length>0&&u.jsxs(s1,{pt:12,children:[u.jsx(F1,{color:"primaryText1",children:"People"}),u.jsx(s1,{pt:4,children:u.jsx(F1,{color:"primaryText1",kind:"tiny",children:h&&u.jsxs(s1,{pt:12,children:[u.jsx(F1,{children:"Guests:"}),u.jsx(F1,{children:k?f.map(g=>`@${g==null?void 0:g.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},im=()=>{const[e,t]=m0(l=>[l.hoveredNode,l.isHovering]),[n,r]=p.useState(!1),[i,o]=p.useState(!1);p.useEffect(()=>{let l=null;return t||i?r(!0):l=setTimeout(()=>r(!1),300),()=>{l&&clearTimeout(l)}},[t,i]);const a=p.useCallback(()=>{o(!0)},[]),s=p.useCallback(()=>{o(!1)},[]);return u.jsxs(om,{children:[e&&n&&u.jsx(am,{onMouseEnter:a,onMouseLeave:s,children:u.jsx(rm,{node:e})}),u.jsx(v3,{})]})},om=l1("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),am=l1.div` - position: absolute; - top: 65px; - right: 55px; - z-index: 100; -`,sm=()=>{const e=p.useContext(O3);return e==null?void 0:e.socket},lm={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},cm=mn(e=>({...lm,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,i,o;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(i=t==null?void 0:t.instagraph)==null?void 0:i.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),um="0.1.106",dm=p.lazy(()=>W1(()=>import("./index-f63e96f7.js"),["assets/index-f63e96f7.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/ClipLoader-a0a9ce2c.js","assets/index.esm-258646ab.js","assets/index-17930aa1.js","assets/index-64813bbe.js","assets/Tabs-79411ac3.js","assets/createSvgIcon-23cd916d.js"]).then(({SettingsModal:e})=>({default:e}))),fm=p.lazy(()=>W1(()=>import("./index-01d51677.js"),["assets/index-01d51677.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/ClipLoader-a0a9ce2c.js","assets/index-64813bbe.js"]).then(({AddContentModal:e})=>({default:e}))),hm=p.lazy(()=>W1(()=>import("./index-e8159074.js"),["assets/index-e8159074.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/ClipLoader-a0a9ce2c.js","assets/constants-b2a2fa82.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-64813bbe.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),pm=p.lazy(()=>W1(()=>import("./index-63bb73bc.js"),["assets/index-63bb73bc.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/constants-6b0b8728.js","assets/ClipLoader-a0a9ce2c.js","assets/index.esm-258646ab.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64813bbe.js","assets/index-5f0e754b.js","assets/constants-b2a2fa82.js","assets/Typography-4efd6f29.js","assets/Tabs-79411ac3.js"]).then(({SourcesTableModal:e})=>({default:e}))),mm=p.lazy(()=>W1(()=>import("./index-0b4435d0.js"),["assets/index-0b4435d0.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-64813bbe.js","assets/index.esm-258646ab.js","assets/Skeleton-0e0ce42e.js","assets/ClipLoader-a0a9ce2c.js"]).then(({EditNodeNameModal:e})=>({default:e}))),xm=p.lazy(()=>W1(()=>import("./index-d36a9cfa.js"),["assets/index-d36a9cfa.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/Skeleton-0e0ce42e.js","assets/ClipLoader-a0a9ce2c.js"]).then(({RemoveNodeModal:e})=>({default:e}))),km=p.lazy(()=>W1(()=>import("./index-77fe94be.js"),["assets/index-77fe94be.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/constants-b2a2fa82.js","assets/constants-6b0b8728.js","assets/ClipLoader-a0a9ce2c.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),gm=p.lazy(()=>W1(()=>import("./index-bb616035.js"),["assets/index-bb616035.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-5f0e754b.js","assets/constants-6b0b8728.js","assets/constants-b2a2fa82.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/ClipLoader-a0a9ce2c.js"]).then(({MergeNodeModal:e})=>({default:e}))),Cm=p.lazy(()=>W1(()=>import("./index-751d453d.js"),["assets/index-751d453d.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-64813bbe.js","assets/index.esm-258646ab.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/constants-b2a2fa82.js","assets/ClipLoader-a0a9ce2c.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ym=p.lazy(()=>W1(()=>import("./index-85afbf1a.js"),["assets/index-85afbf1a.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/constants-b2a2fa82.js","assets/index-64813bbe.js","assets/index.esm-258646ab.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/ClipLoader-a0a9ce2c.js","assets/map-8d3cef29.js","assets/Typography-4efd6f29.js","assets/Tabs-79411ac3.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-39784bea.js"]).then(({BlueprintModal:e})=>({default:e}))),bm=p.lazy(()=>W1(()=>import("./index-a4521012.js"),["assets/index-a4521012.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/index-64813bbe.js"]).then(({UserFeedBackModal:e})=>({default:e}))),vm=p.lazy(()=>W1(()=>import("./index-f2ef880b.js"),["assets/index-f2ef880b.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64813bbe.js"]).then(({CreateBountyModal:e})=>({default:e}))),wm=()=>u.jsxs(u.Fragment,{children:[u.jsx(hm,{}),u.jsx(fm,{}),u.jsx(dm,{}),u.jsx(mm,{}),u.jsx(xm,{}),u.jsx(pm,{}),u.jsx(km,{}),u.jsx(Cm,{}),u.jsx(ym,{}),u.jsx(gm,{}),u.jsx(bm,{}),u.jsx(vm,{})]}),w3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"info",children:[u.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2682_970)",children:u.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})}),Em=()=>{const[e,t]=p.useState(null),{runningProjectMessages:n}=Je(s=>s),r=s=>{t(s.currentTarget)},i=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?u.jsxs(Sm,{ml:8,children:[u.jsx(Am,{onClick:r,children:u.jsxs(fn,{content:"Messages",margin:"18px",children:[u.jsx("div",{className:"icon",children:u.jsx(w3,{})}),u.jsx("div",{className:"text",children:u.jsx("p",{children:n.length})})]})}),u.jsxs(Vm,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:i,open:o,children:[u.jsx(E3,{onClick:i,children:u.jsx(Dn,{})}),u.jsx(_m,{p:16,children:n.map(s=>u.jsx("p",{className:"item",children:s},s))})]})]}):null},Sm=l1(s1).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,_m=l1(s1)` - max-height: 50vh; - max-width: 30vw; - background: transparent; - padding-top: 1px !important; - padding-bottom: 0 !important; - overflow-y: auto; - - &::-webkit-scrollbar { - width: 3px; - } - - &::-webkit-scrollbar-track { - border-radius: 9px; - margin: 4px; - overflow-y: hidden; - } - - .item { - padding: 8px 0; - word-break: break-word; - font-family: 'Barlow'; - font-size: 12px; - font-weight: 400; - text-align: right; - color: ${t1.GRAY6}; - } - - &:hover { - background: ${t1.MESSAGE_BG_HOVER}; - } -`,Am=l1(s1).attrs({align:"center",direction:"row"})` - display: flex; - cursor: pointer; - height: 2.5rem; - padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; - align-items: center; - gap: 0.625rem; - color: ${t1.white}; - background: ${t1.BG1}; - font-family: Barlow; - font-size: 0.75rem; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 0.0075rem; - border-radius: 12.5rem; - - &:hover { - background: ${t1.BUTTON1_PRESS}; - } - - &:active { - background: ${t1.BUTTON1}; - } - - .icon { - display: flex; - align-items: center; - justify-content: center; - margin-right: 10px; - font-size: 16px; - } - - .budgetUnit { - color: ${t1.GRAY6}; - } - - .text { - display: flex; - align-items: center; - justify-content: center; - } -`,E3=l1.div` - position: absolute; - top: 0; - right: 0; - transform: translate(50%, -50%); - cursor: pointer; - display: none; - z-index: 1; - width: 2em; - height: 2em; - background-color: ${t1.BUTTON1}; - border-radius: 50%; - align-items: center; - justify-content: center; - - svg { - fill: ${t1.white} !important; - width: 1.5em; - height: 1.5em; - } -`,Vm=l1(W5)` - .MuiPopover-paper { - margin-top: 4px; - background-color: transparent !important; - box-shadow: none; - background: ${t1.MESSAGE_BG}; - border-radius: 6px; - overflow: visible; - - &:hover { - ${E3} { - display: flex; - } - } - } -`,S3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),_3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Nodes",children:[u.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_141)",children:u.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),Dm={addNodeModalData:null,currentModals:{budgetExplanation:!1,sourcesTable:!1,addItem:!1,addType:!1,addContent:!1,editTopic:!1,addEdge:!1,addSource:!1,settings:!1,mergeTopic:!1,briefDescription:!1,editNodeName:!1,removeNode:!1,mergeToNode:!1,removeNodeType:!1,addEdgeToNode:!1,blueprintGraph:!1,changeNodeType:!1,feedback:!1,createBounty:!1}},Bm=mn(e=>({...Dm,close:t=>{e(n=>({addNodeModalData:null,currentModals:{...n.currentModals,[t]:!1}}))},open:t=>{e(n=>({currentModals:{...n.currentModals,[t]:!0}}))}})),$m=e=>{const{open:t,close:n,currentModals:r}=Bm();return{close:()=>n(e),open:()=>t(e),visible:r[e]}},jm="A",Gm=0,Pm=128,Mm=128,Tm={g:"LottieFiles AE 3.5.2"},Lm=[{ty:0,nm:"M",sr:1,st:0,op:54,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"M",sr:1,st:54,op:108,ip:54,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"2",sr:1,st:108,op:162,ip:108,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"2",sr:1,st:162,op:255,ip:162,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],Rm="4.8.0",Fm=60,Om=216,Im=0,Hm=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.216,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.216,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:19}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]}],Nm={nm:jm,ddd:Gm,h:Pm,w:Mm,meta:Tm,layers:Lm,v:Rm,fr:Fm,op:Om,ip:Im,assets:Hm},zm=()=>{const e=p.useRef(null);return p.useEffect(()=>{const t=document.getElementById("lottie-animation");return t&&(e.current=I3.loadAnimation({container:t,animationData:Nm,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),u.jsx("div",{id:"lottie-animation",style:{width:"2em",height:"2em"}})},Um=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),Zm=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_25)",children:u.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),Wm=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"add_link",children:[u.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2659_52)",children:u.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),Km=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_27)",children:u.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),qm=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),Ym=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),Xm=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),Qm=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21694)",children:u.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),Jm=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"arrow_forward",children:[u.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8980_24763)",children:u.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),ex=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),tx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),nx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Audio",children:[u.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_147)",children:u.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),rx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_45)",children:u.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),ix=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),ox=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"browse_gallery",children:[u.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1360_27257)",children:u.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),ax=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_21901)",children:u.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),sx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),lx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),cx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),ux=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),dx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),fx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"keyboard_arrow_left",children:[u.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1428_267)",children:u.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),hx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"chevron_right",children:[u.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1247_21809)",children:u.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),px=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),mx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),u.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),xx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"cancel",children:[u.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1264_3381)",children:u.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),kx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),gx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_4256)",children:u.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),Cx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22054)",children:u.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),yx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),u.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),bx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"content_copy",children:[u.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1489_75628)",children:u.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),vx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_27)",children:u.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),wx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:u.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8954_27793)",children:u.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),u.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),Ex=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[u.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask1_2777_4506)",children:u.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),Sx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"delete",children:[u.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{children:u.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),_x=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),u.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),u.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),Ax=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22108)",children:u.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),Vx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),Dx=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2638_2680)",children:u.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),Bx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Type=Edit, Size=20x20",children:u.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),$x=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),u.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),jx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),Gx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Episode",children:[u.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),u.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),Px=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_31)",children:u.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),Mx=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4160_9271)",children:u.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),Tx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"captive_portal",children:[u.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[u.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),u.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),Lx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),Rx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),Fx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"filter_alt_off",children:[u.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1543_23288)",children:u.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Ox=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22315)",children:u.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),Ix=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),Hx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_23)",children:u.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),Nx=e=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[u.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_3130_18463)",children:u.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),zx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22375)",children:u.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),Ux=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),Zx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22441)",children:u.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),Wx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22444)",children:u.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),Kx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),qx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Yx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Xx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_19)",children:u.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),Qx=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22519)",children:u.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),Jx=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Icons 20x20",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),ek=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),tk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),nk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_49)",children:u.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),rk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_mute",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),u.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),ik=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),ok=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"notes",children:[u.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1473_73722)",children:u.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),ak=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),sk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),lk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_2772)",children:u.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),ck=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22741)",children:u.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),uk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7640_3741)",children:u.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),dk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:u.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{children:u.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),fk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{opacity:"0.4",children:[u.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13105)",children:u.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),hk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5162_13106)",children:u.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),pk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22801)",children:u.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),mk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:u.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5099_7163)",children:u.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),xk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22828)",children:u.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),kk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22840)",children:u.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),gk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"schedule",children:[u.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_4051_4016)",children:u.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),Ck=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9540_35)",children:u.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),yk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),bk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),vk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Property 1=Normal",children:u.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),wk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"sensors",children:[u.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_161)",children:u.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),Ek=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_28)",children:u.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),Sk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_29)",children:u.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),_k=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"shield_person",children:[u.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1543_22988)",children:u.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),Ak=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),Vk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"brand_awareness",children:[u.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_3696_4540)",children:u.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),Dk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("g",{id:"Menu icons",children:u.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),Bk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1259_26)",children:u.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),$k=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"stacks",children:[u.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_8417_33308)",children:u.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),jk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_9529_33)",children:u.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),Gk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),u.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),u.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),Pk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:u.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_7541_22378)",children:u.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),Mk=e=>u.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:u.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_5577_416)",children:u.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),Tk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Twitter",children:[u.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_167)",children:u.jsx("g",{id:"X",children:u.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),Lk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"Video",children:[u.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1506_153)",children:u.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),Rk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),Fk=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),Ok=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"volume_up",children:[u.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_1483_75386)",children:u.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),Ik={AddCircleIcon:Um,AddContentIcon:Zm,AddLinkIcon:Wm,AddSourceIcon:Km,AiPauseIcon:qm,AiPlayIcon:Ym,AiSummaryIcon:Xm,AndroidIcon:Qm,ArrowBackIcon:Jm,ArrowForwardIcon:ex,ArrowRight:tx,AudioIcon:nx,BitcoinIcon:rx,BoostIcon:ix,BrowseGalleryIcon:ox,BubbleChartIcon:i3,BudgetIcon:S3,BuildIcon:ax,CalendarIcon:sx,CameraCenterIcon:k3,CancelIcon:lx,CheckIcon:cx,CheckedIcon:ux,ChevronDownIcon:dx,ChevronLeftIcon:fx,ChevronRightIcon:hx,ChevronUpIcon:px,ChipIcon:mx,ClearIcon:Dn,CloseIcon:xx,ColorPickerIcon:kx,CommunitiesIcon:o3,CompassIcon:gx,ConstructionIcon:Cx,ContentIcon:yx,CopyIcon:bx,CorporationIcon:vx,CreateEdgeIcon:wx,DefaultShowIcon:Ex,DeleteIcon:Sx,DeleteNodeIcon:_x,DesignServicesIcon:Ax,DocumentIcon:Vx,DownloadIcon:Dx,EditIcon:Bx,EditNodeIcon:$x,EditTopicIcon:jx,EpisodeIcon:Gx,EventIcon:Px,ExitFullScreen:Mx,ExploreIcon:Tx,FamilyHistoryIcon:Lx,FeedbackIcon:Rx,FilterOffIcon:Fx,FingerprintIcon:Ox,FlipIcon:Ix,FortIcon:Hx,FullScreenIcon:Nx,FunctionIcon:zx,GlobeIcon:Ux,GrainIcon:a3,HandymanIcon:Zx,HardwareIcon:Wx,HashTag:Kx,HashtagIcon:qx,HelpIcon:Yx,HomeIcon:Xx,InfoIcon:w3,JoystickIcon:Qx,LinkIcon:Jx,MenuIcon:ek,MergeIcon:tk,MoneyIcon:nk,MuteVolumeIcon:rk,NodeCircleIcon:ik,NodesIcon:_3,NotesIcon:ok,OrganizationIcon:ak,PauseIcon:C3,PersonAdd:sk,PersonIcon:lk,PhoneIcon:ck,PlaceIcon:uk,PlayIcon:y3,PlusIcon:dk,PropertyHide:fk,PropertyShow:hk,PublicIcon:s3,QrCodeIcon:pk,ReloadIcon:mk,RobotIcon:xk,SaveIcon:kk,ScheduleIcon:gk,SchoolIcon:Ck,SearchFilterCloseIcon:yk,SearchFilterIcon:bk,SearchIcon:vk,SensorsIcon:wk,SentimentDataIcon:Ek,SettingsIcon:Sk,ShieldPersonIcon:_k,SortFilterIcon:Ak,SoundIcon:Vk,SourcesIcon:Dk,SourcesTableIcon:Bk,StackIcon:$k,StorageIcon:jk,SucessFeedBackIcon:Gk,SumFunctionIcon:Pk,ThreeDotsIcons:Mk,TwitterIcon:Tk,VideoIcon:Lk,VisibilityOff:Rk,VisibilityOn:Fk,VolumeIcon:Ok},Hk=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(0),[i,o]=qr(x=>[x.budget,x.setBudget]),{normalizedSchemasByType:a}=Fa(x=>x),[s,l,c,d]=Je(x=>[x.stats,x.setStats,x.fetchData,x.setAbortRequests]);$i();const{open:f}=$m("sourcesTable"),h=async()=>{try{const x=await H3();x.totalProcessing&&x.totalProcessing>0?(t(!0),r(x.totalProcessing)):t(!1)}catch(x){console.error("Error fetching data:",x),t(!1)}};function k(x){}if(p.useEffect(()=>{s||(async()=>{try{const C=await N3();if(C){const b=z3(C);l(b)}}catch{U3.noop()}})()},[l,s]),p.useEffect(()=>{h()},[]),!s)return null;const m=x=>x.replace(/\b\w/g,C=>C.toUpperCase()),g=x=>{var E;const C=m(x.split("_")[0]),b=C,S=(E=a[C])==null?void 0:E.icon,w=Ik[S]||_3;return{name:C,Icon:w,key:x,dataKey:x,mediaType:C,tooltip:b}},y=Object.keys(s).map(x=>g(x));return u.jsxs(Uk,{children:[u.jsx(Nk,{children:y.map(({name:x,Icon:C,key:b,mediaType:S,tooltip:w})=>s[b]!==0?u.jsx(Zk,{"data-testid":S,onClick:()=>void 0,children:u.jsxs(fn,{content:w,margin:"13px",children:[u.jsx("div",{className:"icon",children:u.jsx(C,{})}),u.jsx("div",{className:"text",children:s[b]})]})},x):u.jsx(u.Fragment,{}))}),u.jsxs(zk,{children:[e?u.jsxs(Kk,{"data-testid":"view-content",onClick:f,children:[u.jsx("div",{className:"icon",style:{marginLeft:"7px"},children:u.jsx(zm,{})}),u.jsx("div",{className:"text",children:u.jsx("p",{children:n})})]}):null,u.jsx(Wk,{children:u.jsxs(fn,{content:"Budget",margin:"18px",children:[u.jsx("div",{className:"icon",children:u.jsx(S3,{})}),u.jsx("div",{className:"text",children:u.jsxs("p",{children:[`${Q3(i)} `," ",u.jsx("span",{className:"budgetUnit",children:"SAT"})]})})]})})]})]})},Nk=l1(s1).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})``,zk=l1(s1).attrs({align:"center",direction:"row",grow:1,justify:"flex-end"})``,Uk=l1(s1).attrs({align:"center",direction:"row",grow:1})` - justify-content: between; -`,Zk=l1(s1).attrs({align:"center",direction:"row",justify:"flex-start"})` - color: ${t1.white}; - background: ${t1.BG1}; - padding: 6px 10px 6px 8px; - font-family: Barlow; - font-size: 13px; - font-style: normal; - font-weight: 500; - line-height: 15px; - letter-spacing: 0.78px; - margin: 0 8px; - border-radius: 200px; - cursor: pointer; - - &:hover { - background: ${t1.BUTTON1_PRESS}; - } - - &:active { - background: ${t1.BUTTON1}; - } - - .icon { - margin-right: 8px; - font-size: 16px; - } - - .text { - } -`,Wk=l1(s1).attrs({align:"center",direction:"row"})` - display: flex; - height: 2.5rem; - padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; - align-items: center; - gap: 0.625rem; - color: ${t1.white}; - background: ${t1.BG1}; - font-family: Barlow; - font-size: 0.75rem; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 0.0075rem; - border-radius: 12.5rem; - - &:hover { - background: ${t1.BUTTON1_PRESS}; - } - - &:active { - background: ${t1.BUTTON1}; - } - - .icon { - display: flex; - align-items: center; - justify-content: center; - margin-right: 10px; - } - - .budgetUnit { - color: ${t1.GRAY6}; - } - - .text { - display: flex; - align-items: center; - justify-content: center; - } -`,Kk=l1(s1).attrs({align:"center",direction:"row"})` - margin-right: 10px; - display: flex; - height: 28px; - padding: 0.75rem 0.6375rem 0.75rem 0.3187rem; - align-items: center; - gap: 4px; - color: ${t1.white}; - background: ${t1.modalShield}; - font-family: Barlow; - font-size: 0.75rem; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 0.0075rem; - border-radius: 12.5rem; - - &:active { - background: ${t1.BUTTON1}; - } - - .icon { - display: flex; - align-items: center; - justify-content: center; - width: 22px; - height: 22px; - } - - .text { - display: flex; - align-items: center; - justify-content: center; - } -`,qk=()=>{const e=xn(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=Oa(),{abortFetchData:r,resetGraph:i}=Je(s=>s),o=W3();if(!e)return null;const a=()=>{n(null),r(),i(),t(),o("/")};return u.jsxs(Yk,{children:[u.jsxs(Xk,{onClick:a,children:[u.jsx(u.Fragment,{children:e.title&&u.jsx(F1,{className:"title",color:"white",children:e.title})}),u.jsx(F1,{className:"subtitle",children:"Second Brain"})]}),u.jsx(Hk,{}),u.jsx(Em,{})]})},Yk=l1(s1).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` - height: 64px; - position: absolute; - top: 0px; - left: 64px; - right: 32px; - transition: opacity 1s; - z-index: 1; - padding: 20px 23px; -`,Xk=l1.div` - ${Z3.smallOnly` - display: none; - `} - - width: 367px; - - .title { - color: var(--Primary-Text, #fff); - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 700; - line-height: 16px; /* 72.727% */ - letter-spacing: 0.22px; - cursor: pointer; - } - - .subtitle { - color: ${t1.GRAY6}; - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 400; - line-height: 16px; - letter-spacing: 0.22px; - margin-left: 8px; - cursor: pointer; - } -`,Qk=620,Jk=()=>{const e=`(max-width: ${Qk}px)`,[t,n]=p.useState(()=>window.matchMedia(e).matches);return p.useEffect(()=>{const r=window.matchMedia(e);n(r.matches);const i=()=>{n(r.matches)};return window.addEventListener("resize",i),()=>r.removeEventListener("change",i)},[e]),t},eg=()=>{const[e,t]=p.useState(!0),n=Jk();p.useEffect(()=>{t(!0)},[n]);const r=()=>{t(!1)};return n&&e?u.jsxs(tg,{align:"center",direction:"column",justify:"center",onClick:r,children:[u.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),u.jsxs(s1,{align:"center",direction:"column",justify:"center",children:[u.jsx(lr,{children:"Second Brain is currently"}),u.jsx(lr,{style:{fontWeight:600},children:"optimized for Desktop."}),u.jsx(lr,{children:"Mobile support coming soon."})]}),u.jsx(ii,{color:"secondary",onClick:r,variant:"contained",children:"Got It"})]}):null},tg=l1(s1)` - height: 100vh; - width: 100vw; - background: rgba(0, 0, 0, 0.75); - gap: 28px; - z-index: 2000000000; - position: fixed; - top: 0; - left: 0; - right: 0; -`,lr=l1(F1)` - color: #fff; - text-align: center; - font-family: Barlow; - font-size: 18px; - font-style: normal; - font-weight: 400; - line-height: 24px; - margin: 1px; -`;function A3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),l0=e=>typeof e=="string",oe=e=>typeof e=="function",Ft=e=>l0(e)||oe(e)?e:null,Zr=e=>p.isValidElement(e)||l0(e)||oe(e)||pt(e);function ng(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Bn(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:l,preventExitTransition:c,done:d,nodeRef:f,isIn:h,playToast:k}=a;const m=r?`${t}--${l}`:t,g=r?`${n}--${l}`:n,y=p.useRef(0);return p.useLayoutEffect(()=>{const x=f.current,C=m.split(" "),b=S=>{S.target===f.current&&(k(),x.removeEventListener("animationend",b),x.removeEventListener("animationcancel",b),y.current===0&&S.type!=="animationcancel"&&x.classList.remove(...C))};x.classList.add(...C),x.addEventListener("animationend",b),x.addEventListener("animationcancel",b)},[]),p.useEffect(()=>{const x=f.current,C=()=>{x.removeEventListener("animationend",C),i?ng(x,d,o):d()};h||(c?C():(y.current=1,x.className+=` ${g}`,x.addEventListener("animationend",C)))},[h]),v.createElement(v.Fragment,null,s)}}function Ma(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const N1=new Map;let mt=[];const Wr=new Set,rg=e=>Wr.forEach(t=>t(e)),V3=()=>N1.size>0;function D3(e,t){var n;if(t)return!((n=N1.get(t))==null||!n.isToastActive(e));let r=!1;return N1.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function B3(e,t){Zr(e)&&(V3()||mt.push({content:e,options:t}),N1.forEach(n=>{n.buildToast(e,t)}))}function Ta(e,t){N1.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function ig(e){const{subscribe:t,getSnapshot:n,setProps:r}=p.useRef(function(o){const a=o.containerId||1;return{subscribe(s){const l=function(d,f,h){let k=1,m=0,g=[],y=[],x=[],C=f;const b=new Map,S=new Set,w=()=>{x=Array.from(b.values()),S.forEach(V=>V())},E=V=>{y=V==null?[]:y.filter(P=>P!==V),w()},_=V=>{const{toastId:P,onOpen:$,updateId:T,children:D}=V.props,O=T==null;V.staleId&&b.delete(V.staleId),b.set(P,V),y=[...y,V.props.toastId].filter(M=>M!==V.staleId),w(),h(Ma(V,O?"added":"updated")),O&&oe($)&&$(p.isValidElement(D)&&D.props)};return{id:d,props:C,observe:V=>(S.add(V),()=>S.delete(V)),toggle:(V,P)=>{b.forEach($=>{P!=null&&P!==$.props.toastId||oe($.toggle)&&$.toggle(V)})},removeToast:E,toasts:b,clearQueue:()=>{m-=g.length,g=[]},buildToast:(V,P)=>{if((N=>{let{containerId:J,toastId:e1,updateId:n1}=N;const c1=J?J!==d:d!==1,b1=b.has(e1)&&n1==null;return c1||b1})(P))return;const{toastId:$,updateId:T,data:D,staleId:O,delay:M}=P,R=()=>{E($)},F=T==null;F&&m++;const H={...C,style:C.toastStyle,key:k++,...Object.fromEntries(Object.entries(P).filter(N=>{let[J,e1]=N;return e1!=null})),toastId:$,updateId:T,data:D,closeToast:R,isIn:!1,className:Ft(P.className||C.toastClassName),bodyClassName:Ft(P.bodyClassName||C.bodyClassName),progressClassName:Ft(P.progressClassName||C.progressClassName),autoClose:!P.isLoading&&(Z=P.autoClose,q=C.autoClose,Z===!1||pt(Z)&&Z>0?Z:q),deleteToast(){const N=b.get($),{onClose:J,children:e1}=N.props;oe(J)&&J(p.isValidElement(e1)&&e1.props),h(Ma(N,"removed")),b.delete($),m--,m<0&&(m=0),g.length>0?_(g.shift()):w()}};var Z,q;H.closeButton=C.closeButton,P.closeButton===!1||Zr(P.closeButton)?H.closeButton=P.closeButton:P.closeButton===!0&&(H.closeButton=!Zr(C.closeButton)||C.closeButton);let i1=V;p.isValidElement(V)&&!l0(V.type)?i1=p.cloneElement(V,{closeToast:R,toastProps:H,data:D}):oe(V)&&(i1=V({closeToast:R,toastProps:H,data:D}));const X={content:i1,props:H,staleId:O};C.limit&&C.limit>0&&m>C.limit&&F?g.push(X):pt(M)?setTimeout(()=>{_(X)},M):_(X)},setProps(V){C=V},setToggle:(V,P)=>{b.get(V).toggle=P},isToastActive:V=>y.some(P=>P===V),getSnapshot:()=>C.newestOnTop?x.reverse():x}}(a,o,rg);N1.set(a,l);const c=l.observe(s);return mt.forEach(d=>B3(d.content,d.options)),mt=[],()=>{c(),N1.delete(a)}},setProps(s){var l;(l=N1.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=N1.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=p.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>o(s[0],s[1]))},isToastActive:D3,count:i==null?void 0:i.length}}function og(e){const[t,n]=p.useState(!1),[r,i]=p.useState(!1),o=p.useRef(null),a=p.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:d,closeOnClick:f}=e;var h,k;function m(){n(!0)}function g(){n(!1)}function y(b){const S=o.current;a.canDrag&&S&&(a.didMove=!0,t&&g(),a.delta=e.draggableDirection==="x"?b.clientX-a.start:b.clientY-a.start,a.start!==b.clientX&&(a.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function x(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",x);const b=o.current;if(a.canDrag&&a.didMove&&b){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();b.style.transition="transform 0.2s, opacity 0.2s",b.style.removeProperty("transform"),b.style.removeProperty("opacity")}}(k=N1.get((h={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||k.setToggle(h.id,h.fn),p.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const C={onPointerDown:function(b){if(e.draggable===!0||e.draggable===b.pointerType){a.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",x);const S=o.current;a.canCloseOnClick=!0,a.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(a.start=b.clientX,a.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(a.start=b.clientY,a.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(b){const{top:S,bottom:w,left:E,right:_}=o.current.getBoundingClientRect();b.nativeEvent.type!=="touchend"&&e.pauseOnHover&&b.clientX>=E&&b.clientX<=_&&b.clientY>=S&&b.clientY<=w?g():m()}};return s&&l&&(C.onMouseEnter=g,e.stacked||(C.onMouseLeave=m)),f&&(C.onClick=b=>{d&&d(b),a.canCloseOnClick&&c()}),{playToast:m,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:C}}function ag(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:s,controlledProgress:l,progress:c,rtl:d,isIn:f,theme:h}=e;const k=o||l&&c===0,m={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(m.transform=`scaleX(${c})`);const g=Ze("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),y=oe(a)?a({rtl:d,type:i,defaultClassName:g}):Ze(g,a),x={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{f&&r()}};return v.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":k},v.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),v.createElement("div",{role:"progressbar","aria-hidden":k?"true":"false","aria-label":"notification timer",className:y,style:m,...x}))}let sg=1;const $3=()=>""+sg++;function lg(e){return e&&(l0(e.toastId)||pt(e.toastId))?e.toastId:$3()}function at(e,t){return B3(e,t),t.toastId}function hn(e,t){return{...t,type:t&&t.type||e,toastId:lg(t)}}function Gt(e){return(t,n)=>at(t,hn(e,n))}function y1(e,t){return at(e,hn("default",t))}y1.loading=(e,t)=>at(e,hn("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),y1.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=l0(i)?y1.loading(i,n):y1.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(d,f,h)=>{if(f==null)return void y1.dismiss(r);const k={type:d,...s,...n,data:h},m=l0(f)?{render:f}:f;return r?y1.update(r,{...k,...m}):y1(m.render,{...k,...m}),h},c=oe(e)?e():e;return c.then(d=>l("success",a,d)).catch(d=>l("error",o,d)),c},y1.success=Gt("success"),y1.info=Gt("info"),y1.error=Gt("error"),y1.warning=Gt("warning"),y1.warn=y1.warning,y1.dark=(e,t)=>at(e,hn("default",{theme:"dark",...t})),y1.dismiss=function(e){(function(t){var n;if(V3()){if(t==null||l0(n=t)||pt(n))N1.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=N1.get(t.containerId))!=null&&r.removeToast(t.id)||N1.forEach(i=>{i.removeToast(t.id)})}}else mt=mt.filter(i=>t!=null&&i.options.toastId!==t)})(e)},y1.clearWaitingQueue=function(e){e===void 0&&(e={}),N1.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},y1.isActive=D3,y1.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=N1.get(a||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:$3()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,at(a,o)}},y1.done=e=>{y1.update(e,{progress:1})},y1.onChange=function(e){return Wr.add(e),()=>{Wr.delete(e)}},y1.play=e=>Ta(!0,e),y1.pause=e=>Ta(!1,e);const cg=typeof window<"u"?p.useLayoutEffect:p.useEffect,Pt=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},cr={info:function(e){return v.createElement(Pt,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return v.createElement(Pt,{...e},v.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return v.createElement(Pt,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return v.createElement(Pt,{...e},v.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return v.createElement("div",{className:"Toastify__spinner"})}},ug=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=og(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:d,hideProgressBar:f,closeToast:h,transition:k,position:m,className:g,style:y,bodyClassName:x,bodyStyle:C,progressClassName:b,progressStyle:S,updateId:w,role:E,progress:_,rtl:V,toastId:P,deleteToast:$,isIn:T,isLoading:D,closeOnClick:O,theme:M}=e,R=Ze("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":V},{"Toastify__toast--close-on-click":O}),F=oe(g)?g({rtl:V,position:m,type:d,defaultClassName:R}):Ze(R,g),H=function(X){let{theme:N,type:J,isLoading:e1,icon:n1}=X,c1=null;const b1={theme:N,type:J};return n1===!1||(oe(n1)?c1=n1({...b1,isLoading:e1}):p.isValidElement(n1)?c1=p.cloneElement(n1,b1):e1?c1=cr.spinner():(S1=>S1 in cr)(J)&&(c1=cr[J](b1))),c1}(e),Z=!!_||!l,q={closeToast:h,type:d,theme:M};let i1=null;return a===!1||(i1=oe(a)?a(q):p.isValidElement(a)?p.cloneElement(a,q):function(X){let{closeToast:N,theme:J,ariaLabel:e1="close"}=X;return v.createElement("button",{className:`Toastify__close-button Toastify__close-button--${J}`,type:"button",onClick:n1=>{n1.stopPropagation(),N(n1)},"aria-label":e1},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(q)),v.createElement(k,{isIn:T,done:$,position:m,preventExitTransition:n,nodeRef:r,playToast:o},v.createElement("div",{id:P,onClick:c,"data-in":T,className:F,...i,style:y,ref:r},v.createElement("div",{...T&&{role:E},className:oe(x)?x({type:d}):Ze("Toastify__toast-body",x),style:C},H!=null&&v.createElement("div",{className:Ze("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},H),v.createElement("div",null,s)),i1,v.createElement(ag,{...w&&!Z?{key:`pb-${w}`}:{},rtl:V,theme:M,delay:l,isRunning:t,isIn:T,closeToast:h,hide:f,type:d,style:S,className:b,controlledProgress:Z,progress:_||0})))},$n=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},dg=Bn($n("bounce",!0));Bn($n("slide",!0));Bn($n("zoom"));Bn($n("flip"));const fg={position:"top-right",transition:dg,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function hg(e){let t={...fg,...e};const n=e.stacked,[r,i]=p.useState(!0),o=p.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=ig(t),{className:c,style:d,rtl:f,containerId:h}=t;function k(g){const y=Ze("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return oe(c)?c({position:g,rtl:f,defaultClassName:y}):Ze(y,Ft(c))}function m(){n&&(i(!0),y1.play())}return cg(()=>{if(n){var g;const y=o.current.querySelectorAll('[data-in="true"]'),x=12,C=(g=t.position)==null?void 0:g.includes("top");let b=0,S=0;Array.from(y).reverse().forEach((w,E)=>{const _=w;_.classList.add("Toastify__toast--stacked"),E>0&&(_.dataset.collapsed=`${r}`),_.dataset.pos||(_.dataset.pos=C?"top":"bot");const V=b*(r?.2:1)+(r?0:x*E);_.style.setProperty("--y",`${C?V:-1*V}px`),_.style.setProperty("--g",`${x}`),_.style.setProperty("--s",""+(1-(r?S:0))),b+=_.offsetHeight,S+=.025})}},[r,l,n]),v.createElement("div",{ref:o,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),y1.pause())},onMouseLeave:m},a((g,y)=>{const x=y.length?{...d}:{...d,pointerEvents:"none"};return v.createElement("div",{className:k(g),style:x,key:`container-${g}`},y.map(C=>{let{content:b,props:S}=C;return v.createElement(ug,{...S,stacked:n,collapseAll:m,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},b)}))}))}const pg=l1(hg)` - .Toastify__toast { - background-color: #49c998ff; - width: fit-content; - min-height: 100%; - border-radius: 12px; - padding: 6px; - } - .Toastify__toast-body { - background-color: #49c998ff; - color: ${t1.white}; - font-weight: 500; - font-family: 'Barlow'; - } - .Toastify__close-button { - color: ${t1.white}; - } - .Toastify__progress-bar--error { - background-color: ${t1.primaryRed}; - } - .Toastify__progress-bar--success { - background-color: ${t1.primaryGreen}; - } - &.Toastify__toast-container--top-right { - width: fit-content; - height: auto; - top: 60px; - right: 48px; - } -`,mg=l1(s1)` - height: 100%; - width: 100%; - background-color: ${t1.black}; -`,xg=l1(s1)` - position: absolute; - bottom: 8px; - left: 8px; - color: ${t1.white}; - font-size: 12px; - opacity: 0.5; -`,kg=p.lazy(()=>W1(()=>import("./index-c1db1c7b.js"),["assets/index-c1db1c7b.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),gg=p.lazy(()=>W1(()=>import("./index-7e993c6c.js"),["assets/index-7e993c6c.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-39784bea.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-2d5341b4.js","assets/index.esm-258646ab.js","assets/index-8344fca4.js","assets/ClipLoader-a0a9ce2c.js"]).then(({Universe:e})=>({default:e}))),Cg=p.lazy(()=>W1(()=>import("./index-9d4b2019.js").then(e=>e.i),["assets/index-9d4b2019.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/ClipLoader-a0a9ce2c.js","assets/Skeleton-0e0ce42e.js","assets/Stack-34a19487.js","assets/map-8d3cef29.js","assets/Typography-4efd6f29.js","assets/createSvgIcon-23cd916d.js","assets/index-8331965f.js","assets/index-8344fca4.js","assets/index.esm-258646ab.js"]).then(({SideBar:e})=>({default:e}))),yg=()=>{const[e]=K3(),t=e.get("q"),{setBudget:n,setNodeCount:r}=qr(N=>N),i=p.useRef(null),o=p.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:c,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:h}=xn(N=>N),k=cm(N=>N.setTeachMeAnswer),{fetchData:m,setCategoryFilter:g,setAbortRequests:y,addNewNode:x,splashDataLoading:C,runningProjectId:b,setRunningProjectMessages:S,isFetching:w}=Je(N=>N),{setAiSummaryAnswer:E,getKeyExist:_,aiRefId:V}=Oa(N=>N),P=$i(),[$,T]=q3(N=>[N.realtimeGraphFeatureFlag,N.chatInterfaceFeatureFlag]),D=sm(),O=lh({mode:"onChange"}),{setValue:M}=O;p.useEffect(()=>{M("search",t??""),d(!1),P(null),c(!1),l(t??""),k(""),g(null)},[t,g,l,c,P,k,d,M]),p.useEffect(()=>{(async()=>{await m(n,y),a(!0),s?await X3(n):P(null)})()},[s,m,n,y,a,P]);const R=p.useCallback(()=>{r("INCREMENT")},[r]),F=p.useCallback(N=>{w||(i.current||(i.current={nodes:[],edges:[]}),N.edges&&i.current.edges.push(...N.edges),N.nodes&&i.current.nodes.push(...N.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const J={...i.current};i.current={nodes:[],edges:[]},x(J)},3e3))},[x,w]),H=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{answer:N.answer,answerLoading:!1})},[E]),Z=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{audio_en:N.audio_EN})},[E]),q=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{questions:N.relevant_questions.map(J=>J.question),questionsLoading:!1})},[E]),i1=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{sources:N.sources.map(J=>J.ref_id),sourcesLoading:!1})},[E]),X=p.useCallback(N=>{N.question&&_(V)&&E(V,{answerLoading:!1,entities:N.entities})},[E,_,V]);return p.useEffect(()=>(D&&(D.connect(),D.on("connect_error",N=>{console.error("Socket connection error:",N)}),D.on("newnode",R),T&&D.on("extractedentitieshook",X),T&&D.on("askquestionhook",H),T&&D.on("relevantquestionshook",q),T&&D.on("answersourceshook",i1),$&&D.on("new_node_created",F),T&&D.on("answeraudiohook",Z)),()=>{D&&D.off()}),[D,R,F,$,H,T,q,i1,X,Z]),p.useEffect(()=>{if(!b)return;const N=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");N.onopen=()=>{let J="a";J=b;const e1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:J})};N.send(JSON.stringify(e1))},N.onmessage=J=>{var c1;console.log("Message from server:",J.data);const e1=JSON.parse(J.data);if(e1.type==="ping")return;const n1=(c1=e1==null?void 0:e1.message)==null?void 0:c1.message;n1&&S(n1)},N.onerror=J=>{console.error("WebSocket error:",J)},N.onclose=()=>{console.log("WebSocket connection closed")}},[b,S]),p.useEffect(()=>{C||h()},[h,C]),u.jsxs(u.Fragment,{children:[u.jsx(ch,{}),u.jsx(eg,{}),u.jsx(I2,{hidden:!Y3||!0,isRoot:!0}),u.jsx(p.Suspense,{fallback:u.jsx("div",{children:"Loading..."}),children:C?null:u.jsxs(mg,{direction:"row",children:[u.jsxs(Wf,{...O,children:[u.jsx(kg,{}),!f&&u.jsx(Cg,{}),u.jsx(gg,{}),u.jsx(im,{}),u.jsx(qk,{}),u.jsxs(xg,{children:["v",um]}),u.jsx(v3,{})]}),u.jsx(wm,{}),u.jsx(pg,{})]})})]})},Mg=Object.freeze(Object.defineProperty({__proto__:null,App:yg},Symbol.toStringTag,{value:"Module"}));export{_n as $,Km as A,ii as B,o3 as C,Sx as D,Tx as E,Rx as F,S0 as G,Yx as H,Ik as I,we as J,Ya as K,st as L,ek as M,_3 as N,im as O,g1 as P,Ua as Q,al as R,Bk as S,Xp as T,Za as U,It as V,qa as W,Ht as X,R5 as Y,nc as Z,I0 as _,Zm as a,jg as a$,lh as a0,Wf as a1,vk as a2,$k as a3,ix as a4,Jx as a5,Ux as a6,qx as a7,$i as a8,Dk as a9,ol as aA,rk as aB,Ok as aC,Nx as aD,Mx as aE,xx as aF,fx as aG,hx as aH,Vp as aI,a3 as aJ,s3 as aK,Q3 as aL,yx as aM,Fx as aN,Bl as aO,ik as aP,Ix as aQ,tx as aR,hk as aS,fk as aT,Mk as aU,Fk as aV,Rk as aW,Ak as aX,jx as aY,$x as aZ,_x as a_,px as aa,dx as ab,J3 as ac,Xm as ad,qm as ae,Ym as af,Jm as ag,cx as ah,Dn as ai,ox as aj,Dx as ak,C3 as al,Vk as am,i3 as an,mk as ao,Ek as ap,y3 as aq,Kx as ar,yk as as,bk as at,ok as au,bx as av,Ka as aw,gk as ax,w3 as ay,Fp as az,Sk as b,S4 as b0,Lx as b1,wx as b2,vg as b3,Wa as b4,Gk as b5,ur as b6,ml as b7,U5 as b8,pc as b9,y1 as ba,z as bb,$g as bc,Mg as bd,ex as c,Dg as d,x3 as e,m0 as f,fh as g,Pg as h,b3 as i,Ep as j,or as k,wa as l,Sp as m,cp as n,Gg as o,tk as p,Um as q,dk as r,Bx as s,W5 as t,$m as u,Bg as v,el as w,pl as x,Pe as y,dr as z}; diff --git a/build/assets/index-2a7ba5ab.js b/build/assets/index-2a7ba5ab.js new file mode 100644 index 000000000..9047aa574 --- /dev/null +++ b/build/assets/index-2a7ba5ab.js @@ -0,0 +1 @@ +import"./index-bde6e5ef.js";import{e as o}from"./index-5c574277.js";const a=()=>{const{simulation:e,simulationHelpers:s}=o(r=>r);return{nodes:(e==null?void 0:e.nodes())||[],links:s.getLinks()}};export{a as u}; diff --git a/build/assets/index-427bda35.js b/build/assets/index-427bda35.js new file mode 100644 index 000000000..3fa21cfc4 --- /dev/null +++ b/build/assets/index-427bda35.js @@ -0,0 +1,50 @@ +import{w as i,x as t,F as c,j as e,M as j,r as l,v as B,z as w,bs as C,bt as R,at as z}from"./index-bde6e5ef.js";import{aS as I,e as D,u as E}from"./index-5c574277.js";import{S as L}from"./Skeleton-1ccdf5c1.js";import{C as M}from"./ClipLoader-2c26140d.js";const T=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(I,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` + color: ${t.white}; + font-family: 'Barlow'; + font-size: 20px; + font-weight: 400; + line-height: 30px; + letter-spacing: 0px; + text-align: center; + padding: 0 20px; + width: 100%; + word-wrap: break-word; +`,A=i(c)` + justify-content: center; + align-items: center; + font-size: 52px; + color: #23252f; + margin-bottom: 20px; + + path:nth-child(3) { + color: #6b7a8d; + } +`,W=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=D(s=>[s.setSelectedNode]),[v]=B(s=>[s.removeNode]),[N,y]=l.useState(!1),[r,S]=l.useState(),[a,b]=l.useState(),o=E(),u=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:n}=await C({search:o==null?void 0:o.name}),f=n.find(m=>m.name===o.name);b(f)}else S(o)}catch(n){console.log(n)}finally{y(!1)}}})()},[o]);const k=async()=>{d(!0);try{g(null),u(),h()}catch(s){console.warn(s)}finally{d(!1)}},$=async()=>{let s="";const n=r||a;if(!n)return;n!=null&&n.ref_id&&(s=n.ref_id),d(!0);const f=o==null?void 0:o.ref_id;try{await R(s),v(f),g(null),u(),h()}catch(m){console.warn(m)}finally{d(!1)}};return e.jsxs(_,{children:[e.jsx(T,{nodeName:(r==null?void 0:r.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:u,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(H,{color:"secondary",disabled:x||!r&&!a,onClick:r||a?$:k,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(O,{children:e.jsx(M,{color:t.lightGray,size:12})})]})]})]})},_=i(c)` + padding: 4px 12px 16px; +`,F=i(w)` + && { + background: ${t.white}; + color: ${t.BG2}; + + &:active, + &:hover, + &:focus { + background: ${t.white}; + color: ${t.BG2}; + } + } +`,H=i(w)` + && { + color: ${t.white}; + background-color: ${t.primaryRed}; + + &:hover, + &:active, + &:focus { + color: ${t.white}; + background-color: ${t.primaryRed}; + } + } +`,O=i.span` + margin-top: 2px; +`,Q=()=>e.jsx(z,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(W,{})});export{Q as RemoveNodeModal}; diff --git a/build/assets/index-4d73db1d.js b/build/assets/index-4d73db1d.js new file mode 100644 index 000000000..a22b727e7 --- /dev/null +++ b/build/assets/index-4d73db1d.js @@ -0,0 +1,18 @@ +import{ac as V,bV as C,bW as m,bX as F,w,H as k,F as d,al as M,r as x,E as z,j as n,aV as $,aW as R,z as S,M as E,a1 as _,a3 as W,aT as A,at as G}from"./index-bde6e5ef.js";import{u as I}from"./index-5c574277.js";import{A as K}from"./index-bf769610.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const U="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await F.signMessage(r),a=H(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function H(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function L(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=M(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await O(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await P(i.id);if(p.length>0){const B=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=v(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(X,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...R,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=w(k)` + font-size: 14px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 6px; +`,X=w(k)` + font-size: 18px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 6px; +`,Q=w(d)` + font-size: 13px; + font-family: Barlow; + color: #ff8f80; + line-height: 0.2px; + margin-top: 12px; + padding-top: 20px; +`,Y=()=>{const[e,t]=x.useState(""),{close:r}=E("createBounty"),s=I(),a=_({mode:"onChange"}),{handleSubmit:l,setValue:c}=a,u=()=>{c("budget",""),c("nodeType",""),c("workspaceUuid",""),r()},g=async f=>{const{budget:y,workspaceUuid:h}=f;try{const o=await q(),i={type:"code_generation",amount:Number(y),workspace_uuid:h||"ck9drb84nncjnaefo090",ref_id:s==null?void 0:s.ref_id,node_data:(s==null?void 0:s.properties)||{},jwt_token:o};await N(i),A("Bounty Created")}catch(o){t(o)}finally{c("budget",""),c("nodeType",""),c("workspaceUuid",""),u()}};return n.jsx(W,{...a,children:n.jsx("form",{id:"create-bounty-form",onSubmit:l(g),children:n.jsx(J,{errMessage:e,handleClose:u})})})},re=()=>{const{close:e}=E("createBounty"),t=_({mode:"onChange"}),{setValue:r}=t,s=()=>{r("budget",""),r("nodeType",""),e()},a="small";return n.jsx(G,{id:"createBounty",kind:a,onClose:s,preventOutsideClose:!0,children:n.jsx(Y,{})})};export{re as CreateBountyModal}; diff --git a/build/assets/index-52cf0cef.js b/build/assets/index-52cf0cef.js new file mode 100644 index 000000000..67494c31f --- /dev/null +++ b/build/assets/index-52cf0cef.js @@ -0,0 +1,47 @@ +import{w as c,x as b,H as E,F as s,M as x,a0 as A,r as l,j as e,aV as O,aW as V,a1 as P,a3 as k,z as F,bs as q,bq as G,v as H,at as Y}from"./index-bde6e5ef.js";import{u as I,T as J,aR as K}from"./index-5c574277.js";import{S as Q}from"./Skeleton-1ccdf5c1.js";import{C as X}from"./ClipLoader-2c26140d.js";const Z=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!Z.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=A(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(N=>({...N,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(J,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(K,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(O,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...V}:{}})]},o))})]})},oe=c(E)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ne=c(E)` + color: ${b.GRAY6}; + font-family: 'Barlow'; + font-size: 12px; + font-weight: 400; + line-height: 18px; +`,se=c.span` + display: inline-flex; + align-items: center; + justify-content: center; + gap: 15px; + margin: 5px 0 0 40px; +`,re=c(s)` + align-items: center; + cursor: pointer; +`,ie=c(s)` + display: flex; + max-height: 60vh; + overflow-y: auto; + padding-right: 40px; + width: calc(100% + 40px); +`,ce=()=>{var v,w,S;const{close:r}=x("editNodeName"),d=P({mode:"onChange"}),{watch:f,setValue:a,reset:j,getValues:m}=d,[u,y]=l.useState(!1),[g,o]=l.useState(!1),[n,N]=l.useState(),t=I(),{open:B}=x("removeNode");l.useEffect(()=>(n?Object.keys(n).forEach(i=>{a(i,n[i])}):t&&Object.keys(t).forEach(i=>{a(i,t[i])}),()=>{j()}),[n,a,j,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){o(!0);try{const{data:p}=await q({search:t==null?void 0:t.name}),U=p.find(W=>W.name===t.name);N(U)}catch(p){console.log(p)}finally{o(!1)}}})()},[t]);const D=f("imageInputType"),C=f("image_url");l.useEffect(()=>{a("imageInputType",ee(C))},[C,a]);const L=()=>{r()},h=n||t,R=async()=>{y(!0);const i=m();try{await G((h==null?void 0:h.ref_id)||"",{node_data:i});const{updateNode:p}=H.getState();p({...h,...i}),L()}catch(p){console.warn(p)}finally{y(!1)}},_=async()=>{B()},T=(w=(v=m())==null?void 0:v.name)==null?void 0:w.trim(),$=T&&(n==null?void 0:n.name.trim())!==T,z=m().image_url&&(t==null?void 0:t.image_url)!==((S=m())==null?void 0:S.image_url),M=u||g||!!C&&!D||!$&&!z;return e.jsx(le,{children:e.jsxs(k,{...d,children:[g?e.jsx(s,{my:24,children:e.jsx(Q,{})}):e.jsx(ae,{}),e.jsxs(s,{direction:"row",justify:"space-between",mt:20,children:[e.jsx(s,{direction:"column",children:e.jsx(de,{color:"secondary",disabled:g||!h,onClick:_,size:"large",variant:"contained",children:"Delete"})}),e.jsxs(me,{color:"secondary",disabled:M,onClick:R,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(pe,{children:e.jsx(X,{color:b.lightGray,size:12})})]})]})]})})},le=c(s)` + padding: 20px; +`,de=c(F)` + && { + color: ${b.primaryRed}; + background-color: rgba(237, 116, 116, 0.1); + flex: 1; + margin-right: 10px; + + &:hover, + &:active, + &:focus { + color: ${b.primaryRed}; + background-color: rgba(237, 116, 116, 0.2); + } + } +`,pe=c.span` + margin-top: 4px; +`,me=c(F)` + width: 80% !important; + margin: 0 auto !important; +`,fe=()=>{const{close:r}=x("editNodeName");return e.jsx(Y,{id:"editNodeName",kind:"regular",onClose:r,preventOutsideClose:!0,children:e.jsx(ce,{})})};export{fe as EditNodeNameModal}; diff --git a/build/assets/index-569ae916.js b/build/assets/index-569ae916.js new file mode 100644 index 000000000..3d893ff24 --- /dev/null +++ b/build/assets/index-569ae916.js @@ -0,0 +1,123 @@ +import{ac as Z,w as g,x as b,F as t,H as T,E as V,r as y,j as e,z as C,aX as ee,b4 as te,al as se,aV as L,aW as F,b9 as B,ba as ne,a0 as oe,bb as re,bc as ie,bd as ae,M as O,a1 as ce,v as le,aT as de,aU as I,at as pe,a3 as xe,ae as ue,ad as me,b7 as he}from"./index-bde6e5ef.js";import{aD as fe,ab as ye,e as ge}from"./index-5c574277.js";import{C as U}from"./ClipLoader-2c26140d.js";import{p as R}from"./index-c0853f89.js";import{A as je}from"./index-bf769610.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,u,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:u,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const u=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[fe(u)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(q,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(q,{children:[" ",e.jsx(ye,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + width: 141px; + height: 61px; + border: 1px solid ${b.GRAY7}; + border-radius: 6px; + padding: 16px; + .title { + font-family: Barlow; + color: ${b.secondaryText4}; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + color: ${b.white}; + font-size: 18px; + font-style: normal; + font-weight: 500; + } +`,Ce=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + color: ${b.secondaryText4}; + .title { + font-family: Barlow; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + font-size: 14px; + font-style: normal; + font-weight: 400; + } +`,ke=g(T)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ve=g(t)` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 2px; + + .errorIcon { + display: block; + font-size: 13px; + min-height: 13px; + min-width: 13px; + } + + span { + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; + white-space: normal; + letter-spacing: 0.2px; + cursor: pointer; + padding-left: 4px; + font-size: 13px; + font-family: Barlow; + line-height: 18px; + } +`,ze=g(t)` + display: flex; + align-items: center; + color: ${b.primaryRed}; + position: relative; + margin-top: 20px; +`,q=g.span` + display: inline-flex; + align-items: center; + justify-content: center; + margin-top: 2px; + + svg { + width: 16px; + height: 16px; + } +`,Be=({type:o,onclose:a})=>e.jsxs(t,{children:[e.jsx(t,{mb:20,children:e.jsx(G,{children:"Comfirm New Type"})}),e.jsx(t,{mb:25,children:e.jsxs(G,{children:["Type: ",o]})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:a,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),G=g(T)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[u,d]=y.useState(!1),[r,x]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=se();y.useEffect(()=>{(async()=>{d(!0);const m=await ne(c),E=(m.attributes&&typeof m.attributes=="object"?R(m.attributes):R(m)).filter(_=>_.key!=="node_key");x(E),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,m)=>s.required&&!m.required?-1:!s.required&&m.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:m})=>{if(m){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!u&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Ee,{children:"Set Attributes"})})}),e.jsx(_e,{children:u?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:m})=>e.jsxs(Ae,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:m?"Required":"Optional",rules:{...m?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||u||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},Ee=g(T)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,_e=g(t)` + width: 100%; + display: flex; + justify-content: center; + gap: 10px; + margin: 0 0 15px 0; + + .input__wrapper { + display: flex; + gap: 15px; + max-height: 225px; + overflow-y: auto; + padding-right: 20px; + width: calc(100% + 20px); + } +`,Ae=g(t)` + display: flex; + gap: 10px; + + #item-name { + color: ${b.GRAY7}; + -webkit-text-fill-color: ${b.GRAY7}; + } +`,Le=({type:o,skipToStep:a,name:c,sourceLink:u})=>{const d=x=>B.test(x??""),r=o==="Image"?d(c)&&d(u):d(c);return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Fe,{children:"Enter details"})})}),e.jsx(t,{mb:4,children:e.jsxs(T,{children:[o," name"]})}),e.jsx(t,{mb:12,children:e.jsx(L,{id:"cy-item-name",maxLength:250,name:"typeName",placeholder:"Paste name here...",rules:{...F,pattern:{message:"No leading whitespace allowed",value:B}}})}),o==="Image"?e.jsxs(e.Fragment,{children:[e.jsx(t,{mb:4,children:e.jsx(T,{children:"Link"})}),e.jsx(t,{mb:12,children:e.jsx(L,{id:"cy-item-link",maxLength:250,name:"sourceLink",placeholder:"Paste link here...",rules:{...F,pattern:{message:"Please avoid special characters and spaces",value:B}}})})]}):null,e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:()=>a("sourceType"),size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!r,onClick:()=>a("setBudget"),size:"large",variant:"contained",children:"Next"})})]})]})},Fe=g(T)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,Me=({skipToStep:o,allowNextStep:a,onSelectType:c,selectedType:u})=>{const[d]=oe(f=>[f.customSchemaFeatureFlag]),[r,x]=y.useState(null),[l,h]=y.useState(!1);y.useEffect(()=>{(async()=>{if(d){h(!0);try{const n=await re(),j=["about","schema"],p=n.schemas.filter(s=>s.ref_id&&!j.includes(s.type)&&!s.is_deleted).map(s=>({label:we(s.type),value:s.type,action:()=>o("setAttribues")}));x(p)}catch(n){console.warn(n)}finally{h(!1)}}else x([...ie,ae])})()},[u,d,o]);const w=f=>{c((f==null?void 0:f.label)||"")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(De,{children:"Select Type"})})}),e.jsx(t,{direction:"row",mb:20,children:e.jsx(je,{autoFocus:!0,isLoading:l,onSelect:w,options:r})}),e.jsx(t,{children:e.jsx(C,{color:"secondary",disabled:!a,onClick:()=>o("source"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},De=g(T)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,Pe=async(o,a,c)=>{var f;const u=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:x,...l}=u;let h="",w="";d!=="Create custom type"&&await ue(async()=>{const n=await me.enable();w=n==null?void 0:n.pubkey,h=await he()});try{const n=await Se(d,l,x,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},Je=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:u}=O("addItem"),{open:d}=O("addType"),{setBudget:r}=V(i=>i),x=ce({mode:"onChange"}),{watch:l,setValue:h,reset:w}=x,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=le(i=>i),[m]=ge(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[u,w]);const S=l("nodeType"),E=l("typeName"),_=l("sourceLink"),W=l("type");l("title");const M=()=>{c()},A=i=>{p(""),a(i)},Y=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),X=Object.entries(i).reduce(($,[Q,z])=>(z!=null&&z!==""&&($[Q]=z),$),{}),P={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...X}};s({nodes:[P],links:[]}),m(P)},H=x.handleSubmit(async i=>{p(""),n(!0);try{await Pe(i,r,Y),de("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),D=i=>{i==="Create custom type"?d():h("nodeType",i)},J={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:D,selectedType:S,skipToStep:A}),source:e.jsx(Le,{name:E,skipToStep:A,sourceLink:_||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:W}),setAttribues:e.jsx(Ie,{handleSelectType:D,nodeType:S,skipToStep:A})},K="small";return e.jsx(pe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(xe,{...x,children:e.jsx("form",{id:"add-node-form",onSubmit:H,children:J[o]})})})};export{Je as AddItemModal}; diff --git a/build/assets/index-59e95d3e.js b/build/assets/index-59e95d3e.js new file mode 100644 index 000000000..38d9f868e --- /dev/null +++ b/build/assets/index-59e95d3e.js @@ -0,0 +1,95 @@ +import{r as p,Q as I,j as e,F as x,C as T,bc as _,bo as L,w as n,H as C,M as A,a1 as E,at as F,a3 as M,x as B,br as N,z as k}from"./index-bde6e5ef.js";import{aH as z,aI as O,aJ as D,u as H}from"./index-5c574277.js";import{u as w}from"./index-bd13c6c5.js";import{S as P,A as Y,I as R}from"./constants-a3da365e.js";import{A as X,T as W}from"./index-bf769610.js";import{C as J}from"./ClipLoader-2c26140d.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const Q=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:Y,search:i,skip:"0",limit:"1000"};f(!0);try{const v=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(v)}catch{h([])}finally{f(!1)}};return I.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(g=>g.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(P,{onClick:()=>a(null),size:"medium",children:e.jsx(T,{})})]}):e.jsx(X,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},U=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx($,{children:"Merge topic"})})}),e.jsxs(K,{swap:c,children:[e.jsx(q,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(C,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(Q,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(z,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(O,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),$=n(C)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,q=n(x)` + flex: 1 1 100%; +`,G=n.div` + position: absolute; + top: 26px; + bottom: 26px; + left: 4px; + width: 35px; + border-left: 1.5px solid #6b7a8d4d; + border-top: 1.5px solid #6b7a8d4d; + border-bottom: 1.5px solid #6b7a8d4d; + border-radius: 12px 0 0 12px; +`,K=n.div` + position: relative; + color: white; + font-family: 'Barlow'; + display: flex; + flex-direction: ${s=>s.swap?"column-reverse":"column"}; + margin-bottom: 10px; + padding-left: 38px; +`,V=n(W)` + position: relative; + width: 100%; + padding: 16px; + gap: 10px; + border-radius: 6px; + border: 1px solid #6b7a8d4d; + opacity: 0px; + display: flex; +`,Z=n.div` + position: relative; + width: 100%; + padding: 15px; + gap: 10px; + border-radius: 6px; + border: 1.4px solid #6b7a8d4d; + opacity: 0px; + display: flex; + align-items: center; +`,ee=n.label` + color: #bac1c6; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + margin-bottom: 6px; +`,te=n.label` + color: #bac1c6; + background-color: #23252f; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + position: absolute; + left: 15px; + top: -10px; +`,oe=n.div` + position: absolute; + top: 0; + right: 0; + transform: translateY(-50%) translateX(50%); + color: #23252f; +`,se=n.div` + position: absolute; + color: transparent; + top: 50%; + left: 0; + transform: translateY(-50%) translateX(-50%); + cursor: pointer; + width: 32px; + height: 32px; + background-color: #303342; + display: flex; + justify-content: center; + align-items: center; + border-radius: 8px; +`,ne=n.div` + position: absolute; + bottom: 0; + right: 0; + transform: translateY(10px) translateX(3px); + color: #6b7a8d; + line-height: 1; +`,ge=()=>{const{close:s}=A("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=E({mode:"onChange"}),[h,m]=p.useState(!1),[f,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=H();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},g=async()=>{if(!(!r||!a)){m(!0);try{await N({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[R],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{m(!1)}}};return e.jsx(F,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(M,{...u,children:[e.jsx(U,{from:t,isSwapped:f,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!f)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!r,onClick:g,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(re,{children:e.jsx(J,{color:B.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(k)` + width: 293px !important; + margin: 0 0 10px auto !important; +`,re=n.span` + margin-top: 2px; +`;export{ge as MergeNodeModal}; diff --git a/build/assets/index-5c574277.js b/build/assets/index-5c574277.js new file mode 100644 index 000000000..7d9d87c03 --- /dev/null +++ b/build/assets/index-5c574277.js @@ -0,0 +1,626 @@ +import{g as Qr,_ as As,R as F0,a as I1,b as v,T as Jr,c as Ee,d as Se,s as D0,e as F,f as Ke,r as h,u as Ae,j as c,h as S0,i as _e,B as _s,k as H0,l as B0,m as ri,n as oi,o as pt,p as ai,q as eo,$ as Vs,W as Ds,t as An,v as g0,w as q,x as N,F as K,y as Bs,z as _n,C as xt,A as js,L as $s,D as kt,E as Vn,G as to,H as C1,S as Gs,I as p1,J as no,K as Ps,M as Ms,N as Ls,O as Os,P as Ts,Q as Rs,U as Fs,V as io,X as Is,Y as Hs,Z as Ns,a0 as zs,a1 as Zs,a2 as Us,a3 as Ws,a4 as Ks}from"./index-bde6e5ef.js";function qs(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function Ys(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const Xs=e=>{const[t,n,i]=e.split(":"),r=parseInt(t,10),o=parseInt(n,10),a=parseInt(i,10);return r*3600+o*60+a};var ro={exports:{}},Qs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Js=Qs,e2=Js;function oo(){}function ao(){}ao.resetWarningCache=oo;var t2=function(){function e(i,r,o,a,s,l){if(l!==e2){var u=new 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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={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:ao,resetWarningCache:oo};return n.PropTypes=n,n};ro.exports=t2();var n2=ro.exports;const o1=Qr(n2);function si(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function i2(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function Y1(e){return e&&e.ownerDocument||document}function ke(e){return Y1(e).defaultView||window}function r2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const o2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},li=o2,ci={disabled:!1};var a2=function(t){return t.scrollTop},ce="unmounted",y0="exited",b0="entering",R0="entered",Xt="exiting",l0=function(e){As(t,e);function t(i,r){var o;o=e.call(this,i,r)||this;var a=r,s=a&&!a.isMounting?i.enter:i.appear,l;return o.appearStatus=null,i.in?s?(l=y0,o.appearStatus=b0):l=R0:i.unmountOnExit||i.mountOnEnter?l=ce:l=y0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,o){var a=r.in;return a&&o.status===ce?{status:y0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==b0&&a!==R0&&(o=b0):(a===b0||a===R0)&&(o=Xt)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,a,s;return o=a=s=r,r!=null&&typeof r!="number"&&(o=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(r,o){if(r===void 0&&(r=!1),o!==null)if(this.cancelNextCallback(),o===b0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:F0.findDOMNode(this);a&&a2(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===y0&&this.setState({status:ce})},n.performEnter=function(r){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:r,l=this.props.nodeRef?[s]:[F0.findDOMNode(this),s],u=l[0],d=l[1],f=this.getTimeouts(),m=s?f.appear:f.enter;if(!r&&!a||ci.disabled){this.safeSetState({status:R0},function(){o.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:b0},function(){o.props.onEntering(u,d),o.onTransitionEnd(m,function(){o.safeSetState({status:R0},function(){o.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:F0.findDOMNode(this);if(!o||ci.disabled){this.safeSetState({status:y0},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Xt},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:y0},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:F0.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ce)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=I1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Jr.Provider,{value:null},typeof a=="function"?a(r,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);l0.contextType=Jr;l0.propTypes={};function M0(){}l0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:M0,onEntering:M0,onEntered:M0,onExit:M0,onExiting:M0,onExited:M0};l0.UNMOUNTED=ce;l0.EXITED=y0;l0.ENTERING=b0;l0.ENTERED=R0;l0.EXITING=Xt;const so=l0,lo=e=>e.scrollTop;function qe(e,t){var n,i;const{timeout:r,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(i=a.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function s2(e){return Ee("MuiPaper",e)}Se("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const l2=["className","component","elevation","square","variant"],c2=e=>{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return _e(o,s2,r)},u2=D0("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ke("#fff",li(t.elevation))}, ${Ke("#fff",li(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),d2=h.forwardRef(function(t,n){const i=Ae({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=i,u=I1(i,l2),d=F({},i,{component:o,elevation:a,square:s,variant:l}),f=c2(d);return c.jsx(u2,F({as:o,ownerState:d,className:S0(f.root,r),ref:n},u))}),f2=d2;function h2(e){return Ee("MuiIconButton",e)}const m2=Se("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),p2=m2,x2=["edge","children","className","color","disabled","disableFocusRipple","size"],k2=e=>{const{classes:t,disabled:n,color:i,edge:r,size:o}=e,a={root:["root",n&&"disabled",i!=="default"&&`color${H0(i)}`,r&&`edge${H0(r)}`,`size${H0(o)}`]};return _e(a,h2,t)},g2=D0(_s,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${H0(n.color)}`],n.edge&&t[`edge${H0(n.edge)}`],t[`size${H0(n.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":F({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),C2=h.forwardRef(function(t,n){const i=Ae({props:t,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=i,f=I1(i,x2),m=F({},i,{edge:r,color:s,disabled:l,disableFocusRipple:u,size:d}),k=k2(m);return c.jsx(g2,F({className:S0(k.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:m},f,{children:o}))}),co=C2;function uo(e){return typeof e=="string"}function y2(e,t,n){return e===void 0||uo(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}function fo(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function b2(e,t,n){return typeof e=="function"?e(t,n):e}function ho(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function v2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:o}=e;if(!t){const k=ui(n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),p=F({},n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),g=F({},n,r,i);return k.length>0&&(g.className=k),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const a=fo(F({},r,i)),s=di(i),l=di(r),u=t(a),d=ui(u==null?void 0:u.className,n==null?void 0:n.className,o,r==null?void 0:r.className,i==null?void 0:i.className),f=F({},u==null?void 0:u.style,n==null?void 0:n.style,r==null?void 0:r.style,i==null?void 0:i.style),m=F({},u,n,l,s);return d.length>0&&(m.className=d),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}const w2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ye(e){var t;const{elementType:n,externalSlotProps:i,ownerState:r,skipResolvingSlotProps:o=!1}=e,a=I1(e,w2),s=o?{}:b2(i,r),{props:l,internalRef:u}=v2(F({},a,{externalSlotProps:s})),d=B0(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return y2(n,F({},l,{ref:d}),r)}const E2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function S2(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function A2(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function _2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||A2(e))}function V2(e){const t=[],n=[];return Array.from(e.querySelectorAll(E2)).forEach((i,r)=>{const o=S2(i);o===-1||!_2(i)||(o===0?t.push(i):n.push({documentOrder:r,tabIndex:o,node:i}))}),n.sort((i,r)=>i.tabIndex===r.tabIndex?i.documentOrder-r.documentOrder:i.tabIndex-r.tabIndex).map(i=>i.node).concat(t)}function D2(){return!0}function B2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:r=!1,getTabbable:o=V2,isEnabled:a=D2,open:s}=e,l=h.useRef(!1),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),m=h.useRef(null),k=h.useRef(!1),p=h.useRef(null),g=B0(t.ref,p),C=h.useRef(null);h.useEffect(()=>{!s||!p.current||(k.current=!n)},[n,s]),h.useEffect(()=>{if(!s||!p.current)return;const b=Y1(p.current);return p.current.contains(b.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),k.current&&p.current.focus()),()=>{r||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),h.useEffect(()=>{if(!s||!p.current)return;const b=Y1(p.current),w=A=>{C.current=A,!(i||!a()||A.key!=="Tab")&&b.activeElement===p.current&&A.shiftKey&&(l.current=!0,d.current&&d.current.focus())},E=()=>{const A=p.current;if(A===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(A.contains(b.activeElement)||i&&b.activeElement!==u.current&&b.activeElement!==d.current)return;if(b.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!k.current)return;let _=[];if((b.activeElement===u.current||b.activeElement===d.current)&&(_=o(p.current)),_.length>0){var G,B;const D=!!((G=C.current)!=null&&G.shiftKey&&((B=C.current)==null?void 0:B.key)==="Tab"),V=_[0],R=_[_.length-1];typeof V!="string"&&typeof R!="string"&&(D?R.focus():V.focus())}else A.focus()};b.addEventListener("focusin",E),b.addEventListener("keydown",w,!0);const S=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(S),b.removeEventListener("focusin",E),b.removeEventListener("keydown",w,!0)}},[n,i,r,a,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0,m.current=b.target;const w=t.props.onFocus;w&&w(b)},y=b=>{f.current===null&&(f.current=b.relatedTarget),k.current=!0};return c.jsxs(h.Fragment,{children:[c.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:x}),c.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}function j2(e){return typeof e=="function"?e():e}const $2=h.forwardRef(function(t,n){const{children:i,container:r,disablePortal:o=!1}=t,[a,s]=h.useState(null),l=B0(h.isValidElement(i)?i.ref:null,n);if(ri(()=>{o||s(j2(r)||document.body)},[r,o]),ri(()=>{if(a&&!o)return oi(n,a),()=>{oi(n,null)}},[n,a,o]),o){if(h.isValidElement(i)){const u={ref:l};return h.cloneElement(i,u)}return c.jsx(h.Fragment,{children:i})}return c.jsx(h.Fragment,{children:a&&pt.createPortal(i,a)})});function G2(e){const t=Y1(e);return t.body===e?ke(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function he(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fi(e){return parseInt(ke(e).getComputedStyle(e).paddingRight,10)||0}function P2(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function hi(e,t,n,i,r){const o=[t,n,...i];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!P2(a);s&&l&&he(a,r)})}function Gt(e,t){let n=-1;return e.some((i,r)=>t(i)?(n=r,!0):!1),n}function M2(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(G2(i)){const a=r2(Y1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${fi(i)+a}px`;const s=Y1(i).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${fi(l)+a}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=Y1(i).body;else{const a=i.parentElement,s=ke(i);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function L2(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O2{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&he(t.modalRef,!1);const r=L2(n);hi(n,t.mount,t.modalRef,r,!0);const o=Gt(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),i)}mount(t,n){const i=Gt(this.containers,o=>o.modals.indexOf(t)!==-1),r=this.containers[i];r.restore||(r.restore=M2(r,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const r=Gt(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&he(t.modalRef,n),hi(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&he(a.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function T2(e){return typeof e=="function"?e():e}function R2(e){return e?e.props.hasOwnProperty("in"):!1}const F2=new O2;function I2(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:r=F2,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:d,rootRef:f}=e,m=h.useRef({}),k=h.useRef(null),p=h.useRef(null),g=B0(p,f),[C,x]=h.useState(!d),y=R2(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>Y1(k.current),E=()=>(m.current.modalRef=p.current,m.current.mount=k.current,m.current),S=()=>{r.mount(E(),{disableScrollLock:i}),p.current&&(p.current.scrollTop=0)},A=ai(()=>{const j=T2(t)||w().body;r.add(E(),j),p.current&&S()}),_=h.useCallback(()=>r.isTopModal(E()),[r]),G=ai(j=>{k.current=j,j&&(d&&_()?S():p.current&&he(p.current,b))}),B=h.useCallback(()=>{r.remove(E(),b)},[b,r]);h.useEffect(()=>()=>{B()},[B]),h.useEffect(()=>{d?A():(!y||!o)&&B()},[d,B,y,o,A]);const D=j=>L=>{var Z;(Z=j.onKeyDown)==null||Z.call(j,L),!(L.key!=="Escape"||L.which===229||!_())&&(n||(L.stopPropagation(),u&&u(L,"escapeKeyDown")))},V=j=>L=>{var Z;(Z=j.onClick)==null||Z.call(j,L),L.target===L.currentTarget&&u&&u(L,"backdropClick")};return{getRootProps:(j={})=>{const L=fo(e);delete L.onTransitionEnter,delete L.onTransitionExited;const Z=F({},L,j);return F({role:"presentation"},Z,{onKeyDown:D(Z),ref:g})},getBackdropProps:(j={})=>{const L=j;return F({"aria-hidden":!0},L,{onClick:V(L),open:d})},getTransitionProps:()=>{const j=()=>{x(!1),a&&a()},L=()=>{x(!0),s&&s(),o&&B()};return{onEnter:si(j,l==null?void 0:l.props.onEnter),onExited:si(L,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:G,isTopModal:_,exited:C,hasTransition:y}}const H2=["top","right","bottom","left"],m0=Math.min,$1=Math.max,Xe=Math.round,Te=Math.floor,p0=e=>({x:e,y:e}),N2={left:"right",right:"left",bottom:"top",top:"bottom"},z2={start:"end",end:"start"};function Qt(e,t,n){return $1(e,m0(t,n))}function r0(e,t){return typeof e=="function"?e(t):e}function o0(e){return e.split("-")[0]}function q0(e){return e.split("-")[1]}function Dn(e){return e==="x"?"y":"x"}function Bn(e){return e==="y"?"height":"width"}function Y0(e){return["top","bottom"].includes(o0(e))?"y":"x"}function jn(e){return Dn(Y0(e))}function Z2(e,t,n){n===void 0&&(n=!1);const i=q0(e),r=jn(e),o=Bn(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Qe(a)),[a,Qe(a)]}function U2(e){const t=Qe(e);return[Jt(e),t,Jt(t)]}function Jt(e){return e.replace(/start|end/g,t=>z2[t])}function W2(e,t,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:i:t?i:r;case"left":case"right":return t?o:a;default:return[]}}function K2(e,t,n,i){const r=q0(e);let o=W2(o0(e),n==="start",i);return r&&(o=o.map(a=>a+"-"+r),t&&(o=o.concat(o.map(Jt)))),o}function Qe(e){return e.replace(/left|right|bottom|top/g,t=>N2[t])}function q2(e){return{top:0,right:0,bottom:0,left:0,...e}}function mo(e){return typeof e!="number"?q2(e):{top:e,right:e,bottom:e,left:e}}function Je(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function mi(e,t,n){let{reference:i,floating:r}=e;const o=Y0(t),a=jn(t),s=Bn(a),l=o0(t),u=o==="y",d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,m=i[s]/2-r[s]/2;let k;switch(l){case"top":k={x:d,y:i.y-r.height};break;case"bottom":k={x:d,y:i.y+i.height};break;case"right":k={x:i.x+i.width,y:f};break;case"left":k={x:i.x-r.width,y:f};break;default:k={x:i.x,y:i.y}}switch(q0(t)){case"start":k[a]-=m*(n&&u?-1:1);break;case"end":k[a]+=m*(n&&u?-1:1);break}return k}const Y2=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=mi(u,i,l),m=i,k={},p=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=r0(e,t)||{};if(u==null)return{};const f=mo(d),m={x:n,y:i},k=jn(r),p=Bn(k),g=await a.getDimensions(u),C=k==="y",x=C?"top":"left",y=C?"bottom":"right",b=C?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[k]-m[k]-o.floating[p],E=m[k]-o.reference[k],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=S?S[b]:0;(!A||!await(a.isElement==null?void 0:a.isElement(S)))&&(A=s.floating[b]||o.floating[p]);const _=w/2-E/2,G=A/2-g[p]/2-1,B=m0(f[x],G),D=m0(f[y],G),V=B,R=A-g[p]-D,P=A/2-g[p]/2+_,$=Qt(V,P,R),j=!l.arrow&&q0(r)!=null&&P!=$&&o.reference[p]/2-(PV<=0)){var G,B;const V=(((G=o.flip)==null?void 0:G.index)||0)+1,R=E[V];if(R)return{data:{index:V,overflows:_},reset:{placement:R}};let P=(B=_.filter($=>$.overflows[0]<=0).sort(($,j)=>$.overflows[1]-j.overflows[1])[0])==null?void 0:B.placement;if(!P)switch(k){case"bestFit":{var D;const $=(D=_.map(j=>[j.placement,j.overflows.filter(L=>L>0).reduce((L,Z)=>L+Z,0)]).sort((j,L)=>j[1]-L[1])[0])==null?void 0:D[0];$&&(P=$);break}case"initialPlacement":P=s;break}if(r!==P)return{reset:{placement:P}}}return{}}}};function xi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ki(e){return H2.some(t=>e[t]>=0)}const Q2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=r0(e,t);switch(i){case"referenceHidden":{const o=await ge(t,{...r,elementContext:"reference"}),a=xi(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ki(a)}}}case"escaped":{const o=await ge(t,{...r,altBoundary:!0}),a=xi(o,n.floating);return{data:{escapedOffsets:a,escaped:ki(a)}}}default:return{}}}}};async function J2(e,t){const{placement:n,platform:i,elements:r}=e,o=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=o0(n),s=q0(n),l=Y0(n)==="y",u=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,f=r0(t,e);let{mainAxis:m,crossAxis:k,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof p=="number"&&(k=s==="end"?p*-1:p),l?{x:k*d,y:m*u}:{x:m*u,y:k*d}}const e3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:o,placement:a,middlewareData:s}=t,l=await J2(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}}},t3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:C=>{let{x,y}=C;return{x,y}}},...l}=r0(e,t),u={x:n,y:i},d=await ge(t,l),f=Y0(o0(r)),m=Dn(f);let k=u[m],p=u[f];if(o){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=k+d[C],b=k-d[x];k=Qt(y,k,b)}if(a){const C=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=p+d[C],b=p-d[x];p=Qt(y,p,b)}const g=s.fn({...t,[m]:k,[f]:p});return{...g,data:{x:g.x-n,y:g.y-i}}}}},n3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=r0(e,t),d={x:n,y:i},f=Y0(r),m=Dn(f);let k=d[m],p=d[f];const g=r0(s,t),C=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=m==="y"?"height":"width",w=o.reference[m]-o.floating[b]+C.mainAxis,E=o.reference[m]+o.reference[b]-C.mainAxis;kE&&(k=E)}if(u){var x,y;const b=m==="y"?"width":"height",w=["top","left"].includes(o0(r)),E=o.reference[f]-o.floating[b]+(w&&((x=a.offset)==null?void 0:x[f])||0)+(w?0:C.crossAxis),S=o.reference[f]+o.reference[b]+(w?0:((y=a.offset)==null?void 0:y[f])||0)-(w?C.crossAxis:0);pS&&(p=S)}return{[m]:k,[f]:p}}}},i3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:r,elements:o}=t,{apply:a=()=>{},...s}=r0(e,t),l=await ge(t,s),u=o0(n),d=q0(n),f=Y0(n)==="y",{width:m,height:k}=i.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(g=u,p=d==="end"?"top":"bottom");const C=k-l[p],x=m-l[g],y=!t.middlewareData.shift;let b=C,w=x;if(f){const S=m-l.left-l.right;w=d||y?m0(x,S):S}else{const S=k-l.top-l.bottom;b=d||y?m0(C,S):S}if(y&&!d){const S=$1(l.left,0),A=$1(l.right,0),_=$1(l.top,0),G=$1(l.bottom,0);f?w=m-2*(S!==0||A!==0?S+A:$1(l.left,l.right)):b=k-2*(_!==0||G!==0?_+G:$1(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const E=await r.getDimensions(o.floating);return m!==E.width||k!==E.height?{reset:{rects:!0}}:{}}}};function x0(e){return po(e)?(e.nodeName||"").toLowerCase():"#document"}function G1(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function c0(e){var t;return(t=(po(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function po(e){return e instanceof Node||e instanceof G1(e).Node}function a0(e){return e instanceof Element||e instanceof G1(e).Element}function X1(e){return e instanceof HTMLElement||e instanceof G1(e).HTMLElement}function gi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof G1(e).ShadowRoot}function Ve(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=O1(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function r3(e){return["table","td","th"].includes(x0(e))}function $n(e){const t=Gn(),n=O1(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function o3(e){let t=Z0(e);for(;X1(t)&&!gt(t);){if($n(t))return t;t=Z0(t)}return null}function Gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gt(e){return["html","body","#document"].includes(x0(e))}function O1(e){return G1(e).getComputedStyle(e)}function Ct(e){return a0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z0(e){if(x0(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gi(e)&&e.host||c0(e);return gi(t)?t.host:t}function xo(e){const t=Z0(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:X1(t)&&Ve(t)?t:xo(t)}function Ce(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xo(e),o=r===((i=e.ownerDocument)==null?void 0:i.body),a=G1(r);return o?t.concat(a,a.visualViewport||[],Ve(r)?r:[],a.frameElement&&n?Ce(a.frameElement):[]):t.concat(r,Ce(r,[],n))}function ko(e){const t=O1(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=X1(e),o=r?e.offsetWidth:n,a=r?e.offsetHeight:i,s=Xe(n)!==o||Xe(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function Pn(e){return a0(e)?e:e.contextElement}function N0(e){const t=Pn(e);if(!X1(t))return p0(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:o}=ko(t);let a=(o?Xe(n.width):n.width)/i,s=(o?Xe(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const a3=p0(0);function go(e){const t=G1(e);return!Gn()||!t.visualViewport?a3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function s3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==G1(e)?!1:t}function A0(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Pn(e);let a=p0(1);t&&(i?a0(i)&&(a=N0(i)):a=N0(e));const s=s3(o,n,i)?go(o):p0(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(o){const m=G1(o),k=i&&a0(i)?G1(i):i;let p=m.frameElement;for(;p&&i&&k!==m;){const g=N0(p),C=p.getBoundingClientRect(),x=O1(p),y=C.left+(p.clientLeft+parseFloat(x.paddingLeft))*g.x,b=C.top+(p.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,f*=g.y,l+=y,u+=b,p=G1(p).frameElement}}return Je({width:d,height:f,x:l,y:u})}function l3(e){let{rect:t,offsetParent:n,strategy:i}=e;const r=X1(n),o=c0(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=p0(1);const l=p0(0);if((r||!r&&i!=="fixed")&&((x0(n)!=="body"||Ve(o))&&(a=Ct(n)),X1(n))){const u=A0(n);s=N0(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function c3(e){return Array.from(e.getClientRects())}function Co(e){return A0(c0(e)).left+Ct(e).scrollLeft}function u3(e){const t=c0(e),n=Ct(e),i=e.ownerDocument.body,r=$1(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=$1(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Co(e);const s=-n.scrollTop;return O1(i).direction==="rtl"&&(a+=$1(t.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}function d3(e,t){const n=G1(e),i=c0(e),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const u=Gn();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s,y:l}}function f3(e,t){const n=A0(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=X1(e)?N0(e):p0(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=r*o.x,u=i*o.y;return{width:a,height:s,x:l,y:u}}function Ci(e,t,n){let i;if(t==="viewport")i=d3(e,n);else if(t==="document")i=u3(c0(e));else if(a0(t))i=f3(t,n);else{const r=go(e);i={...t,x:t.x-r.x,y:t.y-r.y}}return Je(i)}function yo(e,t){const n=Z0(e);return n===t||!a0(n)||gt(n)?!1:O1(n).position==="fixed"||yo(n,t)}function h3(e,t){const n=t.get(e);if(n)return n;let i=Ce(e,[],!1).filter(s=>a0(s)&&x0(s)!=="body"),r=null;const o=O1(e).position==="fixed";let a=o?Z0(e):e;for(;a0(a)&&!gt(a);){const s=O1(a),l=$n(a);!l&&s.position==="fixed"&&(r=null),(o?!l&&!r:!l&&s.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Ve(a)&&!l&&yo(e,a))?i=i.filter(d=>d!==a):r=s,a=Z0(a)}return t.set(e,i),i}function m3(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a=[...n==="clippingAncestors"?h3(t,this._c):[].concat(n),i],s=a[0],l=a.reduce((u,d)=>{const f=Ci(t,d,r);return u.top=$1(f.top,u.top),u.right=m0(f.right,u.right),u.bottom=m0(f.bottom,u.bottom),u.left=$1(f.left,u.left),u},Ci(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function p3(e){return ko(e)}function x3(e,t,n){const i=X1(t),r=c0(t),o=n==="fixed",a=A0(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=p0(0);if(i||!i&&!o)if((x0(t)!=="body"||Ve(r))&&(s=Ct(t)),i){const u=A0(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=Co(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yi(e,t){return!X1(e)||O1(e).position==="fixed"?null:t?t(e):e.offsetParent}function bo(e,t){const n=G1(e);if(!X1(e))return n;let i=yi(e,t);for(;i&&r3(i)&&O1(i).position==="static";)i=yi(i,t);return i&&(x0(i)==="html"||x0(i)==="body"&&O1(i).position==="static"&&!$n(i))?n:i||o3(e)||n}const k3=async function(e){let{reference:t,floating:n,strategy:i}=e;const r=this.getOffsetParent||bo,o=this.getDimensions;return{reference:x3(t,await r(n),i),floating:{x:0,y:0,...await o(n)}}};function g3(e){return O1(e).direction==="rtl"}const C3={convertOffsetParentRelativeRectToViewportRelativeRect:l3,getDocumentElement:c0,getClippingRect:m3,getOffsetParent:bo,getElementRects:k3,getClientRects:c3,getDimensions:p3,getScale:N0,isElement:a0,isRTL:g3};function y3(e,t){let n=null,i;const r=c0(e);function o(){clearTimeout(i),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:d,width:f,height:m}=e.getBoundingClientRect();if(s||t(),!f||!m)return;const k=Te(d),p=Te(r.clientWidth-(u+f)),g=Te(r.clientHeight-(d+m)),C=Te(u),y={rootMargin:-k+"px "+-p+"px "+-g+"px "+-C+"px",threshold:$1(0,m0(1,l))||1};let b=!0;function w(E){const S=E[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):i=setTimeout(()=>{a(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return a(!0),o}function b3(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=Pn(e),d=r||o?[...u?Ce(u):[],...Ce(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=u&&s?y3(u,n):null;let m=-1,k=null;a&&(k=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&k&&(k.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{k&&k.observe(t)})),n()}),u&&!l&&k.observe(u),k.observe(t));let p,g=l?A0(e):null;l&&C();function C(){const x=A0(e);g&&(x.x!==g.x||x.y!==g.y||x.width!==g.width||x.height!==g.height)&&n(),g=x,p=requestAnimationFrame(C)}return n(),()=>{d.forEach(x=>{r&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f&&f(),k&&k.disconnect(),k=null,l&&cancelAnimationFrame(p)}}const v3=(e,t,n)=>{const i=new Map,r={platform:C3,...n},o={...r.platform,_c:i};return Y2(e,t,{...r,platform:o})},w3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?pi({element:i.current,padding:r}).fn(n):{}:i?pi({element:i,padding:r}).fn(n):{}}}};var Ze=typeof document<"u"?h.useLayoutEffect:h.useEffect;function et(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!et(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const o=r[i];if(!(o==="_owner"&&e.$$typeof)&&!et(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function vo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bi(e,t){const n=vo(e);return Math.round(t*n)/n}function vi(e){const t=h.useRef(e);return Ze(()=>{t.current=e}),t}function E3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,k]=h.useState(i);et(m,i)||k(i);const[p,g]=h.useState(null),[C,x]=h.useState(null),y=h.useCallback(j=>{j!=S.current&&(S.current=j,g(j))},[g]),b=h.useCallback(j=>{j!==A.current&&(A.current=j,x(j))},[x]),w=o||p,E=a||C,S=h.useRef(null),A=h.useRef(null),_=h.useRef(d),G=vi(l),B=vi(r),D=h.useCallback(()=>{if(!S.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),v3(S.current,A.current,j).then(L=>{const Z={...L,isPositioned:!0};V.current&&!et(_.current,Z)&&(_.current=Z,pt.flushSync(()=>{f(Z)}))})},[m,t,n,B]);Ze(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(j=>({...j,isPositioned:!1})))},[u]);const V=h.useRef(!1);Ze(()=>(V.current=!0,()=>{V.current=!1}),[]),Ze(()=>{if(w&&(S.current=w),E&&(A.current=E),w&&E){if(G.current)return G.current(w,E,D);D()}},[w,E,D,G]);const R=h.useMemo(()=>({reference:S,floating:A,setReference:y,setFloating:b}),[y,b]),P=h.useMemo(()=>({reference:w,floating:E}),[w,E]),$=h.useMemo(()=>{const j={position:n,left:0,top:0};if(!P.floating)return j;const L=bi(P.floating,d.x),Z=bi(P.floating,d.y);return s?{...j,transform:"translate("+L+"px, "+Z+"px)",...vo(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:Z}},[n,s,P.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:D,refs:R,elements:P,floatingStyles:$}),[d,D,R,P,$])}const S3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],A3={entering:{opacity:1},entered:{opacity:1}},_3=h.forwardRef(function(t,n){const i=eo(),r={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:k,onExited:p,onExiting:g,style:C,timeout:x=r,TransitionComponent:y=so}=t,b=I1(t,S3),w=h.useRef(null),E=B0(w,s.ref,n),S=P=>$=>{if(P){const j=w.current;$===void 0?P(j):P(j,$)}},A=S(m),_=S((P,$)=>{lo(P);const j=qe({style:C,timeout:x,easing:l},{mode:"enter"});P.style.webkitTransition=i.transitions.create("opacity",j),P.style.transition=i.transitions.create("opacity",j),d&&d(P,$)}),G=S(f),B=S(g),D=S(P=>{const $=qe({style:C,timeout:x,easing:l},{mode:"exit"});P.style.webkitTransition=i.transitions.create("opacity",$),P.style.transition=i.transitions.create("opacity",$),k&&k(P)}),V=S(p),R=P=>{o&&o(w.current,P)};return c.jsx(y,F({appear:a,in:u,nodeRef:w,onEnter:_,onEntered:G,onEntering:A,onExit:D,onExited:V,onExiting:B,addEndListener:R,timeout:x},b,{children:(P,$)=>h.cloneElement(s,F({style:F({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},A3[P],C,s.props.style),ref:E},$))}))}),V3=_3;function D3(e){return Ee("MuiBackdrop",e)}Se("MuiBackdrop",["root","invisible"]);const B3=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],j3=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},D3,t)},$3=D0("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),G3=h.forwardRef(function(t,n){var i,r,o;const a=Ae({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:d={},componentsProps:f={},invisible:m=!1,open:k,slotProps:p={},slots:g={},TransitionComponent:C=V3,transitionDuration:x}=a,y=I1(a,B3),b=F({},a,{component:u,invisible:m}),w=j3(b),E=(i=p.root)!=null?i:f.root;return c.jsx(C,F({in:k,timeout:x},y,{children:c.jsx($3,F({"aria-hidden":!0},E,{as:(r=(o=g.root)!=null?o:d.Root)!=null?r:u,className:S0(w.root,l,E==null?void 0:E.className),ownerState:F({},b,E==null?void 0:E.ownerState),classes:w,ref:n,children:s}))}))}),P3=G3;function M3(e){return Ee("MuiModal",e)}Se("MuiModal",["root","hidden","backdrop"]);const L3=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],O3=e=>{const{open:t,exited:n,classes:i}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},M3,i)},T3=D0("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),R3=D0(P3,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),F3=h.forwardRef(function(t,n){var i,r,o,a,s,l;const u=Ae({name:"MuiModal",props:t}),{BackdropComponent:d=R3,BackdropProps:f,className:m,closeAfterTransition:k=!1,children:p,container:g,component:C,components:x={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:A=!1,disableScrollLock:_=!1,hideBackdrop:G=!1,keepMounted:B=!1,onBackdropClick:D,open:V,slotProps:R,slots:P}=u,$=I1(u,L3),j=F({},u,{closeAfterTransition:k,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:A,disableScrollLock:_,hideBackdrop:G,keepMounted:B}),{getRootProps:L,getBackdropProps:Z,getTransitionProps:U,portalRef:J,isTopModal:W,exited:M,hasTransition:X}=I2(F({},j,{rootRef:n})),e1=F({},j,{exited:M}),Q=O3(e1),d1={};if(p.props.tabIndex===void 0&&(d1.tabIndex="-1"),X){const{onEnter:Y,onExited:r1}=U();d1.onEnter=Y,d1.onExited=r1}const S1=(i=(r=P==null?void 0:P.root)!=null?r:x.Root)!=null?i:T3,A1=(o=(a=P==null?void 0:P.backdrop)!=null?a:x.Backdrop)!=null?o:d,j1=(s=R==null?void 0:R.root)!=null?s:y.root,R1=(l=R==null?void 0:R.backdrop)!=null?l:y.backdrop,d0=Ye({elementType:S1,externalSlotProps:j1,externalForwardedProps:$,getSlotProps:L,additionalProps:{ref:n,as:C},ownerState:e1,className:S0(m,j1==null?void 0:j1.className,Q==null?void 0:Q.root,!e1.open&&e1.exited&&(Q==null?void 0:Q.hidden))}),f0=Ye({elementType:A1,externalSlotProps:R1,additionalProps:f,getSlotProps:Y=>Z(F({},Y,{onClick:r1=>{D&&D(r1),Y!=null&&Y.onClick&&Y.onClick(r1)}})),className:S0(R1==null?void 0:R1.className,f==null?void 0:f.className,Q==null?void 0:Q.backdrop),ownerState:e1});return!B&&!V&&(!X||M)?null:c.jsx($2,{ref:J,container:g,disablePortal:S,children:c.jsxs(S1,F({},d0,{children:[!G&&d?c.jsx(A1,F({},f0)):null,c.jsx(B2,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:A,isEnabled:W,open:V,children:h.cloneElement(p,d1)})]}))})}),I3=F3,H3=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function en(e){return`scale(${e}, ${e**2})`}const N3={entering:{opacity:1,transform:en(1)},entered:{opacity:1,transform:"none"}},Pt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wo=h.forwardRef(function(t,n){const{addEndListener:i,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:m,onExiting:k,style:p,timeout:g="auto",TransitionComponent:C=so}=t,x=I1(t,H3),y=h.useRef(),b=h.useRef(),w=eo(),E=h.useRef(null),S=B0(E,o.ref,n),A=$=>j=>{if($){const L=E.current;j===void 0?$(L):$(L,j)}},_=A(d),G=A(($,j)=>{lo($);const{duration:L,delay:Z,easing:U}=qe({style:p,timeout:g,easing:a},{mode:"enter"});let J;g==="auto"?(J=w.transitions.getAutoHeightDuration($.clientHeight),b.current=J):J=L,$.style.transition=[w.transitions.create("opacity",{duration:J,delay:Z}),w.transitions.create("transform",{duration:Pt?J:J*.666,delay:Z,easing:U})].join(","),l&&l($,j)}),B=A(u),D=A(k),V=A($=>{const{duration:j,delay:L,easing:Z}=qe({style:p,timeout:g,easing:a},{mode:"exit"});let U;g==="auto"?(U=w.transitions.getAutoHeightDuration($.clientHeight),b.current=U):U=j,$.style.transition=[w.transitions.create("opacity",{duration:U,delay:L}),w.transitions.create("transform",{duration:Pt?U:U*.666,delay:Pt?L:L||U*.333,easing:Z})].join(","),$.style.opacity=0,$.style.transform=en(.75),f&&f($)}),R=A(m),P=$=>{g==="auto"&&(y.current=setTimeout($,b.current||0)),i&&i(E.current,$)};return h.useEffect(()=>()=>{clearTimeout(y.current)},[]),c.jsx(C,F({appear:r,in:s,nodeRef:E,onEnter:G,onEntered:B,onEntering:_,onExit:V,onExited:R,onExiting:D,addEndListener:P,timeout:g==="auto"?null:g},x,{children:($,j)=>h.cloneElement(o,F({style:F({opacity:0,transform:en(.75),visibility:$==="exited"&&!s?"hidden":void 0},N3[$],p,o.props.style),ref:S},j))}))});wo.muiSupportAuto=!0;const z3=wo;function Z3(e){return Ee("MuiPopover",e)}Se("MuiPopover",["root","paper"]);const U3=["onEntering"],W3=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],K3=["slotProps"];function wi(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ei(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Si(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mt(e){return typeof e=="function"?e():e}const q3=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},Z3,t)},Y3=D0(I3,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X3=D0(f2,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Q3=h.forwardRef(function(t,n){var i,r,o;const a=Ae({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:m,className:k,container:p,elevation:g=8,marginThreshold:C=16,open:x,PaperProps:y={},slots:b,slotProps:w,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=z3,transitionDuration:A="auto",TransitionProps:{onEntering:_}={},disableScrollLock:G=!1}=a,B=I1(a.TransitionProps,U3),D=I1(a,W3),V=(i=w==null?void 0:w.paper)!=null?i:y,R=h.useRef(),P=B0(R,V.ref),$=F({},a,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:C,externalPaperSlotProps:V,transformOrigin:E,TransitionComponent:S,transitionDuration:A,TransitionProps:B}),j=q3($),L=h.useCallback(()=>{if(f==="anchorPosition")return d;const Y=Mt(l),a1=(Y&&Y.nodeType===1?Y:Y1(R.current).body).getBoundingClientRect();return{top:a1.top+wi(a1,u.vertical),left:a1.left+Ei(a1,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),Z=h.useCallback(Y=>({vertical:wi(Y,E.vertical),horizontal:Ei(Y,E.horizontal)}),[E.horizontal,E.vertical]),U=h.useCallback(Y=>{const r1={width:Y.offsetWidth,height:Y.offsetHeight},a1=Z(r1);if(f==="none")return{top:null,left:null,transformOrigin:Si(a1)};const Z1=L();let U1=Z1.top-a1.vertical,W1=Z1.left-a1.horizontal;const G0=U1+r1.height,C0=W1+r1.width,K1=ke(Mt(l)),Le=K1.innerHeight-C,O=K1.innerWidth-C;if(C!==null&&U1Le){const I=G0-Le;U1-=I,a1.vertical+=I}if(C!==null&&W1O){const I=C0-O;W1-=I,a1.horizontal+=I}return{top:`${Math.round(U1)}px`,left:`${Math.round(W1)}px`,transformOrigin:Si(a1)}},[l,f,L,Z,C]),[J,W]=h.useState(x),M=h.useCallback(()=>{const Y=R.current;if(!Y)return;const r1=U(Y);r1.top!==null&&(Y.style.top=r1.top),r1.left!==null&&(Y.style.left=r1.left),Y.style.transformOrigin=r1.transformOrigin,W(!0)},[U]);h.useEffect(()=>(G&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[l,G,M]);const X=(Y,r1)=>{_&&_(Y,r1),M()},e1=()=>{W(!1)};h.useEffect(()=>{x&&M()}),h.useImperativeHandle(s,()=>x?{updatePosition:()=>{M()}}:null,[x,M]),h.useEffect(()=>{if(!x)return;const Y=i2(()=>{M()}),r1=ke(l);return r1.addEventListener("resize",Y),()=>{Y.clear(),r1.removeEventListener("resize",Y)}},[l,x,M]);let Q=A;A==="auto"&&!S.muiSupportAuto&&(Q=void 0);const d1=p||(l?Y1(Mt(l)).body:void 0),S1=(r=b==null?void 0:b.root)!=null?r:Y3,A1=(o=b==null?void 0:b.paper)!=null?o:X3,j1=Ye({elementType:A1,externalSlotProps:F({},V,{style:J?V.style:F({},V.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:$,className:S0(j.paper,V==null?void 0:V.className)}),R1=Ye({elementType:S1,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:D,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:d1,open:x},ownerState:$,className:S0(j.root,k)}),{slotProps:d0}=R1,f0=I1(R1,K3);return c.jsx(S1,F({},f0,!uo(S1)&&{slotProps:d0,disableScrollLock:G},{children:c.jsx(S,F({appear:!0,in:x,onEntering:X,onExited:e1,timeout:Q},B,{children:c.jsx(A1,F({},j1,{children:m}))}))}))}),J3=Q3;function e5(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Eo(...e){return t=>e.forEach(n=>e5(n,t))}function X0(...e){return h.useCallback(Eo(...e),e)}const So=h.forwardRef((e,t)=>{const{children:n,...i}=e,r=h.Children.toArray(n),o=r.find(t5);if(o){const a=o.props.children,s=r.map(l=>l===o?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:l);return h.createElement(tn,F({},i,{ref:t}),h.isValidElement(a)?h.cloneElement(a,void 0,s):null)}return h.createElement(tn,F({},i,{ref:t}),n)});So.displayName="Slot";const tn=h.forwardRef((e,t)=>{const{children:n,...i}=e;return h.isValidElement(n)?h.cloneElement(n,{...n5(i,n.props),ref:t?Eo(t,n.ref):n.ref}):h.Children.count(n)>1?h.Children.only(null):null});tn.displayName="SlotClone";const Ao=({children:e})=>h.createElement(h.Fragment,null,e);function t5(e){return h.isValidElement(e)&&e.type===Ao}function n5(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...s)=>{o(...s),r(...s)}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}const i5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],j0=i5.reduce((e,t)=>{const n=h.forwardRef((i,r)=>{const{asChild:o,...a}=i,s=o?So:t;return h.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),h.createElement(s,F({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function r5(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}const o5=h.forwardRef((e,t)=>{var n;const{container:i=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return i?F0.createPortal(h.createElement(j0.div,F({},r,{ref:t})),i):null}),a5=o5;var Ai=Object.prototype.hasOwnProperty;function ye(e,t){var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&ye(e[i],t[i]););return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(Ai.call(e,n)&&++i&&!Ai.call(t,n)||!(n in t)||!ye(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function De(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i0;)a[s]=arguments[s+4];e.call(this,a),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=i,this.cause=r,this.target=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Q1=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};Q1.prototype._applyRule=function(t,n){var i=this;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return i.chain.push(new yt(n,t.apply(i,r),r,i.nextRuleModifiers)),i.nextRuleModifiers=[],i}};Q1.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new s5(n,t.simple,t.async)),this};Q1.prototype._clone=function(){return new Q1(this.chain.slice(),this.nextRuleModifiers.slice())};Q1.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};Q1.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(i){try{i._check(t)}catch(r){n.push(new Mn(i,t,r))}}),n};Q1.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(i){throw new Mn(n,t,i)}})};Q1.prototype.testAsync=function(t){var n=this;return new Promise(function(i,r){Do(t,n.chain.slice(),i,r)})};function Do(e,t,n,i){if(t.length){var r=t.shift();r._testAsync(e).then(function(){Do(e,t,n,i)},function(o){i(new Mn(r,e,o))})}else n(e)}var _i=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function l5(e,t){return t===void 0&&(t=!1),{simple:function(n){return _i(n,t)||e.check(n)===void 0},async:function(n){return _i(n,t)||e.testAsync(n)}}}function D1(){return typeof Proxy<"u"?Bo(new Q1):nn(new Q1)}var be={};D1.extend=function(e){Object.assign(be,e)};D1.clearCustomRules=function(){be={}};function Bo(e){return new Proxy(e,{get:function(n,i){if(i in n)return n[i];var r=Bo(e._clone());if(i in tt)return r._applyModifier(tt[i],i);if(i in be)return r._applyRule(be[i],i);if(i in rn)return r._applyRule(rn[i],i)}})}function nn(e){var t=function(r,o){return Object.keys(r).forEach(function(a){o[a]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var u=nn(o._clone()),d=u._applyRule(r[a],a).apply(void 0,s);return d}}),o},n=t(rn,e),i=t(be,n);return Object.keys(tt).forEach(function(r){Object.defineProperty(i,r,{get:function(){var o=nn(i._clone());return o._applyModifier(tt[r],r)}})}),i}var tt={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Re(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Re(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Re(t).every(e)}},async:function(e){return function(t){return Promise.all(Re(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Vi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(i){return Vi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&i:i}).catch(function(){return!1})}}}};function Vi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Re(e){return typeof e=="string"?e.split(""):e}var rn={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||c5;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return L0("string")},boolean:function(){return L0("boolean")},undefined:function(){return L0("undefined")},null:function(){return L0("null")},array:function(){return L0("array")},object:function(){return L0("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return u5(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(i){return i.test(n)})}},optional:l5};function L0(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function c5(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function u5(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(i){var r=e[i];try{r.check((t||{})[i])}catch(o){o.target=i,n.push(o)}}),n.length>0)throw n;return!0},async:function(t){var n=[],i=Object.keys(e).map(function(r){var o=e[r];return o.testAsync((t||{})[r]).catch(function(a){a.target=r,n.push(a)})});return Promise.all(i).then(function(){if(n.length>0)throw n;return!0})}}}var t1="colors",g1="sizes",T="space",d5={gap:T,gridGap:T,columnGap:T,gridColumnGap:T,rowGap:T,gridRowGap:T,inset:T,insetBlock:T,insetBlockEnd:T,insetBlockStart:T,insetInline:T,insetInlineEnd:T,insetInlineStart:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockEnd:T,marginBlockStart:T,marginInline:T,marginInlineEnd:T,marginInlineStart:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockEnd:T,paddingBlockStart:T,paddingInline:T,paddingInlineEnd:T,paddingInlineStart:T,top:T,right:T,bottom:T,left:T,scrollMargin:T,scrollMarginTop:T,scrollMarginRight:T,scrollMarginBottom:T,scrollMarginLeft:T,scrollMarginX:T,scrollMarginY:T,scrollMarginBlock:T,scrollMarginBlockEnd:T,scrollMarginBlockStart:T,scrollMarginInline:T,scrollMarginInlineEnd:T,scrollMarginInlineStart:T,scrollPadding:T,scrollPaddingTop:T,scrollPaddingRight:T,scrollPaddingBottom:T,scrollPaddingLeft:T,scrollPaddingX:T,scrollPaddingY:T,scrollPaddingBlock:T,scrollPaddingBlockEnd:T,scrollPaddingBlockStart:T,scrollPaddingInline:T,scrollPaddingInlineEnd:T,scrollPaddingInlineStart:T,fontSize:"fontSizes",background:t1,backgroundColor:t1,backgroundImage:t1,borderImage:t1,border:t1,borderBlock:t1,borderBlockEnd:t1,borderBlockStart:t1,borderBottom:t1,borderBottomColor:t1,borderColor:t1,borderInline:t1,borderInlineEnd:t1,borderInlineStart:t1,borderLeft:t1,borderLeftColor:t1,borderRight:t1,borderRightColor:t1,borderTop:t1,borderTopColor:t1,caretColor:t1,color:t1,columnRuleColor:t1,fill:t1,outline:t1,outlineColor:t1,stroke:t1,textDecorationColor:t1,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:g1,minBlockSize:g1,maxBlockSize:g1,inlineSize:g1,minInlineSize:g1,maxInlineSize:g1,width:g1,minWidth:g1,maxWidth:g1,height:g1,minHeight:g1,maxHeight:g1,flexBasis:g1,gridTemplateColumns:g1,gridTemplateRows:g1,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},f5=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Q0=()=>{const e=Object.create(null);return(t,n,...i)=>{const r=(o=>JSON.stringify(o,f5))(t);return r in e?e[r]:e[r]=n(t,...i)}},w0=Symbol.for("sxs.internal"),Ln=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Di=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:h5}=Object.prototype,on=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),m5=/\s+(?![^()]*\))/,O0=e=>t=>e(...typeof t=="string"?String(t).split(m5):[t]),Bi={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:O0((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:O0((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:O0((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:O0((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:O0((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:O0((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Lt=/([\d.]+)([^]*)/,p5=(e,t)=>e.length?e.reduce((n,i)=>(n.push(...t.map(r=>r.includes("&")?r.replace(/&/g,/[ +>|~]/.test(i)&&/&.*&/.test(r)?`:is(${i})`:i):i+" "+r)),n),[]):t,x5=(e,t)=>e in k5&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,i,r,o)=>i+(r==="stretch"?`-moz-available${o};${on(e)}:${i}-webkit-fill-available`:`-moz-fit-content${o};${on(e)}:${i}fit-content`)+o):String(t),k5={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},s0=e=>e?e+"-":"",jo=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(i,r,o,a,s)=>a=="$"==!!o?i:(r||a=="--"?"calc(":"")+"var(--"+(a==="$"?s0(t)+(s.includes("$")?"":s0(n))+s.replace(/\$/g,"-"):s)+")"+(r||a=="--"?"*"+(r||"")+(o||"1")+")":"")),g5=/\s*,\s*(?![^()]*\))/,C5=Object.prototype.toString,I0=(e,t,n,i,r)=>{let o,a,s;const l=(u,d,f)=>{let m,k;const p=g=>{for(m in g){const y=m.charCodeAt(0)===64,b=y&&Array.isArray(g[m])?g[m]:[g[m]];for(k of b){const w=/[A-Z]/.test(x=m)?x:x.replace(/-[^]/g,S=>S[1].toUpperCase()),E=typeof k=="object"&&k&&k.toString===C5&&(!i.utils[w]||!d.length);if(w in i.utils&&!E){const S=i.utils[w];if(S!==a){a=S,p(S(k)),a=null;continue}}else if(w in Bi){const S=Bi[w];if(S!==s){s=S,p(S(k)),s=null;continue}}if(y&&(C=m.slice(1)in i.media?"@media "+i.media[m.slice(1)]:m,m=C.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(S,A,_,G,B,D)=>{const V=Lt.test(A),R=.0625*(V?-1:1),[P,$]=V?[G,A]:[A,G];return"("+(_[0]==="="?"":_[0]===">"===V?"max-":"min-")+P+":"+(_[0]!=="="&&_.length===1?$.replace(Lt,(j,L,Z)=>Number(L)+R*(_===">"?1:-1)+Z):$)+(B?") and ("+(B[0]===">"?"min-":"max-")+P+":"+(B.length===1?D.replace(Lt,(j,L,Z)=>Number(L)+R*(B===">"?-1:1)+Z):D):"")+")"})),E){const S=y?f.concat(m):[...f],A=y?[...d]:p5(d,m.split(g5));o!==void 0&&r(ji(...o)),o=void 0,l(k,A,S)}else o===void 0&&(o=[[],d,f]),m=y||m.charCodeAt(0)!==36?m:`--${s0(i.prefix)}${m.slice(1).replace(/\$/g,"-")}`,k=E?k:typeof k=="number"?k&&w in y5?String(k)+"px":String(k):jo(x5(w,k??""),i.prefix,i.themeMap[w]),o[0].push(`${y?`${m} `:`${on(m)}:`}${k}`)}}var C,x};p(u),o!==void 0&&r(ji(...o)),o=void 0};l(e,t,n)},ji=(e,t,n)=>`${n.map(i=>`${i}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,y5={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},$i=e=>String.fromCharCode(e+(e>25?39:97)),E0=e=>(t=>{let n,i="";for(n=Math.abs(t);n>52;n=n/52|0)i=$i(n%52)+i;return $i(n%52)+i})(((t,n)=>{let i=n.length;for(;i;)t=33*t^n.charCodeAt(--i);return t})(5381,JSON.stringify(e))>>>0),ue=["themed","global","styled","onevar","resonevar","allvar","inline"],b5=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},v5=e=>{let t;const n=()=>{const{cssRules:r}=t.sheet;return[].map.call(r,(o,a)=>{const{cssText:s}=o;let l="";if(s.startsWith("--sxs"))return"";if(r[a-1]&&(l=r[a-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${s}`;return o.cssRules.length?`${l}${s}`:""}return s}).join("")},i=()=>{if(t){const{rules:s,sheet:l}=t;if(!l.deleteRule){for(;Object(Object(l.cssRules)[0]).type===3;)l.cssRules.splice(0,1);l.cssRules=[]}for(const u in s)delete s[u]}const r=Object(e).styleSheets||[];for(const s of r)if(b5(s)){for(let l=0,u=s.cssRules;u[l];++l){const d=Object(u[l]);if(d.type!==1)continue;const f=Object(u[l+1]);if(f.type!==4)continue;++l;const{cssText:m}=d;if(!m.startsWith("--sxs"))continue;const k=m.slice(14,-3).trim().split(/\s+/),p=ue[k[0]];p&&(t||(t={sheet:s,reset:i,rules:{},toString:n}),t.rules[p]={group:f,index:l,cache:new Set(k)})}if(t)break}if(!t){const s=(l,u)=>({type:u,cssRules:[],insertRule(d,f){this.cssRules.splice(f,0,s(d,{import:3,undefined:1}[(d.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return l==="@media{}"?`@media{${[].map.call(this.cssRules,d=>d.cssText).join("")}}`:l}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:s("","text/css"),rules:{},reset:i,toString:n}}const{sheet:o,rules:a}=t;for(let s=ue.length-1;s>=0;--s){const l=ue[s];if(!a[l]){const u=ue[s+1],d=a[u]?a[u].index:o.cssRules.length;o.insertRule("@media{}",d),o.insertRule(`--sxs{--sxs:${s}}`,d),a[l]={group:o.cssRules[d+1],index:d,cache:new Set([s])}}w5(a[l])}};return i(),t},w5=e=>{const t=e.group;let n=t.cssRules.length;e.apply=i=>{try{t.insertRule(i,n),++n}catch{}}},re=Symbol(),E5=Q0(),Gi=(e,t)=>E5(e,()=>(...n)=>{let i={type:null,composers:new Set};for(const r of n)if(r!=null)if(r[w0]){i.type==null&&(i.type=r[w0].type);for(const o of r[w0].composers)i.composers.add(o)}else r.constructor!==Object||r.$$typeof?i.type==null&&(i.type=r):i.composers.add(S5(r,e));return i.type==null&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),A5(e,i,t)}),S5=({variants:e,compoundVariants:t,defaultVariants:n,...i},r)=>{const o=`${s0(r.prefix)}c-${E0(i)}`,a=[],s=[],l=Object.create(null),u=[];for(const m in n)l[m]=String(n[m]);if(typeof e=="object"&&e)for(const m in e){d=l,f=m,h5.call(d,f)||(l[m]="undefined");const k=e[m];for(const p in k){const g={[m]:String(p)};String(p)==="undefined"&&u.push(m);const C=k[p],x=[g,C,!Di(C)];a.push(x)}}var d,f;if(typeof t=="object"&&t)for(const m of t){let{css:k,...p}=m;k=typeof k=="object"&&k||{};for(const C in p)p[C]=String(p[C]);const g=[p,k,!Di(k)];s.push(g)}return[o,i,a,s,l,u]},A5=(e,t,n)=>{const[i,r,o,a]=_5(t.composers),s=typeof t.type=="function"||t.type.$$typeof?(f=>{function m(){for(let k=0;km.rules[k]={apply:p=>m[re].push([k,p])}),m})(n):null,l=(s||n).rules,u=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,d=f=>{f=typeof f=="object"&&f||V5;const{css:m,...k}=f,p={};for(const x in o)if(delete k[x],x in f){let y=f[x];typeof y=="object"&&y?p[x]={"@initial":o[x],...y}:(y=String(y),p[x]=y!=="undefined"||a.has(x)?y:o[x])}else p[x]=o[x];const g=new Set([...r]);for(const[x,y,b,w]of t.composers){n.rules.styled.cache.has(x)||(n.rules.styled.cache.add(x),I0(y,[`.${x}`],[],e,A=>{l.styled.apply(A)}));const E=Pi(b,p,e.media),S=Pi(w,p,e.media,!0);for(const A of E)if(A!==void 0)for(const[_,G,B]of A){const D=`${x}-${E0(G)}-${_}`;g.add(D);const V=(B?n.rules.resonevar:n.rules.onevar).cache,R=B?l.resonevar:l.onevar;V.has(D)||(V.add(D),I0(G,[`.${D}`],[],e,P=>{R.apply(P)}))}for(const A of S)if(A!==void 0)for(const[_,G]of A){const B=`${x}-${E0(G)}-${_}`;g.add(B),n.rules.allvar.cache.has(B)||(n.rules.allvar.cache.add(B),I0(G,[`.${B}`],[],e,D=>{l.allvar.apply(D)}))}}if(typeof m=="object"&&m){const x=`${i}-i${E0(m)}-css`;g.add(x),n.rules.inline.cache.has(x)||(n.rules.inline.cache.add(x),I0(m,[`.${x}`],[],e,y=>{l.inline.apply(y)}))}for(const x of String(f.className||"").trim().split(/\s+/))x&&g.add(x);const C=k.className=[...g].join(" ");return{type:t.type,className:C,selector:u,props:k,toString:()=>C,deferredInjector:s}};return Ln(d,{className:i,selector:u,[w0]:t,toString:()=>(n.rules.styled.cache.has(i)||d(),i)})},_5=e=>{let t="";const n=[],i={},r=[];for(const[o,,,,a,s]of e){t===""&&(t=o),n.push(o),r.push(...s);for(const l in a){const u=a[l];(i[l]===void 0||u!=="undefined"||s.includes(u))&&(i[l]=u)}}return[t,n,i,new Set(r)]},Pi=(e,t,n,i)=>{const r=[];e:for(let[o,a,s]of e){if(s)continue;let l,u=0,d=!1;for(l in o){const f=o[l];let m=t[l];if(m!==f){if(typeof m!="object"||!m)continue e;{let k,p,g=0;for(const C in m){if(f===String(m[C])){if(C!=="@initial"){const x=C.slice(1);(p=p||[]).push(x in n?n[x]:C.replace(/^@media ?/,"")),d=!0}u+=g,k=!0}++g}if(p&&p.length&&(a={["@media "+p.join(", ")]:a}),!k)continue e}}}(r[u]=r[u]||[]).push([i?"cv":`${l}-${o[l]}`,a,d])}return r},V5={},D5=Q0(),B5=(e,t)=>D5(e,()=>(...n)=>{const i=()=>{for(let r of n){r=typeof r=="object"&&r||{};let o=E0(r);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in r){let a=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let s of[].concat(r["@import"]))s=s.includes('"')||s.includes("'")?s:`"${s}"`,t.sheet.insertRule(`@import ${s};`,a++);delete r["@import"]}I0(r,[],[],e,a=>{t.rules.global.apply(a)})}}return""};return Ln(i,{toString:i})}),j5=Q0(),$5=(e,t)=>j5(e,()=>n=>{const i=`${s0(e.prefix)}k-${E0(n)}`,r=()=>{if(!t.rules.global.cache.has(i)){t.rules.global.cache.add(i);const o=[];I0(n,[],[],e,s=>o.push(s));const a=`@keyframes ${i}{${o.join("")}}`;t.rules.global.apply(a)}return i};return Ln(r,{get name(){return r()},toString:r})}),G5=class{constructor(e,t,n,i){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=i==null?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+s0(this.prefix)+s0(this.scale)+this.token}toString(){return this.computedValue}},P5=Q0(),M5=(e,t)=>P5(e,()=>(n,i)=>{i=typeof n=="object"&&n||Object(i);const r=`.${n=(n=typeof n=="string"?n:"")||`${s0(e.prefix)}t-${E0(i)}`}`,o={},a=[];for(const l in i){o[l]={};for(const u in i[l]){const d=`--${s0(e.prefix)}${l}-${u}`,f=jo(String(i[l][u]),e.prefix,l);o[l][u]=new G5(u,f,l,e.prefix),a.push(`${d}:${f}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const l=`${i===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(l)}return n};return{...o,get className(){return s()},selector:r,toString:s}}),L5=Q0(),Mi,O5=Q0(),$o=e=>{const t=(n=>{let i=!1;const r=L5(n,o=>{i=!0;const a="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",s=typeof o.media=="object"&&o.media||{},l=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},d={prefix:a,media:s,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...d5},utils:typeof o.utils=="object"&&o.utils||{}},f=v5(l),m={css:Gi(d,f),globalCss:B5(d,f),keyframes:$5(d,f),createTheme:M5(d,f),reset(){f.reset(),m.theme.toString()},theme:{},sheet:f,config:d,prefix:a,getCssText:f.toString,toString:f.toString};return String(m.theme=m.createTheme(u)),m});return i||r.reset(),r})(e);return t.styled=(({config:n,sheet:i})=>O5(n,()=>{const r=Gi(n,i);return(...o)=>{const a=r(...o),s=a[w0].type,l=v.forwardRef((u,d)=>{const f=u&&u.as||s,{props:m,deferredInjector:k}=a(u);return delete m.as,m.ref=d,k?v.createElement(v.Fragment,null,v.createElement(f,m),v.createElement(k,null)):v.createElement(f,m)});return l.className=a.className,l.displayName=`Styled.${s.displayName||s.name||s}`,l.selector=a.selector,l.toString=()=>a.selector,l[w0]=a[w0],l}}))(t),t},T5=()=>Mi||(Mi=$o()),Ym=(...e)=>T5().styled(...e);function R5(e,t,n){return Math.max(t,Math.min(e,n))}const m1={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Li(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function Oi(e,t,n,i=.15){return i===0?R5(e,t,n):en?+Li(e-n,n-t,i)+n:e}function F5(e,[t,n],[i,r]){const[[o,a],[s,l]]=e;return[Oi(t,o,a,i),Oi(n,s,l,r)]}function I5(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H5(e){var t=I5(e,"string");return typeof t=="symbol"?t:String(t)}function V1(e,t,n){return t=H5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function c1(e){for(var t=1;t{var n,i;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(i=n.contains)===null||i===void 0?void 0:i.call(n,t.target))})}function Y5(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Mo(e){return bt(e)?Y5(e)[0]:e}function X5(e){return q5(e).map(t=>t.identifier)}function Ot(e){const t=Mo(e);return bt(e)?t.identifier:t.pointerId}function Fi(e){const t=Mo(e);return[t.clientX,t.clientY]}function Q5(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o})}return t}function nt(e,...t){return typeof e=="function"?e(...t):e}function J5(){}function el(...e){return e.length===0?J5:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Ii(e,t){return Object.assign({},t,e||{})}const tl=32;class nl{constructor(t,n,i){this.ctrl=t,this.args=n,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:i,args:r}=this;n[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=r,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,i=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=i.from?nt(i.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:i,shared:r}=this;n.args=this.args;let o=0;if(t&&(n.event=t,i.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Q5(t)),r.down=r.pressed=r.buttons%2===1||r.touches>0,o=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const S=n._delta.map(Math.abs);m1.addTo(n._distance,S)}this.axisIntent&&this.axisIntent(t);const[a,s]=n._movement,[l,u]=i.threshold,{_step:d,values:f}=n;if(i.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=l&&f[0]),d[1]===!1&&(d[1]=Math.abs(s)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=l&&Math.sign(a)*l),d[1]===!1&&(d[1]=Math.abs(s)>=u&&Math.sign(s)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const m=[0,0];if(i.hasCustomTransform){const[S,A]=f;m[0]=d[0]!==!1?S-d[0]:0,m[1]=d[1]!==!1?A-d[1]:0}else m[0]=d[0]!==!1?a-d[0]:0,m[1]=d[1]!==!1?s-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(m);const k=n.offset,p=n._active&&!n._blocked||n.active;p&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=r[this.ingKey]=n._active,t&&(n.first&&("bounds"in i&&(n._bounds=nt(i.bounds,n)),this.setup&&this.setup()),n.movement=m,this.computeOffset()));const[g,C]=n.offset,[[x,y],[b,w]]=n._bounds;n.overflow=[gy?1:0,Cw?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?i.rubberband||[0,0]:[0,0];if(n.offset=F5(n._bounds,n.offset,E),n.delta=m1.sub(n.offset,k),this.computeMovement(),p&&(!n.last||o>tl)){n.delta=m1.sub(n.offset,k);const S=n.delta.map(Math.abs);m1.addTo(n.distance,S),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[S[0]/o,S[1]/o],n.timeDelta=o)}}emit(){const t=this.state,n=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const r=this.handler(c1(c1(c1({},n),t),{},{[this.aliasKey]:t.values}));r!==void 0&&(t.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function il([e,t],n){const i=Math.abs(e),r=Math.abs(t);if(i>r&&i>n)return"x";if(r>i&&r>n)return"y"}class rl extends nl{constructor(...t){super(...t),V1(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=m1.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=m1.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,i=this.config;if(!n.axis&&t){const r=typeof i.axisThreshold=="object"?i.axisThreshold[Po(t)]:i.axisThreshold;n.axis=il(n._movement,r)}n._blocked=(i.lockDirection||!!i.axis)&&!n.axis||!!i.axis&&i.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const ol=e=>e,Hi=.15,Lo={enabled(e=!0){return e},eventOptions(e,t,n){return c1(c1({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[Hi,Hi];case!1:return[0,0];default:return m1.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return m1.toVector(e)},transform(e,t,n){const i=e||n.shared.transform;return this.hasCustomTransform=!!i,i||ol},threshold(e){return m1.toVector(e,0)}},al=0,Be=c1(c1({},Lo),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=al){return e},bounds(e={}){if(typeof e=="function")return o=>Be.bounds(e(o));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=e;return[[t,n],[i,r]]}}),Ni={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class sl extends rl{constructor(...t){super(...t),V1(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),r={left:n.left-i.left+t.offset[0],right:n.right-i.right+t.offset[0],top:n.top-i.top+t.offset[1],bottom:n.bottom-i.bottom+t.offset[1]};t._bounds=Be.bounds(r)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const r=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(r&&r.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=Ot(t),i._pointerActive=!0,this.computeValues(Fi(t)),this.computeInitial(),n.preventScrollAxis&&Po(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,i=this.config;if(!n._pointerActive)return;const r=Ot(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;const o=Fi(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=m1.sub(o,n._values),this.computeValues(o)),m1.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,i=this.config;if(!n._active||!n._pointerActive)return;const r=Ot(t);if(n._pointerId!==void 0&&r!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[o,a]=n._distance;if(n.tap=o<=i.tapsThreshold&&a<=i.tapsThreshold,n.tap&&i.filterTaps)n._force=!0;else{const[s,l]=n._delta,[u,d]=n._movement,[f,m]=i.swipe.velocity,[k,p]=i.swipe.distance,g=i.swipe.duration;if(n.elapsedTimef&&Math.abs(u)>k&&(n.swipe[0]=Math.sign(s)),x>m&&Math.abs(d)>p&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,i=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,ll(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=Ni[t.key];if(n){const i=this.state,r=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=n(this.config.keyboardDisplacement,r),i._keyboardActive=!0,m1.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in Ni&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function ll(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const je=typeof window<"u"&&window.document&&window.document.createElement;function Oo(){return je&&"ontouchstart"in window}function cl(){return Oo()||je&&window.navigator.maxTouchPoints>1}function ul(){return je&&"onpointerdown"in window}function dl(){return je&&"exitPointerLock"in window.document}function fl(){try{return"constructor"in GestureEvent}catch{return!1}}const P1={isBrowser:je,gesture:fl(),touch:Oo(),touchscreen:cl(),pointer:ul(),pointerLock:dl()},hl=250,ml=180,pl=.5,xl=50,kl=250,gl=10,zi={mouse:0,touch:0,pen:8},Cl=c1(c1({},Be),{},{device(e,t,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return this.pointerLock=i&&P1.pointerLock,P1.touch&&n?"touch":this.pointerLock?"mouse":P1.pointer&&!r?"pointer":P1.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?hl:void 0,!(!P1.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:i=3,axis:r=void 0}){const o=m1.toVector(e,n?i:r?1:0);return this.filterTaps=n,this.tapsThreshold=i,o},swipe({velocity:e=pl,distance:t=xl,duration:n=kl}={}){return{velocity:this.transform(m1.toVector(e)),distance:this.transform(m1.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return ml;case!1:return 0;default:return e}},axisThreshold(e){return e?c1(c1({},zi),e):zi},keyboardDisplacement(e=gl){return e}});c1(c1({},Lo),{},{device(e,t,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!P1.touch&&P1.gesture)return"gesture";if(P1.touch&&i)return"touch";if(P1.touchscreen){if(P1.pointer)return"pointer";if(P1.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:i={}}){const r=a=>{const s=Ii(nt(n,a),{min:-1/0,max:1/0});return[s.min,s.max]},o=a=>{const s=Ii(nt(i,a),{min:-1/0,max:1/0});return[s.min,s.max]};return typeof n!="function"&&typeof i!="function"?[r(),o()]:a=>[r(a),o(a)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",m1.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});c1(c1({},Be),{},{mouseOnly:(e=!0)=>e});c1(c1({},Be),{},{mouseOnly:(e=!0)=>e});const To=new Map,an=new Map;function yl(e){To.set(e.key,e.engine),an.set(e.key,e.resolver)}const bl={key:"drag",engine:sl,resolver:Cl};function vl(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function wl(e,t){if(e==null)return{};var n=vl(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}const El={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=P1.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},Sl=["target","eventOptions","window","enabled","transform"];function Ue(e={},t){const n={};for(const[i,r]of Object.entries(t))switch(typeof r){case"function":n[i]=r.call(n,e[i],i,e);break;case"object":n[i]=Ue(e[i],r);break;case"boolean":r&&(n[i]=e[i]);break}return n}function Al(e,t,n={}){const i=e,{target:r,eventOptions:o,window:a,enabled:s,transform:l}=i,u=wl(i,Sl);if(n.shared=Ue({target:r,eventOptions:o,window:a,enabled:s,transform:l},El),t){const d=an.get(t);n[t]=Ue(c1({shared:n.shared},u),d)}else for(const d in u){const f=an.get(d);f&&(n[d]=Ue(c1({shared:n.shared},u[d]),f))}return n}class Ro{constructor(t,n){V1(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,i,r,o){const a=this._listeners,s=K5(n,i),l=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=c1(c1({},l),o);t.addEventListener(s,r,u);const d=()=>{t.removeEventListener(s,r,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class _l{constructor(){V1(this,"_timeouts",new Map)}add(t,n,i=140,...r){this.remove(t),this._timeouts.set(t,window.setTimeout(n,i,...r))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class Vl{constructor(t){V1(this,"gestures",new Set),V1(this,"_targetEventStore",new Ro(this)),V1(this,"gestureEventStores",{}),V1(this,"gestureTimeoutStores",{}),V1(this,"handlers",{}),V1(this,"config",{}),V1(this,"pointerIds",new Set),V1(this,"touchIds",new Set),V1(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Dl(this,t)}setEventIds(t){if(bt(t))return this.touchIds=new Set(X5(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=Al(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,i={};let r;if(!(n.target&&(r=n.target(),!r))){if(n.enabled){for(const a of this.gestures){const s=this.config[a],l=Zi(i,s.eventOptions,!!r);if(s.enabled){const u=To.get(a);new u(this,t,a).bind(l)}}const o=Zi(i,n.eventOptions,!!r);for(const a in this.nativeHandlers)o(a,"",s=>this.nativeHandlers[a](c1(c1({},this.state.shared),{},{event:s,args:t})),void 0,!0)}for(const o in i)i[o]=el(...i[o]);if(!r)return i;for(const o in i){const{device:a,capture:s,passive:l}=W5(o);this._targetEventStore.add(r,a,"",i[o],{capture:s,passive:l})}}}}function T0(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ro(e,t),e.gestureTimeoutStores[t]=new _l}function Dl(e,t){t.drag&&T0(e,"drag"),t.wheel&&T0(e,"wheel"),t.scroll&&T0(e,"scroll"),t.move&&T0(e,"move"),t.pinch&&T0(e,"pinch"),t.hover&&T0(e,"hover")}const Zi=(e,t,n)=>(i,r,o,a={},s=!1)=>{var l,u;const d=(l=a.capture)!==null&&l!==void 0?l:t.capture,f=(u=a.passive)!==null&&u!==void 0?u:t.passive;let m=s?i:Z5(i,r,d);n&&f&&(m+="Passive"),e[m]=e[m]||[],e[m].push(o)};function Bl(e,t={},n,i){const r=v.useMemo(()=>new Vl(e),[]);if(r.applyHandlers(e,i),r.applyConfig(t,n),v.useEffect(r.effect.bind(r)),v.useEffect(()=>r.clean.bind(r),[]),t.target===void 0)return r.bind.bind(r)}function jl(e,t){return yl(bl),Bl({drag:e},t||{},"drag")}function e0(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fo(e,t=[]){let n=[];function i(o,a){const s=h.createContext(a),l=n.length;n=[...n,a];function u(f){const{scope:m,children:k,...p}=f,g=(m==null?void 0:m[e][l])||s,C=h.useMemo(()=>p,Object.values(p));return h.createElement(g.Provider,{value:C},k)}function d(f,m){const k=(m==null?void 0:m[e][l])||s,p=h.useContext(k);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,d]}const r=()=>{const o=n.map(a=>h.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[i,$l(r,...t)]}function $l(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const a=i.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function J0(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...n)},[])}function Gl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e);h.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i),()=>t.removeEventListener("keydown",i)},[n,t])}const sn="dismissableLayer.update",Pl="dismissableLayer.pointerDownOutside",Ml="dismissableLayer.focusOutside";let Ui;const Ll=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ol=h.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=h.useContext(Ll),[f,m]=h.useState(null),k=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,p]=h.useState({}),g=X0(t,_=>m(_)),C=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=C.indexOf(x),b=f?C.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,S=Tl(_=>{const G=_.target,B=[...d.branches].some(D=>D.contains(G));!E||B||(o==null||o(_),s==null||s(_),_.defaultPrevented||l==null||l())},k),A=Rl(_=>{const G=_.target;[...d.branches].some(D=>D.contains(G))||(a==null||a(_),s==null||s(_),_.defaultPrevented||l==null||l())},k);return Gl(_=>{b===d.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},k),h.useEffect(()=>{if(f)return i&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ui=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Wi(),()=>{i&&d.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=Ui)}},[f,k,i,d]),h.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Wi())},[f,d]),h.useEffect(()=>{const _=()=>p({});return document.addEventListener(sn,_),()=>document.removeEventListener(sn,_)},[]),h.createElement(j0.div,F({},u,{ref:g,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:e0(e.onFocusCapture,A.onFocusCapture),onBlurCapture:e0(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:e0(e.onPointerDownCapture,S.onPointerDownCapture)}))});function Tl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e),i=h.useRef(!1),r=h.useRef(()=>{});return h.useEffect(()=>{const o=s=>{if(s.target&&!i.current){let u=function(){Io(Pl,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function Rl(e,t=globalThis==null?void 0:globalThis.document){const n=J0(e),i=h.useRef(!1);return h.useEffect(()=>{const r=o=>{o.target&&!i.current&&Io(Ml,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Wi(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function Io(e,t,n,{discrete:i}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?r5(r,o):r.dispatchEvent(o)}const U0=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Fl=Vs["useId".toString()]||(()=>{});let Il=0;function Hl(e){const[t,n]=h.useState(Fl());return U0(()=>{e||n(i=>i??String(Il++))},[e]),e||(t?`radix-${t}`:"")}const Nl=h.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...o}=e;return h.createElement(j0.svg,F({},o,{ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:h.createElement("polygon",{points:"0,0 30,0 15,10"}))}),zl=Nl;function Zl(e){const[t,n]=h.useState(void 0);return U0(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const o=r[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}const Ho="Popper",[No,zo]=Fo(Ho),[Ul,Zo]=No(Ho),Wl=e=>{const{__scopePopper:t,children:n}=e,[i,r]=h.useState(null);return h.createElement(Ul,{scope:t,anchor:i,onAnchorChange:r},n)},Kl="PopperAnchor",ql=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,o=Zo(Kl,n),a=h.useRef(null),s=X0(t,a);return h.useEffect(()=>{o.onAnchorChange((i==null?void 0:i.current)||a.current)}),i?null:h.createElement(j0.div,F({},r,{ref:s}))}),Uo="PopperContent",[Yl,Xl]=No(Uo),Ql=h.forwardRef((e,t)=>{var n,i,r,o,a,s,l,u;const{__scopePopper:d,side:f="bottom",sideOffset:m=0,align:k="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:C=!0,collisionBoundary:x=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:S,...A}=e,_=Zo(Uo,d),[G,B]=h.useState(null),D=X0(t,a1=>B(a1)),[V,R]=h.useState(null),P=Zl(V),$=(n=P==null?void 0:P.width)!==null&&n!==void 0?n:0,j=(i=P==null?void 0:P.height)!==null&&i!==void 0?i:0,L=f+(k!=="center"?"-"+k:""),Z=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},U=Array.isArray(x)?x:[x],J=U.length>0,W={padding:Z,boundary:U.filter(n4),altBoundary:J},{refs:M,floatingStyles:X,placement:e1,isPositioned:Q,middlewareData:d1}=E3({strategy:"fixed",placement:L,whileElementsMounted:(...a1)=>b3(...a1,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[e3({mainAxis:m+j,alignmentAxis:p}),C&&t3({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?n3():void 0,...W}),C&&X2({...W}),i3({...W,apply:({elements:a1,rects:Z1,availableWidth:U1,availableHeight:W1})=>{const{width:G0,height:C0}=Z1.reference,K1=a1.floating.style;K1.setProperty("--radix-popper-available-width",`${U1}px`),K1.setProperty("--radix-popper-available-height",`${W1}px`),K1.setProperty("--radix-popper-anchor-width",`${G0}px`),K1.setProperty("--radix-popper-anchor-height",`${C0}px`)}}),V&&w3({element:V,padding:g}),i4({arrowWidth:$,arrowHeight:j}),w&&Q2({strategy:"referenceHidden",...W})]}),[S1,A1]=Wo(e1),j1=J0(S);U0(()=>{Q&&(j1==null||j1())},[Q,j1]);const R1=(r=d1.arrow)===null||r===void 0?void 0:r.x,d0=(o=d1.arrow)===null||o===void 0?void 0:o.y,f0=((a=d1.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Y,r1]=h.useState();return U0(()=>{G&&r1(window.getComputedStyle(G).zIndex)},[G]),h.createElement("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(s=d1.transformOrigin)===null||s===void 0?void 0:s.x,(l=d1.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},h.createElement(Yl,{scope:d,placedSide:S1,onArrowChange:R,arrowX:R1,arrowY:d0,shouldHideArrow:f0},h.createElement(j0.div,F({"data-side":S1,"data-align":A1},A,{ref:D,style:{...A.style,animation:Q?void 0:"none",opacity:(u=d1.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Jl="PopperArrow",e4={top:"bottom",right:"left",bottom:"top",left:"right"},t4=h.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,o=Xl(Jl,i),a=e4[o.placedSide];return h.createElement("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},h.createElement(zl,F({},r,{ref:n,style:{...r.style,display:"block"}})))});function n4(e){return e!==null}const i4=e=>({name:"transformOrigin",options:e,fn(t){var n,i,r,o,a;const{placement:s,rects:l,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=f?0:e.arrowWidth,k=f?0:e.arrowHeight,[p,g]=Wo(s),C={start:"0%",center:"50%",end:"100%"}[g],x=((i=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&i!==void 0?i:0)+m/2,y=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+k/2;let b="",w="";return p==="bottom"?(b=f?C:`${x}px`,w=`${-k}px`):p==="top"?(b=f?C:`${x}px`,w=`${l.floating.height+k}px`):p==="right"?(b=`${-k}px`,w=f?C:`${y}px`):p==="left"&&(b=`${l.floating.width+k}px`,w=f?C:`${y}px`),{data:{x:b,y:w}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}const r4=Wl,o4=ql,a4=Ql,s4=t4;function l4(e,t){return h.useReducer((n,i)=>{const r=t[n][i];return r??n},e)}const Ko=e=>{const{present:t,children:n}=e,i=c4(t),r=typeof n=="function"?n({present:i.isPresent}):h.Children.only(n),o=X0(i.ref,r.ref);return typeof n=="function"||i.isPresent?h.cloneElement(r,{ref:o}):null};Ko.displayName="Presence";function c4(e){const[t,n]=h.useState(),i=h.useRef({}),r=h.useRef(e),o=h.useRef("none"),a=e?"mounted":"unmounted",[s,l]=l4(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Fe(i.current);o.current=s==="mounted"?u:"none"},[s]),U0(()=>{const u=i.current,d=r.current;if(d!==e){const m=o.current,k=Fe(u);e?l("MOUNT"):k==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==k?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),U0(()=>{if(t){const u=f=>{const k=Fe(i.current).includes(f.animationName);f.target===t&&k&&pt.flushSync(()=>l("ANIMATION_END"))},d=f=>{f.target===t&&(o.current=Fe(i.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{u&&(i.current=getComputedStyle(u)),n(u)},[])}}function Fe(e){return(e==null?void 0:e.animationName)||"none"}function u4({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,r]=d4({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:i,s=J0(n),l=h.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else r(u)},[o,e,r,s]);return[a,l]}function d4({defaultProp:e,onChange:t}){const n=h.useState(e),[i]=n,r=h.useRef(i),o=J0(t);return h.useEffect(()=>{r.current!==i&&(o(i),r.current=i)},[i,r,o]),n}const f4=h.forwardRef((e,t)=>h.createElement(j0.span,F({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),h4=f4,[vt,Xm]=Fo("Tooltip",[zo]),wt=zo(),m4="TooltipProvider",ln="tooltip.open",[Qm,On]=vt(m4),Tn="Tooltip",[p4,Et]=vt(Tn),x4=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=On(Tn,e.__scopeTooltip),u=wt(t),[d,f]=h.useState(null),m=Hl(),k=h.useRef(0),p=a??l.disableHoverableContent,g=s??l.delayDuration,C=h.useRef(!1),[x=!1,y]=u4({prop:i,defaultProp:r,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(ln))):l.onClose(),o==null||o(A)}}),b=h.useMemo(()=>x?C.current?"delayed-open":"instant-open":"closed",[x]),w=h.useCallback(()=>{window.clearTimeout(k.current),C.current=!1,y(!0)},[y]),E=h.useCallback(()=>{window.clearTimeout(k.current),y(!1)},[y]),S=h.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{C.current=!0,y(!0)},g)},[g,y]);return h.useEffect(()=>()=>window.clearTimeout(k.current),[]),h.createElement(r4,u,h.createElement(p4,{scope:t,contentId:m,open:x,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{l.isOpenDelayed?S():w()},[l.isOpenDelayed,S,w]),onTriggerLeave:h.useCallback(()=>{p?E():window.clearTimeout(k.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},Ki="TooltipTrigger",k4=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Et(Ki,n),o=On(Ki,n),a=wt(n),s=h.useRef(null),l=X0(t,s,r.onTriggerChange),u=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>u.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.createElement(o4,F({asChild:!0},a),h.createElement(j0.button,F({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:l,onPointerMove:e0(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:e0(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:e0(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:e0(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:e0(e.onBlur,r.onClose),onClick:e0(e.onClick,r.onClose)})))}),g4="TooltipPortal",[Jm,C4]=vt(g4,{forceMount:void 0}),ve="TooltipContent",y4=h.forwardRef((e,t)=>{const n=C4(ve,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=e,a=Et(ve,e.__scopeTooltip);return h.createElement(Ko,{present:i||a.open},a.disableHoverableContent?h.createElement(qo,F({side:r},o,{ref:t})):h.createElement(b4,F({side:r},o,{ref:t})))}),b4=h.forwardRef((e,t)=>{const n=Et(ve,e.__scopeTooltip),i=On(ve,e.__scopeTooltip),r=h.useRef(null),o=X0(t,r),[a,s]=h.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=i,m=h.useCallback(()=>{s(null),f(!1)},[f]),k=h.useCallback((p,g)=>{const C=p.currentTarget,x={x:p.clientX,y:p.clientY},y=A4(x,C.getBoundingClientRect()),b=_4(x,y),w=V4(g.getBoundingClientRect()),E=B4([...b,...w]);s(E),f(!0)},[f]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(l&&d){const p=C=>k(C,d),g=C=>k(C,l);return l.addEventListener("pointerleave",p),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",p),d.removeEventListener("pointerleave",g)}}},[l,d,k,m]),h.useEffect(()=>{if(a){const p=g=>{const C=g.target,x={x:g.clientX,y:g.clientY},y=(l==null?void 0:l.contains(C))||(d==null?void 0:d.contains(C)),b=!D4(x,a);y?m():b&&(m(),u())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,d,a,u,m]),h.createElement(qo,F({},e,{ref:o}))}),[v4,w4]=vt(Tn,{isInside:!1}),qo=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=Et(ve,n),u=wt(n),{onClose:d}=l;return h.useEffect(()=>(document.addEventListener(ln,d),()=>document.removeEventListener(ln,d)),[d]),h.useEffect(()=>{if(l.trigger){const f=m=>{const k=m.target;k!=null&&k.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),h.createElement(Ol,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d},h.createElement(a4,F({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),h.createElement(Ao,null,i),h.createElement(v4,{scope:n,isInside:!0},h.createElement(h4,{id:l.contentId,role:"tooltip"},r||i))))}),E4="TooltipArrow",S4=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=wt(n);return w4(E4,n).isInside?null:h.createElement(s4,F({},r,i,{ref:t}))});function A4(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function _4(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function V4(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function D4(e,t){const{x:n,y:i}=e;let r=!1;for(let o=0,a=t.length-1;oi!=d>i&&n<(u-s)*(i-l)/(d-l)+s&&(r=!r)}return r}function B4(e){const t=e.slice();return t.sort((n,i)=>n.xi.x?1:n.yi.y?1:0),j4(t)}function j4(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const $4=x4,G4=k4,P4=y4,M4=S4;function L4(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}function n1(e,t){if(e==null)return{};var n=L4(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}let l1;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(l1||(l1={}));const O4={[l1.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[l1.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[l1.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[l1.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[l1.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[l1.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[l1.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[l1.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[l1.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[l1.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[l1.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Yo(e,t,...n){const[i,...r]=O4[t](...n);console[e]("LEVA: "+i,...r)}const t0=Yo.bind(null,"warn"),T4=Yo.bind(null,"log"),R4=["value"],F4=["schema"],I4=["value"],Xo=[],_0={};function qi(e){let{value:t}=e,n=n1(e,R4);for(let i of Xo){const r=i(t,n);if(r)return r}}function u0(e,t){let{schema:n}=t,i=n1(t,F4);if(e in _0){t0(l1.ALREADY_REGISTERED_TYPE,e);return}Xo.push((r,o)=>n(r,o)&&e),_0[e]=i}function Tt(e,t,n,i){const{normalize:r}=_0[e];if(r)return r(t,n,i);if(typeof t!="object"||!("value"in t))return{value:t};const{value:o}=t,a=n1(t,I4);return{value:o,settings:a}}function H4(e,t,n,i,r,o){const{sanitize:a}=_0[e];return a?a(t,n,i,r,o):t}function Yi(e,t,n){const{format:i}=_0[e];return i?i(t,n):t}function N4(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,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function z(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=h0(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Z4=Math.log(10);function Qi(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Z4)+1,i=Math.floor(Math.log10(Math.abs(e))),r=Math.pow(10,i-n);return Math.max(r,.001)}const it=(e,t,n)=>n===t?0:(k0(e,t,n)-t)/(n-t),rt=(e,t,n)=>e*(n-t)+t,U4=()=>"_"+Math.random().toString(36).substr(2,9),Ji=/\(([0-9+\-*/^ .]+)\)/,er=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,tr=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,nr=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,ir=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,rr=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function h0(e){if(isNaN(Number(e)))if(Ji.test(e)){const t=e.replace(Ji,(n,i)=>String(h0(i)));return h0(t)}else if(er.test(e)){const t=e.replace(er,(n,i,r)=>String(Math.pow(Number(i),Number(r))));return h0(t)}else if(tr.test(e)){const t=e.replace(tr,(n,i,r)=>String(Number(i)*Number(r)));return h0(t)}else if(nr.test(e)){const t=e.replace(nr,(n,i,r)=>{if(r!=0)return String(Number(i)/Number(r));throw new Error("Division by zero")});return h0(t)}else if(ir.test(e)){const t=e.replace(ir,(n,i,r)=>String(Number(i)+Number(r)));return h0(t)}else if(rr.test(e)){const t=e.replace(rr,(n,i,r)=>String(Number(i)-Number(r)));return h0(t)}else return Number(e);return Number(e)}function W4(e,t){return t.reduce((n,i)=>(e&&e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}function K4(e,t){const n=z({},e);return t.forEach(i=>i in e&&delete n[i]),n}function q4(e,t){return e.reduce((n,i,r)=>Object.assign(n,{[t[r]]:i}),{})}function Qo(e){return Object.prototype.toString.call(e)==="[object Object]"}const Y4=e=>Qo(e)&&Object.keys(e).length===0;let H1;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(H1||(H1={}));let N1;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(N1||(N1={}));const X4=["type","__customInput"],Q4=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],J4=["type"];function Jo(e,t,n={},i){var r,o;if(typeof e!="object"||Array.isArray(e))return{type:i,input:e,options:z({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:S}=e,A=n1(e,X4);return Jo(S,t,A,E)}const{render:a,label:s,optional:l,order:u=0,disabled:d,hint:f,onChange:m,onEditStart:k,onEditEnd:p,transient:g}=e,C=n1(e,Q4),x=z({render:a,key:t,label:s??t,hint:f,transient:g??!!m,onEditStart:k,onEditEnd:p,disabled:d,optional:l,order:u},n);let{type:y}=C,b=n1(C,J4);if(y=i??y,y in H1)return{type:y,input:b,options:x};let w;return i&&Qo(b)&&"value"in b?w=b.value:w=Y4(b)?void 0:b,{type:y,input:w,options:z(z({},x),{},{onChange:m,optional:(r=x.optional)!==null&&r!==void 0?r:!1,disabled:(o=x.disabled)!==null&&o!==void 0?o:!1})}}function e6(e,t,n,i){const r=Jo(e,t),{type:o,input:a,options:s}=r;if(o)return o in H1?r:{type:o,input:Tt(o,a,n,i),options:s};let l=qi(a);return l?{type:l,input:Tt(l,a,n,i),options:s}:(l=qi({value:a}),l?{type:l,input:Tt(l,{value:a},n,i),options:s}:!1)}function or(e,t,n,i,r){const{value:o,type:a,settings:s}=e;e.value=ea({type:a,value:o,settings:s},t,n,i),e.fromPanel=r}const t6=function(t,n,i){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=i};function ea({type:e,value:t,settings:n},i,r,o){const a=e!=="SELECT"&&typeof i=="function"?i(t):i;let s;try{s=H4(e,a,n,t,r,o)}catch(l){throw new t6(`The value \`${i}\` did not result in a correct value.`,t,l)}return ye(s,t)?t:s}const ta=(e,t,n=!1)=>{let i=0;return function(){const r=arguments,o=n&&!i,a=()=>e.apply(this,r);window.clearTimeout(i),i=window.setTimeout(a,t),o&&a()}},na=e=>e.shiftKey?5:e.altKey?1/5:1;function n6(e,t){const n=console.error;console.error=()=>{},F0.render(e,t),console.error=n}const i6=["value"],r6=["min","max"],o6=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},ia=(e,{min:t=-1/0,max:n=1/0,suffix:i})=>{const r=parseFloat(e);if(e===""||isNaN(r))throw Error("Invalid number");const o=k0(r,t,n);return i?o+i:o},a6=(e,{pad:t=0,suffix:n})=>{const i=parseFloat(e).toFixed(t);return n?i+n:i},ra=e=>{let{value:t}=e,n=n1(e,i6);const{min:i=-1/0,max:r=1/0}=n,o=n1(n,r6);let a=parseFloat(t);const s=typeof t=="string"?t.substring((""+a).length):void 0;a=k0(a,i,r);let l=n.step;l||(Number.isFinite(i)?Number.isFinite(r)?l=+(Math.abs(r-i)/100).toPrecision(1):l=+(Math.abs(a-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-a)/100).toPrecision(1)));const u=l?Qi(l)*10:Qi(a);l=l||u/10;const d=Math.round(k0(Math.log10(1/u),0,2));return{value:s?a+s:a,settings:z({initialValue:a,step:l,pad:d,min:i,max:r,suffix:s},o)}},oa=(e,{step:t,initialValue:n})=>{const i=Math.round((e-n)/t);return n+i*t};var aa=Object.freeze({__proto__:null,schema:o6,sanitize:ia,format:a6,normalize:ra,sanitizeStep:oa});function u1(){return u1=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Ie(e,t){const[n,i]=e.split(" "),r={};return n!=="none"&&(r.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),i&&(r.backgroundColor=i),r}const oe={$inputStyle:()=>e=>Ie(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Ie(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Ie(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Ie(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:H,css:ep,createTheme:l6,globalCss:c6,keyframes:tp}=$o({prefix:"leva",theme:ua(),utils:z(z({},oe),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":oe.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":oe.$focusStyle()(e)}),$hover:e=>({"&:hover":oe.$hoverStyle()(e)}),$active:e=>({"&:active":oe.$activeStyle()(e)})})}),u6=c6({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function d6(e){const t=ua();if(!e)return{theme:t,className:""};Object.keys(e).forEach(i=>{Object.assign(t[i],e[i])});const n=l6(t);return{theme:t,className:n.className}}function n0(e,t){const{theme:n}=h.useContext(Rn);if(!(e in n)||!(t in n[e]))return t0(l1.THEME_ERROR,e,t),"";let i=t;for(;;){let r=n[e][i];if(typeof r=="string"&&r.charAt(0)==="$")i=r.substr(1);else return r}}const da=H("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),fa=H("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${da}`]:{paddingLeft:0}}),f6=H(fa,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),h6=H("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),m6=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],p6=["onUpdate"];function Fn(e){let{innerLabel:t,value:n,onUpdate:i,onChange:r,onKeyDown:o,type:a,id:s,inputType:l="text",rows:u=0}=e,d=n1(e,m6);const{id:f,emitOnEditStart:m,emitOnEditEnd:k,disabled:p}=x1(),g=s||f,C=h.useRef(null),x=u>0,y=x?"textarea":"input",b=h.useCallback(S=>A=>{const _=A.currentTarget.value;S(_)},[]);v.useEffect(()=>{const S=C.current,A=b(_=>{i(_),k()});return S==null||S.addEventListener("blur",A),()=>S==null?void 0:S.removeEventListener("blur",A)},[b,i,k]);const w=h.useCallback(S=>{S.key==="Enter"&&b(i)(S)},[b,i]),E=Object.assign({as:y},x?{rows:u}:{},d);return v.createElement(h6,{textArea:x},t&&typeof t=="string"?v.createElement(fa,null,t):t,v.createElement(da,u1({levaType:a,ref:C,id:g,type:l,autoComplete:"off",spellCheck:"false",value:n,onChange:b(r),onFocus:()=>m(),onKeyPress:w,onKeyDown:o,disabled:p},E)))}function x6(e){let{onUpdate:t}=e,n=n1(e,p6);const i=h.useCallback(o=>t(z4(o)),[t]),r=h.useCallback(o=>{const a=o.key==="ArrowUp"?1:o.key==="ArrowDown"?-1:0;if(a){o.preventDefault();const s=o.altKey?.1:o.shiftKey?10:1;t(l=>parseFloat(l)+a*s)}},[t]);return v.createElement(Fn,u1({},n,{onUpdate:i,onKeyDown:r,type:"number"}))}const ot=H("div",{}),cn=H("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),k6=H("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${cn}::after`]:{opacity:.6},[`${ot}:hover > & + ${cn}::after`]:{opacity:.6},[`${ot}:hover > & > svg`]:{opacity:1}}),ha=H("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${ot}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),ma=H("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${ha} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),pa=H(ma,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),g6=H("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),C6=H("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),un=H("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),y6=H("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${un}`]:{pointerEvents:"auto"}}}}}),xa=H("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),b6=H("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),v6=H(M4,{fill:"$toolTipBackground"});function In({children:e}){const{className:t}=h.useContext(Rn);return v.createElement(a5,{className:t},e)}const w6=["align"];function E6(){const{id:e,disable:t,disabled:n}=x1();return v.createElement(v.Fragment,null,v.createElement(C6,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),v.createElement("label",{htmlFor:e+"__disable"}))}function S6(e){const{id:t,optional:n,hint:i}=x1(),r=e.htmlFor||(t?{htmlFor:t}:null),o=!i&&typeof e.children=="string"?{title:e.children}:null;return v.createElement(v.Fragment,null,n&&v.createElement(E6,null),i!==void 0?v.createElement($4,null,v.createElement(G4,{asChild:!0},v.createElement(un,u1({},r,e))),v.createElement(P4,{side:"top",sideOffset:2},v.createElement(b6,null,i,v.createElement(v6,null)))):v.createElement(un,u1({},r,o,e)))}function z1(e){let{align:t}=e,n=n1(e,w6);const{value:i,label:r,key:o,disabled:a}=x1(),{hideCopyButton:s}=s6(),l=!s&&o!==void 0,[u,d]=h.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[o]:i??""})),d(!0)}catch{t0(l1.CLIPBOARD_ERROR,{[o]:i})}};return v.createElement(g6,{align:t,onPointerLeave:()=>d(!1)},v.createElement(S6,n),l&&!a&&v.createElement("div",{title:`Click to copy ${typeof r=="string"?r:o} value`},u?v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),v.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):v.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),v.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const A6=["toggled"],_6=H("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function Hn(e){let{toggled:t}=e,n=n1(e,A6);return v.createElement(_6,u1({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),v.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const V6=["input"];function T1(e){let{input:t}=e,n=n1(e,V6);return t?v.createElement(pa,n):v.createElement(ma,n)}function ka({value:e,type:t,settings:n,setValue:i}){const[r,o]=h.useState(Yi(t,e,n)),a=h.useRef(e),s=h.useRef(n);s.current=n;const l=h.useCallback(d=>o(Yi(t,d,s.current)),[t]),u=h.useCallback(d=>{try{i(d)}catch(f){const{type:m,previousValue:k}=f;if(m!=="LEVA_ERROR")throw f;l(k)}},[l,i]);return h.useEffect(()=>{ye(e,a.current)||l(e),a.current=e},[e,l]),{displayValue:r,onChange:o,onUpdate:u}}function Ge(e,t){const{emitOnEditStart:n,emitOnEditEnd:i}=x1();return jl(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const o=e(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),i==null||i()),o},t)}function D6(e){const t=h.useRef(null),n=h.useRef(null),i=h.useRef(!1);return h.useEffect(()=>{const r=ta(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)},[e]),h.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function ga(){const e=h.useRef(null),t=h.useRef({x:0,y:0}),n=h.useCallback(i=>{Object.assign(t.current,i),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const B6=["__refCount"],Rt=(e,t)=>{if(!e[t])return null;const n=e[t];return n1(n,B6)};function j6(e){const t=$e(),[n,i]=h.useState(Rt(t.getData(),e)),r=h.useCallback(u=>t.setValueAtPath(e,u,!0),[e,t]),o=h.useCallback(u=>t.setSettingsAtPath(e,u),[e,t]),a=h.useCallback(u=>t.disableInputAtPath(e,u),[e,t]),s=h.useCallback(()=>t.emitOnEditStart(e),[e,t]),l=h.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return h.useEffect(()=>{i(Rt(t.getData(),e));const u=t.useStore.subscribe(d=>Rt(d.data,e),i,{equalityFn:De});return()=>u()},[t,e]),[n,{set:r,setSettings:o,disable:a,storeId:t.storeId,emitOnEditStart:s,emitOnEditEnd:l}]}const $6=H("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Ca=H("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),dn=H("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),ya=H("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),ba=H("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function G6({value:e,min:t,max:n,onDrag:i,step:r,initialValue:o}){const a=h.useRef(null),s=h.useRef(null),l=h.useRef(0),u=n0("sizes","scrubberWidth"),d=Ge(({event:m,first:k,xy:[p],movement:[g],memo:C})=>{if(k){const{width:y,left:b}=a.current.getBoundingClientRect();l.current=y-parseFloat(u),C=(m==null?void 0:m.target)===s.current?e:rt((p-b)/y,t,n)}const x=C+rt(g/l.current,0,n-t);return i(oa(x,{step:r,initialValue:o})),C}),f=it(e,t,n);return v.createElement(ya,u1({ref:a},d()),v.createElement(Ca,null,v.createElement(ba,{style:{left:0,right:`${(1-f)*100}%`}})),v.createElement(dn,{ref:s,style:{left:`calc(${f} * (100% - ${u}))`}}))}const P6=v.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:i})=>{const[r,o]=h.useState(!1),a=Ge(({active:s,delta:[l],event:u,memo:d=0})=>(o(s),d+=l/2,Math.abs(d)>=1&&(t(f=>parseFloat(f)+Math.floor(d)*n*na(u)),d=0),d));return v.createElement(f6,u1({dragging:r,title:e.length>1?e:""},a()),e.slice(0,i))});function va({label:e,id:t,displayValue:n,onUpdate:i,onChange:r,settings:o,innerLabelTrim:a=1}){const s=a>0&&v.createElement(P6,{label:e,step:o.step,onUpdate:i,innerLabelTrim:a});return v.createElement(x6,{id:t,value:String(n),onUpdate:i,onChange:r,innerLabel:s})}function M6(){const e=x1(),{label:t,value:n,onUpdate:i,settings:r,id:o}=e,{min:a,max:s}=r,l=s!==1/0&&a!==-1/0;return v.createElement(T1,{input:!0},v.createElement(z1,null,t),v.createElement($6,{hasRange:l},l&&v.createElement(G6,u1({value:parseFloat(n),onDrag:i},r)),v.createElement(va,u1({},e,{id:o,label:"value",innerLabelTrim:l?0:1}))))}const{sanitizeStep:L6}=aa,O6=n1(aa,["sanitizeStep"]);var T6=z({component:M6},O6);const R6=(e,t)=>D1().schema({options:D1().passesAnyOf(D1().object(),D1().array())}).test(t),F6=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},I6=(e,{values:t})=>t.indexOf(e),H6=e=>{let{value:t,options:n}=e,i,r;return Array.isArray(n)?(r=n,i=n.map(o=>String(o))):(r=Object.values(n),i=Object.keys(n)),"value"in e?r.includes(t)||(i.unshift(String(t)),r.unshift(t)):t=r[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:i,values:r}}};var N6=Object.freeze({__proto__:null,schema:R6,sanitize:F6,format:I6,normalize:H6});const z6=H("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),fn=H("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Z6=H("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${fn}:focus + &`]:{$focusStyle:""},[`${fn}:hover + &`]:{$hoverStyle:""}});function U6({displayValue:e,value:t,onUpdate:n,id:i,settings:r,disabled:o}){const{keys:a,values:s}=r,l=h.useRef();return t===s[e]&&(l.current=a[e]),v.createElement(z6,null,v.createElement(fn,{id:i,value:e,onChange:u=>n(s[Number(u.currentTarget.value)]),disabled:o},a.map((u,d)=>v.createElement("option",{key:u,value:d},u))),v.createElement(Z6,null,l.current),v.createElement(Hn,{toggled:!0}))}function W6(){const{label:e,value:t,displayValue:n,onUpdate:i,id:r,disabled:o,settings:a}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(U6,{id:r,value:t,displayValue:n,onUpdate:i,settings:a,disabled:o}))}var K6=z({component:W6},N6);const q6=e=>D1().string().test(e),Y6=e=>{if(typeof e!="string")throw Error("Invalid string");return e},X6=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Q6=Object.freeze({__proto__:null,schema:q6,sanitize:Y6,normalize:X6});const J6=["displayValue","onUpdate","onChange","editable"],e8=H("div",{whiteSpace:"pre-wrap"});function t8(e){let{displayValue:t,onUpdate:n,onChange:i,editable:r=!0}=e,o=n1(e,J6);return r?v.createElement(Fn,u1({value:t,onUpdate:n,onChange:i},o)):v.createElement(e8,null,t)}function n8(){const{label:e,settings:t,displayValue:n,onUpdate:i,onChange:r}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(t8,u1({displayValue:n,onUpdate:i,onChange:r},t)))}var i8=z({component:n8},Q6);const r8=e=>D1().boolean().test(e),o8=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var a8=Object.freeze({__proto__:null,schema:r8,sanitize:o8});const s8=H("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function l8({value:e,onUpdate:t,id:n,disabled:i}){return v.createElement(s8,null,v.createElement("input",{id:n,type:"checkbox",checked:e,onChange:r=>t(r.currentTarget.checked),disabled:i}),v.createElement("label",{htmlFor:n},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function c8(){const{label:e,value:t,onUpdate:n,disabled:i,id:r}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(l8,{value:t,onUpdate:n,id:r,disabled:i}))}var u8=z({component:c8},a8);const d8=["locked"];function f8({value:e,id:t,valueKey:n,settings:i,onUpdate:r,innerLabelTrim:o}){const a=h.useRef(e[n]);a.current=e[n];const s=h.useCallback(u=>r({[n]:ea({type:"NUMBER",value:a.current,settings:i},u)}),[r,i,n]),l=ka({type:"NUMBER",value:e[n],settings:i,setValue:s});return v.createElement(va,{id:t,label:n,value:e[n],displayValue:l.displayValue,onUpdate:l.onUpdate,onChange:l.onChange,settings:i,innerLabelTrim:o})}const h8=H("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function m8(e){let{locked:t}=e,n=n1(e,d8);return v.createElement("svg",u1({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?v.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):v.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Nn({value:e,onUpdate:t,settings:n,innerLabelTrim:i}){const{id:r,setSettings:o}=x1(),{lock:a,locked:s}=n;return v.createElement(h8,{withLock:a},a&&v.createElement(m8,{locked:s,onClick:()=>o({locked:!s})}),Object.keys(e).map((l,u)=>v.createElement(f8,{id:u===0?r:`${r}.${l}`,key:l,valueKey:l,value:e,settings:n[l],onUpdate:t,innerLabelTrim:i})))}const wa=(e,t)=>{const n={};let i=0,r=1/0;Object.entries(e).forEach(([o,a])=>{n[o]=ra(z({value:a},t[o])).settings,i=Math.max(i,n[o].step),r=Math.min(r,n[o].pad)});for(let o in n){const{step:a,min:s,max:l}=t[o]||{};!isFinite(a)&&(!isFinite(s)||!isFinite(l))&&(n[o].step=i,n[o].pad=r)}return n},p8=["lock"],x8=["value"];function k8(e){const t=D1().array().length(e).every.number(),n=i=>{if(!i||typeof i!="object")return!1;const r=Object.values(i);return r.length===e&&r.every(o=>isFinite(o))};return i=>t.test(i)||n(i)}function g8(e){return Array.isArray(e)?"array":"object"}function me(e,t,n){return g8(e)===t?e:t==="array"?Object.values(e):q4(e,n)}const C8=(e,t,n)=>{const i=me(e,"object",t.keys);for(let a in i)i[a]=ia(i[a],t[a]);const r=Object.keys(i);let o={};if(r.length===t.keys.length)o=i;else{const a=me(n,"object",t.keys);if(r.length===1&&t.locked){const s=r[0],l=i[s],u=a[s],d=u!==0?l/u:1;for(let f in a)f===s?o[s]=l:o[f]=a[f]*d}else o=z(z({},a),i)}return me(o,t.format,t.keys)},y8=(e,t)=>me(e,"object",t.keys),b8=e=>!!e&&("step"in e||"min"in e||"max"in e);function v8(e,t,n=[]){const{lock:i=!1}=t,r=n1(t,p8),o=Array.isArray(e)?"array":"object",a=o==="object"?Object.keys(e):n,s=me(e,"object",a),l=b8(r)?a.reduce((d,f)=>Object.assign(d,{[f]:r}),{}):r,u=wa(s,l);return{value:o==="array"?e:s,settings:z(z({},u),{},{format:o,keys:a,lock:i,locked:!1})}}function Ea(e){return{schema:k8(e.length),normalize:t=>{let{value:n}=t,i=n1(t,x8);return v8(n,i,e)},format:(t,n)=>y8(t,n),sanitize:(t,n,i)=>C8(t,n,i)}}var w8={grad:.9,turn:360,rad:360/(2*Math.PI)},J1=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},f1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},L1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Sa=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ar=function(e){return{r:L1(e.r,0,255),g:L1(e.g,0,255),b:L1(e.b,0,255),a:L1(e.a)}},Ft=function(e){return{r:f1(e.r),g:f1(e.g),b:f1(e.b),a:f1(e.a,3)}},E8=/^#([0-9a-f]{3,8})$/i,He=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Aa=function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=Math.max(t,n,i),a=o-Math.min(t,n,i),s=a?o===t?(n-i)/a:o===n?2+(i-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:r}},_a=function(e){var t=e.h,n=e.s,i=e.v,r=e.a;t=t/360*6,n/=100,i/=100;var o=Math.floor(t),a=i*(1-n),s=i*(1-(t-o)*n),l=i*(1-(1-t+o)*n),u=o%6;return{r:255*[i,s,a,a,l,i][u],g:255*[l,i,i,s,a,a][u],b:255*[a,a,l,i,i,s][u],a:r}},sr=function(e){return{h:Sa(e.h),s:L1(e.s,0,100),l:L1(e.l,0,100),a:L1(e.a)}},lr=function(e){return{h:f1(e.h),s:f1(e.s),l:f1(e.l),a:f1(e.a,3)}},cr=function(e){return _a((n=(t=e).s,{h:t.h,s:(n*=((i=t.l)<50?i:100-i)/100)>0?2*n/(i+n)*100:0,v:i+n,a:t.a}));var t,n,i},pe=function(e){return{h:(t=Aa(e)).h,s:(r=(200-(n=t.s))*(i=t.v)/100)>0&&r<200?n*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,i,r},S8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,A8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,V8=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hn={string:[[function(e){var t=E8.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?f1(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?f1(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=_8.exec(e)||V8.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ar({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=S8.exec(e)||A8.exec(e);if(!t)return null;var n,i,r=sr({h:(n=t[1],i=t[2],i===void 0&&(i="deg"),Number(n)*(w8[i]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return cr(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=r===void 0?1:r;return J1(t)&&J1(n)&&J1(i)?ar({r:Number(t),g:Number(n),b:Number(i),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,i=e.l,r=e.a,o=r===void 0?1:r;if(!J1(t)||!J1(n)||!J1(i))return null;var a=sr({h:Number(t),s:Number(n),l:Number(i),a:Number(o)});return cr(a)},"hsl"],[function(e){var t=e.h,n=e.s,i=e.v,r=e.a,o=r===void 0?1:r;if(!J1(t)||!J1(n)||!J1(i))return null;var a=function(s){return{h:Sa(s.h),s:L1(s.s,0,100),v:L1(s.v,0,100),a:L1(s.a)}}({h:Number(t),s:Number(n),v:Number(i),a:Number(o)});return _a(a)},"hsv"]]},ur=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Ft(this.rgba),n=t.r,i=t.g,r=t.b,a=(o=t.a)<1?He(f1(255*o)):"","#"+He(n)+He(i)+He(r)+a;var t,n,i,r,o,a},e.prototype.toRgb=function(){return Ft(this.rgba)},e.prototype.toRgbString=function(){return t=Ft(this.rgba),n=t.r,i=t.g,r=t.b,(o=t.a)<1?"rgba("+n+", "+i+", "+r+", "+o+")":"rgb("+n+", "+i+", "+r+")";var t,n,i,r,o},e.prototype.toHsl=function(){return lr(pe(this.rgba))},e.prototype.toHslString=function(){return t=lr(pe(this.rgba)),n=t.h,i=t.s,r=t.l,(o=t.a)<1?"hsla("+n+", "+i+"%, "+r+"%, "+o+")":"hsl("+n+", "+i+"%, "+r+"%)";var t,n,i,r,o},e.prototype.toHsv=function(){return t=Aa(this.rgba),{h:f1(t.h),s:f1(t.s),v:f1(t.v),a:f1(t.a,3)};var t},e.prototype.invert=function(){return y1({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),y1(It(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),y1(It(this.rgba,-t))},e.prototype.grayscale=function(){return y1(It(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),y1(dr(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),y1(dr(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?y1({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):f1(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=pe(this.rgba);return typeof t=="number"?y1({h:t,s:n.s,l:n.l,a:n.a}):f1(n.h)},e.prototype.isEqual=function(t){return this.toHex()===y1(t).toHex()},e}(),y1=function(e){return e instanceof mn?e:new mn(e)},fr=[],B8=function(e){e.forEach(function(t){fr.indexOf(t)<0&&(t(mn,hn),fr.push(t))})};function j8(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in n)i[n[r]]=r;var o={};e.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,l,u=i[this.toHex()];if(u)return u;if(a!=null&&a.closest){var d=this.toRgb(),f=1/0,m="black";if(!o.length)for(var k in n)o[k]=new e(n[k]).toRgb();for(var p in n){var g=(s=d,l=o[p],Math.pow(s.r-l.r,2)+Math.pow(s.g-l.g,2)+Math.pow(s.b-l.b,2));g=0||(r[n]=e[n]);return r}function pn(e){var t=h.useRef(e),n=h.useRef(function(i){t.current&&t.current(i)});return t.current=e,n.current}var W0=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:C.buttons>0)&&r.current?o(hr(r.current,C,s.current)):g(!1)},p=function(){return g(!1)};function g(C){var x=l.current,y=xn(r.current),b=C?y.addEventListener:y.removeEventListener;b(x?"touchmove":"mousemove",k),b(x?"touchend":"mouseup",p)}return[function(C){var x=C.nativeEvent,y=r.current;if(y&&(mr(x),!function(w,E){return E&&!xe(w)}(x,l.current)&&y)){if(xe(x)){l.current=!0;var b=x.changedTouches||[];b.length&&(s.current=b[0].identifier)}y.focus(),o(hr(y,x,s.current)),g(!0)}},function(C){var x=C.which||C.keyCode;x<37||x>40||(C.preventDefault(),a({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},g]},[a,o]),d=u[0],f=u[1],m=u[2];return h.useEffect(function(){return m},[m]),v.createElement("div",ee({},i,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:r,onKeyDown:f,tabIndex:0,role:"slider"}))}),Pe=function(e){return e.filter(Boolean).join(" ")},Un=function(e){var t=e.color,n=e.left,i=e.top,r=i===void 0?.5:i,o=Pe(["react-colorful__pointer",e.className]);return v.createElement("div",{className:o,style:{top:100*r+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},v1=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Da=function(e){var t=e.s,n=e.v,i=e.a,r=(200-t)*n/100;return{h:v1(e.h),s:v1(r>0&&r<200?t*n/100/(r<=100?r:200-r)*100:0),l:v1(r/2),a:v1(i,2)}},kn=function(e){var t=Da(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Nt=function(e){var t=Da(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Ba=function(e){var t=e.h,n=e.s,i=e.v,r=e.a;t=t/360*6,n/=100,i/=100;var o=Math.floor(t),a=i*(1-n),s=i*(1-(t-o)*n),l=i*(1-(1-t+o)*n),u=o%6;return{r:v1(255*[i,s,a,a,l,i][u]),g:v1(255*[l,i,i,s,a,a][u]),b:v1(255*[a,a,l,i,i,s][u]),a:v1(r,2)}},ja=function(e){var t=e.r,n=e.g,i=e.b,r=e.a,o=Math.max(t,n,i),a=o-Math.min(t,n,i),s=a?o===t?(n-i)/a:o===n?2+(i-t)/a:4+(t-n)/a:0;return{h:v1(60*(s<0?s+6:s)),s:v1(o?a/o*100:0),v:v1(o/255*100),a:r}},$a=v.memo(function(e){var t=e.hue,n=e.onChange,i=Pe(["react-colorful__hue",e.className]);return v.createElement("div",{className:i},v.createElement(Zn,{onMove:function(r){n({h:360*r.left})},onKey:function(r){n({h:W0(t+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":v1(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(Un,{className:"react-colorful__hue-pointer",left:t/360,color:kn({h:t,s:100,v:100,a:1})})))}),Ga=v.memo(function(e){var t=e.hsva,n=e.onChange,i={backgroundColor:kn({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:i},v.createElement(Zn,{onMove:function(r){n({s:100*r.left,v:100-100*r.top})},onKey:function(r){n({s:W0(t.s+100*r.left,0,100),v:W0(t.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+v1(t.s)+"%, Brightness "+v1(t.v)+"%"},v.createElement(Un,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:kn(t)})))}),Wn=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Pa(e,t,n){var i=pn(n),r=h.useState(function(){return e.toHsva(t)}),o=r[0],a=r[1],s=h.useRef({color:t,hsva:o});h.useEffect(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},a(u)}},[t,e]),h.useEffect(function(){var u;Wn(o,s.current.hsva)||e.equal(u=e.fromHsva(o),s.current.color)||(s.current={hsva:o,color:u},i(u))},[o,e,i]);var l=h.useCallback(function(u){a(function(d){return Object.assign({},d,u)})},[]);return[o,l]}var $8=typeof window<"u"?h.useLayoutEffect:h.useEffect,G8=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},pr=new Map,Ma=function(e){$8(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!pr.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,pr.set(t,n);var i=G8();i&&n.setAttribute("nonce",i),t.head.appendChild(n)}},[])},P8=function(e){var t=e.className,n=e.colorModel,i=e.color,r=i===void 0?n.defaultColor:i,o=e.onChange,a=zn(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Ma(s);var l=Pa(n,r,o),u=l[0],d=l[1],f=Pe(["react-colorful",t]);return v.createElement("div",ee({},a,{ref:s,className:f}),v.createElement(Ga,{hsva:u,onChange:d}),v.createElement($a,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},M8=function(e){var t=e.className,n=e.hsva,i=e.onChange,r={backgroundImage:"linear-gradient(90deg, "+Nt(Object.assign({},n,{a:0}))+", "+Nt(Object.assign({},n,{a:1}))+")"},o=Pe(["react-colorful__alpha",t]),a=v1(100*n.a);return v.createElement("div",{className:o},v.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),v.createElement(Zn,{onMove:function(s){i({a:s.left})},onKey:function(s){i({a:W0(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(Un,{className:"react-colorful__alpha-pointer",left:n.a,color:Nt(n)})))},L8=function(e){var t=e.className,n=e.colorModel,i=e.color,r=i===void 0?n.defaultColor:i,o=e.onChange,a=zn(e,["className","colorModel","color","onChange"]),s=h.useRef(null);Ma(s);var l=Pa(n,r,o),u=l[0],d=l[1],f=Pe(["react-colorful",t]);return v.createElement("div",ee({},a,{ref:s,className:f}),v.createElement(Ga,{hsva:u,onChange:d}),v.createElement($a,{hue:u.h,onChange:d}),v.createElement(M8,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},O8={defaultColor:{r:0,g:0,b:0,a:1},toHsva:ja,fromHsva:Ba,equal:Wn},T8=function(e){return v.createElement(L8,ee({},e,{colorModel:O8}))},R8={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return ja({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Ba(e)).r,g:t.g,b:t.b};var t},equal:Wn},F8=function(e){return v.createElement(P8,ee({},e,{colorModel:R8}))};function np(e,t,n,i){var r=arguments.length,o=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,n,o):a(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function te(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(i.next(d))}catch(f){a(f)}}function l(d){try{u(i.throw(d))}catch(f){a(f)}}function u(d){d.done?o(d.value):r(d.value).then(s,l)}u((i=i.apply(e,t||[])).next())})}function ne(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(i=1,r&&(o=u[0]&2?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function H8(){for(var e=[],t=0;t0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function z8(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),r=N8.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}var Z8=[".DS_Store","Thumbs.db"];function U8(e){return te(this,void 0,void 0,function(){return ne(this,function(t){return at(e)&&W8(e)?[2,X8(e.dataTransfer,e.type)]:K8(e)?[2,q8(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Y8(e)]:[2,[]]})})}function W8(e){return at(e.dataTransfer)}function K8(e){return at(e)&&at(e.target)}function at(e){return typeof e=="object"&&e!==null}function q8(e){return gn(e.target.files).map(function(t){return Me(t)})}function Y8(e){return te(this,void 0,void 0,function(){var t;return ne(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return Me(i)})]}})})}function X8(e,t){return te(this,void 0,void 0,function(){var n,i;return ne(this,function(r){switch(r.label){case 0:return e===null?[2,[]]:e.items?(n=gn(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Q8))]):[3,2];case 1:return i=r.sent(),[2,xr(La(i))];case 2:return[2,xr(gn(e.files).map(function(o){return Me(o)}))]}})})}function xr(e){return e.filter(function(t){return Z8.indexOf(t.name)===-1})}function gn(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);nn)return[!1,vr(n)];if(e.sizen)return[!1,vr(n)]}return[!0,null]}function ae(e){return e!=null}function fc(e){var t=e.files,n=e.accept,i=e.minSize,r=e.maxSize,o=e.multiple,a=e.maxFiles;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(s){var l=Ra(s,n),u=yr(l,1),d=u[0],f=Fa(s,i,r),m=yr(f,1),k=m[0];return d&&k})}function st(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ne(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Er(e){e.preventDefault()}function hc(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mc(e){return e.indexOf("Edge/")!==-1}function pc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return hc(e)||mc(e)}function q1(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function jc(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o=0)&&(n[r]=e[r]);return n}var Kn=h.forwardRef(function(e,t){var n=e.children,i=lt(e,yc),r=Na(i),o=r.open,a=lt(r,bc);return h.useImperativeHandle(t,function(){return{open:o}},[o]),v.createElement(h.Fragment,null,n(s1(s1({},a),{},{open:o})))});Kn.displayName="Dropzone";var Ha={disabled:!1,getFilesFromEvent:U8,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Kn.defaultProps=Ha;Kn.propTypes={children:o1.func,accept:o1.oneOfType([o1.string,o1.arrayOf(o1.string)]),multiple:o1.bool,preventDropOnDocument:o1.bool,noClick:o1.bool,noKeyboard:o1.bool,noDrag:o1.bool,noDragEventsBubbling:o1.bool,minSize:o1.number,maxSize:o1.number,maxFiles:o1.number,disabled:o1.bool,getFilesFromEvent:o1.func,onFileDialogCancel:o1.func,onFileDialogOpen:o1.func,useFsAccessApi:o1.bool,onDragEnter:o1.func,onDragLeave:o1.func,onDragOver:o1.func,onDrop:o1.func,onDropAccepted:o1.func,onDropRejected:o1.func,validator:o1.func};var bn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Na(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=s1(s1({},Ha),e),n=t.accept,i=t.disabled,r=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,m=t.onDrop,k=t.onDropAccepted,p=t.onDropRejected,g=t.onFileDialogCancel,C=t.onFileDialogOpen,x=t.useFsAccessApi,y=t.preventDropOnDocument,b=t.noClick,w=t.noKeyboard,E=t.noDrag,S=t.noDragEventsBubbling,A=t.validator,_=h.useMemo(function(){return typeof C=="function"?C:Ar},[C]),G=h.useMemo(function(){return typeof g=="function"?g:Ar},[g]),B=h.useRef(null),D=h.useRef(null),V=h.useReducer($c,bn),R=zt(V,2),P=R[0],$=R[1],j=P.isFocused,L=P.isFileDialogActive,Z=P.draggedFiles,U=h.useRef(typeof window<"u"&&window.isSecureContext&&x&&xc()),J=function(){!U.current&&L&&setTimeout(function(){if(D.current){var I=D.current.files;I.length||($({type:"closeDialog"}),G())}},300)};h.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[D,L,G,U]);var W=h.useRef([]),M=function(I){B.current&&B.current.contains(I.target)||(I.preventDefault(),W.current=[])};h.useEffect(function(){return y&&(document.addEventListener("dragover",Er,!1),document.addEventListener("drop",M,!1)),function(){y&&(document.removeEventListener("dragover",Er),document.removeEventListener("drop",M))}},[B,y]);var X=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O),W.current=[].concat(Ec(W.current),[O.target]),Ne(O)&&Promise.resolve(r(O)).then(function(I){st(O)&&!S||($({draggedFiles:I,isDragActive:!0,type:"setDraggedFiles"}),u&&u(O))})},[r,u,S]),e1=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O);var I=Ne(O);if(I&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return I&&f&&f(O),!1},[f,S]),Q=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O);var I=W.current.filter(function(_1){return B.current&&B.current.contains(_1)}),h1=I.indexOf(O.target);h1!==-1&&I.splice(h1,1),W.current=I,!(I.length>0)&&($({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Ne(O)&&d&&d(O))},[B,d,S]),d1=h.useCallback(function(O,I){var h1=[],_1=[];O.forEach(function(F1){var ie=Ra(F1,n),P0=zt(ie,2),At=P0[0],_t=P0[1],Vt=Fa(F1,a,o),Oe=zt(Vt,2),Dt=Oe[0],Bt=Oe[1],jt=A?A(F1):null;if(At&&Dt&&!jt)h1.push(F1);else{var $t=[_t,Bt];jt&&($t=$t.concat(jt)),_1.push({file:F1,errors:$t.filter(function(Ss){return Ss})})}}),(!s&&h1.length>1||s&&l>=1&&h1.length>l)&&(h1.forEach(function(F1){_1.push({file:F1,errors:[dc]})}),h1.splice(0)),$({acceptedFiles:h1,fileRejections:_1,type:"setFiles"}),m&&m(h1,_1,I),_1.length>0&&p&&p(_1,I),h1.length>0&&k&&k(h1,I)},[$,s,n,a,o,l,m,k,p,A]),S1=h.useCallback(function(O){O.preventDefault(),O.persist(),Z1(O),W.current=[],Ne(O)&&Promise.resolve(r(O)).then(function(I){st(O)&&!S||d1(I,O)}),$({type:"reset"})},[r,d1,S]),A1=h.useCallback(function(){if(U.current){$({type:"openDialog"}),_();var O={multiple:s,types:kc(n)};window.showOpenFilePicker(O).then(function(I){return r(I)}).then(function(I){d1(I,null),$({type:"closeDialog"})}).catch(function(I){gc(I)?(G(I),$({type:"closeDialog"})):Cc(I)&&(U.current=!1,D.current&&(D.current.value=null,D.current.click()))});return}D.current&&($({type:"openDialog"}),_(),D.current.value=null,D.current.click())},[$,_,G,x,d1,n,s]),j1=h.useCallback(function(O){!B.current||!B.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),A1())},[B,A1]),R1=h.useCallback(function(){$({type:"focus"})},[]),d0=h.useCallback(function(){$({type:"blur"})},[]),f0=h.useCallback(function(){b||(pc()?setTimeout(A1,0):A1())},[b,A1]),Y=function(I){return i?null:I},r1=function(I){return w?null:Y(I)},a1=function(I){return E?null:Y(I)},Z1=function(I){S&&I.stopPropagation()},U1=h.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=O.refKey,h1=I===void 0?"ref":I,_1=O.role,F1=O.onKeyDown,ie=O.onFocus,P0=O.onBlur,At=O.onClick,_t=O.onDragEnter,Vt=O.onDragOver,Oe=O.onDragLeave,Dt=O.onDrop,Bt=lt(O,vc);return s1(s1(yn({onKeyDown:r1(q1(F1,j1)),onFocus:r1(q1(ie,R1)),onBlur:r1(q1(P0,d0)),onClick:Y(q1(At,f0)),onDragEnter:a1(q1(_t,X)),onDragOver:a1(q1(Vt,e1)),onDragLeave:a1(q1(Oe,Q)),onDrop:a1(q1(Dt,S1)),role:typeof _1=="string"&&_1!==""?_1:"button"},h1,B),!i&&!w?{tabIndex:0}:{}),Bt)}},[B,j1,R1,d0,f0,X,e1,Q,S1,w,E,i]),W1=h.useCallback(function(O){O.stopPropagation()},[]),G0=h.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=O.refKey,h1=I===void 0?"ref":I,_1=O.onChange,F1=O.onClick,ie=lt(O,wc),P0=yn({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:Y(q1(_1,S1)),onClick:Y(q1(F1,W1)),tabIndex:-1},h1,D);return s1(s1({},P0),ie)}},[D,n,s,S1,i]),C0=Z.length,K1=C0>0&&fc({files:Z,accept:n,minSize:a,maxSize:o,multiple:s,maxFiles:l}),Le=C0>0&&!K1;return s1(s1({},P),{},{isDragAccept:K1,isDragReject:Le,isFocused:j&&!i,getRootProps:U1,getInputProps:G0,rootRef:B,inputRef:D,open:Y(A1)})}function $c(e,t){switch(t.type){case"focus":return s1(s1({},e),{},{isFocused:!0});case"blur":return s1(s1({},e),{},{isFocused:!1});case"openDialog":return s1(s1({},bn),{},{isFileDialogActive:!0});case"closeDialog":return s1(s1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,i=t.draggedFiles;return s1(s1({},e),{},{draggedFiles:i,isDragActive:n});case"setFiles":return s1(s1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return s1({},bn);default:return e}}function Ar(){}function Gc(e){let t;const n=new Set,i=(u,d)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const m=t;t=d?f:Object.assign({},t,f),n.forEach(k=>k(t,m))}},r=()=>t,o=(u,d=r,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let m=d(t);function k(){const p=d(t);if(!f(m,p)){const g=m;u(m=p,g)}}return n.add(k),()=>n.delete(k)},l={setState:i,getState:r,subscribe:(u,d,f)=>d||f?o(u,d,f):(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(i,r,l),l}const Pc=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),_r=Pc?h.useEffect:h.useLayoutEffect;function Mc(e){const t=typeof e=="function"?Gc(e):e,n=(i=t.getState,r=Object.is)=>{const[,o]=h.useReducer(C=>C+1,0),a=t.getState(),s=h.useRef(a),l=h.useRef(i),u=h.useRef(r),d=h.useRef(!1),f=h.useRef();f.current===void 0&&(f.current=i(a));let m,k=!1;(s.current!==a||l.current!==i||u.current!==r||d.current)&&(m=i(a),k=!r(f.current,m)),_r(()=>{k&&(f.current=m),s.current=a,l.current=i,u.current=r,d.current=!1});const p=h.useRef(a);_r(()=>{const C=()=>{try{const y=t.getState(),b=l.current(y);u.current(f.current,b)||(s.current=y,f.current=b,o())}catch{d.current=!0,o()}},x=t.subscribe(C);return t.getState()!==p.current&&C(),x},[]);const g=k?m:f.current;return h.useDebugValue(g),g};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const i=[n,t];return{next(){const r=i.length<=0;return{value:i.shift(),done:r}}}},n}const Lc=e=>(t,n,i)=>{const r=i.subscribe;return i.subscribe=(a,s,l)=>{let u=a;if(s){const d=(l==null?void 0:l.equalityFn)||Object.is;let f=a(i.getState());u=m=>{const k=a(m);if(!d(f,k)){const p=f;s(f=k,p)}},l!=null&&l.fireImmediately&&s(f,f)}return r(u)},e(t,n,i)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Oc=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Tc=Oc;function Vr(e){return Tc(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var za=function(t){var n,i;return!(Vr(t)===!1||(n=t.constructor,typeof n!="function")||(i=n.prototype,Vr(i)===!1)||i.hasOwnProperty("isPrototypeOf")===!1)};/*! + * is-extendable + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var Rc=za,qn=function(t){return Rc(t)||typeof t=="function"||Array.isArray(t)};/*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var Fc=function(t,n,i){for(var r in t)if(n.call(i,t[r],r,t)===!1)break},Ic=qn,Hc=Fc;function Za(e,t){for(var n=arguments.length,i=0;++i + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var Uc=function(e,t,n,i,r){if(!Wc(e)||!t)return e;if(t=ze(t),n&&(t+="."+ze(n)),i&&(t+="."+ze(i)),r&&(t+="."+ze(r)),t in e)return e[t];for(var o=t.split("."),a=o.length,s=-1;e&&++s + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var Kc=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,i=Object(e),r=arguments.length,o=0;++o"u")throw new TypeError("Cannot convert undefined or null to object");Dr(e)||(e={});for(var t=1;t + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var n9=Xc,i9=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var i=n9({sep:"."},t),r=i.quotes||['"',"'","`"],o;i.brackets===!0?o={"<":">","(":")","[":"]","{":"}"}:i.brackets&&(o=i.brackets);var a=[],s=[],l=[""],u=i.sep,d=e.length,f=-1,m;function k(){if(o&&s.length)return o[s[s.length-1]]}for(;++f + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var a9=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},Br=a9,s9=function(t){Br(t)||(t={});for(var n=arguments.length,i=1;i + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var u9=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! + * set-value + * + * Copyright (c) 2014-2015, 2017, Jon Schlinkert. + * Released under the MIT License. + */var d9=i9,f9=s9,jr=za,$r=u9,h9=function(e,t,n){if(!$r(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var i=d9(t,{sep:".",brackets:!0}).filter(m9),r=i.length,o=-1,a=e;++oe.filter(Boolean).join(".");function g9(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function C9(e,t){return Object.entries(W4(e,t)).reduce((n,[,{value:i,disabled:r,key:o}])=>(n[o]=r?void 0:i,n),{})}function y9(e,t){const n=h.useRef();return(t?ye:De)(e,n.current)||(n.current=e),n.current}function Ua(e,t){return h.useMemo(e,y9(t,!0))}function b9(e){const t=h.useRef(null),n=h.useRef(null),i=h.useRef(!0);return h.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),h.useEffect(()=>{if(i.current){i.current=!1;return}let r;const o=t.current,a=()=>{e&&(o.style.removeProperty("height"),o.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};o.addEventListener("transitionend",a,{once:!0});const{height:s}=n.current.getBoundingClientRect();return o.style.height=s+"px",e||(o.style.overflow="hidden",r=window.setTimeout(()=>o.style.height="0px",50)),()=>{o.removeEventListener("transitionend",a),clearTimeout(r)}},[e]),{wrapperRef:t,contentRef:n}}const v9=e=>{const[t,n]=h.useState(e.getVisiblePaths());return h.useEffect(()=>{n(e.getVisiblePaths());const i=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:De});return()=>i()},[e]),t};function w9(e,t,n){return e.useStore(r=>{const o=z(z({},n),r.data);return C9(o,t)},De)}function Wa(e=3){const t=h.useRef(null),n=h.useRef(null),[i,r]=h.useState(!1),o=h.useCallback(()=>r(!0),[]),a=h.useCallback(()=>r(!1),[]);return h.useLayoutEffect(()=>{if(i){const{bottom:s,top:l,left:u}=t.current.getBoundingClientRect(),{height:d}=n.current.getBoundingClientRect(),f=s+d>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=u+"px",f==="down"?n.current.style.top=s+e+"px":n.current.style.bottom=window.innerHeight-l+e+"px"}},[e,i]),{popinRef:t,wrapperRef:n,shown:i,show:o,hide:a}}B8([j8]);const E9={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};D1.extend({color:()=>e=>y1(e).isValid()});const S9=e=>D1().color().test(e);function Ka(e,{format:t,hasAlpha:n,isString:i}){const r=E9[t]+(i&&t!=="hex"?"String":""),o=e[r]();return typeof o=="object"&&!n?K4(o,["a"]):o}const qa=(e,t)=>{const n=y1(e);if(!n.isValid())throw Error("Invalid color");return Ka(n,t)},A9=(e,t)=>Ka(y1(e),z(z({},t),{},{isString:!0,format:"hex"})),_9=({value:e})=>{const t=D8(e),n=t==="name"?"hex":t,i=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),r={format:n,hasAlpha:i,isString:typeof e=="string"};return{value:qa(e,r),settings:r}};var V9=Object.freeze({__proto__:null,schema:S9,sanitize:qa,format:A9,normalize:_9});const D9=H("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),B9=H("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),j9=H("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Mr(e,t){return t!=="rgb"?y1(e).toRgb():e}function $9({value:e,displayValue:t,settings:n,onUpdate:i}){const{emitOnEditStart:r,emitOnEditEnd:o}=x1(),{format:a,hasAlpha:s}=n,{popinRef:l,wrapperRef:u,shown:d,show:f,hide:m}=Wa(),k=h.useRef(0),[p,g]=h.useState(()=>Mr(e,a)),C=s?T8:F8,x=()=>{g(Mr(e,a)),f(),r()},y=()=>{m(),o(),window.clearTimeout(k.current)},b=()=>{k.current=window.setTimeout(y,500)};return h.useEffect(()=>()=>window.clearTimeout(k.current),[]),v.createElement(v.Fragment,null,v.createElement(D9,{ref:l,active:d,onClick:()=>x(),style:{color:t}}),d&&v.createElement(In,null,v.createElement(xa,{onPointerUp:y}),v.createElement(j9,{ref:u,onMouseEnter:()=>window.clearTimeout(k.current),onMouseLeave:w=>w.buttons===0&&b()},v.createElement(C,{color:p,onChange:i}))))}function G9(){const{value:e,displayValue:t,label:n,onChange:i,onUpdate:r,settings:o}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,n),v.createElement(B9,null,v.createElement($9,{value:e,displayValue:t,onChange:i,onUpdate:r,settings:o}),v.createElement(Fn,{value:t,onChange:i,onUpdate:r})))}var P9=z({component:G9},V9);function M9(){const{label:e,displayValue:t,onUpdate:n,settings:i}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(Nn,{value:t,settings:i,onUpdate:n}))}var L9=z({component:M9},Ea(["x","y","z"]));const O9=H("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),T9=H("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function R9({value:e,settings:t,onUpdate:n}){const i=h.useRef(),r=h.useRef(0),o=h.useRef(0),a=h.useRef(1),[s,l]=h.useState(!1),[u,d]=h.useState(!1),[f,m]=ga(),k=h.useRef(null),p=h.useRef(null);h.useLayoutEffect(()=>{if(s){const{top:V,left:R,width:P,height:$}=k.current.getBoundingClientRect();p.current.style.left=R+P/2+"px",p.current.style.top=V+$/2+"px"}},[s]);const{keys:[g,C],joystick:x}=t,y=x==="invertY"?1:-1,{[g]:{step:b},[C]:{step:w}}=t,E=n0("sizes","joystickWidth"),S=n0("sizes","joystickHeight"),A=parseFloat(E)*.8/2,_=parseFloat(S)*.8/2,G=h.useCallback(()=>{i.current||(d(!0),r.current&&m({x:r.current*A}),o.current&&m({y:o.current*-_}),i.current=window.setInterval(()=>{n(V=>{const R=b*r.current*a.current,P=y*w*o.current*a.current;return Array.isArray(V)?{[g]:V[0]+R,[C]:V[1]+P}:{[g]:V[g]+R,[C]:V[C]+P}})},16))},[A,_,n,m,b,w,g,C,y]),B=h.useCallback(()=>{window.clearTimeout(i.current),i.current=void 0,d(!1)},[]);h.useEffect(()=>{function V(R){a.current=na(R)}return window.addEventListener("keydown",V),window.addEventListener("keyup",V),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",V),window.removeEventListener("keyup",V)}},[]);const D=Ge(({first:V,active:R,delta:[P,$],movement:[j,L]})=>{V&&l(!0);const Z=k0(j,-A,A),U=k0(L,-_,_);r.current=Math.abs(j)>Math.abs(Z)?Math.sign(j-Z):0,o.current=Math.abs(L)>Math.abs(U)?Math.sign(U-L):0;let J=e[g],W=e[C];R?(r.current||(J+=P*b*a.current,m({x:Z})),o.current||(W-=y*$*w*a.current,m({y:U})),r.current||o.current?G():B(),n({[g]:J,[C]:W})):(l(!1),r.current=0,o.current=0,m({x:0,y:0}),B())});return v.createElement(O9,u1({ref:k},D()),s&&v.createElement(In,null,v.createElement(T9,{ref:p,isOutOfBounds:u},v.createElement("div",null),v.createElement("span",{ref:f}))))}const F9=H("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function I9(){const{label:e,displayValue:t,onUpdate:n,settings:i}=x1();return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(F9,{withJoystick:!!i.joystick},i.joystick&&v.createElement(R9,{value:t,settings:i,onUpdate:n}),v.createElement(Nn,{value:t,settings:i,onUpdate:n})))}const H9=["joystick"],Ya=Ea(["x","y"]),N9=e=>{let{joystick:t=!0}=e,n=n1(e,H9);const{value:i,settings:r}=Ya.normalize(n);return{value:i,settings:z(z({},r),{},{joystick:t})}};var z9=z(z({component:I9},Ya),{},{normalize:N9});const Z9=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},U9=(e,t)=>typeof t=="object"&&"image"in t,W9=({image:e})=>({value:e});var K9=Object.freeze({__proto__:null,sanitize:Z9,schema:U9,normalize:W9});const q9=H("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Y9=H("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),X9=H("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Q9=H("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),J9=H("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),e7=H("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function t7(){const{label:e,value:t,onUpdate:n,disabled:i}=x1(),{popinRef:r,wrapperRef:o,shown:a,show:s,hide:l}=Wa(),u=h.useCallback(p=>{p.length&&n(p[0])},[n]),d=h.useCallback(p=>{p.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:m,isDragAccept:k}=Na({maxFiles:1,accept:"image/*",onDrop:u,disabled:i});return v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(q9,null,v.createElement(X9,{ref:r,hasImage:!!t,onPointerDown:()=>!!t&&s(),onPointerUp:l,style:{backgroundImage:t?`url(${t})`:"none"}}),a&&!!t&&v.createElement(In,null,v.createElement(xa,{onPointerUp:l,style:{cursor:"pointer"}}),v.createElement(Q9,{ref:o,style:{backgroundImage:`url(${t})`}})),v.createElement(Y9,f({isDragAccept:k}),v.createElement("input",m()),v.createElement(J9,null,k?"drop image":"click or drop")),v.createElement(e7,{onClick:d,disabled:!t})))}var n7=z({component:t7},K9);const Lr=D1().number(),i7=(e,t)=>D1().array().length(2).every.number().test(e)&&D1().schema({min:Lr,max:Lr}).test(t),ct=e=>({min:e[0],max:e[1]}),Xa=(e,{bounds:[t,n]},i)=>{const r=Array.isArray(e)?ct(e):e,o={min:i[0],max:i[1]},{min:a,max:s}=z(z({},o),r);return[k0(Number(a),t,Math.max(t,s)),k0(Number(s),Math.min(n,a),n)]},r7=({value:e,min:t,max:n})=>{const i={min:t,max:n},r=wa(ct(e),{min:i,max:i}),o=[t,n],a=z(z({},r),{},{bounds:o});return{value:Xa(ct(e),a,e),settings:a}};var o7=Object.freeze({__proto__:null,schema:i7,format:ct,sanitize:Xa,normalize:r7});const a7=["value","bounds","onDrag"],s7=["bounds"],l7=H("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function c7(e){let{value:t,bounds:[n,i],onDrag:r}=e,o=n1(e,a7);const a=h.useRef(null),s=h.useRef(null),l=h.useRef(null),u=h.useRef(0),d=n0("sizes","scrubberWidth"),f=Ge(({event:p,first:g,xy:[C],movement:[x],memo:y={}})=>{if(g){const{width:w,left:E}=a.current.getBoundingClientRect();u.current=w-parseFloat(d);const S=(p==null?void 0:p.target)===s.current||(p==null?void 0:p.target)===l.current;y.pos=rt((C-E)/w,n,i);const A=Math.abs(y.pos-t.min)-Math.abs(y.pos-t.max);y.key=A<0||A===0&&y.pos<=t.min?"min":"max",S&&(y.pos=t[y.key])}const b=y.pos+rt(x/u.current,0,i-n);return r({[y.key]:L6(b,o[y.key])}),y}),m=`calc(${it(t.min,n,i)} * (100% - ${d} - 8px) + 4px)`,k=`calc(${1-it(t.max,n,i)} * (100% - ${d} - 8px) + 4px)`;return v.createElement(ya,u1({ref:a},f()),v.createElement(Ca,null,v.createElement(ba,{style:{left:m,right:k}})),v.createElement(dn,{position:"left",ref:s,style:{left:m}}),v.createElement(dn,{position:"right",ref:l,style:{right:k}}))}function u7(){const{label:e,displayValue:t,onUpdate:n,settings:i}=x1(),r=n1(i,s7);return v.createElement(v.Fragment,null,v.createElement(T1,{input:!0},v.createElement(z1,null,e),v.createElement(l7,null,v.createElement(c7,u1({value:t},i,{onDrag:n})),v.createElement(Nn,{value:t,settings:r,onUpdate:n,innerLabelTrim:0}))))}var d7=z({component:u7},o7);const f7=()=>{const e=new Map;return{on:(t,n)=>{let i=e.get(t);i===void 0&&(i=new Set,e.set(t,i)),i.add(n)},off:(t,n)=>{const i=e.get(t);i!==void 0&&(i.delete(n),i.size===0&&e.delete(t))},emit:(t,...n)=>{const i=e.get(t);if(i!==void 0)for(const r of i)r(...n)}}},h7=["type","value"],m7=["onChange","transient","onEditStart","onEditEnd"],p7=function(){const t=Mc(Lc(()=>({data:{}}))),n=f7();this.storeId=U4(),this.useStore=t;const i={},r=new Set;this.getVisiblePaths=()=>{const a=this.getData(),s=Object.keys(a),l=[];Object.entries(i).forEach(([d,f])=>{f.render&&s.some(m=>m.indexOf(d)===0)&&!f.render(this.get)&&l.push(d+".")});const u=[];return r.forEach(d=>{d in a&&a[d].__refCount>0&&l.every(f=>d.indexOf(f)===-1)&&(!a[d].render||a[d].render(this.get))&&u.push(d)}),u},this.setOrderedPaths=a=>{a.forEach(s=>r.add(s))},this.orderPaths=a=>(this.setOrderedPaths(a),a),this.disposePaths=a=>{t.setState(s=>{const l=s.data;return a.forEach(u=>{if(u in l){const d=l[u];d.__refCount--,d.__refCount===0&&d.type in H1&&delete l[u]}}),{data:l}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=a=>i[a]||{},this.getData=()=>t.getState().data,this.addData=(a,s)=>{t.setState(l=>{const u=l.data;return Object.entries(a).forEach(([d,f])=>{let m=u[d];if(m){const{type:k,value:p}=f,g=n1(f,h7);k!==m.type?t0(l1.INPUT_TYPE_OVERRIDE,k):((m.__refCount===0||s)&&Object.assign(m,g),m.__refCount++)}else u[d]=z(z({},f),{},{__refCount:1})}),{data:u}})},this.setValueAtPath=(a,s,l)=>{t.setState(u=>{const d=u.data;return or(d[a],s,a,this,l),{data:d}})},this.setSettingsAtPath=(a,s)=>{t.setState(l=>{const u=l.data;return u[a].settings=z(z({},u[a].settings),s),{data:u}})},this.disableInputAtPath=(a,s)=>{t.setState(l=>{const u=l.data;return u[a].disabled=s,{data:u}})},this.set=(a,s)=>{t.setState(l=>{const u=l.data;return Object.entries(a).forEach(([d,f])=>{try{or(u[d],f,void 0,void 0,s)}catch{}}),{data:u}})},this.getInput=a=>{try{return this.getData()[a]}catch{t0(l1.PATH_DOESNT_EXIST,a)}},this.get=a=>{var s;return(s=this.getInput(a))===null||s===void 0?void 0:s.value},this.emitOnEditStart=a=>{n.emit(`onEditStart:${a}`,this.get(a),a,z(z({},this.getInput(a)),{},{get:this.get}))},this.emitOnEditEnd=a=>{n.emit(`onEditEnd:${a}`,this.get(a),a,z(z({},this.getInput(a)),{},{get:this.get}))},this.subscribeToEditStart=(a,s)=>{const l=`onEditStart:${a}`;return n.on(l,s),()=>n.off(l,s)},this.subscribeToEditEnd=(a,s)=>{const l=`onEditEnd:${a}`;return n.on(l,s),()=>n.off(l,s)};const o=(a,s,l)=>{const u={};return Object.entries(a).forEach(([d,f])=>{if(d==="")return t0(l1.EMPTY_KEY);let m=Yn(s,d);if(f.type===H1.FOLDER){const k=o(f.schema,m,l);Object.assign(u,k),m in i||(i[m]=f.settings)}else if(d in l)t0(l1.DUPLICATE_KEYS,d,m,l[d].path);else{const k=e6(f,d,m,u);if(k){const{type:p,options:g,input:C}=k,{onChange:x,transient:y,onEditStart:b,onEditEnd:w}=g,E=n1(g,m7);u[m]=z(z(z({type:p},E),C),{},{fromPanel:!0}),l[d]={path:m,onChange:x,transient:y,onEditStart:b,onEditEnd:w}}else t0(l1.UNKNOWN_INPUT,m,f)}}),u};this.getDataFromSchema=a=>{const s={};return[o(a,"",s),s]}},Qa=new p7,x7={collapsed:!1};function k7(e,t){return{type:H1.FOLDER,schema:e,settings:z(z({},x7),t)}}const Or=e=>"__levaInput"in e,g7=(e,t)=>{const n={},i=t?t.toLowerCase():null;return e.forEach(r=>{const[o,a]=g9(r);(!i||o.toLowerCase().indexOf(i)>-1)&&k9(n,a,{[o]:{__levaInput:!0,path:r}})}),n},C7=["type","label","path","valueKey","value","settings","setValue","disabled"];function y7(e){let{type:t,label:n,path:i,valueKey:r,value:o,settings:a,setValue:s,disabled:l}=e,u=n1(e,C7);const{displayValue:d,onChange:f,onUpdate:m}=ka({type:t,value:o,settings:a,setValue:s}),k=_0[t].component;return k?v.createElement(sa.Provider,{value:z({key:r,path:i,id:""+i,label:n,displayValue:d,value:o,onChange:f,onUpdate:m,settings:a,setValue:s,disabled:l},u)},v.createElement(y6,{disabled:l},v.createElement(k,null))):(t0(l1.NO_COMPONENT_FOR_TYPE,t,i),null)}const b7=H("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function v7({onClick:e,settings:t,label:n}){const i=$e();return v.createElement(T1,null,v.createElement(b7,{disabled:t.disabled,onClick:()=>e(i.get)},n))}const w7=H("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),E7=H("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),S7=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,i=t;return typeof t.opts=="object"&&(i.label!==void 0&&(n=t.label),i=t.opts),{label:n,opts:i}};function A7(e){const{label:t,opts:n}=S7(e),i=$e();return v.createElement(T1,{input:!!t},t&&v.createElement(z1,null,t),v.createElement(w7,null,Object.entries(n).map(([r,o])=>v.createElement(E7,{key:r,onClick:()=>o(i.get)},r))))}const _7=H("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),Ja=100;function V7(e,t){e.push(t),e.length>Ja&&e.shift()}const D7=h.forwardRef(function({initialValue:e},t){const n=n0("colors","highlight3"),i=n0("colors","elevation2"),r=n0("colors","highlight1"),[o,a]=h.useMemo(()=>[y1(r).alpha(.4).toRgbString(),y1(r).alpha(.1).toRgbString()],[r]),s=h.useRef([e]),l=h.useRef(e),u=h.useRef(e),d=h.useRef(),f=h.useCallback((p,g)=>{if(!p)return;const{width:C,height:x}=p,y=new Path2D,b=C/Ja,w=x*.05;for(let A=0;A({frame:p=>{(l.current===void 0||pu.current)&&(u.current=p),V7(s.current,p),d.current=requestAnimationFrame(()=>f(m.current,k.current))}}),[m,k,f]),h.useEffect(()=>()=>cancelAnimationFrame(d.current),[]),v.createElement(_7,{ref:m})}),Tr=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),B7=h.forwardRef(function({initialValue:e},t){const[n,i]=h.useState(Tr(e));return h.useImperativeHandle(t,()=>({frame:r=>i(Tr(r))}),[]),v.createElement("div",null,n)});function Rr(e){return typeof e=="function"?e():e.current}function j7({label:e,objectOrFn:t,settings:n}){const i=h.useRef(),r=h.useRef(Rr(t));return h.useEffect(()=>{const o=window.setInterval(()=>{var a;document.hidden||(a=i.current)===null||a===void 0||a.frame(Rr(t))},n.interval);return()=>window.clearInterval(o)},[t,n.interval]),v.createElement(T1,{input:!0},v.createElement(z1,{align:"top"},e),n.graph?v.createElement(D7,{ref:i,initialValue:r.current}):v.createElement(B7,{ref:i,initialValue:r.current}))}const $7=["type","label","key"],G7={[H1.BUTTON]:v7,[H1.BUTTON_GROUP]:A7,[H1.MONITOR]:j7},P7=v.memo(({path:e})=>{const[t,{set:n,setSettings:i,disable:r,storeId:o,emitOnEditStart:a,emitOnEditEnd:s}]=j6(e);if(!t)return null;const{type:l,label:u,key:d}=t,f=n1(t,$7);if(l in H1){const m=G7[l];return v.createElement(m,u1({label:u,path:e},f))}return l in _0?v.createElement(y7,u1({key:o+e,type:l,label:u,storeId:o,path:e,valueKey:d,setValue:n,setSettings:i,disable:r,emitOnEditStart:a,emitOnEditEnd:s},f)):(T4(l1.UNSUPPORTED_INPUT,l,e),null)});function M7({toggle:e,toggled:t,name:n}){return v.createElement(k6,{onClick:()=>e()},v.createElement(Hn,{toggled:t}),v.createElement("div",null,n))}const L7=({name:e,path:t,tree:n})=>{const i=$e(),r=Yn(t,e),{collapsed:o,color:a}=i.getFolderSettings(r),[s,l]=h.useState(!o),u=h.useRef(null),d=n0("colors","folderWidgetColor"),f=n0("colors","folderTextColor");return h.useLayoutEffect(()=>{u.current.style.setProperty("--leva-colors-folderWidgetColor",a||d),u.current.style.setProperty("--leva-colors-folderTextColor",a||f)},[a,d,f]),v.createElement(ot,{ref:u},v.createElement(M7,{name:e,toggled:s,toggle:()=>l(m=>!m)}),v.createElement(es,{parent:r,tree:n,toggled:s}))},es=v.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:i,tree:r,toggled:o})=>{const{wrapperRef:a,contentRef:s}=b9(o),l=$e(),u=([f,m])=>{var k;return(Or(m)?(k=l.getInput(m.path))===null||k===void 0?void 0:k.order:l.getFolderSettings(Yn(i,f)).order)||0},d=Object.entries(r).sort((f,m)=>u(f)-u(m));return v.createElement(cn,{ref:a,isRoot:e,fill:t,flat:n},v.createElement(ha,{ref:s,isRoot:e,toggled:o},d.map(([f,m])=>Or(m)?v.createElement(P7,{key:m.path,valueKey:m.valueKey,path:m.path}):v.createElement(L7,{key:f,name:f,path:i,tree:m}))))}),O7=H("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${pa}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),ts=40,ut=H("i",{$flexCenter:"",width:ts,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),T7=H("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),R7=H("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${ut}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),F7=H("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),I7=H("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:ts}}}}),H7=v.forwardRef(({setFilter:e,toggle:t},n)=>{const[i,r]=h.useState(""),o=h.useMemo(()=>ta(e,250),[e]),a=()=>{e(""),r("")},s=l=>{const u=l.currentTarget.value;t(!0),r(u)};return h.useEffect(()=>{o(i)},[i,o]),v.createElement(v.Fragment,null,v.createElement(F7,{ref:n,value:i,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:l=>l.stopPropagation(),onChange:s}),v.createElement(ut,{onClick:()=>a(),style:{visibility:i?"visible":"hidden"}},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},v.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function N7({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:i,toggle:r,toggled:o,title:a,drag:s,filterEnabled:l,from:u}){const[d,f]=h.useState(!1),m=h.useRef(null);h.useEffect(()=>{var p,g;d?(p=m.current)===null||p===void 0||p.focus():(g=m.current)===null||g===void 0||g.blur()},[d]);const k=Ge(({offset:[p,g],first:C,last:x})=>{t({x:p,y:g}),C&&n({x:p,y:g}),x&&i({x:p,y:g})},{filterTaps:!0,from:({offset:[p,g]})=>[(u==null?void 0:u.x)||p,(u==null?void 0:u.y)||g]});return h.useEffect(()=>{const p=g=>{g.key==="L"&&g.shiftKey&&g.metaKey&&f(C=>!C)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[]),v.createElement(v.Fragment,null,v.createElement(T7,{mode:s?"drag":void 0},v.createElement(ut,{active:!o,onClick:()=>r()},v.createElement(Hn,{toggled:o,width:12,height:8})),v.createElement(I7,u1({},s?k():{},{drag:s,filterEnabled:l}),a===void 0&&s?v.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},v.createElement("circle",{cx:"2",cy:"2",r:"2"}),v.createElement("circle",{cx:"14",cy:"2",r:"2"}),v.createElement("circle",{cx:"26",cy:"2",r:"2"}),v.createElement("circle",{cx:"2",cy:"12",r:"2"}),v.createElement("circle",{cx:"14",cy:"12",r:"2"}),v.createElement("circle",{cx:"26",cy:"12",r:"2"})):a),l&&v.createElement(ut,{active:d,onClick:()=>f(p=>!p)},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},v.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),v.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),v.createElement(R7,{toggled:d},v.createElement(H7,{ref:m,setFilter:e,toggle:r})))}const z7=["store","hidden","theme","collapsed"];function Z7(e){let{store:t,hidden:n=!1,theme:i,collapsed:r=!1}=e,o=n1(e,z7);const a=Ua(()=>d6(i),[i]),[s,l]=h.useState(!r),u=typeof r=="object"?!r.collapsed:s,d=h.useMemo(()=>typeof r=="object"?f=>{typeof f=="function"?r.onChange(!f(!r.collapsed)):r.onChange(!f)}:l,[r]);return!t||n?null:v.createElement(Rn.Provider,{value:a},v.createElement(U7,u1({store:t},o,{toggled:u,setToggle:d,rootClass:a.className})))}const U7=v.memo(({store:e,rootClass:t,fill:n=!1,flat:i=!1,neverHide:r=!1,oneLineLabels:o=!1,titleBar:a={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:s=!1,toggled:l,setToggle:u})=>{var d,f;const m=v9(e),[k,p]=h.useState(""),g=h.useMemo(()=>g7(m,k),[m,k]),[C,x]=ga(),y=r||m.length>0,b=typeof a=="object"&&a.title||void 0,w=typeof a=="object"&&(d=a.drag)!==null&&d!==void 0?d:!0,E=typeof a=="object"&&(f=a.filter)!==null&&f!==void 0?f:!0,S=typeof a=="object"&&a.position||void 0,A=typeof a=="object"&&a.onDrag||void 0,_=typeof a=="object"&&a.onDragStart||void 0,G=typeof a=="object"&&a.onDragEnd||void 0;return v.useEffect(()=>{x({x:S==null?void 0:S.x,y:S==null?void 0:S.y})},[S,x]),u6(),v.createElement(ca.Provider,{value:{hideCopyButton:s}},v.createElement(O7,{ref:C,className:t,fill:n,flat:i,oneLineLabels:o,hideTitleBar:!a,style:{display:y?"block":"none"}},a&&v.createElement(N7,{onDrag:B=>{x(B),A==null||A(B)},onDragStart:B=>_==null?void 0:_(B),onDragEnd:B=>G==null?void 0:G(B),setFilter:p,toggle:B=>u(D=>B??!D),toggled:l,title:b,drag:w,filterEnabled:E,from:S}),y&&v.createElement(la.Provider,{value:e},v.createElement(es,{isRoot:!0,fill:n,flat:i,tree:g,toggled:l}))))}),W7=["isRoot"];let dt=!1,v0=null;function ns(e){let{isRoot:t=!1}=e,n=n1(e,W7);return h.useEffect(()=>(dt=!0,!t&&v0&&(v0.remove(),v0=null),()=>{t||(dt=!1)}),[t]),v.createElement(Z7,u1({store:Qa},n))}function K7(e){h.useEffect(()=>{e&&!dt&&(v0||(v0=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(v0),n6(v.createElement(ns,{isRoot:!0}),v0))),dt=!0)},[e])}function q7(e,t,n,i,r){let o,a,s,l,u;return typeof e=="string"?(a=e,o=t,Array.isArray(n)?u=n:n&&("store"in n?(l=n,u=i):(s=n,Array.isArray(i)?u=i:(l=i,u=r)))):(o=e,Array.isArray(t)?u=t:(l=t,u=n)),{schema:o,folderName:a,folderSettings:s,hookSettings:l,deps:u||[]}}function ip(e,t,n,i,r){const{folderName:o,schema:a,folderSettings:s,hookSettings:l,deps:u}=q7(e,t,n,i,r),d=typeof a=="function",f=h.useRef(!1),m=h.useRef(!0),k=Ua(()=>{f.current=!0;const D=typeof a=="function"?a():a;return o?{[o]:k7(D,s)}:D},u),p=!(l!=null&&l.store);K7(p);const[g]=h.useState(()=>(l==null?void 0:l.store)||Qa),[C,x]=h.useMemo(()=>g.getDataFromSchema(k),[g,k]),[y,b,w,E,S]=h.useMemo(()=>{const D=[],V=[],R={},P={},$={};return Object.values(x).forEach(({path:j,onChange:L,onEditStart:Z,onEditEnd:U,transient:J})=>{D.push(j),L?(R[j]=L,J||V.push(j)):V.push(j),Z&&(P[j]=Z),U&&($[j]=U)}),[D,V,R,P,$]},[x]),A=h.useMemo(()=>g.orderPaths(y),[y,g]),_=w9(g,b,C),G=h.useCallback(D=>{const V=Object.entries(D).reduce((R,[P,$])=>Object.assign(R,{[x[P].path]:$}),{});g.set(V,!1)},[g,x]),B=h.useCallback(D=>g.get(x[D].path),[g,x]);return h.useEffect(()=>{const D=!m.current&&f.current;return g.addData(C,D),m.current=!1,f.current=!1,()=>g.disposePaths(A)},[g,A,C]),h.useEffect(()=>{const D=[];return Object.entries(w).forEach(([V,R])=>{R(g.get(V),V,z({initial:!0,get:g.get},g.getInput(V)));const P=g.useStore.subscribe($=>{const j=$.data[V];return[j.disabled?void 0:j.value,j]},([$,j])=>R($,V,z({initial:!1,get:g.get},j)),{equalityFn:De});D.push(P)}),()=>D.forEach(V=>V())},[g,w]),h.useEffect(()=>{const D=[];return Object.entries(E).forEach(([V,R])=>D.push(g.subscribeToEditStart(V,R))),Object.entries(S).forEach(([V,R])=>D.push(g.subscribeToEditEnd(V,R))),()=>D.forEach(V=>V())},[E,S,g]),d?[_,G,B]:_}u0(N1.SELECT,K6);u0(N1.IMAGE,n7);u0(N1.NUMBER,T6);u0(N1.COLOR,P9);u0(N1.STRING,i8);u0(N1.BOOLEAN,u8);u0(N1.INTERVAL,d7);u0(N1.VECTOR3D,L9);u0(N1.VECTOR2D,z9);const Y7=Ds` + html { + box-sizing: border-box; + } + *, *:before, *:after { + box-sizing: inherit; + } + html, body, div, span, applet, object, iframe, + h1, h2, h3, h4, h5, h6, p, blockquote, pre, + a, abbr, acronym, address, big, cite, code, + del, dfn, em, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + b, u, i, center, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td, + article, aside, canvas, details, embed, + figure, figcaption, footer, header, hgroup, + menu, nav, output, ruby, section, summary, + time, mark, audio, video { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + -webkit-tap-highlight-color: transparent; + border: 0; + font-size: 100%; + margin: 0; + padding: 0; + text-rendering: optimizeLegibility; + vertical-align: baseline; + } + a { + cursor: pointer; + text-decoration: none; + } + body { + + &.no-scroll { + overflow: hidden; + } + } + blockquote, q { + quotes: none; + } + blockquote:before, blockquote:after, + q:before, q:after { + content: ''; + content: none; + } + table { + border-collapse: collapse; + border-spacing: 0; + } +`;function X7(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,r]of e)if(!Object.is(r,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{const i=e(n);return X7(t.current,i)?t.current:t.current=i}}const is=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"bubble_chart",children:[c.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1551_42)",children:c.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),rs=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"communities",children:[c.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1551_39)",children:c.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),os=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"grain",children:[c.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1551_45)",children:c.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),as=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"public",children:[c.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1551_36)",children:c.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function Fr(e,t,n){var i,r=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var a,s=i.length,l,u=0,d=0,f=0;for(a=0;a=(l=(a+s)/2))?a=l:s=l,i=r,!(r=r[f=+d]))return i[f]=o,e;if(u=+e._x.call(null,r.data),t===u)return o.next=r,i?i[f]=o:e._root=o,e;do i=i?i[f]=new Array(2):e._root=new Array(2),(d=t>=(l=(a+s)/2))?a=l:s=l;while((f=+d)==(m=+(u>=l)));return i[m]=r,i[f]=o,e}function tu(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let i=1/0,r=-1/0;for(let o=0,a;or&&(r=a));if(i>r)return this;this.cover(i).cover(r);for(let o=0;oe||e>=n;)switch(a=+(ea||(o=u.x1)=f))&&(u=s[s.length-1],s[s.length-1]=s[s.length-1-d],s[s.length-1-d]=u)}else{var m=Math.abs(e-+this._x.call(null,l.data));m=(u=(a+s)/2))?a=u:s=u,t=n,!(n=n[f=+d]))return this;if(!n.length)break;t[f+1&1]&&(i=t,m=f)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,r?(o?r.next=o:delete r.next,this):t?(o?t[f]=o:delete t[f],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(i?i[m]=n:this._root=n),this):(this._root=o,this)}function su(e){for(var t=0,n=e.length;t=(f=(s+u)/2))?s=f:u=f,(C=n>=(m=(l+d)/2))?l=m:d=m,r=o,!(o=o[x=C<<1|g]))return r[x]=a,e;if(k=+e._x.call(null,o.data),p=+e._y.call(null,o.data),t===k&&n===p)return a.next=o,r?r[x]=a:e._root=a,e;do r=r?r[x]=new Array(4):e._root=new Array(4),(g=t>=(f=(s+u)/2))?s=f:u=f,(C=n>=(m=(l+d)/2))?l=m:d=m;while((x=C<<1|g)===(y=(p>=m)<<1|k>=f));return r[y]=o,r[x]=a,e}function pu(e){var t,n,i=e.length,r,o,a=new Array(i),s=new Array(i),l=1/0,u=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=r),of&&(f=o));if(l>d||u>f)return this;for(this.cover(l,u).cover(d,f),n=0;ne||e>=r||i>t||t>=o;)switch(u=(td||(s=p.y0)>f||(l=p.x1)=x)<<1|e>=C)&&(p=m[m.length-1],m[m.length-1]=m[m.length-1-g],m[m.length-1-g]=p)}else{var y=e-+this._x.call(null,k.data),b=t-+this._y.call(null,k.data),w=y*y+b*b;if(w=(m=(a+l)/2))?a=m:l=m,(g=f>=(k=(s+u)/2))?s=k:u=k,t=n,!(n=n[C=g<<1|p]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,x=C)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,r?(o?r.next=o:delete r.next,this):t?(o?t[C]=o:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[x]=n:this._root=n),this):(this._root=o,this)}function bu(e){for(var t=0,n=e.length;t=(p=(l+f)/2))?l=p:f=p,(E=n>=(g=(u+m)/2))?u=g:m=g,(S=i>=(C=(d+k)/2))?d=C:k=C,o=a,!(a=a[A=S<<2|E<<1|w]))return o[A]=s,e;if(x=+e._x.call(null,a.data),y=+e._y.call(null,a.data),b=+e._z.call(null,a.data),t===x&&n===y&&i===b)return s.next=a,o?o[A]=s:e._root=s,e;do o=o?o[A]=new Array(8):e._root=new Array(8),(w=t>=(p=(l+f)/2))?l=p:f=p,(E=n>=(g=(u+m)/2))?u=g:m=g,(S=i>=(C=(d+k)/2))?d=C:k=C;while((A=S<<2|E<<1|w)===(_=(b>=C)<<2|(y>=g)<<1|x>=p));return o[_]=a,o[A]=s,e}function ju(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),i=new Float64Array(t),r=new Float64Array(t);let o=1/0,a=1/0,s=1/0,l=-1/0,u=-1/0,d=-1/0;for(let f=0,m,k,p,g;fl&&(l=k),pu&&(u=p),gd&&(d=g));if(o>l||a>u||s>d)return this;this.cover(o,a,s).cover(l,u,d);for(let f=0;fe||e>=a||r>t||t>=s||o>n||n>=l;)switch(m=(np||(u=b.y0)>g||(d=b.z0)>C||(f=b.x1)=A)<<2|(t>=S)<<1|e>=E)&&(b=x[x.length-1],x[x.length-1]=x[x.length-1-w],x[x.length-1-w]=b)}else{var _=e-+this._x.call(null,y.data),G=t-+this._y.call(null,y.data),B=n-+this._z.call(null,y.data),D=_*_+G*G+B*B;if(D=(g=(a+u)/2))?a=g:u=g,(b=k>=(C=(s+d)/2))?s=C:d=C,(w=p>=(x=(l+f)/2))?l=x:f=x,t=n,!(n=n[E=w<<2|b<<1|y]))return this;if(!n.length)break;(t[E+1&7]||t[E+2&7]||t[E+3&7]||t[E+4&7]||t[E+5&7]||t[E+6&7]||t[E+7&7])&&(i=t,S=E)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,r?(o?r.next=o:delete r.next,this):t?(o?t[E]=o:delete t[E],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[S]=n:this._root=n),this):(this._root=o,this)}function Ou(e){for(var t=0,n=e.length;t1&&(g=k.y+k.vy),n>2&&(C=k.z+k.vz),m.visit(w);function w(E,S,A,_,G,B,D){var V=[S,A,_,G,B,D],R=V[0],P=V[1],$=V[2],j=V[n],L=V[n+1],Z=V[n+2],U=E.data,J=E.r,W=x+J;if(U){if(U.index>k.index){var M=p-U.x-U.vx,X=n>1?g-U.y-U.vy:0,e1=n>2?C-U.z-U.vz:0,Q=M*M+X*X+e1*e1;Q1&&X===0&&(X=M1(r),Q+=X*X),n>2&&e1===0&&(e1=M1(r),Q+=e1*e1),Q=(W-(Q=Math.sqrt(Q)))/Q*o,k.vx+=(M*=Q)*(W=(J*=J)/(y+J)),n>1&&(k.vy+=(X*=Q)*W),n>2&&(k.vz+=(e1*=Q)*W),U.vx-=M*(W=1-W),n>1&&(U.vy-=X*W),n>2&&(U.vz-=e1*W))}return}return R>p+W||j1&&(P>g+W||L2&&($>C+W||Zd.r&&(d.r=d[f].r)}function u(){if(t){var d,f=t.length,m;for(i=new Array(f),d=0;dtypeof m=="function")||Math.random,n=f.find(m=>[1,2,3].includes(m))||2,u()},s.iterations=function(d){return arguments.length?(a=+d,s):a},s.strength=function(d){return arguments.length?(o=+d,s):o},s.radius=function(d){return arguments.length?(e=typeof d=="function"?d:w1(+d),u(),s):e},s}function qu(e){return e.index}function Zr(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Yu(e){var t=qu,n=m,i,r=w1(30),o,a,s,l,u,d,f=1;e==null&&(e=[]);function m(x){return 1/Math.min(l[x.source.index],l[x.target.index])}function k(x){for(var y=0,b=e.length;y1&&(G=A.y+A.vy-S.y-S.vy||M1(d)),s>2&&(B=A.z+A.vz-S.z-S.vz||M1(d)),D=Math.sqrt(_*_+G*G+B*B),D=(D-o[w])/D*x*i[w],_*=D,G*=D,B*=D,A.vx-=_*(V=u[w]),s>1&&(A.vy-=G*V),s>2&&(A.vz-=B*V),S.vx+=_*(V=1-V),s>1&&(S.vy+=G*V),s>2&&(S.vz+=B*V)}function p(){if(a){var x,y=a.length,b=e.length,w=new Map(a.map((S,A)=>[t(S,A,a),S])),E;for(x=0,l=new Array(y);xtypeof b=="function")||Math.random,s=y.find(b=>[1,2,3].includes(b))||2,p()},k.links=function(x){return arguments.length?(e=x,p(),k):e},k.id=function(x){return arguments.length?(t=x,k):t},k.iterations=function(x){return arguments.length?(f=+x,k):f},k.strength=function(x){return arguments.length?(n=typeof x=="function"?x:w1(+x),g(),k):n},k.distance=function(x){return arguments.length?(r=typeof x=="function"?x:w1(+x),C(),k):r},k}var Xu={value:()=>{}};function us(){for(var e=0,t=arguments.length,n={},i;e=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}We.prototype=us.prototype={constructor:We,on:function(e,t){var n=this._,i=Qu(e+"",n),r,o=-1,a=i.length;if(arguments.length<2){for(;++o0)for(var n=new Array(r),i=0,r,o;i=0&&e._call.call(void 0,t),e=e._next;--K0}function Wr(){V0=(ht=we.now())+St,K0=de=0;try{td()}finally{K0=0,id(),V0=0}}function nd(){var e=we.now(),t=e-ht;t>ds&&(St-=t,ht=e)}function id(){for(var e,t=ft,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ft=n);fe=e,Sn(i)}function Sn(e){if(!K0){de&&(de=clearTimeout(de));var t=e-V0;t>24?(e<1/0&&(de=setTimeout(Wr,e-we.now()-St)),se&&(se=clearInterval(se))):(se||(ht=we.now(),se=setInterval(nd,ds)),K0=1,fs(Wr))}}const rd=1664525,od=1013904223,Kr=4294967296;function ad(){let e=1;return()=>(e=(rd*e+od)%Kr)/Kr}var qr=3;function Kt(e){return e.x}function Yr(e){return e.y}function sd(e){return e.z}var ld=10,cd=Math.PI*(3-Math.sqrt(5)),ud=Math.PI*20/(9+Math.sqrt(221));function dd(e,t){t=t||2;var n=Math.min(qr,Math.max(1,Math.round(t))),i,r=1,o=.001,a=1-Math.pow(o,1/300),s=0,l=.6,u=new Map,d=ms(k),f=us("tick","end"),m=ad();e==null&&(e=[]);function k(){p(),f.call("tick",i),r1&&(w.fy==null?w.y+=w.vy*=l:(w.y=w.fy,w.vy=0)),n>2&&(w.fz==null?w.z+=w.vz*=l:(w.z=w.fz,w.vz=0));return i}function g(){for(var x=0,y=e.length,b;x1&&isNaN(b.y)||n>2&&isNaN(b.z)){var w=ld*(n>2?Math.cbrt(.5+x):n>1?Math.sqrt(.5+x):x),E=x*cd,S=x*ud;n===1?b.x=w:n===2?(b.x=w*Math.cos(E),b.y=w*Math.sin(E)):(b.x=w*Math.sin(E)*Math.cos(S),b.y=w*Math.cos(E),b.z=w*Math.sin(E)*Math.sin(S))}(isNaN(b.vx)||n>1&&isNaN(b.vy)||n>2&&isNaN(b.vz))&&(b.vx=0,n>1&&(b.vy=0),n>2&&(b.vz=0))}}function C(x){return x.initialize&&x.initialize(e,m,n),x}return g(),i={tick:p,restart:function(){return d.restart(k),i},stop:function(){return d.stop(),i},numDimensions:function(x){return arguments.length?(n=Math.min(qr,Math.max(1,Math.round(x))),u.forEach(C),i):n},nodes:function(x){return arguments.length?(e=x,g(),u.forEach(C),i):e},alpha:function(x){return arguments.length?(r=+x,i):r},alphaMin:function(x){return arguments.length?(o=+x,i):o},alphaDecay:function(x){return arguments.length?(a=+x,i):+a},alphaTarget:function(x){return arguments.length?(s=+x,i):s},velocityDecay:function(x){return arguments.length?(l=1-x,i):1-l},randomSource:function(x){return arguments.length?(m=x,u.forEach(C),i):m},force:function(x,y){return arguments.length>1?(y==null?u.delete(x):u.set(x,C(y)),i):u.get(x)},find:function(){var x=Array.prototype.slice.call(arguments),y=x.shift()||0,b=(n>1?x.shift():null)||0,w=(n>2?x.shift():null)||0,E=x.shift()||1/0,S=0,A=e.length,_,G,B,D,V,R;for(E*=E,S=0;S1?(f.on(x,y),i):f.on(x)}}}function fd(){var e,t,n,i,r,o=w1(-30),a,s=1,l=1/0,u=.81;function d(p){var g,C=e.length,x=(t===1?Xn(e,Kt):t===2?Jn(e,Kt,Yr):t===3?ti(e,Kt,Yr,sd):null).visitAfter(m);for(r=p,g=0;g1&&(p.y=w/y),t>2&&(p.z=E/y)}else{C=p,C.x=C.data.x,t>1&&(C.y=C.data.y),t>2&&(C.z=C.data.z);do g+=a[C.data.index];while(C=C.next)}p.value=g}function k(p,g,C,x,y){if(!p.value)return!0;var b=[C,x,y][t-1],w=p.x-n.x,E=t>1?p.y-n.y:0,S=t>2?p.z-n.z:0,A=b-g,_=w*w+E*E+S*S;if(A*A/u<_)return _1&&E===0&&(E=M1(i),_+=E*E),t>2&&S===0&&(S=M1(i),_+=S*S),_1&&(n.vy+=E*p.value*r/_),t>2&&(n.vz+=S*p.value*r/_)),!0;if(p.length||_>=l)return;(p.data!==n||p.next)&&(w===0&&(w=M1(i),_+=w*w),t>1&&E===0&&(E=M1(i),_+=E*E),t>2&&S===0&&(S=M1(i),_+=S*S),_1&&(n.vy+=E*A),t>2&&(n.vz+=S*A));while(p=p.next)}return d.initialize=function(p,...g){e=p,i=g.find(C=>typeof C=="function")||Math.random,t=g.find(C=>[1,2,3].includes(C))||2,f()},d.strength=function(p){return arguments.length?(o=typeof p=="function"?p:w1(+p),f(),d):o},d.distanceMin=function(p){return arguments.length?(s=p*p,d):Math.sqrt(s)},d.distanceMax=function(p){return arguments.length?(l=p*p,d):Math.sqrt(l)},d.theta=function(p){return arguments.length?(u=p*p,d):Math.sqrt(u)},d}function Xr(e,t,n,i){var r,o,a=w1(.1),s,l;typeof e!="function"&&(e=w1(+e)),t==null&&(t=0),n==null&&(n=0),i==null&&(i=0);function u(f){for(var m=0,k=r.length;m1&&(p.vy+=C*b),o>2&&(p.vz+=x*b)}}function d(){if(r){var f,m=r.length;for(s=new Array(m),l=new Array(m),f=0;f[1,2,3].includes(k))||2,d()},u.strength=function(f){return arguments.length?(a=typeof f=="function"?f:w1(+f),d(),u):a},u.radius=function(f){return arguments.length?(e=typeof f=="function"?f:w1(+f),d(),u):e},u.x=function(f){return arguments.length?(t=+f,u):t},u.y=function(f){return arguments.length?(n=+f,u):n},u.z=function(f){return arguments.length?(i=+f,u):i},u}function hd(e){var t=w1(.1),n,i,r;typeof e!="function"&&(e=w1(e==null?0:+e));function o(s){for(var l=0,u=n.length,d;l{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},pd=["sphere","force","split","earth"],xd={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,scrollEventsDisabled:!1,graphRadius:1500,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:md,isHovering:!1},$0=An()((e,t)=>({...xd,setData:n=>{e({data:n})},setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setGraphStyle:n=>e({graphStyle:n}),setHoveredNode:n=>{e({hoveredNode:n})},setSelectedNode:n=>{const{selectedNode:i,simulation:r}=t();if((i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)){const o=r.nodes().find(a=>a.ref_id===(n==null?void 0:n.ref_id))||null;e({hoveredNode:null,selectedNode:o,disableCameraRotation:!0})}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const i=t().nearbyNodeIds;(n.length!==i.length||n[0]!==i[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,i,r)=>{const o=structuredClone(n),a=structuredClone(i),{simulation:s,simulationHelpers:l}=t();s.stop();const u=r?[]:s.nodes().map(f=>({...f,fx:f.x,fy:f.y,fz:f.z})),d=r?[]:s.force("link").links();u.push(...o),d.push(...a);try{s.nodes(u);const f=d.filter(m=>{const{target:k,source:p}=m,g=s.nodes(),C=(k==null?void 0:k.ref_id)||k,x=(p==null?void 0:p.ref_id)||p;return g.some(y=>y.ref_id===C)&&g.some(y=>y.ref_id===x)});s.force("link").links([]).links(f),l.simulationRestart()}catch(f){console.log(f)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...qt}))).force("y",null).force("radial",Xr(200,0,0,0).strength(.1)).force("center",Fr().strength(1)).force("collide",Wt().radius(()=>250).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...qt}))).force("y",null).force("charge",fd().strength(-20)).force("center",Fr().strength(1)).force("collide",Wt().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:i}=g0.getState();n.stop().nodes(n.nodes().map(r=>({...r,...qt}))).force("radial",Xr(200,0,0,0).strength(.1)).force("collide",Wt().radius(()=>250).strength(1).iterations(1)).force("y",hd().y(r=>{const o=i.indexOf(r.node_type),a=Math.floor(o/2)*400;return o%2===0?a:-a}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:i}=t();n==="split"&&i.addSplitForce(),n==="sphere"&&i.addRadialForce(),n==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,i)=>{console.log("created");const r=structuredClone(n),o=structuredClone(i),a=dd([]).numDimensions(3).stop().nodes(r).force("link",Yu().links(o).id(s=>s.ref_id));e({simulation:a})}})),ps=()=>$0(e=>e.selectedNode),rp=()=>$0(e=>e.hoveredNode),ii=()=>$0(e=>e.setSelectedNode),op=()=>{const e=$0(r=>r.selectedNode);if(!e)return[];const{dataInitial:t}=g0.getState();return((t==null?void 0:t.links)||[]).reduce((r,o)=>(o.source===(e==null?void 0:e.ref_id)&&r.push(o.target),o.target===(e==null?void 0:e.ref_id)&&r.push(o.source),r),[])},kd={split:c.jsx(os,{}),force:c.jsx(rs,{}),sphere:c.jsx(is,{}),earth:c.jsx(as,{})},gd=()=>{const[e,t]=$0(J7(i=>[i.graphStyle,i.setGraphStyle])),n=i=>{t(i)};return c.jsx(Cd,{direction:"column",children:pd.map(i=>c.jsx(K,{className:Bs("icon",{active:e===i}),onClick:()=>n(i),children:kd[i]},i))})},Cd=q(K).attrs({direction:"row",align:"center",justify:"space-between"})` + padding: 6px 6px 6px 11px; + background: ${N.BG1}; + border-radius: 200px; + .icon { + color: ${N.GRAY6}; + font-size: 20px; + cursor: pointer; + + &:hover { + color: ${N.GRAY3}; + } + + &:active { + color: ${N.white}; + } + + &.active { + color: ${N.white}; + } + } + + .icon + .icon { + margin-left: 20px; + } +`,xs=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"center",children:[c.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),c.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),c.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),c.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),c.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),yd=()=>{const[e,t]=$0(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return c.jsx(bd,{href:"",onClick:()=>t(!e),size:"medium",startIcon:c.jsx(xs,{})})},bd=q(_n)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + filter: brightness(0.65); + } + } +`,ks=q.div` + position: relative; + display: inline-flex; + align-items: center; +`,vd=q.div` + visibility: hidden; + width: auto; + background-color: ${({backgroundColor:e})=>e||"white"}; + color: ${({color:e})=>e||"black"}; + text-align: ${({textAlign:e})=>e||"center"}; + min-width: ${({minWidth:e})=>e||"auto"}; + border-radius: ${({borderRadius:e})=>e||"4px"}; + padding: ${({padding:e})=>e||"5px 8px"}; + position: absolute; + z-index: 1; + ${({position:e})=>{switch(e){case"top":return"bottom: 100%; left: 50%; transform: translateX(-50%);";case"left":return"right: calc(100% + 6px); top: 50%; transform: translateY(-50%);";default:return"top: 100%; left: 50%; transform: translateX(-50%);"}}} + margin-top: ${({margin:e})=>e||"0px"}; + opacity: 0; + transition: opacity 0.3s; + white-space: ${({whiteSpace:e})=>e||"nowrap"}; + overflow: hidden; + text-overflow: ellipsis; + font-size: ${({fontSize:e})=>e||"12px"}; + font-weight: ${({fontWeight:e})=>e||"600"}; + + ${ks}:hover & { + visibility: visible; + opacity: 1; + } +`,mt=({content:e,children:t,margin:n,backgroundColor:i,color:r,padding:o,fontSize:a,fontWeight:s,borderRadius:l,minWidth:u,whiteSpace:d,position:f,textAlign:m})=>c.jsxs(ks,{children:[t,c.jsx(vd,{backgroundColor:i,borderRadius:l,color:r,fontSize:a,fontWeight:s,margin:n,minWidth:u,padding:o,position:f,textAlign:m,whiteSpace:d,children:e})]}),wd=()=>{const{resetData:e}=g0(t=>t);return c.jsx(mt,{content:"Clear Graph",fontSize:"13px",position:"left",children:c.jsx(Ed,{href:"",onClick:()=>e(),size:"medium",startIcon:c.jsx(xt,{})})})},Ed=q(_n)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + color: #fff; + filter: brightness(0.65); + } + } +`,gs=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Property 1=Pause Normal",children:c.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),Cs=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Play & Pause",children:c.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),Sd={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},ys=q.div` + background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${Sd[t]||"generic"}_placeholder_img.png')`}; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + width: ${({size:e=45})=>e}px; + height: ${({size:e=45})=>e}px; + border-radius: ${({rounded:e})=>e?"50%":"2px"}; +`,le={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5},Ad=An()(js((e,t)=>({...le,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:i}=t();i&&e({playingNode:{...i,link:n}})},setPlayingNode:n=>{n||e({...le});const i=t().playingNode;(i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)&&e({...le,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:le.duration,hasError:le.hasError})}))),_d=()=>{var b,w,E,S;const e=h.useRef(null),[t,n]=h.useState(0),i=ps(),r=ii(),[o,a]=kt(A=>[A.sidebarIsOpen,A.setSidebarOpen]),[s,l,u,d,f,m]=Ad(A=>[A.isPlaying,A.setIsPlaying,A.playingTime,A.playingNode,A.miniPlayerIsVisible,A.setMiniPlayerIsVisible]),[k,p]=(b=d==null?void 0:d.properties)!=null&&b.timestamp?d.properties.timestamp.split("-").map(A=>Xs(A)):[0,0],g=(u-k)/(p-k)*100;h.useEffect(()=>{var G,B;const A=((G=e.current)==null?void 0:G.offsetWidth)||0,_=((B=e.current)==null?void 0:B.scrollWidth)||0;n(_-A)},[]);const C=A=>{m(!1),A.stopPropagation()},x=()=>{r(d),a(!0)},y=o&&(i==null?void 0:i.ref_id)!==(d==null?void 0:d.ref_id)||d&&!o;return f&&d&&y?c.jsxs(Vd,{onClick:x,children:[c.jsxs(Dd,{children:[c.jsx(ys,{src:((w=d==null?void 0:d.properties)==null?void 0:w.image_url)||"",type:d.node_type}),c.jsxs(Bd,{children:[c.jsxs(Md,{ref:e,children:[c.jsx(Pd,{className:"title",scrollValue:t,children:(E=d==null?void 0:d.properties)==null?void 0:E.episode_title}),c.jsx("div",{className:"subtitle",children:(S=d==null?void 0:d.properties)==null?void 0:S.show_title})]}),c.jsx($d,{"data-testid":"play-pause-button",onClick:A=>{l(!s),A.stopPropagation()},size:"small",children:s?c.jsx(gs,{"data-testid":"pause-icon"}):c.jsx(Cs,{"data-testid":"play-icon"})})]}),c.jsx(jd,{onClick:A=>C(A),children:c.jsx(xt,{})})]}),c.jsx(Gd,{value:g,variant:"determinate"})]}):null},Vd=q(K).attrs({direction:"column",align:"stretch",justify:"space-between"})` + padding: 8px; + background: ${N.BG1}; + border-radius: 6px; + width: 320px; + height: 72px; + margin-top: 16px; + cursor: pointer; + z-index: 0; +`,Dd=q(K).attrs({direction:"row",align:"center",justify:"flex-start"})``,Bd=q(K).attrs({direction:"row",align:"center",justify:"space-between"})` + flex: 1; + color: ${N.white}; + margin-left: 11px; + + .title { + font-size: 13px; + margin-bottom: 2px; + font-weight: 500; + } + + .subtitle { + font-size: 11px; + color: ${N.GRAY6}; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } +`,jd=q(co)` + padding: 8px; + color: ${N.GRAY6}; + z-index: 100000; +`,$d=q(co)` + && { + font-size: 36px; + padding: 2px; + margin-left: 8px; + overflow: hidden; + z-index: 100000; + } +`,Gd=q($s)` + && { + flex-shrink: 0; + height: 2px; + background-color: ${N.white}; + color: blue; + + .MuiLinearProgress-bar { + background: rgb(65, 90, 127); + } + } +`,Pd=q.div` + white-space: nowrap; + overflow: hidden; + width: max-content; + animation: scrollText 12s linear infinite; + + @keyframes scrollText { + 0%, + 15% { + transform: translateX(0); + } + + 60%, + 75% { + transform: translateX(${e=>-e.scrollValue}px); + } + + 100% { + transform: translateX(0); + } + } + color: #fff; +`,Md=q(K)` + overflow: hidden; + flex: 1; +`,bs=()=>{const e=ps(),t=g0(r=>r.isFetching),n=kt(r=>r.universeQuestionIsOpen),{isAdmin:i}=Vn(r=>r);return c.jsxs(Ld,{align:"flex-end",id:"actions-toolbar",children:[c.jsxs(Od,{children:[!t&&!n&&i&&c.jsx(wd,{}),!t&&!n&&c.jsx(yd,{})]}),c.jsx(K,{align:"center",direction:"row",mt:16,children:!t&&!n&&c.jsx(gd,{})}),c.jsx(_d,{},e==null?void 0:e.ref_id)]})},Ld=q(K)` + position: absolute; + right: 20px; + bottom: 20px; + pointer-events: all; +`,Od=q.div` + display: flex; + flex-direction: column; + gap: 4px; +`,Td=({type:e})=>{var s,l;let t;const[n]=to(u=>[u.normalizedSchemasByType]),i=e,r=(s=n[e])==null?void 0:s.primary_color,o=(l=n[e])==null?void 0:l.icon,a=o?`svg-icons/${o}.svg`:null;switch(i){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:a??"video_badge.svg",color:r??N.CLIP};break;case"show":t={iconStart:a??"show_badge.svg",color:r??N.SHOW};break;case"tweet":t={iconStart:a??"twitter_badge.svg",color:r??N.TWEET};break;case"episode":t={iconStart:a??"audio_badge.svg",color:r??N.EPISODE};break;case"document":t={iconStart:a??"notes_badge.svg",color:r??N.TEXT};break;case(o??"organization"):t={iconStart:a??"organization_badge.svg",color:r??N.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:a??"person_badge.svg",color:r??N.PERSON};break;case"event":t={iconStart:a??"event_badge.svg",color:r??N.EVENT};break;default:t={iconStart:a??"thing_badge.svg",color:r??N.THING};break}return c.jsx(Rd,{...t,label:e})},Rd=({iconStart:e,color:t,label:n})=>c.jsxs(Fd,{color:t,children:[c.jsx("img",{alt:n,className:"badge__img",src:e}),c.jsx("div",{className:"badge__label",children:n})]}),Fd=q(K).attrs({direction:"row"})` + cursor: pointer; + background: ${({color:e})=>e}; + border-radius: 3px; + overflow: hidden; + justify-content: center; + align-items: center; + padding: 0 4px; + gap: 2px; + + .badge__img { + width: 10px; + height: 10px; + object-fit: contain; + } + + .badge__label { + color: ${N.white}; + font-family: Barlow; + font-size: 8px; + font-style: normal; + font-weight: 800; + line-height: 14px; + text-transform: uppercase; + line-height: 14px; + letter-spacing: 0.48px; + padding: 0 4px; + } +`,Id=({twitterHandle:e})=>c.jsx(c.Fragment,{children:c.jsx(K,{direction:"row",children:c.jsx(K,{align:"flex-start",pb:12,children:c.jsxs(C1,{children:["Tweet by @",e]})})})}),Hd=q(K)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:N.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:N.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),Nd=q(K)` + width: 22.5%; +`,zd=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:i,description:r,label:o,text:a,type:s,name:l,twitter_handle:u,image_url:d,guests:f}=e,m=f&&f.length>0,k=m&&typeof f[0]=="object";let p=d;return t==="guest"&&!d&&(p="person_placeholder2.png"),s==="twitter_space"&&(p="twitter_placeholder.png"),t==="topic"?null:c.jsx(Hd,{borderRadius:8,px:24,py:16,children:t==="tweet"?c.jsx(Id,{twitterHandle:u}):c.jsxs(c.Fragment,{children:[c.jsxs(K,{direction:"row",children:[p&&c.jsx(Nd,{}),c.jsx(K,{align:"flex-start",pb:12,children:c.jsx(Td,{type:t})})]}),c.jsxs(K,{direction:"row",children:[p&&c.jsx(K,{pr:12,children:c.jsx(ys,{src:p,type:"person"})}),c.jsxs("div",{children:[(l||o)&&c.jsx(K,{direction:"column",children:l?c.jsx(C1,{children:l}):c.jsxs(c.Fragment,{children:[c.jsx(C1,{children:o}),a&&c.jsx(K,{pt:4,children:c.jsxs(C1,{color:"primaryText1",kind:"tiny",children:["@",a]})})]})}),n&&c.jsx(C1,{color:"primaryText1",kind:"tiny",children:n}),i&&c.jsx(K,{pt:4,children:c.jsx(C1,{color:"primaryText1",kind:"tiny",children:i})}),r&&c.jsx(K,{pt:12,children:c.jsx(C1,{as:"div",kind:"regularBold",children:Ys(r)})}),u&&c.jsx(K,{pt:4,children:c.jsxs(C1,{color:"primaryText1",kind:"tiny",children:["@",u]})}),f&&f.length>0&&c.jsxs(K,{pt:12,children:[c.jsx(C1,{color:"primaryText1",children:"People"}),c.jsx(K,{pt:4,children:c.jsx(C1,{color:"primaryText1",kind:"tiny",children:m&&c.jsxs(K,{pt:12,children:[c.jsx(C1,{children:"Guests:"}),c.jsx(C1,{children:k?f.map(g=>`@${g==null?void 0:g.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Zd=()=>{const[e,t]=$0(l=>[l.hoveredNode,l.isHovering]),[n,i]=h.useState(!1),[r,o]=h.useState(!1);h.useEffect(()=>{let l=null;return t||r?i(!0):l=setTimeout(()=>i(!1),300),()=>{l&&clearTimeout(l)}},[t,r]);const a=h.useCallback(()=>{o(!0)},[]),s=h.useCallback(()=>{o(!1)},[]);return c.jsxs(Ud,{children:[e&&n&&c.jsx(Wd,{onMouseEnter:a,onMouseLeave:s,children:c.jsx(zd,{node:e})}),c.jsx(bs,{})]})},Ud=q("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),Wd=q.div` + position: absolute; + top: 65px; + right: 55px; + z-index: 100; +`,Kd=()=>{const e=h.useContext(Gs);return e==null?void 0:e.socket},qd={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Yd=An(e=>({...qd,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,i,r,o;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((i=t==null?void 0:t.instagraph)!=null&&i.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(r=t==null?void 0:t.instagraph)==null?void 0:r.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),Xd="0.1.106",Qd=h.lazy(()=>p1(()=>import("./index-e0614544.js"),["assets/index-e0614544.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js","assets/Tabs-07181cd3.js","assets/createSvgIcon-016a2106.js"]).then(({SettingsModal:e})=>({default:e}))),Jd=h.lazy(()=>p1(()=>import("./index-c99ee90f.js"),["assets/index-c99ee90f.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js"]).then(({AddContentModal:e})=>({default:e}))),ef=h.lazy(()=>p1(()=>import("./index-569ae916.js"),["assets/index-569ae916.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),tf=h.lazy(()=>p1(()=>import("./index-746c11fc.js"),["assets/index-746c11fc.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/constants-a3da365e.js","assets/ClipLoader-2c26140d.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/index-bd13c6c5.js","assets/Typography-0d19ae0d.js","assets/Tabs-07181cd3.js"]).then(({SourcesTableModal:e})=>({default:e}))),nf=h.lazy(()=>p1(()=>import("./index-52cf0cef.js"),["assets/index-52cf0cef.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/Skeleton-1ccdf5c1.js","assets/ClipLoader-2c26140d.js"]).then(({EditNodeNameModal:e})=>({default:e}))),rf=h.lazy(()=>p1(()=>import("./index-427bda35.js"),["assets/index-427bda35.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/Skeleton-1ccdf5c1.js","assets/ClipLoader-2c26140d.js"]).then(({RemoveNodeModal:e})=>({default:e}))),of=h.lazy(()=>p1(()=>import("./index-b6fe9242.js"),["assets/index-b6fe9242.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/constants-a3da365e.js","assets/ClipLoader-2c26140d.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),af=h.lazy(()=>p1(()=>import("./index-59e95d3e.js"),["assets/index-59e95d3e.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bd13c6c5.js","assets/constants-a3da365e.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/ClipLoader-2c26140d.js"]).then(({MergeNodeModal:e})=>({default:e}))),sf=h.lazy(()=>p1(()=>import("./index-da03d4e9.js"),["assets/index-da03d4e9.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/ClipLoader-2c26140d.js","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),lf=h.lazy(()=>p1(()=>import("./index-738555e7.js"),["assets/index-738555e7.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js","assets/ClipLoader-2c26140d.js","assets/map-3259c6de.js","assets/Typography-0d19ae0d.js","assets/Tabs-07181cd3.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-04235dc5.js"]).then(({BlueprintModal:e})=>({default:e}))),cf=h.lazy(()=>p1(()=>import("./index-0f75a7d3.js"),["assets/index-0f75a7d3.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]).then(({UserFeedBackModal:e})=>({default:e}))),uf=h.lazy(()=>p1(()=>import("./index-4d73db1d.js"),["assets/index-4d73db1d.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-bf769610.js","assets/Stack-06c1211e.js","assets/createSvgIcon-016a2106.js","assets/TextareaAutosize-f9a84af0.js"]).then(({CreateBountyModal:e})=>({default:e}))),df=h.lazy(()=>p1(()=>import("./index-bde6e5ef.js").then(e=>e.cb),["assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:e})=>({default:e}))),ff=()=>c.jsxs(c.Fragment,{children:[c.jsx(ef,{}),c.jsx(Jd,{}),c.jsx(Qd,{}),c.jsx(nf,{}),c.jsx(rf,{}),c.jsx(tf,{}),c.jsx(of,{}),c.jsx(sf,{}),c.jsx(lf,{}),c.jsx(af,{}),c.jsx(cf,{}),c.jsx(uf,{}),c.jsx(df,{})]}),hf=()=>{const[e,t]=h.useState(null),{runningProjectMessages:n}=g0(s=>s),i=s=>{t(s.currentTarget)},r=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?c.jsxs(mf,{ml:8,children:[c.jsx(xf,{onClick:i,children:c.jsxs(mt,{content:"Messages",margin:"18px",children:[c.jsx("div",{className:"icon",children:c.jsx(no,{})}),c.jsx("div",{className:"text",children:c.jsx("p",{children:n.length})})]})}),c.jsxs(kf,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:r,open:o,children:[c.jsx(vs,{onClick:r,children:c.jsx(xt,{})}),c.jsx(pf,{p:16,children:n.map(s=>c.jsx("p",{className:"item",children:s},s))})]})]}):null},mf=q(K).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,pf=q(K)` + max-height: 50vh; + max-width: 30vw; + background: transparent; + padding-top: 1px !important; + padding-bottom: 0 !important; + overflow-y: auto; + + &::-webkit-scrollbar { + width: 3px; + } + + &::-webkit-scrollbar-track { + border-radius: 9px; + margin: 4px; + overflow-y: hidden; + } + + .item { + padding: 8px 0; + word-break: break-word; + font-family: 'Barlow'; + font-size: 12px; + font-weight: 400; + text-align: right; + color: ${N.GRAY6}; + } + + &:hover { + background: ${N.MESSAGE_BG_HOVER}; + } +`,xf=q(K).attrs({align:"center",direction:"row"})` + display: flex; + cursor: pointer; + height: 2.5rem; + padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; + align-items: center; + gap: 0.625rem; + color: ${N.white}; + background: ${N.BG1}; + font-family: Barlow; + font-size: 0.75rem; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 0.0075rem; + border-radius: 12.5rem; + + &:hover { + background: ${N.BUTTON1_PRESS}; + } + + &:active { + background: ${N.BUTTON1}; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; + font-size: 16px; + } + + .budgetUnit { + color: ${N.GRAY6}; + } + + .text { + display: flex; + align-items: center; + justify-content: center; + } +`,vs=q.div` + position: absolute; + top: 0; + right: 0; + transform: translate(50%, -50%); + cursor: pointer; + display: none; + z-index: 1; + width: 2em; + height: 2em; + background-color: ${N.BUTTON1}; + border-radius: 50%; + align-items: center; + justify-content: center; + + svg { + fill: ${N.white} !important; + width: 1.5em; + height: 1.5em; + } +`,kf=q(J3)` + .MuiPopover-paper { + margin-top: 4px; + background-color: transparent !important; + box-shadow: none; + background: ${N.MESSAGE_BG}; + border-radius: 6px; + overflow: visible; + + &:hover { + ${vs} { + display: flex; + } + } + } +`,ws=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),Es=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"Nodes",children:[c.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1506_141)",children:c.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),gf="A",Cf=0,yf=128,bf=128,vf={g:"LottieFiles AE 3.5.2"},wf=[{ty:0,nm:"M",sr:1,st:0,op:54,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"M",sr:1,st:54,op:108,ip:54,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"2",sr:1,st:108,op:162,ip:108,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"2",sr:1,st:162,op:255,ip:162,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[64,64,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],Ef="4.8.0",Sf=60,Af=216,_f=0,Vf=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.216,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[148.785,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[128,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.216,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:36,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,128,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:17},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:18},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:19}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,164,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,104,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,92,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,164,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:180,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,92,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:180,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,152,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,152,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,140,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,128,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[107.215,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[148.785,116,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[128,104,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,164,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,152,0],t:18,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[169.569,128,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[148.785,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:6},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,104,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[107.215,116,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:7},{ty:4,nm:"C",sr:1,st:0,op:119,ip:36,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,92,0],t:36,ti:[0,0,0],to:[0,0,0]},{s:[128,104,0],t:54}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:8},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,152,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:9},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[107.215,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:10},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,116,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,140,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,122],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,104],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:11},{ty:4,nm:"C",sr:1,st:0,op:119,ip:18,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,104,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,104,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[128,128,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,110],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,92],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:12},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,152,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,152,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[107.215,164,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,158],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,140],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:13},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[107.215,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[107.215,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[86.431,128,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[86.431,104,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[96.823,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[107.215,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:14},{ty:4,nm:"C",sr:1,st:0,op:18,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[148.785,140,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,140,0],t:0,ti:[0,0,0],to:[0,0,0]},{s:[169.569,152,0],t:18}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[159.177,146],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[148.785,128],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:15},{ty:4,nm:"C",sr:1,st:0,op:36,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[128,128,0],t:0,ti:[0,0,0],to:[0,0,0]},{o:{x:.8,y:0},i:{x:.2,y:1},s:[148.785,116,0],t:18,ti:[0,0,0],to:[0,0,0]},{s:[148.785,92,0],t:36}],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,18],[-10.392,6],[-10.392,-18],[10.392,-6]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[117.608,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:2,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[10.392,6],[-10.392,18],[-10.392,-6],[10.392,-18]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[138.392,134],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]},{ty:"gr",bm:0,hd:!1,mn:"ADBE Vector Group",nm:"G",ix:3,cix:2,np:3,it:[{ty:"sh",bm:0,hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,12],[-20.785,0],[0,-12],[20.785,0]]},ix:2}},{ty:"st",bm:0,hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"S",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:3,ix:5},c:{a:0,k:[.3804,.5412,1],ix:3}},{ty:"fl",bm:0,hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"F",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[128,116],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:16}]}],Df={nm:gf,ddd:Cf,h:yf,w:bf,meta:vf,layers:wf,v:Ef,fr:Sf,op:Af,ip:_f,assets:Vf},Bf=()=>{const e=h.useRef(null);return h.useEffect(()=>{const t=document.getElementById("lottie-animation");return t&&(e.current=Ps.loadAnimation({container:t,animationData:Df,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),c.jsx("div",{id:"lottie-animation",style:{width:"2em",height:"2em"}})},jf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),$f=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1259_25)",children:c.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),Gf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"add_link",children:[c.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_2659_52)",children:c.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),Pf=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1259_27)",children:c.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),Mf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),Lf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),Of=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),Tf=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_21694)",children:c.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),Rf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"arrow_forward",children:[c.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_8980_24763)",children:c.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),Ff=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),If=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),Hf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"Audio",children:[c.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1506_147)",children:c.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),Nf=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_45)",children:c.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),zf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),Zf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"browse_gallery",children:[c.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1360_27257)",children:c.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),Uf=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_21901)",children:c.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Wf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),Kf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"cancel",children:[c.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1264_3381)",children:c.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),qf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),Yf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),Xf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),Qf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"keyboard_arrow_left",children:[c.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:c.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1428_267)",children:c.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),Jf=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"chevron_right",children:[c.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1247_21809)",children:c.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),eh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),th=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),c.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),nh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"cancel",children:[c.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1264_3381)",children:c.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),ih=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),rh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7640_4256)",children:c.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),oh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22054)",children:c.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),ah=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),c.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),sh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"content_copy",children:[c.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1489_75628)",children:c.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),lh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_27)",children:c.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),ch=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:c.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_8954_27793)",children:c.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),c.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),uh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[c.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask1_2777_4506)",children:c.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),dh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"delete",children:[c.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{children:c.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),fh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),c.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),c.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),hh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22108)",children:c.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),mh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),ph=e=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[c.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_2638_2680)",children:c.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),xh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Type=Edit, Size=20x20",children:c.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),kh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),c.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),gh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),Ch=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"Episode",children:[c.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),c.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),c.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),yh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_31)",children:c.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),bh=e=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[c.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_4160_9271)",children:c.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),vh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"captive_portal",children:[c.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[c.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),c.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),wh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),Eh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),Sh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"filter_alt_off",children:[c.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1543_23288)",children:c.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Ah=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22315)",children:c.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),_h=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),c.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),Vh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_23)",children:c.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),Dh=e=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[c.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_3130_18463)",children:c.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),Bh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22375)",children:c.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),jh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),$h=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22441)",children:c.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),Gh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22444)",children:c.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),Ph=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Mh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Lh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Oh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_19)",children:c.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),Th=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22519)",children:c.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),Rh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Icons 20x20",children:c.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),Fh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Menu icons",children:c.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),Ih=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),Hh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_49)",children:c.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),Nh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"volume_mute",children:[c.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[c.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),c.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),zh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),Zh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"notes",children:[c.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1473_73722)",children:c.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Uh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Wh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),Kh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7640_2772)",children:c.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),qh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22741)",children:c.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),Yh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7640_3741)",children:c.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),Xh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:c.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{children:c.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),Qh=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{opacity:"0.4",children:[c.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_5162_13105)",children:c.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),Jh=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_5162_13106)",children:c.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),em=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22801)",children:c.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),tm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:c.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_5099_7163)",children:c.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),nm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22828)",children:c.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),im=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22840)",children:c.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),rm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"schedule",children:[c.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_4051_4016)",children:c.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),om=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9540_35)",children:c.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),am=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),sm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),lm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Property 1=Normal",children:c.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),cm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"sensors",children:[c.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1506_161)",children:c.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),um=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1259_28)",children:c.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),dm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1259_29)",children:c.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),fm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"shield_person",children:[c.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1543_22988)",children:c.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),hm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),mm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"brand_awareness",children:[c.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_3696_4540)",children:c.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),pm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{id:"Menu icons",children:c.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),xm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1259_26)",children:c.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),km=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"stacks",children:[c.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_8417_33308)",children:c.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),gm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_9529_33)",children:c.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),Cm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),c.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),c.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),ym=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:c.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_7541_22378)",children:c.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),bm=e=>c.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:c.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_5577_416)",children:c.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),vm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"Twitter",children:[c.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1506_167)",children:c.jsx("g",{id:"X",children:c.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),wm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"Video",children:[c.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1506_153)",children:c.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),Em=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),Sm=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),Am=e=>c.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:c.jsxs("g",{id:"volume_up",children:[c.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:c.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),c.jsx("g",{mask:"url(#mask0_1483_75386)",children:c.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),_m={AddCircleIcon:jf,AddContentIcon:$f,AddLinkIcon:Gf,AddSourceIcon:Pf,AiPauseIcon:Mf,AiPlayIcon:Lf,AiSummaryIcon:Of,AndroidIcon:Tf,ArrowBackIcon:Rf,ArrowForwardIcon:Ff,ArrowRight:If,AudioIcon:Hf,BitcoinIcon:Nf,BoostIcon:zf,BrowseGalleryIcon:Zf,BubbleChartIcon:is,BudgetIcon:ws,BuildIcon:Uf,CalendarIcon:Wf,CameraCenterIcon:xs,CancelIcon:Kf,CheckIcon:qf,CheckedIcon:Yf,ChevronDownIcon:Xf,ChevronLeftIcon:Qf,ChevronRightIcon:Jf,ChevronUpIcon:eh,ChipIcon:th,ClearIcon:xt,CloseIcon:nh,ColorPickerIcon:ih,CommunitiesIcon:rs,CompassIcon:rh,ConstructionIcon:oh,ContentIcon:ah,CopyIcon:sh,CorporationIcon:lh,CreateEdgeIcon:ch,DefaultShowIcon:uh,DeleteIcon:dh,DeleteNodeIcon:fh,DesignServicesIcon:hh,DocumentIcon:mh,DownloadIcon:ph,EditIcon:xh,EditNodeIcon:kh,EditTopicIcon:gh,EpisodeIcon:Ch,EventIcon:yh,ExitFullScreen:bh,ExploreIcon:vh,FamilyHistoryIcon:wh,FeedbackIcon:Eh,FilterOffIcon:Sh,FingerprintIcon:Ah,FlipIcon:_h,FortIcon:Vh,FullScreenIcon:Dh,FunctionIcon:Bh,GlobeIcon:jh,GrainIcon:os,HandymanIcon:$h,HardwareIcon:Gh,HashTag:Ph,HashtagIcon:Mh,HelpIcon:Lh,HomeIcon:Oh,InfoIcon:no,JoystickIcon:Th,LinkIcon:Rh,MenuIcon:Fh,MergeIcon:Ih,MoneyIcon:Hh,MuteVolumeIcon:Nh,NodeCircleIcon:zh,NodesIcon:Es,NotesIcon:Zh,OrganizationIcon:Uh,PauseIcon:gs,PersonAdd:Wh,PersonIcon:Kh,PhoneIcon:qh,PlaceIcon:Yh,PlayIcon:Cs,PlusIcon:Xh,PropertyHide:Qh,PropertyShow:Jh,PublicIcon:as,QrCodeIcon:em,ReloadIcon:tm,RobotIcon:nm,SaveIcon:im,ScheduleIcon:rm,SchoolIcon:om,SearchFilterCloseIcon:am,SearchFilterIcon:sm,SearchIcon:lm,SensorsIcon:cm,SentimentDataIcon:um,SettingsIcon:dm,ShieldPersonIcon:fm,SortFilterIcon:hm,SoundIcon:mm,SourcesIcon:pm,SourcesTableIcon:xm,StackIcon:km,StorageIcon:gm,SucessFeedBackIcon:Cm,SumFunctionIcon:ym,ThreeDotsIcons:bm,TwitterIcon:vm,VideoIcon:wm,VisibilityOff:Em,VisibilityOn:Sm,VolumeIcon:Am},Vm=()=>{const[e,t]=h.useState(!1),[n,i]=h.useState(0),[r,o]=Vn(x=>[x.budget,x.setBudget]),{normalizedSchemasByType:a}=to(x=>x),[s,l,u,d]=g0(x=>[x.stats,x.setStats,x.fetchData,x.setAbortRequests]);ii();const{open:f}=Ms("sourcesTable"),m=async()=>{try{const x=await Ls();x.totalProcessing&&x.totalProcessing>0?(t(!0),i(x.totalProcessing)):t(!1)}catch(x){console.error("Error fetching data:",x),t(!1)}};function k(x){}if(h.useEffect(()=>{s||(async()=>{try{const y=await Os();if(y){const b=Ts(y);l(b)}}catch{Rs.noop()}})()},[l,s]),h.useEffect(()=>{m()},[]),!s)return null;const p=x=>x.replace(/\b\w/g,y=>y.toUpperCase()),g=x=>{var S;const y=p(x.split("_")[0]),b=y,w=(S=a[y])==null?void 0:S.icon,E=_m[w]||Es;return{name:y,Icon:E,key:x,dataKey:x,mediaType:y,tooltip:b}},C=Object.keys(s).map(x=>g(x));return c.jsxs(jm,{children:[c.jsx(Dm,{children:C.map(({name:x,Icon:y,key:b,mediaType:w,tooltip:E})=>s[b]!==0?c.jsx($m,{"data-testid":w,onClick:()=>void 0,children:c.jsxs(mt,{content:E,margin:"13px",children:[c.jsx("div",{className:"icon",children:c.jsx(y,{})}),c.jsx("div",{className:"text",children:s[b]})]})},x):c.jsx(c.Fragment,{}))}),c.jsxs(Bm,{children:[e?c.jsxs(Pm,{"data-testid":"view-content",onClick:f,children:[c.jsx("div",{className:"icon",style:{marginLeft:"7px"},children:c.jsx(Bf,{})}),c.jsx("div",{className:"text",children:c.jsx("p",{children:n})})]}):null,c.jsx(Gm,{children:c.jsxs(mt,{content:"Budget",margin:"18px",children:[c.jsx("div",{className:"icon",children:c.jsx(ws,{})}),c.jsx("div",{className:"text",children:c.jsxs("p",{children:[`${qs(r)} `," ",c.jsx("span",{className:"budgetUnit",children:"SAT"})]})})]})})]})]})},Dm=q(K).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})``,Bm=q(K).attrs({align:"center",direction:"row",grow:1,justify:"flex-end"})``,jm=q(K).attrs({align:"center",direction:"row",grow:1})` + justify-content: between; +`,$m=q(K).attrs({align:"center",direction:"row",justify:"flex-start"})` + color: ${N.white}; + background: ${N.BG1}; + padding: 6px 10px 6px 8px; + font-family: Barlow; + font-size: 13px; + font-style: normal; + font-weight: 500; + line-height: 15px; + letter-spacing: 0.78px; + margin: 0 8px; + border-radius: 200px; + cursor: pointer; + + &:hover { + background: ${N.BUTTON1_PRESS}; + } + + &:active { + background: ${N.BUTTON1}; + } + + .icon { + margin-right: 8px; + font-size: 16px; + } + + .text { + } +`,Gm=q(K).attrs({align:"center",direction:"row"})` + display: flex; + height: 2.5rem; + padding: 0.75rem 0.9375rem 0.75rem 0.9375rem; + align-items: center; + gap: 0.625rem; + color: ${N.white}; + background: ${N.BG1}; + font-family: Barlow; + font-size: 0.75rem; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 0.0075rem; + border-radius: 12.5rem; + + &:hover { + background: ${N.BUTTON1_PRESS}; + } + + &:active { + background: ${N.BUTTON1}; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; + } + + .budgetUnit { + color: ${N.GRAY6}; + } + + .text { + display: flex; + align-items: center; + justify-content: center; + } +`,Pm=q(K).attrs({align:"center",direction:"row"})` + margin-right: 10px; + display: flex; + height: 28px; + padding: 0.75rem 0.6375rem 0.75rem 0.3187rem; + align-items: center; + gap: 4px; + color: ${N.white}; + background: ${N.modalShield}; + font-family: Barlow; + font-size: 0.75rem; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 0.0075rem; + border-radius: 12.5rem; + + &:active { + background: ${N.BUTTON1}; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + width: 22px; + height: 22px; + } + + .text { + display: flex; + align-items: center; + justify-content: center; + } +`,Mm=()=>{const e=kt(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=io(),{abortFetchData:i,resetGraph:r}=g0(s=>s),o=Is();if(!e)return null;const a=()=>{n(null),i(),r(),t(),o("/")};return c.jsxs(Lm,{children:[c.jsxs(Om,{onClick:a,children:[c.jsx(c.Fragment,{children:e.title&&c.jsx(C1,{className:"title",color:"white",children:e.title})}),c.jsx(C1,{className:"subtitle",children:"Second Brain"})]}),c.jsx(Vm,{}),c.jsx(hf,{})]})},Lm=q(K).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` + height: 64px; + position: absolute; + top: 0px; + left: 64px; + right: 32px; + transition: opacity 1s; + z-index: 1; + padding: 20px 23px; +`,Om=q.div` + ${Fs.smallOnly` + display: none; + `} + + width: 367px; + + .title { + color: var(--Primary-Text, #fff); + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 700; + line-height: 16px; /* 72.727% */ + letter-spacing: 0.22px; + cursor: pointer; + } + + .subtitle { + color: ${N.GRAY6}; + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: 0.22px; + margin-left: 8px; + cursor: pointer; + } +`,Tm=620,Rm=()=>{const e=`(max-width: ${Tm}px)`,[t,n]=h.useState(()=>window.matchMedia(e).matches);return h.useEffect(()=>{const i=window.matchMedia(e);n(i.matches);const r=()=>{n(i.matches)};return window.addEventListener("resize",r),()=>i.removeEventListener("change",r)},[e]),t},Fm=()=>{const[e,t]=h.useState(!0),n=Rm();h.useEffect(()=>{t(!0)},[n]);const i=()=>{t(!1)};return n&&e?c.jsxs(Im,{align:"center",direction:"column",justify:"center",onClick:i,children:[c.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),c.jsxs(K,{align:"center",direction:"column",justify:"center",children:[c.jsx(Yt,{children:"Second Brain is currently"}),c.jsx(Yt,{style:{fontWeight:600},children:"optimized for Desktop."}),c.jsx(Yt,{children:"Mobile support coming soon."})]}),c.jsx(_n,{color:"secondary",onClick:i,variant:"contained",children:"Got It"})]}):null},Im=q(K)` + height: 100vh; + width: 100vw; + background: rgba(0, 0, 0, 0.75); + gap: 28px; + z-index: 2000000000; + position: fixed; + top: 0; + left: 0; + right: 0; +`,Yt=q(C1)` + color: #fff; + text-align: center; + font-family: Barlow; + font-size: 18px; + font-style: normal; + font-weight: 400; + line-height: 24px; + margin: 1px; +`,Hm=q(Hs)` + .Toastify__toast { + background-color: #49c998ff; + width: fit-content; + min-height: 100%; + border-radius: 12px; + padding: 6px; + } + .Toastify__toast-body { + background-color: #49c998ff; + color: ${N.white}; + font-weight: 500; + font-family: 'Barlow'; + } + .Toastify__close-button { + color: ${N.white}; + } + .Toastify__progress-bar--error { + background-color: ${N.primaryRed}; + } + .Toastify__progress-bar--success { + background-color: ${N.primaryGreen}; + } + &.Toastify__toast-container--top-right { + width: fit-content; + height: auto; + top: 60px; + right: 48px; + } +`,Nm=q(K)` + height: 100%; + width: 100%; + background-color: ${N.black}; +`,zm=q(K)` + position: absolute; + bottom: 8px; + left: 8px; + color: ${N.white}; + font-size: 12px; + opacity: 0.5; +`,Zm=h.lazy(()=>p1(()=>import("./index-00fbfb7a.js"),["assets/index-00fbfb7a.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]).then(({MainToolbar:e})=>({default:e}))),Um=h.lazy(()=>p1(()=>import("./index-a24c814f.js"),["assets/index-a24c814f.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/index-04235dc5.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-f9a84af0.js","assets/index-2a7ba5ab.js","assets/ClipLoader-2c26140d.js"]).then(({Universe:e})=>({default:e}))),Wm=h.lazy(()=>p1(()=>import("./index-a01f56a3.js").then(e=>e.i),["assets/index-a01f56a3.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css","assets/ClipLoader-2c26140d.js","assets/Skeleton-1ccdf5c1.js","assets/Stack-06c1211e.js","assets/map-3259c6de.js","assets/Typography-0d19ae0d.js","assets/createSvgIcon-016a2106.js","assets/index-2a7ba5ab.js"]).then(({SideBar:e})=>({default:e}))),Km=()=>{const[e]=Ns(),t=e.get("q"),{setBudget:n,setNodeCount:i}=Vn(M=>M),r=h.useRef(null),o=h.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:u,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:m}=kt(M=>M),k=Yd(M=>M.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:C,addNewNode:x,splashDataLoading:y,runningProjectId:b,setRunningProjectMessages:w,isFetching:E}=g0(M=>M),{setAiSummaryAnswer:S,getKeyExist:A,aiRefId:_}=io(M=>M),G=ii(),[B,D]=zs(M=>[M.realtimeGraphFeatureFlag,M.chatInterfaceFeatureFlag]),V=Kd(),R=Zs({mode:"onChange"}),{setValue:P}=R;h.useEffect(()=>{P("search",t??""),d(!1),G(null),u(!1),l(t??""),k(""),g(null)},[t,g,l,u,G,k,d,P]),h.useEffect(()=>{(async()=>{await p(n,C),a(!0),s?await Ks(n):G(null)})()},[s,p,n,C,a,G]);const $=h.useCallback(()=>{i("INCREMENT")},[i]),j=h.useCallback(M=>{E||(r.current||(r.current={nodes:[],edges:[]}),M.edges&&r.current.edges.push(...M.edges),M.nodes&&r.current.nodes.push(...M.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const X={...r.current};r.current={nodes:[],edges:[]},x(X)},3e3))},[x,E]),L=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{answer:M.answer,answerLoading:!1})},[S]),Z=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{audio_en:M.audio_EN})},[S]),U=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{questions:M.relevant_questions.map(X=>X.question),questionsLoading:!1})},[S]),J=h.useCallback(M=>{M.ref_id&&S(M.ref_id,{sources:M.sources.map(X=>X.ref_id),sourcesLoading:!1})},[S]),W=h.useCallback(M=>{M.question&&A(_)&&S(_,{answerLoading:!1,entities:M.entities})},[S,A,_]);return h.useEffect(()=>(V&&(V.connect(),V.on("connect_error",M=>{console.error("Socket connection error:",M)}),V.on("newnode",$),D&&V.on("extractedentitieshook",W),D&&V.on("askquestionhook",L),D&&V.on("relevantquestionshook",U),D&&V.on("answersourceshook",J),B&&V.on("new_node_created",j),D&&V.on("answeraudiohook",Z)),()=>{V&&V.off()}),[V,$,j,B,L,D,U,J,W,Z]),h.useEffect(()=>{if(!b)return;const M=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");M.onopen=()=>{let X="a";X=b;const e1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:X})};M.send(JSON.stringify(e1))},M.onmessage=X=>{var d1;console.log("Message from server:",X.data);const e1=JSON.parse(X.data);if(e1.type==="ping")return;const Q=(d1=e1==null?void 0:e1.message)==null?void 0:d1.message;Q&&w(Q)},M.onerror=X=>{console.error("WebSocket error:",X)},M.onclose=()=>{console.log("WebSocket connection closed")}},[b,w]),h.useEffect(()=>{y||m()},[m,y]),c.jsxs(c.Fragment,{children:[c.jsx(Y7,{}),c.jsx(Fm,{}),c.jsx(ns,{hidden:!Us||!0,isRoot:!0}),c.jsx(h.Suspense,{fallback:c.jsx("div",{children:"Loading..."}),children:y?null:c.jsxs(Nm,{direction:"row",children:[c.jsxs(Ws,{...R,children:[c.jsx(Zm,{}),!f&&c.jsx(Wm,{}),c.jsx(Um,{}),c.jsx(Zd,{}),c.jsx(Mm,{}),c.jsxs(zm,{children:["v",Xd]}),c.jsx(bs,{})]}),c.jsx(ff,{}),c.jsx(Hm,{})]})})]})},ap=Object.freeze(Object.defineProperty({__proto__:null,App:Km},Symbol.toStringTag,{value:"Module"}));export{Rh as $,Pf as A,ke as B,rs as C,dh as D,vh as E,Eh as F,so as G,Lh as H,_m as I,i2 as J,lo as K,qe as L,Fh as M,Es as N,Zd as O,o1 as P,uo as Q,nm as R,xm as S,Td as T,Ye as U,z3 as V,y2 as W,lm as X,km as Y,zf as Z,te as _,$f as a,ap as a$,jh as a0,Mh as a1,ii as a2,pm as a3,eh as a4,Xf as a5,Ys as a6,Of as a7,Mf as a8,Lf as a9,pd as aA,os as aB,as as aC,qs as aD,ah as aE,Sh as aF,f2 as aG,zh as aH,_h as aI,If as aJ,Jh as aK,Qh as aL,bm as aM,Sm as aN,Em as aO,hm as aP,gh as aQ,kh as aR,fh as aS,jl as aT,wh as aU,ch as aV,Ym as aW,Cm as aX,r2 as aY,X3 as aZ,$2 as a_,Rf as aa,qf as ab,Zf as ac,ph as ad,gs as ae,mm as af,is as ag,tm as ah,um as ai,Cs as aj,Ph as ak,am as al,sm as am,Zh as an,sh as ao,co as ap,rm as aq,Ad as ar,n2 as as,Nh as at,Am as au,Dh as av,bh as aw,nh as ax,Qf as ay,Jf as az,dm as b,Ff as c,np as d,$0 as e,J7 as f,op as g,ys as h,dd as i,Wt as j,Fr as k,fd as l,Yu as m,rp as n,Ih as o,jf as p,mh as q,oh as r,Xh as s,xh as t,ps as u,J3 as v,ip as w,Xs as x,Y1 as y,fo as z}; diff --git a/build/assets/index-64813bbe.js b/build/assets/index-64813bbe.js deleted file mode 100644 index 615f6b12d..000000000 --- a/build/assets/index-64813bbe.js +++ /dev/null @@ -1,96 +0,0 @@ -import{r as I,l as fe,g as de,t as N,v as S,j as E,F as L,T as pe}from"./index-b416b1a9.js";import{$ as he,bb as ge,ay as ve,bc as me}from"./index-1f5ac1eb.js";import{e as be}from"./index.esm-258646ab.js";var ee={exports:{}},te={exports:{}},xe=function(e,r,t,n,o,i,s,u){if(!e){var f;if(r===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[t,n,o,i,s,u],l=0;f=new Error(r.replace(/%s/g,function(){return p[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}},ke=xe;function ne(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k=I,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; - background: transparent; - border: none; - color: ${({colorName:e})=>S[e]}; - cursor: ${({disabled:e})=>e?"default":"text"}; - margin: 0; - opacity: ${({disabled:e})=>e?.5:1}; - outline: 0; - padding: 0; - text-align: ${({textAlign:e})=>e}; - - &:focus { - border: none; - box-shadow: none; - outline: none; - } - - &[type='number'] { - appearance: textfield; - -webkit-appearance: textfield; - - &::-webkit-outer-spin-button, - &::-webkit-inner-spin-button { - appearance: none; - -webkit-appearance: none; - } - } - - &::placeholder { - -webkit-text-fill-color: ${({placeholderTextColor:e})=>S[e]}; - color: ${({placeholderTextColor:e})=>S[e]}; - } -`;U.displayName="WebTextInput";const ae=I.forwardRef(({autoComplete:e=O.autoComplete,autoFocus:r,className:t,colorName:n=O.colorName,dataTestId:o,defaultValue:i,disabled:s=O.disabled,id:u,maxLength:f=O.maxLength,name:p,onBlur:l,onChange:a,onFocus:c,onKeyDown:h,placeholder:w=O.placeholder,placeholderTextColor:g=O.placeholderTextColor,textAlign:d=O.textAlign,type:P=O.type,value:y},C)=>{const F=I.useCallback(M=>{a&&a(M.target.value)},[a]);return E.jsx(U,{ref:C,autoComplete:e,autoFocus:r,className:t,colorName:n,"data-testid":o,defaultValue:i,disabled:s,id:u,maxLength:f,name:p,onBlur:l,onChange:F,onFocus:c,onKeyDown:h,placeholder:w,placeholderTextColor:g,spellCheck:!1,textAlign:d,type:P,value:y})});ae.displayName="BaseTextInput";const Me=e=>e.hasError?S.primaryRed:e.hasContent||e.isFocused||e.isHovered?S.primaryBlue:"transparent",Ae=N(L)` - background: ${S.inputBg2}; - border-radius: 8px; - border: 1px solid ${Me}; - padding: 12px 8px; -`,Re=N(L)` - cursor: default; - margin: 0 0 6px 6px; - position: relative; - color: ${S.placeholderText}; - - .tooltip { - position: absolute; - background-color: ${S.dashboardHeader}; - border: 1px solid ${S.secondaryText4}; - border-radius: 4px; - color: ${S.white}; - top: 22px; - padding: 4px 8px; - font-size: 13px; - visibility: hidden; - width: auto; - white-space: nowrap; - z-index: 1; - } - - ${e=>e.name==="endTime"&&` - .tooltip { - left: -68px; - } - `} - - &:hover .tooltip { - visibility: visible; - } - - &:focus .tooltip { - visibility: visible; - } -`,Ie=N.label` - color: ${S.lightGray}; - font-size: 12px; - font-weight: 600; - margin-bottom: 6px; -`,Te=N.textarea` - width: 100%; - height: 100px; - border: none; - background: transparent; - color: ${S.white}; - font-size: 14px; - font-weight: 400; - resize: none; - font-family: 'Barlow'; - white-space: pre-wrap; - overflow-wrap: break-word; - box-sizing: border-box; - outline: none; - line-height: 20px; - letter-spacing: 0.01em; - text-align: left; -`,Ne=({id:e,dataTestId:r,label:t,mask:n="",message:o,name:i,rules:s,showMask:u=!1,maskPlaceholder:f=null,isTextArea:p=!1,placeholder:l="",maxLength:a,...c})=>{const{register:h,control:w,formState:{errors:g},getValues:d}=he()||{},P=ge(g,i),y=d(i),[C,F]=I.useState(!1),[M,A]=I.useState(!1);return I.useEffect(()=>{const V=document.getElementById(e);V&&V.focus()},[e]),E.jsxs(L,{shrink:1,children:[E.jsxs(L,{align:"center",direction:"row",children:[t&&E.jsx(Ie,{htmlFor:e,children:t}),o&&E.jsxs(Re,{name:i,role:"tooltip",children:[E.jsx(ve,{}),E.jsx("div",{className:"tooltip",children:o})]})]}),E.jsx(Ae,{hasContent:!!y,hasError:!!P,isFocused:C,isHovered:M,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:E.jsx(me,{control:w,...h(i),render:({field:{onBlur:V,onChange:T,value:D,ref:$}})=>{const{disabled:v=O.disabled,textAlign:m=O.textAlign}=c;return p?E.jsx(Te,{ref:$,"data-testid":r,disabled:v,id:e,maxLength:a,onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,value:D||""}):n?E.jsx(Le,{alwaysShowMask:u,disabled:!1,inputRef:$,mask:n,...h(i),maskPlaceholder:f,onBlur:V,onChange:T,value:D,children:E.jsx(U,{colorName:"white","data-testid":r,disabled:v,...h(i),id:e,onBlur:()=>F(!1),onFocus:()=>F(!0),placeholderTextColor:"inputPlaceholder",textAlign:m})}):E.jsx(ae,{...c,colorName:"white",dataTestId:r,id:e,...h(i),onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,placeholderTextColor:"inputPlaceholder",value:D||""})},rules:s})}),P&&E.jsx(L,{pl:4,pt:8,shrink:1,tabIndex:0,children:E.jsx(pe,{color:"primaryRed",kind:"regularBold",children:E.jsxs(L,{align:"center",direction:"row",shrink:1,children:[E.jsx(be,{fontSize:18}),E.jsx(L,{pl:4,shrink:1,children:P.message!==""?P.message:"Please enter a valid URL"})]})})})]})};export{ae as B,Ne as T}; diff --git a/build/assets/index-85afbf1a.js b/build/assets/index-738555e7.js similarity index 92% rename from build/assets/index-85afbf1a.js rename to build/assets/index-738555e7.js index 078225795..36cbfe564 100644 --- a/build/assets/index-85afbf1a.js +++ b/build/assets/index-738555e7.js @@ -1,4 +1,4 @@ -import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f as To,b2 as En,b3 as gr,h as $o,i as gt,e as Zr,a2 as Ci,a3 as Si,t as O,v as j,aP as br,T as Se,F as $,aA as hn,b4 as _i,b5 as Hn,b6 as ji,b7 as Oi,R as c,y as xr,a5 as Qr,aO as Ao,b8 as Pi,az as ht,Z as ar,A as mr,O as Ti,ab as Jr}from"./index-b416b1a9.js";import{B as $i}from"./index-8331965f.js";import{a0 as vr,B as Cn,a1 as Mo,ai as yr,P as E,I as or,a$ as Ai,$ as Mi,aw as ki,D as Ri,r as ko,u as Ro,b0 as Bi,n as ea,m as ta,l as na,k as ra,j as Fi,b1 as Ni,b2 as Ii}from"./index-1f5ac1eb.js";import{O as Di,n as Hi,a as aa,N as Bo}from"./constants-b2a2fa82.js";import{T as gn}from"./index-64813bbe.js";import{A as Dt}from"./index-69075348.js";import{C as Ie}from"./ClipLoader-a0a9ce2c.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-8d3cef29.js";import{T as Xi,a as Ki}from"./Tabs-79411ac3.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-34a19487.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-39784bea.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./index.esm-258646ab.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";import"./Typography-4efd6f29.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function vs({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ys({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Cs=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Es(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>te({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),vs,ys,ws,ms);function Ss(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>te({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),ks=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Rs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Bs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=vr({mode:"onChange",defaultValues:Fs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await br()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||Di,placeholder:a,selectedValue:m()})},Ns=O(Dt)` +import{r as y,c as _o,d as jo,s as Wt,e as te,u as Oo,q as Ei,a as Po,j as p,h as To,bx as En,by as gr,i as $o,k as gt,f as Zr,ah as Ci,ai as Si,w as O,x as j,a1 as br,bc as _i,bb as xr,H as Se,F as $,aV as hn,aW as gn,b9 as ji,z as Cn,bz as Oi,bA as Hn,a3 as Ao,bB as Pi,C as mr,bC as Ti,b as c,D as vr,ak as Qr,bD as $i,al as Ai,bE as Jr,bF as Mo,ba as ko,M as Ro,bG as Mi,aU as ht,ac as ar,G as yr,a2 as ki,ar as ea,at as Ri}from"./index-bde6e5ef.js";import{A as Dt}from"./index-bf769610.js";import{C as Ie}from"./ClipLoader-2c26140d.js";import{P as E,I as or,ap as Bi,D as Fi,s as Bo,aT as Ni,m as ta,l as na,k as ra,j as aa,i as Ii,aU as Di,aV as Hi}from"./index-5c574277.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-3259c6de.js";import{T as Xi,a as Ki}from"./Tabs-07181cd3.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-06c1211e.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-04235dc5.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";import"./Typography-0d19ae0d.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function vs({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ys({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Cs=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Es(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>te({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),vs,ys,ws,ms);function Ss(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>te({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),ks=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Rs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Bs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Fs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ns=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; @@ -24,7 +24,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a && .MuiInput-input.MuiInputBase-input { padding-left: 0; } -`,Is=({selectedType:t,setSelectedFromNode:e,setSelectedToNode:n,edgeLinkData:r,selectedFromNode:a,selectedToNode:o})=>{const s=o==="all",i=a==="all";return p.jsxs($,{mt:8,children:[p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Source"})}),p.jsx(ca,{dataTestId:"from_node",edgeLink:r==null?void 0:r.source,hideSelectAll:s,onSelect:e,placeholder:"Source Name"})]}),p.jsxs($,{mb:10,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Edge Name"})}),p.jsx($,{mb:12,children:p.jsx(gn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter Edge Name",rules:{...hn,pattern:{message:"No leading whitespace allowed",value:Hi}},value:t})})]}),p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Destination"})}),p.jsx(ca,{dataTestId:"to_node",edgeLink:r==null?void 0:r.target,hideSelectAll:i,onSelect:n,placeholder:"Select Destination"})]})]})},zn=O(Se)` +`,Is=({selectedType:t,setSelectedFromNode:e,setSelectedToNode:n,edgeLinkData:r,selectedFromNode:a,selectedToNode:o})=>{const s=o==="all",i=a==="all";return p.jsxs($,{mt:8,children:[p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Source"})}),p.jsx(ca,{dataTestId:"from_node",edgeLink:r==null?void 0:r.source,hideSelectAll:s,onSelect:e,placeholder:"Source Name"})]}),p.jsxs($,{mb:10,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Edge Name"})}),p.jsx($,{mb:12,children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter Edge Name",rules:{...gn,pattern:{message:"No leading whitespace allowed",value:ji}},value:t})})]}),p.jsxs($,{mb:25,children:[p.jsx($,{mb:5,children:p.jsx(zn,{children:"Destination"})}),p.jsx(ca,{dataTestId:"to_node",edgeLink:r==null?void 0:r.target,hideSelectAll:i,onSelect:n,placeholder:"Select Destination"})]})]})},zn=O(Se)` font-family: Barlow; font-size: 12px; font-weight: 400; @@ -33,7 +33,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a text-align: left; margin-left: 1px; color: ${j.mainBottomIcons}; -`,Ds=({onCancel:t,edgeLinkData:e,setGraphLoading:n})=>{var M,L,H;const r=vr({mode:"onChange"}),{setValue:a,getValues:o}=r,[s,i]=y.useState(!1),[l,u]=y.useState(!1),[d,f]=y.useState(""),[h,g]=y.useState(""),[x,m]=y.useState(""),v=r.watch("type");y.useEffect(()=>{a("type",e==null?void 0:e.edgeType)},[e==null?void 0:e.edgeType,a]),y.useEffect(()=>{f(v)},[v]);const w=r.handleSubmit(async V=>{i(!0),n(!0);const S={source:h,target:x,edge_type:V.type},D={ref_id:e==null?void 0:e.refId,edge_type:V.type};try{if(e!=null&&e.refId)await _i(D);else if(x&&h)if(h==="all"||x==="all"){const I=(await br()).schemas.filter(K=>!K.is_deleted&&K.type).map(K=>K.type);h==="all"?await Promise.all(I.map(K=>Hn({...S,source:K}))):x==="all"&&await Promise.all(I.map(K=>Hn({...S,target:K})))}else await Hn(S)}catch(X){console.warn("API Error:",X)}finally{i(!1),n(!1),g(""),m(""),t()}}),_=(L=(M=o())==null?void 0:M.type)==null?void 0:L.trim(),B=_&&((H=e==null?void 0:e.edgeType)==null?void 0:H.trim())!==_,P=e!=null&&e.refId?s||!B:s||!x.trim()||!h.trim()||!d.trim(),T=async()=>{u(!0),n(!0);try{e!=null&&e.refId&&await ji(e==null?void 0:e.refId)}catch(V){console.warn("API Error:",V)}finally{u(!1),n(!1),g(""),m(""),t()}};return p.jsx(Mo,{...r,children:p.jsxs("form",{id:"add-type-form",onSubmit:w,children:[p.jsx(Is,{edgeLinkData:e,selectedFromNode:h,selectedToNode:x,selectedType:d,setSelectedFromNode:g,setSelectedToNode:m}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[(e==null?void 0:e.refId)&&p.jsx($,{direction:"column",children:p.jsxs(zs,{color:"secondary",disabled:l,onClick:T,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",l&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})}),p.jsxs(Hs,{color:"secondary",disabled:P,onClick:w,size:"large",variant:"contained",children:["Confirm",s&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})})},Hs=O(Cn)` +`,Ds=({onCancel:t,edgeLinkData:e,setGraphLoading:n})=>{var M,L,H;const r=br({mode:"onChange"}),{setValue:a,getValues:o}=r,[s,i]=y.useState(!1),[l,u]=y.useState(!1),[d,f]=y.useState(""),[h,g]=y.useState(""),[x,m]=y.useState(""),v=r.watch("type");y.useEffect(()=>{a("type",e==null?void 0:e.edgeType)},[e==null?void 0:e.edgeType,a]),y.useEffect(()=>{f(v)},[v]);const w=r.handleSubmit(async V=>{i(!0),n(!0);const S={source:h,target:x,edge_type:V.type},D={ref_id:e==null?void 0:e.refId,edge_type:V.type};try{if(e!=null&&e.refId)await Oi(D);else if(x&&h)if(h==="all"||x==="all"){const I=(await xr()).schemas.filter(K=>!K.is_deleted&&K.type).map(K=>K.type);h==="all"?await Promise.all(I.map(K=>Hn({...S,source:K}))):x==="all"&&await Promise.all(I.map(K=>Hn({...S,target:K})))}else await Hn(S)}catch(X){console.warn("API Error:",X)}finally{i(!1),n(!1),g(""),m(""),t()}}),_=(L=(M=o())==null?void 0:M.type)==null?void 0:L.trim(),B=_&&((H=e==null?void 0:e.edgeType)==null?void 0:H.trim())!==_,P=e!=null&&e.refId?s||!B:s||!x.trim()||!h.trim()||!d.trim(),T=async()=>{u(!0),n(!0);try{e!=null&&e.refId&&await Pi(e==null?void 0:e.refId)}catch(V){console.warn("API Error:",V)}finally{u(!1),n(!1),g(""),m(""),t()}};return p.jsx(Ao,{...r,children:p.jsxs("form",{id:"add-type-form",onSubmit:w,children:[p.jsx(Is,{edgeLinkData:e,selectedFromNode:h,selectedToNode:x,selectedType:d,setSelectedFromNode:g,setSelectedToNode:m}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[(e==null?void 0:e.refId)&&p.jsx($,{direction:"column",children:p.jsxs(zs,{color:"secondary",disabled:l,onClick:T,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",l&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})}),p.jsxs(Hs,{color:"secondary",disabled:P,onClick:w,size:"large",variant:"contained",children:["Confirm",s&&p.jsxs(ua,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})})},Hs=O(Cn)` width: 400px !important; margin: 0 0 10px auto !important; `,ua=O.span` @@ -50,7 +50,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a background-color: rgba(237, 116, 116, 0.2); } } -`,Ls=({setIsAddEdgeNode:t,edgeData:e,setGraphLoading:n})=>{const r=()=>{t(!1)};return p.jsxs($,{children:[p.jsxs(Ws,{align:"center",direction:"row",justify:"space-between",children:[p.jsx(Vs,{"data-testid":"edge-modal-title",children:e!=null&&e.refId?"Edit Edge":"Add Edge"}),p.jsx(Gs,{"data-testid":"close-sidebar-sub-view",onClick:r,children:p.jsx(yr,{})})]}),p.jsx(Us,{}),p.jsx(Ds,{edgeLinkData:e,onCancel:r,setGraphLoading:n})]})},Gs=O($)` +`,Ls=({setIsAddEdgeNode:t,edgeData:e,setGraphLoading:n})=>{const r=()=>{t(!1)};return p.jsxs($,{children:[p.jsxs(Ws,{align:"center",direction:"row",justify:"space-between",children:[p.jsx(Vs,{"data-testid":"edge-modal-title",children:e!=null&&e.refId?"Edit Edge":"Add Edge"}),p.jsx(Gs,{"data-testid":"close-sidebar-sub-view",onClick:r,children:p.jsx(mr,{})})]}),p.jsx(Us,{}),p.jsx(Ds,{edgeLinkData:e,onCancel:r,setGraphLoading:n})]})},Gs=O($)` font-size: 32px; color: ${j.white}; cursor: pointer; @@ -80,7 +80,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a text-align: left; margin-left: 2px; color: ${j.white}; -`;var ce={},Ut={},Ys=Li;function Xs(t){return typeof t=="function"?t:Ys}var Ks=Xs,qs=Gi,Zs=Ks;function Qs(t,e){return t&&qs(t,Zs(e))}var wr=Qs;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.flattenNames=void 0;var Js=Wi,el=_n(Js),tl=wr,nl=_n(tl),rl=Ui,al=_n(rl),ol=Vi,il=_n(ol);function _n(t){return t&&t.__esModule?t:{default:t}}var sl=Ut.flattenNames=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,il.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,al.default)(r)?(0,nl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,el.default)(r)&&n.push(r)}),n};Ut.default=sl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var ll=wr,cl=Ho(ll),ul=Oi,pl=Ho(ul),dl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,pl.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,cl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=dl({},r[i],o[i])}),a}),r};Vt.default=fl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var hl=wr,pa=bl(hl),gl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Cl(a,r);function a(){var o,s,i,l;El(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Tl(a,r);function a(){var o,s,i,l;Pl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=i};return e===0&&a("first-child"),e===n-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),r};Er.default=Al;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Ml=Ut,kl=xt(Ml),Rl=Vt,Bl=xt(Rl),Fl=Yt,Nl=xt(Fl),Il=Xt,zo=xt(Il),Dl=Kt,Hl=xt(Dl),zl=Er,Ll=xt(zl);function xt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Hl.default;ce.loop=Ll.default;var Gl=ce.ReactCSS=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;ai?h=1:h=Math.round(f*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g=void 0;if(d<0?g=0:d>s?g=1:g=Math.round(d*100/s)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},Wn={},Ul=function(e,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var s=o.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,o.width,o.height),s.fillStyle=n,s.fillRect(0,0,r,r),s.translate(r,r),s.fillRect(0,0,r,r),o.toDataURL()):null},Vl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Ul(e,n,r,a);return Wn[o]=s,s},ha=Object.assign||function(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,il.default)(e,function(r){Array.isArray(r)?t(r).map(function(a){return n.push(a)}):(0,al.default)(r)?(0,nl.default)(r,function(a,o){a===!0&&n.push(o),n.push(o+"-"+a)}):(0,el.default)(r)&&n.push(r)}),n};Ut.default=sl;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.mergeClasses=void 0;var ll=wr,cl=Ho(ll),ul=Ti,pl=Ho(ul),dl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],r=e.default&&(0,pl.default)(e.default)||{};return n.map(function(a){var o=e[a];return o&&(0,cl.default)(o,function(s,i){r[i]||(r[i]={}),r[i]=dl({},r[i],o[i])}),a}),r};Vt.default=fl;var Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.autoprefix=void 0;var hl=wr,pa=bl(hl),gl=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Cl(a,r);function a(){var o,s,i,l;El(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Tl(a,r);function a(){var o,s,i,l;Pl(this,a);for(var u=arguments.length,d=Array(u),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=i};return e===0&&a("first-child"),e===n-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),r};Er.default=Al;Object.defineProperty(ce,"__esModule",{value:!0});ce.ReactCSS=ce.loop=ce.handleActive=Cr=ce.handleHover=ce.hover=void 0;var Ml=Ut,kl=xt(Ml),Rl=Vt,Bl=xt(Rl),Fl=Yt,Nl=xt(Fl),Il=Xt,zo=xt(Il),Dl=Kt,Hl=xt(Dl),zl=Er,Ll=xt(zl);function xt(t){return t&&t.__esModule?t:{default:t}}ce.hover=zo.default;var Cr=ce.handleHover=zo.default;ce.handleActive=Hl.default;ce.loop=Ll.default;var Gl=ce.ReactCSS=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;ai?h=1:h=Math.round(f*100/i)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g=void 0;if(d<0?g=0:d>s?g=1:g=Math.round(d*100/s)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},Wn={},Ul=function(e,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var s=o.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,o.width,o.height),s.fillStyle=n,s.fillRect(0,0,r,r),s.translate(r,r),s.fillRect(0,0,r,r),o.toDataURL()):null},Vl=function(e,n,r,a){var o=e+"-"+n+"-"+r+(a?"-server":"");if(Wn[o])return Wn[o];var s=Ul(e,n,r,a);return Wn[o]=s,s},ha=Object.assign||function(t){for(var e=1;e-1},ic=function(e){return Number(String(e).replace(/%/g,""))},sc=1,W=function(t){tc(e,t);function e(n){Jl(this,e);var r=ec(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(a){r.setUpdatedValue(a.target.value,a)},r.handleKeyDown=function(a){var o=ic(a.target.value);if(!isNaN(o)&&oc(a.keyCode)){var s=r.getArrowOffset(),i=a.keyCode===Lo?o+s:o-s;r.setUpdatedValue(i,a)}},r.handleDrag=function(a){if(r.props.dragLabel){var o=Math.round(r.props.value+a.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),a)}},r.handleMouseDown=function(a){r.props.dragLabel&&(a.preventDefault(),r.handleDrag(a),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},r.inputId="rc-editable-input-"+sc++,r}return Zl(e,[{key:"componentDidUpdate",value:function(r,a){this.props.value!==this.state.value&&(r.value!==this.props.value||a.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(r){return Ql({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||nc}},{key:"setUpdatedValue",value:function(r,a){var o=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(o,a),this.setState({value:r})}},{key:"render",value:function(){var r=this,a=N({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 c.createElement("div",{style:a.wrap},c.createElement("input",{id:this.inputId,style:a.input,ref:function(s){return r.input=s},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?c.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(y.PureComponent||y.Component),lc=function(e,n,r,a){var o=a.clientWidth,s=a.clientHeight,i=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=i-(a.getBoundingClientRect().left+window.pageXOffset),d=l-(a.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var f=void 0;if(d<0)f=359;else if(d>s)f=0;else{var h=-(d*100/s)+100;f=360*h/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g=void 0;if(u<0)g=0;else if(u>o)g=359;else{var x=u*100/o;g=360*x/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null},cc=function(){function t(e,n){for(var r=0;r{const n=y.useRef(null),[r,a]=y.useState({x:80,y:50}),[o,s]=y.useState(!1);y.useEffect(()=>{const f=n.current;if(f){const h=f.getContext("2d");if(h){const{width:g,height:x}=f;for(let m=0;m{const h=n.current;if(h){const g=h.getBoundingClientRect(),x=f.clientX-g.left,m=f.clientY-g.top,v=x/h.width,w=1-m/h.height,_=vi(t,v*100,w*100);a({x,y:m}),e(_)}},[t,e]),l=f=>{s(!0),i(f)},u=f=>{o&&i(f)},d=()=>{s(!1)};return y.useEffect(()=>(o?(window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)):(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)),()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)}),[o,u]),p.jsxs(S0,{children:[p.jsx("canvas",{ref:n,height:162,onMouseDown:l,width:260}),p.jsx(_0,{x:r.x,y:r.y})]})},O0=["#C62828","#D32F2F","#F57C00","#FF9800","#FFB74D","#FFEB3B","#CDDC39","#8BC34A","#388E3C","#4CAF50","#009688","#00796B","#00BCD4","#0097A7","#3F51B5","#283593","#5C6BC0","#7E57C2","#512DA8","#9C27B0","#E91E63","#F06292","#F48FB1","#795548","#6D4C41","#9E9E9E","#757575","#607D8B","#455A64","#2196F3","#1976D2","#64B5F6"],P0=()=>{const{selectedColor:t,setSelectedColor:e}=xr(x=>x),[n,r]=y.useState(t),[a,o]=y.useState(315),[s,i]=y.useState(74),[l,u]=y.useState(59),d=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},f=x=>{o(x.hsl.h);const m=vi(x.hsl.h,s,l);d(m)},h=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},g=x=>{const m=x.target.value;r(m);const{h:v,s:w,l:_}=qn(m);o(v),i(w),u(_),e(m)};return p.jsx(T0,{direction:"column",justify:"flex-end",children:p.jsx($0,{align:"center",children:p.jsxs(A0,{children:[p.jsx(k0,{children:p.jsx(M0,{children:O0.map(x=>p.jsx(R0,{color:x,onClick:()=>d(x)},x))})}),p.jsx(B0,{children:p.jsx(j0,{hue:a,onChange:h})}),p.jsx(F0,{children:p.jsx(n0,{color:t,onChange:f})}),p.jsxs(D0,{children:[p.jsx(I0,{children:"HEX"}),p.jsx(N0,{onChange:g,type:"text",value:n})]})]})})})},T0=O($)` +`,j0=({hue:t,onChange:e})=>{const n=y.useRef(null),[r,a]=y.useState({x:80,y:50}),[o,s]=y.useState(!1);y.useEffect(()=>{const f=n.current;if(f){const h=f.getContext("2d");if(h){const{width:g,height:x}=f;for(let m=0;m{const h=n.current;if(h){const g=h.getBoundingClientRect(),x=f.clientX-g.left,m=f.clientY-g.top,v=x/h.width,w=1-m/h.height,_=vi(t,v*100,w*100);a({x,y:m}),e(_)}},[t,e]),l=f=>{s(!0),i(f)},u=f=>{o&&i(f)},d=()=>{s(!1)};return y.useEffect(()=>(o?(window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)):(window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)),()=>{window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",d)}),[o,u]),p.jsxs(S0,{children:[p.jsx("canvas",{ref:n,height:162,onMouseDown:l,width:260}),p.jsx(_0,{x:r.x,y:r.y})]})},O0=["#C62828","#D32F2F","#F57C00","#FF9800","#FFB74D","#FFEB3B","#CDDC39","#8BC34A","#388E3C","#4CAF50","#009688","#00796B","#00BCD4","#0097A7","#3F51B5","#283593","#5C6BC0","#7E57C2","#512DA8","#9C27B0","#E91E63","#F06292","#F48FB1","#795548","#6D4C41","#9E9E9E","#757575","#607D8B","#455A64","#2196F3","#1976D2","#64B5F6"],P0=()=>{const{selectedColor:t,setSelectedColor:e}=vr(x=>x),[n,r]=y.useState(t),[a,o]=y.useState(315),[s,i]=y.useState(74),[l,u]=y.useState(59),d=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},f=x=>{o(x.hsl.h);const m=vi(x.hsl.h,s,l);d(m)},h=x=>{e(x),r(x);const{h:m,s:v,l:w}=qn(x);o(m),i(v),u(w)},g=x=>{const m=x.target.value;r(m);const{h:v,s:w,l:_}=qn(m);o(v),i(w),u(_),e(m)};return p.jsx(T0,{direction:"column",justify:"flex-end",children:p.jsx($0,{align:"center",children:p.jsxs(A0,{children:[p.jsx(k0,{children:p.jsx(M0,{children:O0.map(x=>p.jsx(R0,{color:x,onClick:()=>d(x)},x))})}),p.jsx(B0,{children:p.jsx(j0,{hue:a,onChange:h})}),p.jsx(F0,{children:p.jsx(n0,{color:t,onChange:f})}),p.jsxs(D0,{children:[p.jsx(I0,{children:"HEX"}),p.jsx(N0,{onChange:g,type:"text",value:n})]})]})})})},T0=O($)` flex: 1; .title { @@ -215,7 +215,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a display: flex; align-items: center; gap: 8px; -`,H0=()=>{const{selectedIcon:t,setSelectedIcon:e}=xr(r=>r),n=r=>{e(r)};return p.jsx(z0,{direction:"column",justify:"flex-end",children:p.jsx(L0,{align:"center",children:p.jsx(G0,{children:p.jsx(W0,{children:p.jsx(U0,{children:Object.keys(or).map(r=>{const a=or[r];return p.jsx(V0,{isSelected:t===r,onClick:()=>n(r),children:a&&p.jsx(a,{})},r)})})})})})})},z0=O($)` +`,H0=()=>{const{selectedIcon:t,setSelectedIcon:e}=vr(r=>r),n=r=>{e(r)};return p.jsx(z0,{direction:"column",justify:"flex-end",children:p.jsx(L0,{align:"center",children:p.jsx(G0,{children:p.jsx(W0,{children:p.jsx(U0,{children:Object.keys(or).map(r=>{const a=or[r];return p.jsx(V0,{isSelected:t===r,onClick:()=>n(r),children:a&&p.jsx(a,{})},r)})})})})})})},z0=O($)` flex: 1; .title { @@ -383,7 +383,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a top: 37%; left: 76%; } -`,rg=/^[a-z0-9_]+$/,ag=({parentParam:t,onDelete:e})=>{const[n,r]=y.useState(!1),[a,o]=y.useState([]),{fields:s,append:i,replace:l,remove:u}=Ai({name:"attributes"}),{setValue:d,watch:f}=Mi();return y.useEffect(()=>{const h=async()=>{try{let g=[{required:!1,type:"string",key:""}];if(t!==Bo.value.toLowerCase()){r(!0);const x=await Ao(t);x.attributes&&typeof x.attributes=="object"?g=ir(x.attributes):g=ir(x)}g=g.filter(x=>x.key!=="node_key"),l(g),o(g)}catch(g){console.warn(g)}finally{r(!1)}};a.length===0&&h()},[t,d,l,a.length]),p.jsxs(p.Fragment,{children:[n?p.jsx($,{align:"center",children:p.jsx(Ie,{color:j.SECONDARY_BLUE,size:"30"})}):p.jsx(og,{py:8,children:p.jsx(_e,{container:!0,spacing:2,children:s.map((h,g)=>{const x=f(`attributes[${g}].type`),m=f(`attributes[${g}].required`),v=h.isNew||!1,w=["name"].includes(f(`attributes[${g}].key`));return p.jsxs(y.Fragment,{children:[p.jsx(_e,{item:!0,xs:5,children:p.jsx(gn,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${g}`,disabled:!v,id:`cy-item-name-${g}`,maxLength:50,name:`attributes.${g}.key`,placeholder:"Enter value",rules:{...hn,pattern:{message:"Please avoid special characters, spaces and uppercase",value:rg}}})}),p.jsx(_e,{item:!0,xs:4,children:p.jsx(ug,{dataTestId:`cy-item-select-${g}`,disabled:w,onSelect:_=>d(`attributes[${g}].type`,_==null?void 0:_.value),options:aa,selectedValue:aa.find(_=>_.value===x)})}),p.jsx(_e,{item:!0,xs:3,children:p.jsxs(sg,{children:[p.jsx(ig,{checked:m,"data-testid":`cy-item-${g}`,disabled:w,name:`attributes.${g}.required`,onChange:_=>d(`attributes[${g}].required`,_.target.checked)}),!w&&p.jsx(ki,{onClick:()=>{u(g),h.key!==void 0&&e&&e(h.key)},children:p.jsx(Ri,{})})]})})]},h.id)})})}),p.jsx($,{align:"flex-start",py:12,children:p.jsx(lg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(cg,{children:[p.jsx(ko,{})," Add Attribute"]})})})]})},og=O($)` +`,rg=/^[a-z0-9_]+$/,ag=({parentParam:t,onDelete:e})=>{const[n,r]=y.useState(!1),[a,o]=y.useState([]),{fields:s,append:i,replace:l,remove:u}=$i({name:"attributes"}),{setValue:d,watch:f}=Ai();return y.useEffect(()=>{const h=async()=>{try{let g=[{required:!1,type:"string",key:""}];if(t!==Mo.value.toLowerCase()){r(!0);const x=await ko(t);x.attributes&&typeof x.attributes=="object"?g=ir(x.attributes):g=ir(x)}g=g.filter(x=>x.key!=="node_key"),l(g),o(g)}catch(g){console.warn(g)}finally{r(!1)}};a.length===0&&h()},[t,d,l,a.length]),p.jsxs(p.Fragment,{children:[n?p.jsx($,{align:"center",children:p.jsx(Ie,{color:j.SECONDARY_BLUE,size:"30"})}):p.jsx(og,{py:8,children:p.jsx(_e,{container:!0,spacing:2,children:s.map((h,g)=>{const x=f(`attributes[${g}].type`),m=f(`attributes[${g}].required`),v=h.isNew||!1,w=["name"].includes(f(`attributes[${g}].key`));return p.jsxs(y.Fragment,{children:[p.jsx(_e,{item:!0,xs:5,children:p.jsx(hn,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${g}`,disabled:!v,id:`cy-item-name-${g}`,maxLength:50,name:`attributes.${g}.key`,placeholder:"Enter value",rules:{...gn,pattern:{message:"Please avoid special characters, spaces and uppercase",value:rg}}})}),p.jsx(_e,{item:!0,xs:4,children:p.jsx(ug,{dataTestId:`cy-item-select-${g}`,disabled:w,onSelect:_=>d(`attributes[${g}].type`,_==null?void 0:_.value),options:Jr,selectedValue:Jr.find(_=>_.value===x)})}),p.jsx(_e,{item:!0,xs:3,children:p.jsxs(sg,{children:[p.jsx(ig,{checked:m,"data-testid":`cy-item-${g}`,disabled:w,name:`attributes.${g}.required`,onChange:_=>d(`attributes[${g}].required`,_.target.checked)}),!w&&p.jsx(Bi,{onClick:()=>{u(g),h.key!==void 0&&e&&e(h.key)},children:p.jsx(Fi,{})})]})})]},h.id)})})}),p.jsx($,{align:"flex-start",py:12,children:p.jsx(lg,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),children:p.jsxs(cg,{children:[p.jsx(Bo,{})," Add Attribute"]})})})]})},og=O($)` overflow-y: auto; width: calc(100% + 20px); max-height: calc(80vh - 300px); @@ -498,7 +498,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a border: 1px solid ${j.BG2}; width: 100%; opacity: 0.5; -`,so={type:"",parent:""},hg=(t,e)=>t.length!==e.length?!0:t.some((n,r)=>{const a=e[r];return n.required!==a.required||n.type!==a.type||n.key!==a.key}),gg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...qi(i),...n.reduce((x,m)=>({...x,[m]:"delete"}),{})},h={...d,attributes:f,index:l};r&&(h.primary_color=r),a&&(h.icon=a),o.videoAudio&&(h.attributes.media_url="?string"),o.image&&(h.attributes.image_url="?string"),o.sourceLink&&(h.attributes.source_link="?string");let g;if(e?g=await ar.put(`/schema/${t.ref_id}`,JSON.stringify(h),{}):g=await ar.post("/schema",JSON.stringify({...h,node_key:"name"}),{}),g.status!=="success")throw new Error("error");return g==null?void 0:g.ref_id}catch(i){let l=ht;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||ht}else i instanceof Error&&(l=i.message);throw new Error(l)}},bg=t=>t.charAt(0).toUpperCase()+t.slice(1),lo=async(t,e)=>{try{const o=((await br()).schemas||[]).filter(s=>!s.is_deleted&&s.type&&(!e||e(s))).map(s=>s.type==="thing"?{label:"No Parent",value:s.type}:{label:bg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},xg=({graphLoading:t,onSchemaCreate:e,selectedSchema:n,onDelete:r,setSelectedSchemaId:a,setGraphLoading:o,setIsCreateNew:s,onSchemaUpdate:i})=>{const{close:l,visible:u}=Ro("addType"),d=vr({mode:"onChange",defaultValues:n?{type:n.type,parent:n.parent}:so}),{watch:f,setValue:h,reset:g,getValues:x}=d,[m,v]=y.useState(!1),[w,_]=y.useState(!1),[B,P]=y.useState(!1),[T,M]=y.useState(null),[L,H]=y.useState(!1),[V,S]=y.useState(null),[D,X]=y.useState(""),[I,K]=y.useState(null),[ae,xe]=y.useState([]),[Pe,pe]=y.useState([]),[wt,Et]=y.useState(!0),[Te,Be]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:Fe,selectedIcon:Ct}=xr(k=>k),[St,kn]=y.useState(!1),Qt=()=>kn(!St);y.useEffect(()=>()=>{g()},[u,g]);const Rn=()=>{s(!1),a("")};y.useEffect(()=>{n||(P(!0),lo(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(so),pe([{required:!1,type:"string",key:""}]),xe([]),Be({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Be({videoAudio:!!n.media_url,image:!!n.image_url,sourceLink:!!n.source_link}),n.type!==Bo.value.toLowerCase()&&Ao(n.type).then(z=>{const se=(z?ir(z):[{required:!1,type:"string",key:""}]).filter(le=>le.key!=="node_key");pe(se)}),lo(S,z=>z.type!==n.type))},[n,h,g]);const ee=f("parent");f("type");const Bn=k=>Array.isArray(k)&&k.every(z=>typeof z=="object"&&"key"in z),Ue=f("attributes"),$e=y.useMemo(()=>Bn(Ue)?Ue:[],[Ue]),Jt=()=>{l()},Fn=k=>{xe(z=>[...z,k])},Nn=async()=>{if(n!=null&&n.type){_(!0),o(!0);try{await ar.delete(`/schema/${n.ref_id}`),r(n.type),l()}catch(k){let z=ht;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||ht}else k instanceof Error&&(z=k.message);K(z)}finally{_(!1),o(!1),s(!1)}}},_t=d.handleSubmit(async k=>{if(!ee){H(!0);return}v(!0);try{if(n&&k.type!==(n==null?void 0:n.type)||n&&x().parent!==(n==null?void 0:n.parent)){const Q=x().parent??(n==null?void 0:n.parent),{selectedIndex:se}=x();o(!0);const le={};Te.image&&(le.image_url="?string"),Te.sourceLink&&(le.source_link="?string"),Te.videoAudio&&(le.media_url="?string"),await Pi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:Fe,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await gg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,ae,Fe,Ct,Te,{videoAudio:!!(n!=null&&n.media_url),image:!!(n!=null&&n.image_url),sourceLink:!!(n!=null&&n.source_link)});e({type:k.type,parent:ee||"",ref_id:(n==null?void 0:n.ref_id)||z||"new"}),Jt()}catch(z){let Q=ht;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||ht}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=hg($e,Pe),se=((nn=z.type)==null?void 0:nn.trim())!==((rn=n==null?void 0:n.type)==null?void 0:rn.trim())||((Ot=z.parent)==null?void 0:Ot.trim())!==((an=n==null?void 0:n.parent)==null?void 0:an.trim())||Q,le=!!((Pt=z.type)!=null&&Pt.trim()),jt=!!((Tt=z.parent)!=null&&Tt.trim());Et(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,$e,Pe,n,m,L]);const en=()=>T==null?void 0:T.find(k=>k.value===ee),tn=y.useMemo(()=>{if(ee){const k=V==null?void 0:V.find(z=>z.value===ee);return k||{label:ee,value:ee}}if(n!=null&&n.parent){const k=V==null?void 0:V.find(z=>z.value===n.parent);return k||{label:n.parent,value:n.parent}}},[ee,n,V]),Ve=f("selectedIndex"),In=y.useMemo(()=>{if(Ve)return{label:Ve,value:Ve};if(n){const k=$e.find(z=>z.key===n.index);if(k)return{label:k.key,value:k.key};if(n.index)return{label:n.index,value:n.index}}},[n,$e,Ve]),Ye=or[Ct],Xe=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Eg,{children:[p.jsx(Cg,{children:n?"Edit Type":"Create Type"}),p.jsx(wg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(yr,{})})]}),p.jsx(vg,{}),p.jsxs($,{children:[p.jsx(Mo,{...d,children:p.jsxs("form",{id:"add-type-form",onSubmit:_t,children:[p.jsx($,{children:n?p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Parent"})}),p.jsx(Dt,{isLoading:B||t,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:V||[],selectedValue:tn}),D&&p.jsx(nr,{children:D})]}),p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{children:p.jsx(gn,{dataTestId:"cy-item-name",defaultValue:n==null?void 0:n.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...hn},value:ee})}),p.jsx(po,{onClick:Qt,selectedColor:Fe,children:p.jsx(Ye,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Parent"})}),p.jsx(Dt,{isLoading:B,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:T,selectedValue:en()}),L&&p.jsx(nr,{children:"A parent type must be selected"})]}),p.jsxs($,{children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{children:p.jsx(gn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...hn},value:ee})}),p.jsx(po,{onClick:Qt,selectedColor:Fe,children:Ye&&p.jsx(Ye,{})})]})})]})]})}),Xe&&p.jsx(pg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(dg,{initialOptions:Te,setMediaOptions:Be,setSubmitDisabled:Et}),Xe&&p.jsxs($,{children:[p.jsx(uo,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(Se,{children:"Indexes"})}),p.jsx(_e,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:$e.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(uo,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(yg,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(mg,{color:"secondary",disabled:wt,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(eg,{isOpen:St})]})]})},mg=O(Cn)` +`,so={type:"",parent:""},hg=(t,e)=>t.length!==e.length?!0:t.some((n,r)=>{const a=e[r];return n.required!==a.required||n.type!==a.type||n.key!==a.key}),gg=async(t,e=!1,n,r,a,o,s)=>{try{const{attributes:i,selectedIndex:l,ref_id:u,...d}=t,f={...qi(i),...n.reduce((x,m)=>({...x,[m]:"delete"}),{})},h={...d,attributes:f,index:l};r&&(h.primary_color=r),a&&(h.icon=a),o.videoAudio&&(h.attributes.media_url="?string"),o.image&&(h.attributes.image_url="?string"),o.sourceLink&&(h.attributes.source_link="?string");let g;if(e?g=await ar.put(`/schema/${t.ref_id}`,JSON.stringify(h),{}):g=await ar.post("/schema",JSON.stringify({...h,node_key:"name"}),{}),g.status!=="success")throw new Error("error");return g==null?void 0:g.ref_id}catch(i){let l=ht;if(i.status===400){const u=await i.json();l=u.errorCode||(u==null?void 0:u.status)||ht}else i instanceof Error&&(l=i.message);throw new Error(l)}},bg=t=>t.charAt(0).toUpperCase()+t.slice(1),lo=async(t,e)=>{try{const o=((await xr()).schemas||[]).filter(s=>!s.is_deleted&&s.type&&(!e||e(s))).map(s=>s.type==="thing"?{label:"No Parent",value:s.type}:{label:bg(s.type),value:s.type}).filter((s,i,l)=>i===l.findIndex(u=>u.value===s.value));t(o)}catch(n){console.warn(n)}},xg=({graphLoading:t,onSchemaCreate:e,selectedSchema:n,onDelete:r,setSelectedSchemaId:a,setGraphLoading:o,setIsCreateNew:s,onSchemaUpdate:i})=>{const{close:l,visible:u}=Ro("addType"),d=br({mode:"onChange",defaultValues:n?{type:n.type,parent:n.parent}:so}),{watch:f,setValue:h,reset:g,getValues:x}=d,[m,v]=y.useState(!1),[w,_]=y.useState(!1),[B,P]=y.useState(!1),[T,M]=y.useState(null),[L,H]=y.useState(!1),[V,S]=y.useState(null),[D,X]=y.useState(""),[I,K]=y.useState(null),[ae,xe]=y.useState([]),[Pe,pe]=y.useState([]),[wt,Et]=y.useState(!0),[Te,Be]=y.useState({videoAudio:!1,image:!1,sourceLink:!1}),{selectedColor:Fe,selectedIcon:Ct}=vr(k=>k),[St,kn]=y.useState(!1),Qt=()=>kn(!St);y.useEffect(()=>()=>{g()},[u,g]);const Rn=()=>{s(!1),a("")};y.useEffect(()=>{n||(P(!0),lo(M).finally(()=>P(!1)))},[n]),y.useEffect(()=>{(()=>{g(so),pe([{required:!1,type:"string",key:""}]),xe([]),Be({videoAudio:!1,image:!1,sourceLink:!1})})(),n&&(h("type",n.type),h("parent",n.parent),n.index&&h("selectedIndex",n.index),Be({videoAudio:!!n.media_url,image:!!n.image_url,sourceLink:!!n.source_link}),n.type!==Mo.value.toLowerCase()&&ko(n.type).then(z=>{const se=(z?ir(z):[{required:!1,type:"string",key:""}]).filter(le=>le.key!=="node_key");pe(se)}),lo(S,z=>z.type!==n.type))},[n,h,g]);const ee=f("parent");f("type");const Bn=k=>Array.isArray(k)&&k.every(z=>typeof z=="object"&&"key"in z),Ue=f("attributes"),$e=y.useMemo(()=>Bn(Ue)?Ue:[],[Ue]),Jt=()=>{l()},Fn=k=>{xe(z=>[...z,k])},Nn=async()=>{if(n!=null&&n.type){_(!0),o(!0);try{await ar.delete(`/schema/${n.ref_id}`),r(n.type),l()}catch(k){let z=ht;if((k==null?void 0:k.status)===400){const Q=await k.json();z=Q.errorCode||(Q==null?void 0:Q.status)||ht}else k instanceof Error&&(z=k.message);K(z)}finally{_(!1),o(!1),s(!1)}}},_t=d.handleSubmit(async k=>{if(!ee){H(!0);return}v(!0);try{if(n&&k.type!==(n==null?void 0:n.type)||n&&x().parent!==(n==null?void 0:n.parent)){const Q=x().parent??(n==null?void 0:n.parent),{selectedIndex:se}=x();o(!0);const le={};Te.image&&(le.image_url="?string"),Te.sourceLink&&(le.source_link="?string"),Te.videoAudio&&(le.media_url="?string"),await Mi(n==null?void 0:n.ref_id,{type:k.type,parent:Q,primary_color:Fe,icon:Ct,attributes:{...le,index:se}}),await i()}const z=await gg({...k,...n?{ref_id:n==null?void 0:n.ref_id}:{}},!!n,ae,Fe,Ct,Te,{videoAudio:!!(n!=null&&n.media_url),image:!!(n!=null&&n.image_url),sourceLink:!!(n!=null&&n.source_link)});e({type:k.type,parent:ee||"",ref_id:(n==null?void 0:n.ref_id)||z||"new"}),Jt()}catch(z){let Q=ht;if((z==null?void 0:z.status)===400){const se=await z.json();Q=se.errorCode||(se==null?void 0:se.status)||ht}else z instanceof Error&&(Q=z.message);X(Q)}finally{v(!1),o(!1),s(!1)}});y.useEffect(()=>{const k=d.watch(z=>{var nn,rn,Ot,an,Pt,Tt;const Q=hg($e,Pe),se=((nn=z.type)==null?void 0:nn.trim())!==((rn=n==null?void 0:n.type)==null?void 0:rn.trim())||((Ot=z.parent)==null?void 0:Ot.trim())!==((an=n==null?void 0:n.parent)==null?void 0:an.trim())||Q,le=!!((Pt=z.type)!=null&&Pt.trim()),jt=!!((Tt=z.parent)!=null&&Tt.trim());Et(n?m||!se||!le||L:m||L||!le||!jt)});return()=>k.unsubscribe()},[d,$e,Pe,n,m,L]);const en=()=>T==null?void 0:T.find(k=>k.value===ee),tn=y.useMemo(()=>{if(ee){const k=V==null?void 0:V.find(z=>z.value===ee);return k||{label:ee,value:ee}}if(n!=null&&n.parent){const k=V==null?void 0:V.find(z=>z.value===n.parent);return k||{label:n.parent,value:n.parent}}},[ee,n,V]),Ve=f("selectedIndex"),In=y.useMemo(()=>{if(Ve)return{label:Ve,value:Ve};if(n){const k=$e.find(z=>z.key===n.index);if(k)return{label:k.key,value:k.key};if(n.index)return{label:n.index,value:n.index}}},[n,$e,Ve]),Ye=or[Ct],Xe=n?n.type:ee;return p.jsxs($,{children:[p.jsxs(Eg,{children:[p.jsx(Cg,{children:n?"Edit Type":"Create Type"}),p.jsx(wg,{"data-testid":"close-sidebar-sub-view",onClick:Rn,children:p.jsx(mr,{})})]}),p.jsx(vg,{}),p.jsxs($,{children:[p.jsx(Ao,{...d,children:p.jsxs("form",{id:"add-type-form",onSubmit:_t,children:[p.jsx($,{children:n?p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Parent"})}),p.jsx(Dt,{isLoading:B||t,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:V||[],selectedValue:tn}),D&&p.jsx(nr,{children:D})]}),p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{children:p.jsx(hn,{dataTestId:"cy-item-name",defaultValue:n==null?void 0:n.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(po,{onClick:Qt,selectedColor:Fe,children:p.jsx(Ye,{})})]})})]})]}):p.jsxs(p.Fragment,{children:[p.jsxs($,{mb:12,children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Parent"})}),p.jsx(Dt,{isLoading:B,onSelect:k=>{h("parent",(k==null?void 0:k.value)||""),H(!1)},options:T,selectedValue:en()}),L&&p.jsx(nr,{children:"A parent type must be selected"})]}),p.jsxs($,{children:[p.jsx($,{mb:12,children:p.jsx(Se,{children:"Name"})}),p.jsx($,{mb:12,children:p.jsxs(fo,{children:[p.jsx(ho,{children:p.jsx(hn,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...gn},value:ee})}),p.jsx(po,{onClick:Qt,selectedColor:Fe,children:Ye&&p.jsx(Ye,{})})]})})]})]})}),Xe&&p.jsx(pg,{onDelete:Fn,parent:n?n.type:ee}),p.jsx(dg,{initialOptions:Te,setMediaOptions:Be,setSubmitDisabled:Et}),Xe&&p.jsxs($,{children:[p.jsx(uo,{}),p.jsx($,{mb:12,mt:12,children:p.jsx(Se,{children:"Indexes"})}),p.jsx(_e,{item:!0,mb:2,width:"70%",children:p.jsx(Dt,{onSelect:k=>h("selectedIndex",(k==null?void 0:k.value)||""),options:$e.filter(k=>k.key).map(k=>({label:k.key,value:k.key})),selectedValue:In})}),p.jsx(uo,{})]}),p.jsxs($,{direction:"row",justify:"space-between",mt:20,children:[n&&p.jsxs($,{direction:"column",children:[p.jsxs(yg,{color:"secondary",disabled:w,onClick:Nn,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",w&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]}),I&&p.jsx(nr,{children:I})]}),p.jsxs(mg,{color:"secondary",disabled:wt,onClick:_t,size:"large",variant:"contained",children:["Confirm",m&&p.jsxs(co,{children:[p.jsx(Ie,{color:j.lightGray,size:12})," "]})]})]})]})}),p.jsx(eg,{isOpen:St})]})]})},mg=O(Cn)` width: 400px !important; margin: 0 auto !important; `,vg=O.div` @@ -603,7 +603,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a font-weight: 400; `,Ig=O(ts)` position: absolute; -`;new cs(2,2,2);const wi=y.memo(({node:t,setSelectedNode:e,onSimulationUpdate:n,isSelected:r})=>{var w,_;const a=y.useRef(null),[o]=mr(B=>[B.normalizedSchemasByType]),[s,i]=y.useState(!1);console.log(r);const{size:l,camera:u}=me(),d=Bi(B=>{if(t.type==="Thing")return;const{xy:[P,T],down:M,dragging:L,first:H,elapsedTime:V}=B;if(!(!L||H||V<100)&&M&&a.current){n();const S=(P-l.left)/window.innerWidth*l.width,D=(T-l.top)/window.innerHeight*l.height,K=new G(S/l.width*2-1,-D/l.height*2+1,0).unproject(u).multiply(new G(1,1,0)).clone();t.fx=K.x,t.fy=K.y}});Sn(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const h=((w=o[t.type])==null?void 0:w.primary_color)??(Fg[(_=t==null?void 0:t.children)==null?void 0:_.length]||"red"),g=B=>{B.stopPropagation(),t.type!=="Thing"&&e()},x=sr(t.type||"",he),m=()=>{i(!0)},v=()=>{i(!1)};return p.jsxs("mesh",{ref:a,onClick:g,...d(),onPointerOut:v,onPointerOver:m,position:new G(t.x,t.y,0),children:[p.jsx(Ag,{args:[he,30,20],children:p.jsx("meshStandardMaterial",{attach:"material",color:h})}),p.jsx(Fo,{...No,clipRect:[-he,-he,he,he],color:"#000",fontSize:2,maxWidth:he*2,name:t.type,textAlign:"left",children:x}),s&&p.jsx(Ig,{position:[0,5,0],zIndexRange:[100,0],children:p.jsx(Ng,{children:t.type})})]})});wi.displayName="Node";const Dg=({simulation:t,setSelectedSchemaId:e,selectedId:n,setIsAddEdgeNode:r})=>{const[a]=mr(s=>[s.schemas]),o=()=>{t&&(t.alpha(.05),t.restart())};return p.jsx(p.Fragment,{children:a.map((s,i)=>{const l=t.nodes()[i];return l?p.jsx(wi,{isSelected:l.ref_id===n,node:l,onSimulationUpdate:o,setSelectedNode:()=>{r(!1),e(l.ref_id)}},l.ref_id):null})})},Hg=({schemasWithPositions:t,filteredLinks:e,setSelectedSchemaId:n,selectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>{const[s,i]=y.useState(null),l=oa(t),u=oa(e);return y.useEffect(()=>{if(!t.length||!e.length)return;const d=structuredClone(t),f=structuredClone(e);if(s){l&&l.length!==t.length&&u&&u.length!==e.length&&(s.nodes(d).force("link",ea(f).id(g=>g.ref_id).distance(100)).force("charge",ta()).force("center",na()).force("collide",ra(he+5)).alpha(.5).restart(),i({...s}));return}const h=Fi(d).force("link",ea(f).id(g=>g.ref_id).distance(120)).force("charge",ta().strength(-100)).force("center",na()).force("collide",ra(he+5));i(h)},[t,s,e,l,u]),Sn(()=>{}),s?p.jsxs(p.Fragment,{children:[p.jsx(yi,{links:e,nodes:s.nodes(),onEdgeClick:o}),p.jsx(Dg,{selectedId:r,setIsAddEdgeNode:a,setSelectedSchemaId:n,simulation:s})]}):null},rr=new us(0),zg=({selectedSchemaId:t,links:e,schemasWithPositions:n,setSelectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>p.jsxs(ns,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[p.jsx("color",{args:[rr.r,rr.g,rr.b],attach:"background"}),Ti&&p.jsx(rs,{position:"right-bottom"}),p.jsx(Lg,{}),p.jsx(as,{}),p.jsx(Hg,{filteredLinks:e,onEdgeClick:o,schemasWithPositions:n,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:r})]}),Lg=()=>{y.useEffect(()=>{const n=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},r=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",n,!1),window.addEventListener("keyup",r,!1),()=>{window.removeEventListener("keydown",n,!1),window.removeEventListener("keyup",r,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},e=()=>{document.body.style.cursor="default"};return p.jsx(Tg,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Gg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Wg,{children:[p.jsxs(Ug,{children:[p.jsx(Ni,{}),p.jsx(Vg,{children:"Blueprint"})]}),p.jsxs(Yg,{children:[p.jsx(yo,{active:e==="all",onClick:()=>n("all"),children:"Show All"}),p.jsx(yo,{active:e==="parent",onClick:()=>n("parent"),children:"Parent Only"})]}),p.jsx(Xg,{onClick:t,children:p.jsx(yr,{})})]}),Wg=O($)` +`;new cs(2,2,2);const wi=y.memo(({node:t,setSelectedNode:e,onSimulationUpdate:n,isSelected:r})=>{var w,_;const a=y.useRef(null),[o]=yr(B=>[B.normalizedSchemasByType]),[s,i]=y.useState(!1);console.log(r);const{size:l,camera:u}=me(),d=Ni(B=>{if(t.type==="Thing")return;const{xy:[P,T],down:M,dragging:L,first:H,elapsedTime:V}=B;if(!(!L||H||V<100)&&M&&a.current){n();const S=(P-l.left)/window.innerWidth*l.width,D=(T-l.top)/window.innerHeight*l.height,K=new G(S/l.width*2-1,-D/l.height*2+1,0).unproject(u).multiply(new G(1,1,0)).clone();t.fx=K.x,t.fy=K.y}});Sn(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const h=((w=o[t.type])==null?void 0:w.primary_color)??(Fg[(_=t==null?void 0:t.children)==null?void 0:_.length]||"red"),g=B=>{B.stopPropagation(),t.type!=="Thing"&&e()},x=sr(t.type||"",he),m=()=>{i(!0)},v=()=>{i(!1)};return p.jsxs("mesh",{ref:a,onClick:g,...d(),onPointerOut:v,onPointerOver:m,position:new G(t.x,t.y,0),children:[p.jsx(Ag,{args:[he,30,20],children:p.jsx("meshStandardMaterial",{attach:"material",color:h})}),p.jsx(Fo,{...No,clipRect:[-he,-he,he,he],color:"#000",fontSize:2,maxWidth:he*2,name:t.type,textAlign:"left",children:x}),s&&p.jsx(Ig,{position:[0,5,0],zIndexRange:[100,0],children:p.jsx(Ng,{children:t.type})})]})});wi.displayName="Node";const Dg=({simulation:t,setSelectedSchemaId:e,selectedId:n,setIsAddEdgeNode:r})=>{const[a]=yr(s=>[s.schemas]),o=()=>{t&&(t.alpha(.05),t.restart())};return p.jsx(p.Fragment,{children:a.map((s,i)=>{const l=t.nodes()[i];return l?p.jsx(wi,{isSelected:l.ref_id===n,node:l,onSimulationUpdate:o,setSelectedNode:()=>{r(!1),e(l.ref_id)}},l.ref_id):null})})},Hg=({schemasWithPositions:t,filteredLinks:e,setSelectedSchemaId:n,selectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>{const[s,i]=y.useState(null),l=oa(t),u=oa(e);return y.useEffect(()=>{if(!t.length||!e.length)return;const d=structuredClone(t),f=structuredClone(e);if(s){l&&l.length!==t.length&&u&&u.length!==e.length&&(s.nodes(d).force("link",ta(f).id(g=>g.ref_id).distance(100)).force("charge",na()).force("center",ra()).force("collide",aa(he+5)).alpha(.5).restart(),i({...s}));return}const h=Ii(d).force("link",ta(f).id(g=>g.ref_id).distance(120)).force("charge",na().strength(-100)).force("center",ra()).force("collide",aa(he+5));i(h)},[t,s,e,l,u]),Sn(()=>{}),s?p.jsxs(p.Fragment,{children:[p.jsx(yi,{links:e,nodes:s.nodes(),onEdgeClick:o}),p.jsx(Dg,{selectedId:r,setIsAddEdgeNode:a,setSelectedSchemaId:n,simulation:s})]}):null},rr=new us(0),zg=({selectedSchemaId:t,links:e,schemasWithPositions:n,setSelectedSchemaId:r,setIsAddEdgeNode:a,onEdgeClick:o})=>p.jsxs(ns,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[p.jsx("color",{args:[rr.r,rr.g,rr.b],attach:"background"}),ki&&p.jsx(rs,{position:"right-bottom"}),p.jsx(Lg,{}),p.jsx(as,{}),p.jsx(Hg,{filteredLinks:e,onEdgeClick:o,schemasWithPositions:n,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:r})]}),Lg=()=>{y.useEffect(()=>{const n=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},r=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",n,!1),window.addEventListener("keyup",r,!1),()=>{window.removeEventListener("keydown",n,!1),window.removeEventListener("keyup",r,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},e=()=>{document.body.style.cursor="default"};return p.jsx(Tg,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:e,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Gg=({onClose:t,activeTab:e,setActiveTab:n})=>p.jsxs(Wg,{children:[p.jsxs(Ug,{children:[p.jsx(Di,{}),p.jsx(Vg,{children:"Blueprint"})]}),p.jsxs(Yg,{children:[p.jsx(yo,{active:e==="all",onClick:()=>n("all"),children:"Show All"}),p.jsx(yo,{active:e==="parent",onClick:()=>n("parent"),children:"Parent Only"})]}),p.jsx(Xg,{onClick:t,children:p.jsx(mr,{})})]}),Wg=O($)` background-color: ${j.BG1}; height: 64px; width: 100%; @@ -664,7 +664,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a width: 30px; height: 32px; } -`,Kg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(qg,{children:[p.jsx(wo,{"data-testid":"add-schema-type",onClick:t,children:p.jsx(Eo,{children:p.jsx(ko,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Ii,{})})})]}),qg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +`,Kg=({onCreateNew:t,onAddEdgeNode:e})=>p.jsxs(qg,{children:[p.jsx(wo,{"data-testid":"add-schema-type",onClick:t,children:p.jsx(Eo,{children:p.jsx(Bo,{})})}),p.jsx(wo,{"data-testid":"add-edge",onClick:e,children:p.jsx(Eo,{children:p.jsx(Hi,{})})})]}),qg=O($).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 1; gap: 17px; padding: 16px 0 0 16px; @@ -699,7 +699,7 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a justify-content: center; align-items: center; font-size: 24px; -`,Zg=({Close:t})=>{const[e,n]=y.useState(""),[r,a]=y.useState(!1),[o,s]=y.useState(!1),[i,l]=y.useState(!1),[u,d]=y.useState({refId:"",edgeType:"",source:"",target:""}),[f,h]=y.useState(!1),[g,x]=y.useState("all"),[m,v,w,_]=mr(S=>[S.schemas,S.links,S.setSchemas,S.setSchemaLinks]);y.useEffect(()=>{(async()=>{s(!0);try{const D=await Jr(),X=D.schemas.filter(I=>I.ref_id&&!I.is_deleted);w(X.length>0?X:D.schemas),_(D.edges.length>0?D.edges:[]),s(!1)}catch(D){console.error("Error fetching data:",D),s(!1)}})()},[w,_]);const B=S=>{if(m.some(X=>X.ref_id===S.ref_id))w(m.map(X=>X.ref_id===S.ref_id?{...S,children:[]}:X));else{w([...m,{...S,children:[]}]);const X=m.find(I=>S.parent===I.type);_([...v,{ref_id:`new-link-${v.length}`,edge_type:"CHILD_OF",source:S.ref_id||"new",target:(X==null?void 0:X.ref_id)||"new"}])}},P=async()=>{const S=await Jr();w(S.schemas.filter(D=>D.ref_id&&!D.is_deleted&&D.ref_id)),_(S.edges)},T=S=>{w(m.filter(D=>D.type!==S))},M=m.map(S=>({...S,children:m.filter(D=>D.parent===S.type).map(D=>D.ref_id||"")})),L=v.filter(S=>M.some(D=>D.ref_id===S.source)&&M.some(D=>D.ref_id===S.target)),H=m.find(S=>S.ref_id===e)||null;if(o)return p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})});const V=g==="all"?L:L.filter(S=>S.edge_type==="CHILD_OF");return p.jsxs(p.Fragment,{children:[p.jsx($,{ml:-20,mr:-20,mt:-20,children:p.jsx(Gg,{activeTab:g,onClose:t,setActiveTab:x})}),p.jsxs($,{align:"stretch",direction:"row",grow:1,children:[p.jsx($,{mb:-20,ml:-20,children:H||r?p.jsx(Co,{hasSchema:!0,children:p.jsx(So,{children:p.jsx(xg,{graphLoading:f,onDelete:T,onSchemaCreate:B,onSchemaUpdate:P,selectedSchema:H,setGraphLoading:h,setIsCreateNew:a,setSelectedSchemaId:n})})}):null}),p.jsx($,{children:i?p.jsx(Co,{children:p.jsx(So,{children:p.jsx(Ls,{edgeData:u,setGraphLoading:h,setIsAddEdgeNode:l},u.refId)})}):null}),p.jsx($,{children:p.jsx(Kg,{onAddEdgeNode:()=>{l(!0),a(!1),n(""),d({refId:"",edgeType:"",source:"",target:""})},onCreateNew:()=>{l(!1),a(!0),n("")}})}),p.jsx(Qg,{direction:"row",grow:1,children:p.jsx(Jg,{children:f?p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})}):p.jsx(zg,{links:V,onEdgeClick:(S,D,X,I)=>{d({refId:S,edgeType:D,source:X,target:I}),l(!0),a(!1),n("")},schemasWithPositions:M,selectedSchemaId:e,setIsAddEdgeNode:l,setSelectedSchemaId:n})})})]})]})},Qg=O($)` +`,Zg=({Close:t})=>{const[e,n]=y.useState(""),[r,a]=y.useState(!1),[o,s]=y.useState(!1),[i,l]=y.useState(!1),[u,d]=y.useState({refId:"",edgeType:"",source:"",target:""}),[f,h]=y.useState(!1),[g,x]=y.useState("all"),[m,v,w,_]=yr(S=>[S.schemas,S.links,S.setSchemas,S.setSchemaLinks]);y.useEffect(()=>{(async()=>{s(!0);try{const D=await ea(),X=D.schemas.filter(I=>I.ref_id&&!I.is_deleted);w(X.length>0?X:D.schemas),_(D.edges.length>0?D.edges:[]),s(!1)}catch(D){console.error("Error fetching data:",D),s(!1)}})()},[w,_]);const B=S=>{if(m.some(X=>X.ref_id===S.ref_id))w(m.map(X=>X.ref_id===S.ref_id?{...S,children:[]}:X));else{w([...m,{...S,children:[]}]);const X=m.find(I=>S.parent===I.type);_([...v,{ref_id:`new-link-${v.length}`,edge_type:"CHILD_OF",source:S.ref_id||"new",target:(X==null?void 0:X.ref_id)||"new"}])}},P=async()=>{const S=await ea();w(S.schemas.filter(D=>D.ref_id&&!D.is_deleted&&D.ref_id)),_(S.edges)},T=S=>{w(m.filter(D=>D.type!==S))},M=m.map(S=>({...S,children:m.filter(D=>D.parent===S.type).map(D=>D.ref_id||"")})),L=v.filter(S=>M.some(D=>D.ref_id===S.source)&&M.some(D=>D.ref_id===S.target)),H=m.find(S=>S.ref_id===e)||null;if(o)return p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})});const V=g==="all"?L:L.filter(S=>S.edge_type==="CHILD_OF");return p.jsxs(p.Fragment,{children:[p.jsx($,{ml:-20,mr:-20,mt:-20,children:p.jsx(Gg,{activeTab:g,onClose:t,setActiveTab:x})}),p.jsxs($,{align:"stretch",direction:"row",grow:1,children:[p.jsx($,{mb:-20,ml:-20,children:H||r?p.jsx(Co,{hasSchema:!0,children:p.jsx(So,{children:p.jsx(xg,{graphLoading:f,onDelete:T,onSchemaCreate:B,onSchemaUpdate:P,selectedSchema:H,setGraphLoading:h,setIsCreateNew:a,setSelectedSchemaId:n})})}):null}),p.jsx($,{children:i?p.jsx(Co,{children:p.jsx(So,{children:p.jsx(Ls,{edgeData:u,setGraphLoading:h,setIsAddEdgeNode:l},u.refId)})}):null}),p.jsx($,{children:p.jsx(Kg,{onAddEdgeNode:()=>{l(!0),a(!1),n(""),d({refId:"",edgeType:"",source:"",target:""})},onCreateNew:()=>{l(!1),a(!0),n("")}})}),p.jsx(Qg,{direction:"row",grow:1,children:p.jsx(Jg,{children:f?p.jsx($,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:p.jsx(Ie,{color:j.white})}):p.jsx(zg,{links:V,onEdgeClick:(S,D,X,I)=>{d({refId:S,edgeType:D,source:X,target:I}),l(!0),a(!1),n("")},schemasWithPositions:M,selectedSchemaId:e,setIsAddEdgeNode:l,setSelectedSchemaId:n})})})]})]})},Qg=O($)` flex: 1 1 auto; justify-content: center; position: relative; @@ -759,4 +759,4 @@ import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f a } `,Jg=O($)` flex: 1 1 100%; -`,eb=()=>{const{close:t}=Ro("blueprintGraph"),e=()=>{t()};return p.jsx($i,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:p.jsx(Zg,{Close:e})})},yb=y.memo(eb);export{yb as BlueprintModal}; +`,eb=()=>{const{close:t}=Ro("blueprintGraph"),e=()=>{t()};return p.jsx(Ri,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:p.jsx(Zg,{Close:e})})},bb=y.memo(eb);export{bb as BlueprintModal}; diff --git a/build/assets/index-63bb73bc.js b/build/assets/index-746c11fc.js similarity index 53% rename from build/assets/index-63bb73bc.js rename to build/assets/index-746c11fc.js index 23b0276a5..d21ceff4d 100644 --- a/build/assets/index-63bb73bc.js +++ b/build/assets/index-746c11fc.js @@ -1,5 +1,5 @@ -import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i as D,a2 as gt,e as ne,a3 as ft,t as c,v as x,T as N,F as g,aQ as mt,a5 as oe,R as re,q as le,a0 as bt,aR as jt,aS as Ve,w as ae,aT as Qe,H as we,aB as _e,aC as Ne,aD as ze,aU as yt,z as qe,aV as wt,aW as Xe,aX as Ct,aA as vt,aY as ce,aZ as Tt,y as $t,N as St,Q as kt}from"./index-b416b1a9.js";import{B as de}from"./index-8331965f.js";import{B as W,u as M,aM as _t,r as Nt,t as Ce,aN as je,aw as Q,aO as zt,D as Rt,s as Bt,ai as te,a2 as Ke,aP as Ze,aQ as Je,aR as et,a0 as ve,a1 as Te,ah as tt,aS as Lt,aT as It,aU as Mt,aV as Re,aW as Be,p as Le,aX as ge,aY as Et,q as At}from"./index-1f5ac1eb.js";import{T as Ie,s as U,a as ot,S as st,A as $e,E as Ot,D as Ft,b as nt,Q as rt,V as at,c as Wt}from"./constants-6b0b8728.js";import{C as z}from"./ClipLoader-a0a9ce2c.js";import{f as Ht,g as Pt,h as Dt,a as Ut}from"./index.esm-258646ab.js";import{I as Gt,A as Se,T as it}from"./index-69075348.js";import{B as Yt,T as Vt}from"./index-64813bbe.js";import{u as L}from"./index-5f0e754b.js";import{O as lt}from"./constants-b2a2fa82.js";import{T as Me}from"./Typography-4efd6f29.js";import{T as Qt,a as qt}from"./Tabs-79411ac3.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:o,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,o)},eo=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,n.stickyHeader&&o.stickyHeader]}})(({theme:t,ownerState:o})=>B({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":B({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},o.stickyHeader&&{borderCollapse:"separate"})),Ee="table",to=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:s="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=B({},r,{component:i,padding:a,size:s,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:s,stickyHeader:d}),[a,s,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(eo,B({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=to,oo=h.createContext(),xe=oo;function so(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const no=["className","component"],ro=t=>{const{classes:o}=t;return ee({root:["root"]},so,o)},ao=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,o)=>o.root})({display:"table-row-group"}),io={variant:"body"},Ae="tbody",lo=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,no),s=B({},r,{component:i}),d=ro(s);return e.jsx(xe.Provider,{value:io,children:e.jsx(ao,B({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:s},a))})}),co=lo;function po(t){return q("MuiTableCell",t)}const xo=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ho=xo,uo=["align","className","component","padding","scope","size","sortDirection","variant"],go=t=>{const{classes:o,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(s,po,o)},fo=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,o[n.variant],o[`size${D(n.size)}`],n.padding!=="normal"&&o[`padding${D(n.padding)}`],n.align!=="inherit"&&o[`align${D(n.align)}`],n.stickyHeader&&o.stickyHeader]}})(({theme:t,ownerState:o})=>B({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid - ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},o.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},o.variant==="body"&&{color:(t.vars||t).palette.text.primary},o.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},o.size==="small"&&{padding:"6px 16px",[`&.${ho.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},o.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},o.padding==="none"&&{padding:0},o.align==="left"&&{textAlign:"left"},o.align==="center"&&{textAlign:"center"},o.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},o.align==="justify"&&{textAlign:"justify"},o.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),mo=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:s,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,uo),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=B({},r,{align:l,component:w,padding:s||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),F=go(A);let R=null;return m&&(R=m==="asc"?"ascending":"descending"),e.jsx(fo,B({as:w,ref:n,className:J(F.root,i),"aria-sort":R,scope:$,ownerState:A},b))}),bo=mo;function jo(t){return q("MuiTableHead",t)}X("MuiTableHead",["root"]);const yo=["className","component"],wo=t=>{const{classes:o}=t;return ee({root:["root"]},jo,o)},Co=O("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,o)=>o.root})({display:"table-header-group"}),vo={variant:"head"},Oe="thead",To=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableHead"}),{className:l,component:i=Oe}=r,a=Z(r,yo),s=B({},r,{component:i}),d=wo(s);return e.jsx(xe.Provider,{value:vo,children:e.jsx(Co,B({as:i,className:J(d.root,l),ref:n,role:i===Oe?null:"rowgroup",ownerState:s},a))})}),dt=To;function $o(t){return q("MuiTableRow",t)}const So=X("MuiTableRow",["root","selected","hover","head","footer"]),Fe=So,ko=["className","component","hover","selected"],_o=t=>{const{classes:o,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},$o,o)},No=O("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,n.head&&o.head,n.footer&&o.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Fe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Fe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",zo=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:s=!1}=r,d=Z(r,ko),u=h.useContext(xe),m=B({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=_o(m);return e.jsx(No,B({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=zo;function ye(t){const o=new Date(Number(t)*1e3),n=o.getFullYear(),r=(1+o.getMonth()).toString().padStart(2,"0");return`${o.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(bo)` +import{r as h,c as q,d as X,s as F,e as I,u as K,a as Z,j as e,h as J,i as ee,k as D,ah as gt,f as ne,ai as ft,w as c,x,H as N,z as W,F as g,M as E,be as mt,ak as se,b as re,v as le,bf as bt,bg as jt,ad as yt,bh as wt,bi as Ve,y as ae,bj as Qe,Q as we,aY as _e,aZ as Ne,a_ as ze,bk as Ct,bl as vt,aa as Tt,bm as $t,E as qe,C as te,bn as St,bc as Xe,bo as Ke,a1 as Ce,at as ce,a3 as ve,bp as kt,aV as _t,aW as Nt,bq as de,br as zt,D as Lt,a0 as It,a5 as Rt}from"./index-bde6e5ef.js";import{aE as Bt,s as Et,v as Te,aF as je,ap as Q,aG as Mt,D as At,t as Ft,X as Ze,aH as Je,aI as et,aJ as tt,ab as st,aK as Ot,aL as Wt,aM as Ht,aN as Le,aO as Ie,o as Re,aP as ge,aQ as Pt,p as Dt}from"./index-5c574277.js";import{T as Be,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-a3da365e.js";import{C as z}from"./ClipLoader-2c26140d.js";import{I as Vt,A as Se,T as lt}from"./index-bf769610.js";import{u as R}from"./index-bd13c6c5.js";import{T as Ee}from"./Typography-0d19ae0d.js";import{T as Qt,a as qt}from"./Tabs-07181cd3.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Me="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Me,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Me?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid + ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${xs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),fs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:J(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return q("MuiTableHead",t)}X("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=F("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Fe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=Z(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:J(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return q("MuiTableRow",t)}const $s=X("MuiTableRow",["root","selected","hover","head","footer"]),Oe=$s,Ss=["className","component","hover","selected"],ks=t=>{const{classes:s,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Ts,s)},_s=F("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Oe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Oe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",Ns=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(ms)` && { color: ${x.white}; border: none; @@ -81,7 +81,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i ${N} { margin-bottom: 0; } -`,Ro=c(dt)` +`,zs=c(dt)` && { border-bottom: 1px solid ${x.black}; position: sticky; @@ -98,20 +98,20 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i width: 0; padding: 0; } -`;function Bo(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Lo=({node:t})=>{var o,n,r,l,i,a,s,d,u;return e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:(o=t==null?void 0:t.properties)!=null&&o.date_added_to_graph?ye((n=t==null?void 0:t.properties)==null?void 0:n.date_added_to_graph):ye((r=t==null?void 0:t.properties)==null?void 0:r.date)}),e.jsx(f,{children:t==null?void 0:t.node_type}),e.jsx(f,{children:(t==null?void 0:t.node_type)==="Tweet"?e.jsx(He,{href:`${Ie}${(l=t==null?void 0:t.properties)==null?void 0:l.tweet_id}${Ie.includes("?")?"&":"?"}open=system`,target:"_blank",children:(i=t==null?void 0:t.properties)==null?void 0:i.tweet_id}):e.jsx(He,{href:`${(a=t==null?void 0:t.properties)==null?void 0:a.source_link}${((s=t==null?void 0:t.properties)==null?void 0:s.source_link).includes("?")?"&":"?"}open=system`,target:"_blank",children:(d=t==null?void 0:t.properties)==null?void 0:d.source_link})}),e.jsx(f,{children:(u=t==null?void 0:t.properties)!=null&&u.status?Bo(t.properties.status):"Processing"})]})},He=c.a` +`;function Ls(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Is=({node:t})=>{var s,n,r,l,i,a,o,d,u;return e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:(s=t==null?void 0:t.properties)!=null&&s.date_added_to_graph?ye((n=t==null?void 0:t.properties)==null?void 0:n.date_added_to_graph):ye((r=t==null?void 0:t.properties)==null?void 0:r.date)}),e.jsx(f,{children:t==null?void 0:t.node_type}),e.jsx(f,{children:(t==null?void 0:t.node_type)==="Tweet"?e.jsx(He,{href:`${Be}${(l=t==null?void 0:t.properties)==null?void 0:l.tweet_id}${Be.includes("?")?"&":"?"}open=system`,target:"_blank",children:(i=t==null?void 0:t.properties)==null?void 0:i.tweet_id}):e.jsx(He,{href:`${(a=t==null?void 0:t.properties)==null?void 0:a.source_link}${((o=t==null?void 0:t.properties)==null?void 0:o.source_link).includes("?")?"&":"?"}open=system`,target:"_blank",children:(d=t==null?void 0:t.properties)==null?void 0:d.source_link})}),e.jsx(f,{children:(u=t==null?void 0:t.properties)!=null&&u.status?Ls(t.properties.status):"Processing"})]})},He=c.a` color: ${x.white}; text-decoration: underline; &:visited { color: ${x.white}; } -`,Io=h.memo(Lo),Mo=({nodes:t})=>{const{open:o}=M("addContent"),n=async()=>{o()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Eo,{children:[e.jsx(Oo,{children:e.jsx(_t,{})}),e.jsx(Ao,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Nt,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Io,{node:r},r==null?void 0:r.ref_id))})]})},Eo=O(g)` +`,Rs=h.memo(Is),Bs=({nodes:t})=>{const{open:s}=E("addContent"),n=async()=>{s()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Es,{children:[e.jsx(As,{children:e.jsx(Bt,{})}),e.jsx(Ms,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Et,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Rs,{node:r},r==null?void 0:r.ref_id))})]})},Es=F(g)` display: flex; align-items: center; justify-content: center; margin: 150px auto; width: 100%; flex-direction: column; -`,Ao=O(g)` +`,Ms=F(g)` display: flex; align-items: center; justify-content: center; @@ -128,7 +128,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i font-weight: 400; line-height: normal; } -`,Oo=O(g)` +`,As=F(g)` margin-bottom: 20px; svg { @@ -136,7 +136,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i height: 60px; width: 60px; } -`,Fo=()=>{const[t,o]=h.useState([]),[n,r]=h.useState(!0),[l,i]=h.useState(10),[a,s]=h.useState(!0),d={only_content:"true",sort_by:"date",limit:l.toString()},u=async()=>{r(!0);try{const p=await mt(d);o(p.nodes),r(!1)}catch(p){console.error("Error fetching data:",p),r(!1)}};h.useEffect(()=>{u()},[l]);const m=()=>{i(l+10),u()};return e.jsx(Wo,{direction:"column",justify:"flex-end",children:e.jsxs(Ho,{align:"center",justify:n?"center":"flex-start",children:[n?e.jsx(z,{color:x.white}):e.jsx(e.Fragment,{children:e.jsx(Mo,{nodes:t})}),!n&&t.length>0&&(a?e.jsx(W,{onClick:m,size:"medium",children:"Load More"}):e.jsx(Po,{children:"No new nodes available"}))]})})},Wo=c(g)` +`,Fs=()=>{const[t,s]=h.useState([]),[n,r]=h.useState(!0),[l,i]=h.useState(10),[a,o]=h.useState(!0),d={only_content:"true",sort_by:"date",limit:l.toString()},u=async()=>{r(!0);try{const p=await mt(d);s(p.nodes),r(!1)}catch(p){console.error("Error fetching data:",p),r(!1)}};h.useEffect(()=>{u()},[l]);const m=()=>{i(l+10),u()};return e.jsx(Os,{direction:"column",justify:"flex-end",children:e.jsxs(Ws,{align:"center",justify:n?"center":"flex-start",children:[n?e.jsx(z,{color:x.white}):e.jsx(e.Fragment,{children:e.jsx(Bs,{nodes:t})}),!n&&t.length>0&&(a?e.jsx(W,{onClick:m,size:"medium",children:"Load More"}):e.jsx(Hs,{children:"No new nodes available"}))]})})},Os=c(g)` flex: 1; .title { @@ -166,44 +166,44 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i margin: 8px auto; align-self: center; } -`,Ho=c(g)` +`,Ws=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,Po=c.div` +`,Hs=c.div` margin-top: 10px; color: ${x.GRAY3}; font-family: Barlow; font-size: 14px; -`,Do=({kind:t,shape:o})=>{switch(t){case"small":return oe` +`,Ps=({kind:t,shape:s})=>{switch(t){case"small":return se` padding: 4px 8px; - border-radius: ${o==="rounded"?"16px":"8px"}; + border-radius: ${s==="rounded"?"16px":"8px"}; height: 32px; - `;case"big":return oe` + `;case"big":return se` padding: 16px 24px; - border-radius: ${o==="rounded"?"24px":"8px"}; + border-radius: ${s==="rounded"?"24px":"8px"}; height: 48px; - `;default:return oe` + `;default:return se` padding: 8px 16px; - border-radius: ${o==="rounded"?"32px":"8px"}; + border-radius: ${s==="rounded"?"32px":"8px"}; height: 64px; - `}},Uo=({kind:t})=>{switch(t){case"small":return"regularBold";case"big":return"mediumBold";default:return"regularBold"}},Go=c(g).attrs({align:"center",direction:"row",justify:"center"})` + `}},Ds=({kind:t})=>{switch(t){case"small":return"regularBold";case"big":return"mediumBold";default:return"regularBold"}},Us=c(g).attrs({align:"center",direction:"row",justify:"center"})` border: none; cursor: pointer; pointer-events: auto; - ${Do} + ${Ps} &:hover { opacity: ${({disabled:t})=>t?.5:.9}; } - ${({disabled:t})=>t&&oe` + ${({disabled:t})=>t&&se` opacity: 0.5; pointer-events: none; `} -`,Pe=({background:t="primaryButton",children:o,className:n="button",startIcon:r,endIcon:l,disabled:i,id:a,kind:s="regular",onClick:d,onPointerDown:u,shape:m="squared",textColor:p="white",type:b})=>e.jsxs(Go,{as:"button",background:t,className:n,disabled:i,id:a,kind:s,onClick:d,onPointerDown:u,shape:m,type:b,children:[r&&r,e.jsx(N,{color:p,kind:Uo({kind:s}),children:o}),l&&l]}),pt=({message:t="Are you sure you want to delete this item?",onConfirm:o,children:n,anchorOrigin:r={vertical:"bottom",horizontal:"left"},transformOrigin:l={vertical:"top",horizontal:"center"}})=>{const[i,a]=h.useState(null),s=b=>{a(b.currentTarget)},d=()=>{a(null)},u=()=>{o(),d()},m=()=>{d()},p=!!i;return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:re.cloneElement(n,{onClick:s})}),e.jsx(Vo,{anchorEl:i,anchorOrigin:r,onClose:d,open:p,transformOrigin:l,children:e.jsxs(Yo,{children:[e.jsx(N,{className:"message",children:t}),e.jsxs(Qo,{children:[e.jsx(Pe,{background:"primaryBlue",kind:"small",onClick:u,children:"Yes"}),e.jsx(Pe,{background:"white",kind:"small",onClick:m,textColor:"black",children:"No"})]})]})})]})},Yo=c(g)` +`,Pe=({background:t="primaryButton",children:s,className:n="button",startIcon:r,endIcon:l,disabled:i,id:a,kind:o="regular",onClick:d,onPointerDown:u,shape:m="squared",textColor:p="white",type:b})=>e.jsxs(Us,{as:"button",background:t,className:n,disabled:i,id:a,kind:o,onClick:d,onPointerDown:u,shape:m,type:b,children:[r&&r,e.jsx(N,{color:p,kind:Ds({kind:o}),children:s}),l&&l]}),pt=({message:t="Are you sure you want to delete this item?",onConfirm:s,children:n,anchorOrigin:r={vertical:"bottom",horizontal:"left"},transformOrigin:l={vertical:"top",horizontal:"center"}})=>{const[i,a]=h.useState(null),o=b=>{a(b.currentTarget)},d=()=>{a(null)},u=()=>{s(),d()},m=()=>{d()},p=!!i;return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:re.cloneElement(n,{onClick:o})}),e.jsx(Ys,{anchorEl:i,anchorOrigin:r,onClose:d,open:p,transformOrigin:l,children:e.jsxs(Gs,{children:[e.jsx(N,{className:"message",children:t}),e.jsxs(Vs,{children:[e.jsx(Pe,{background:"primaryBlue",kind:"small",onClick:u,children:"Yes"}),e.jsx(Pe,{background:"white",kind:"small",onClick:m,textColor:"black",children:"No"})]})]})})]})},Gs=c(g)` align-items: center; background: ${x.BUTTON1}; color: ${x.white}; @@ -218,17 +218,17 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i font-size: 16px; font-weight: 500; } -`,Vo=c(Ce)` +`,Ys=c(Te)` && { z-index: 9999; } -`,Qo=c(g)` +`,Vs=c(g)` display: flex; flex-direction: row; gap: 12px; align-items: center; margin-top: 16px; -`,qo=({data:t})=>{const o=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const s=await bt.enable();await jt(a,s.pubkey),o(t.filter(d=>d.ref_id!==a))}catch(s){console.warn(s)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),o(t==null?void 0:t.filter(s=>s.ref_id!==a))}catch(s){console.warn(s)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${ot}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Xo,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(Ht,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(Pt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` +`,Qs=({data:t})=>{const s=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const o=await yt.enable();await wt(a,o.pubkey),s(t.filter(d=>d.ref_id!==a))}catch(o){console.warn(o)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),s(t==null?void 0:t.filter(o=>o.ref_id!==a))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${ot}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(qs,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(bt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(jt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` width: 20px; height: 20px; border-radius: 50%; @@ -251,9 +251,9 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i &:hover { cursor: pointer; } -`,Xo=c.div` +`,qs=c.div` margin-right: 40px; -`,Ko=()=>{const[t,o]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{o(!0);try{const u=await Qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{o(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},s=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Zo,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Jo,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qo,{data:s})})]})},Zo=c(g)` +`,Xs=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await Qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Ks,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Zs,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(Qs,{data:o})})]})},Ks=c(g)` flex: 1; .title { @@ -279,12 +279,12 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i & .filters { overflow-x: auto; } -`,Jo=c(g)` +`,Zs=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,xt=({onSearch:t,placeholder:o,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[s,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:s?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(es,{children:[e.jsx(ts,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:o,value:s,...a}),j()]})},Ge=c(g)` +`,xt=({onSearch:t,placeholder:s,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[o,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:o?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(Js,{children:[e.jsx(eo,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:s,value:o,...a}),j()]})},Ge=c(g)` top: -50%; right: -3%; z-index: 3; @@ -292,7 +292,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i transform: translate(-50%, 50%); `,fe=c(Q)` font-size: 24px; -`,es=c(zt)` +`,Js=c(Mt)` && { width: 100%; height: 40px; @@ -303,7 +303,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i box-sizing: border-box; padding-top: 0px; } -`,ts=c(Gt)` +`,eo=c(Vt)` -webkit-autofill, -webkit-autocomplete, -webkit-contacts-auto-fill, @@ -351,7 +351,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i } } width: 100%; -`,os=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M13.8 9.97481L5.82503 1.9998H18C18.4167 1.9998 18.7167 2.18314 18.9 2.5498C19.0834 2.91647 19.05 3.26647 18.8 3.5998L13.8 9.97481ZM18.775 20.5998L13 14.8248V16.9998C13 17.2831 12.9042 17.5206 12.7125 17.7123C12.5209 17.904 12.2834 17.9998 12 17.9998H10C9.71669 17.9998 9.47919 17.904 9.28753 17.7123C9.09586 17.5206 9.00002 17.2831 9.00002 16.9998V10.8248L0.400024 2.2248L1.80002 0.799805L20.2 19.1998L18.775 20.5998Z",fill:"currentColor"})}),ss=({data:t,canEdit:o=!1})=>{const n=le(s=>s.setSources),[r,l]=h.useState(""),i=async(s,d)=>{if(t!=null&&t.length)try{await yt(s,d);const u=t==null?void 0:t.findIndex(p=>p.ref_id===s),m=[...t];m[u]={...m[u],source:d.source},n(m)}catch(u){console.warn(u)}},a=async s=>{if(!(!s||!(t!=null&&t.length))){l(s);try{await Ve(s),n(t==null?void 0:t.filter(d=>d.ref_id!==s))}catch(d){console.warn(d)}finally{l("")}}};return t!=null&&t.length?e.jsxs(pe,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{align:"left",children:"Source"}),o&&e.jsx(f,{align:"left"}),e.jsx(f,{className:"empty"})]})}),e.jsx(co,{component:"tbody",children:t==null?void 0:t.map(s=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[s.source_type]}),e.jsx(f,{align:"left",children:e.jsx(ns,{condition:o,wrapper:d=>e.jsx(rs,{id:s.ref_id,onSave:u=>i(s.ref_id,{source:u,source_type:s.source_type}),value:s.source,children:d}),children:s.source_type===_e||s.source_type===Ne||s.source_type===ze?e.jsxs(e.Fragment,{children:[s.source_type===_e&&e.jsxs(me,{href:`${ot}/${s.source}`,target:"_blank",children:["@",s.source]}),s.source_type===Ne&&e.jsx(me,{href:`${s.source}${s.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:s.source}),s.source_type===ze&&e.jsx(me,{href:s.source,target:"_blank",children:s.source})]}):e.jsx("div",{children:s.source})})}),o&&e.jsx(f,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${s.source}`,children:r===s.ref_id?e.jsx(ht,{"data-testid":`delete-loader-${s.ref_id}`,children:e.jsx(z,{color:x.white,size:16})}):e.jsx(pt,{"data-testid":`delete-icon-${s.ref_id}`,message:"Are you sure?",onConfirm:()=>a(s.ref_id),children:e.jsx(se,{className:"centered","data-testid":`delete-icon-${s.ref_id}`,children:e.jsx(Rt,{})})})})}),e.jsx(f,{className:"empty"})]},s.source))})]}):e.jsxs(is,{children:[e.jsx(os,{}),e.jsx(N,{className:"text",children:"There is not any results for selected filters"})]})};function ns({condition:t,wrapper:o,children:n}){return t?o(n):n}const rs=({value:t,onSave:o,id:n,children:r})=>{const[l,i]=h.useState(!1),[a,s]=h.useState(t),[d,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await o(a),i(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:l?e.jsxs(as,{align:"center",direction:"row",children:[e.jsx(Yt,{className:"editable-cell__input",name:"cell-input",onChange:p=>s(p),value:a}),e.jsx(se,{align:"center",justify:"center",children:d?e.jsx(ht,{"data-testid":`edit-loader-${n}`,children:e.jsx(z,{color:x.white,size:12})}):e.jsx(Dt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(se,{align:"center",className:"secondary",justify:"center",onClick:()=>i(!1),children:e.jsx(Ut,{})})]}):e.jsxs(ls,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(se,{onClick:()=>i(!0),children:e.jsx(Bt,{"data-testid":`edit-icon-${n}`})})]})})},as=c(g)` +`,to=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M13.8 9.97481L5.82503 1.9998H18C18.4167 1.9998 18.7167 2.18314 18.9 2.5498C19.0834 2.91647 19.05 3.26647 18.8 3.5998L13.8 9.97481ZM18.775 20.5998L13 14.8248V16.9998C13 17.2831 12.9042 17.5206 12.7125 17.7123C12.5209 17.904 12.2834 17.9998 12 17.9998H10C9.71669 17.9998 9.47919 17.904 9.28753 17.7123C9.09586 17.5206 9.00002 17.2831 9.00002 16.9998V10.8248L0.400024 2.2248L1.80002 0.799805L20.2 19.1998L18.775 20.5998Z",fill:"currentColor"})}),so=({data:t,canEdit:s=!1})=>{const n=le(o=>o.setSources),[r,l]=h.useState(""),i=async(o,d)=>{if(t!=null&&t.length)try{await $t(o,d);const u=t==null?void 0:t.findIndex(p=>p.ref_id===o),m=[...t];m[u]={...m[u],source:d.source},n(m)}catch(u){console.warn(u)}},a=async o=>{if(!(!o||!(t!=null&&t.length))){l(o);try{await Ve(o),n(t==null?void 0:t.filter(d=>d.ref_id!==o))}catch(d){console.warn(d)}finally{l("")}}};return t!=null&&t.length?e.jsxs(pe,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{align:"left",children:"Source"}),s&&e.jsx(f,{align:"left"}),e.jsx(f,{className:"empty"})]})}),e.jsx(cs,{component:"tbody",children:t==null?void 0:t.map(o=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[o.source_type]}),e.jsx(f,{align:"left",children:e.jsx(oo,{condition:s,wrapper:d=>e.jsx(no,{id:o.ref_id,onSave:u=>i(o.ref_id,{source:u,source_type:o.source_type}),value:o.source,children:d}),children:o.source_type===_e||o.source_type===Ne||o.source_type===ze?e.jsxs(e.Fragment,{children:[o.source_type===_e&&e.jsxs(me,{href:`${ot}/${o.source}`,target:"_blank",children:["@",o.source]}),o.source_type===Ne&&e.jsx(me,{href:`${o.source}${o.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:o.source}),o.source_type===ze&&e.jsx(me,{href:o.source,target:"_blank",children:o.source})]}):e.jsx("div",{children:o.source})})}),s&&e.jsx(f,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${o.source}`,children:r===o.ref_id?e.jsx(ht,{"data-testid":`delete-loader-${o.ref_id}`,children:e.jsx(z,{color:x.white,size:16})}):e.jsx(pt,{"data-testid":`delete-icon-${o.ref_id}`,message:"Are you sure?",onConfirm:()=>a(o.ref_id),children:e.jsx(oe,{className:"centered","data-testid":`delete-icon-${o.ref_id}`,children:e.jsx(At,{})})})})}),e.jsx(f,{className:"empty"})]},o.source))})]}):e.jsxs(ao,{children:[e.jsx(to,{}),e.jsx(N,{className:"text",children:"There is not any results for selected filters"})]})};function oo({condition:t,wrapper:s,children:n}){return t?s(n):n}const no=({value:t,onSave:s,id:n,children:r})=>{const[l,i]=h.useState(!1),[a,o]=h.useState(t),[d,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await s(a),i(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:l?e.jsxs(ro,{align:"center",direction:"row",children:[e.jsx(Ct,{className:"editable-cell__input",name:"cell-input",onChange:p=>o(p),value:a}),e.jsx(oe,{align:"center",justify:"center",children:d?e.jsx(ht,{"data-testid":`edit-loader-${n}`,children:e.jsx(z,{color:x.white,size:12})}):e.jsx(vt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(oe,{align:"center",className:"secondary",justify:"center",onClick:()=>i(!1),children:e.jsx(Tt,{})})]}):e.jsxs(io,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(oe,{onClick:()=>i(!0),children:e.jsx(Ft,{"data-testid":`edit-icon-${n}`})})]})})},ro=c(g)` display: flex; width: 250px; border: 2px solid ${x.lightBlue300}; @@ -366,7 +366,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i padding: 0 4px; color: #fff; } -`,se=c(g)` +`,oe=c(g)` width: 20px; height: 20px; border-radius: 50%; @@ -387,7 +387,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i &:hover { background: rgba(255, 255, 255, 0.1); } -`,is=c(g)` +`,ao=c(g)` margin-top: 120px; width: 165px; display: flex; @@ -408,7 +408,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i svg { color: ${x.GRAY6}; } -`,ls=c(g)` +`,io=c(g)` display: flex; padding: 4px; position: relative; @@ -440,7 +440,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; justify-content: center; align-items: center; -`,cs=()=>{const[t,o]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=qe(p=>[p.isAdmin]),[s,d]=h.useState("");h.useEffect(()=>{(async()=>{o(!0);try{const b=await Qe();i(b.data)}catch(b){console.warn(b)}finally{o(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(s.toLowerCase())||p.source.toLowerCase().includes(s.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(s.toLowerCase())||`@${p.source.toLowerCase()}`.includes(s.toLowerCase()))),[s,n,l]);return e.jsxs(ds,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xs,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ke,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(ps,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(ss,{canEdit:a,data:m})})]})},ds=c(g)` +`,lo=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=qe(p=>[p.isAdmin]),[o,d]=h.useState("");h.useEffect(()=>{(async()=>{s(!0);try{const b=await Qe();i(b.data)}catch(b){console.warn(b)}finally{s(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(o.toLowerCase())||p.source.toLowerCase().includes(o.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(o.toLowerCase())||`@${p.source.toLowerCase()}`.includes(o.toLowerCase()))),[o,n,l]);return e.jsxs(co,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xo,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(po,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(so,{canEdit:a,data:m})})]})},co=c(g)` flex: 1; .title { font-size: 20px; @@ -455,18 +455,18 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i & .filters { overflow-x: auto; } -`,ps=c(g)` +`,po=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,xs=c(g)` +`,xo=c(g)` margin: 0 0 16px 36px; -`,hs=({selectedType:t,setSelectedType:o})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:s}=await wt();r(s.edge_types)}catch(s){console.warn(s)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{o((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},us=({onSelect:t,selectedValue:o,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),s=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Xe(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&s(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return o?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:o.search_value}),e.jsx(st,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||lt,selectedValue:o?m(o):null})},gs=({from:t,onSelect:o,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fs,{children:"Add edge"})})}),e.jsxs(js,{swap:l,children:[e.jsx(g,{children:e.jsx(ys,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bs,{children:"Type"}),e.jsx(hs,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(ws,{children:[e.jsx(Cs,{children:l?"From":"To"}),e.jsx(us,{onSelect:o,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(ms,{children:[e.jsx(vs,{children:e.jsx(Ze,{})}),e.jsx(Ts,{onClick:i,children:e.jsx(Je,{})}),e.jsx($s,{children:e.jsx(et,{})})]})]})]}),fs=c(N)` +`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await St();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Ke(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(nt,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||Xe,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Je,{})}),e.jsx(To,{onClick:i,children:e.jsx(et,{})}),e.jsx($o,{children:e.jsx(tt,{})})]})]})]}),fo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,ms=c.div` +`,mo=c.div` position: absolute; top: 26px; bottom: 26px; @@ -476,7 +476,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i border-top: 1.5px solid #6b7a8d4d; border-bottom: 1.5px solid #6b7a8d4d; border-radius: 12px 0 0 12px; -`,bs=c.label` +`,bo=c.label` color: #bac1c6; font-size: 13px; font-weight: 400; @@ -484,7 +484,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i letter-spacing: 0.01em; text-align: left; margin-bottom: 6px; -`,js=c.div` +`,jo=c.div` position: relative; color: white; font-family: 'Barlow'; @@ -492,7 +492,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i flex-direction: ${t=>t.swap?"column-reverse":"column"}; margin-bottom: 10px; padding-left: 38px; -`,ys=c(it)` +`,yo=c(lt)` position: relative; width: 100%; padding: 16px; @@ -501,7 +501,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i border: 1px solid #6b7a8d4d; opacity: 0px; display: flex; -`,ws=c.div` +`,wo=c.div` position: relative; width: 100%; padding: 15px; @@ -511,7 +511,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i opacity: 0px; display: flex; align-items: center; -`,Cs=c.label` +`,Co=c.label` color: #bac1c6; background-color: #23252f; font-size: 13px; @@ -522,13 +522,13 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i position: absolute; left: 15px; top: -10px; -`,vs=c.div` +`,vo=c.div` position: absolute; top: 0; right: 0; transform: translateY(-50%) translateX(50%); color: #23252f; -`,Ts=c.div` +`,To=c.div` position: absolute; color: transparent; top: 50%; @@ -542,31 +542,31 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i justify-content: center; align-items: center; border-radius: 8px; -`,$s=c.div` +`,$o=c.div` position: absolute; bottom: 0; right: 0; transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,Ss=({topic:t,onClose:o})=>{const{close:n}=M("addEdge"),[r]=L(w=>[w.data]),l=ve({mode:"onChange"}),[i,a]=h.useState(!1),[s,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{o(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await Ct({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),L.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=s||!p||!u;return e.jsx(de,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(Te,{...l,children:[e.jsx(gs,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ks,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",s&&e.jsx(_s,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ks=c(W)` +`,So=({topic:t,onClose:s})=>{const{close:n}=E("addEdge"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),[i,a]=h.useState(!1),[o,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{s(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await kt({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),R.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=o||!p||!u;return e.jsx(ce,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(go,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ko,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",o&&e.jsx(_o,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ko=c(W)` width: 293px !important; margin: 0 0 10px auto !important; -`,_s=c.span` +`,_o=c.span` margin-top: 2px; -`,Ns=()=>e.jsxs(g,{children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(zs,{children:"Edit topic"})})}),e.jsx(g,{mb:12,children:e.jsx(Vt,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Add your topic",rules:{...vt}})})]}),zs=c(N)` +`,No=()=>e.jsxs(g,{children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(zo,{children:"Edit topic"})})}),e.jsx(g,{mb:12,children:e.jsx(_t,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Add your topic",rules:{...Nt}})})]}),zo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Rs=({topic:t,onClose:o})=>{const{close:n}=M("editTopic"),[r]=L(w=>[w.data]),l=ve({mode:"onChange"}),{watch:i,setValue:a,reset:s,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{s()}),[t,a,s]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{o(),n()},y=async()=>{m(!0);try{if(await ce((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,L.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(de,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(Te,{...l,children:[e.jsx(Ns,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Bs,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Bs=c.span` +`,Lo=({topic:t,onClose:s})=>{const{close:n}=E("editTopic"),[r]=R(w=>[w.data]),l=Ce({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await de((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,R.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(ce,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(ve,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Io,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Io=c.span` margin-top: 2px; -`,Ls=({topicId:t,onSelect:o,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,s]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};s(!0);try{const $=(await Xe(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{s(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;o(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(st,{onClick:()=>o(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||lt,selectedValue:n?p(n):null})},Is=({from:t,onSelect:o,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var s;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Ms,{children:"Merge topic"})})}),e.jsxs(Os,{swap:r,children:[e.jsx(Es,{children:e.jsx(Fs,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Hs,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Ws,{children:[e.jsx(Ps,{children:r?"From":"To"}),e.jsx(Ls,{dataId:"to-node",onSelect:o,selectedValue:n,topicId:(s=t[t.length-1])==null?void 0:s.ref_id})]})}),e.jsxs(As,{children:[e.jsx(Ds,{children:e.jsx(Ze,{})}),e.jsx(Us,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(Je,{})}),e.jsx(Gs,{children:e.jsx(et,{})})]})]})]})},Ms=c(N)` +`,Ro=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};o(!0);try{const $=(await Ke(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(nt,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||Xe,selectedValue:n?p(n):null})},Bo=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Eo,{children:"Merge topic"})})}),e.jsxs(Fo,{swap:r,children:[e.jsx(Mo,{children:e.jsx(Oo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Ro,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Je,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(et,{})}),e.jsx(Go,{children:e.jsx(tt,{})})]})]})]})},Eo=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Es=c(g)` +`,Mo=c(g)` flex: 1 1 100%; -`,As=c.div` +`,Ao=c.div` position: absolute; top: 26px; bottom: 26px; @@ -576,7 +576,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i border-top: 1.5px solid #6b7a8d4d; border-bottom: 1.5px solid #6b7a8d4d; border-radius: 12px 0 0 12px; -`,Os=c.div` +`,Fo=c.div` position: relative; color: white; font-family: 'Barlow'; @@ -584,7 +584,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i flex-direction: ${t=>t.swap?"column-reverse":"column"}; margin-bottom: 10px; padding-left: 38px; -`,Fs=c(it)` +`,Oo=c(lt)` position: relative; width: 100%; padding: 16px; @@ -593,7 +593,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i border: 1px solid #6b7a8d4d; opacity: 0px; display: flex; -`,Ws=c.div` +`,Wo=c.div` position: relative; width: 100%; padding: 15px; @@ -603,7 +603,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i opacity: 0px; display: flex; align-items: center; -`,Hs=c.label` +`,Ho=c.label` color: #bac1c6; font-size: 13px; font-weight: 400; @@ -611,7 +611,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i letter-spacing: 0.01em; text-align: left; margin-bottom: 6px; -`,Ps=c.label` +`,Po=c.label` color: #bac1c6; background-color: #23252f; font-size: 13px; @@ -622,13 +622,13 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i position: absolute; left: 15px; top: -10px; -`,Ds=c.div` +`,Do=c.div` position: absolute; top: 0; right: 0; transform: translateY(-50%) translateX(50%); color: #23252f; -`,Us=c.div` +`,Uo=c.div` position: absolute; color: transparent; top: 50%; @@ -642,26 +642,26 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i justify-content: center; align-items: center; border-radius: 8px; -`,Gs=c.div` +`,Go=c.div` position: absolute; bottom: 0; right: 0; transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,Ys=({onClose:t,multiTopics:o})=>{const{close:n}=M("mergeTopic"),r=ve({mode:"onChange"}),{setValue:l,reset:i}=r,[a,s]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(o&&o.length>0){const y=o.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[o,l,i]);const b=()=>{t(),n()},j=async()=>{s(!0);const y=o==null?void 0:o.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await Tt({from:y,to:m==null?void 0:m.ref_id}),L.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{s(!1)}};return e.jsx(de,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(Te,{...r,children:[e.jsx(Is,{from:o,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vs,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(Qs,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vs=c(W)` +`,Yo=({onClose:t,multiTopics:s})=>{const{close:n}=E("mergeTopic"),r=Ce({mode:"onChange"}),{setValue:l,reset:i}=r,[a,o]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(s&&s.length>0){const y=s.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[s,l,i]);const b=()=>{t(),n()},j=async()=>{o(!0);const y=s==null?void 0:s.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await zt({from:y,to:m==null?void 0:m.ref_id}),R.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{o(!1)}};return e.jsx(ce,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(ve,{...r,children:[e.jsx(Bo,{from:s,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vo,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(Qo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vo=c(W)` width: 293px !important; margin: 0 0 10px auto !important; -`,Qs=c.span` +`,Qo=c.span` margin-top: 2px; -`,qs=({topic:t,onClick:o,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,s]=L(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await ce(k,{node_data:{is_muted:v}}),L.setState({ids:a.filter(_=>_!==k),total:s-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),F=k=>{A(k.currentTarget),p(!0)},R=()=>{p(!1)},H=!!S&&m,I=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zs,{className:`checkbox-section ${I}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Js,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(tt,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Ks,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Ce,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:R,onMouseEnter:()=>p(!0),onMouseLeave:R,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Me,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Me,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:F,onMouseLeave:R,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Xs,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Lt,{})}):e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(It,{})}),e.jsx(Q,{disabled:i,onClick:k=>o(k,t.ref_id),children:e.jsx(Mt,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Xs=c.span` +`,qo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=R(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await de(k,{node_data:{is_muted:v}}),R.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),O=k=>{A(k.currentTarget),p(!0)},L=()=>{p(!1)},H=!!S&&m,B=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zo,{className:`checkbox-section ${B}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Jo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(st,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Ko,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Te,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:L,onMouseEnter:()=>p(!0),onMouseLeave:L,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Ee,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Ee,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:O,onMouseLeave:L,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Xo,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Ot,{})}):e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(Wt,{})}),e.jsx(Q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Ht,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Xo=c.span` margin-left: 12px; -`,Ks=c.span` +`,Ko=c.span` cursor: pointer; :hover { text-decoration: underline; } -`,Zs=c.td` +`,Zo=c.td` visibility: hidden; cursor: pointer; display: flex; @@ -670,7 +670,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i &.visible { visibility: visible; } -`,Js=c.div` +`,Jo=c.div` width: 14px; height: 14px; border-radius: 4px; @@ -690,7 +690,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; align-items: center; justify-content: center; -`,on=h.memo(qs),sn=({setShowMuteUnmute:t,showMuted:o,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:s}=M("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=$t(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=L(T=>[T.data,T.ids,T.total]),F=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),R=()=>{p(null)},H=T=>{C(T),w(T),s()},I=T=>{r(b,T),R()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,E=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await ce(Y,{node_data:{is_muted:!o}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);L.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(Ro,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(Q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:E,role:"button",children:o?e.jsxs(e.Fragment,{children:[e.jsx(Re,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Be,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>I("mergeTopic"),children:[e.jsx(Le,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ot),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ft),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:o,children:e.jsx(an,{children:o&&e.jsx(tt,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(on,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:F,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:R,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[o?e.jsxs(V,{"data-testid":"unmute",onClick:()=>I("unMute"),children:[" ",e.jsx(Re,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>I("mute"),children:[" ",e.jsx(Be,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>I("editTopic"),children:[e.jsx(Et,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>I("mergeTopic"),children:[e.jsx(Le,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>I("addEdge"),children:[e.jsx(At,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` +`,sn=h.memo(qo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=E("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=Lt(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=R(T=>[T.data,T.ids,T.total]),O=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),L=()=>{p(null)},H=T=>{C(T),w(T),o()},B=T=>{r(b,T),L()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,M=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await de(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);R.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(Q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:M,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ie,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ut),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Gt),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(st,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:O,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:L,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>B("unMute"),children:[" ",e.jsx(Le,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>B("mute"),children:[" ",e.jsx(Ie,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>B("editTopic"),children:[e.jsx(Pt,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>B("mergeTopic"),children:[e.jsx(Re,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>B("addEdge"),children:[e.jsx(Dt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` cursor: pointer; display: flex; align-items: center; @@ -728,7 +728,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i background: ${x.BUTTON1_HOVER}; color: ${x.GRAY3}; } -`,ln=c(Ce)` +`,ln=c(Te)` && { z-index: 9999; } @@ -784,7 +784,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; align-items: center; justify-content: center; -`,un=()=>{const[t,o,n,r,l,i,a,s]=L(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=M("editTopic"),{open:u}=M("mergeTopic"),{open:m}=M("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{o.length&&(S.current=o)},[o]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const F=v=>{i({sortBy:v})},R=()=>{b(null),y([])},H=async(v,_)=>{try{await ce(v,{node_data:{is_muted:_==="mute"}}),L.setState({ids:o.filter(E=>E!==v),total:n-1})}catch(E){console.warn(E)}},I=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(E=>E).length>0){const E=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(E),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ke,{}),loading:s,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:s&&!t?"center":"flex-start",children:[e.jsx(sn,{checkedStates:C,loading:s,onChangeFilter:F,onTopicEdit:I,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>o.length?e.jsxs(W,{className:"load-more",disabled:s,onClick:A,children:["Load more",s&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Ys,{multiTopics:j,onClose:R}),p&&e.jsx(Rs,{onClose:R,topic:p}),p&&e.jsx(Ss,{onClose:R,topic:p})]})},gn=c(g)` +`,un=()=>{const[t,s,n,r,l,i,a,o]=R(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=E("editTopic"),{open:u}=E("mergeTopic"),{open:m}=E("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{s.length&&(S.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const O=v=>{i({sortBy:v})},L=()=>{b(null),y([])},H=async(v,_)=>{try{await de(v,{node_data:{is_muted:_==="mute"}}),R.setState({ids:s.filter(M=>M!==v),total:n-1})}catch(M){console.warn(M)}},B=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(M=>M).length>0){const M=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(M),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ze,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:O,onTopicEdit:B,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:L}),p&&e.jsx(Lo,{onClose:L,topic:p}),p&&e.jsx(So,{onClose:L,topic:p})]})},gn=c(g)` flex: 1; .title { @@ -821,7 +821,7 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i width: 100%; `,mn=c(g)` margin: 0 0 16px 36px; -`,bn=[{label:at,component:Fo},{label:Wt,component:cs},{label:rt,component:Ko},{label:nt,component:un}],jn=t=>{const{children:o,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:o}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,o]=h.useState(0),[n]=qe(s=>[s.isAdmin]),[r]=St(s=>[s.queuedSourcesFeatureFlag]),l=kt(),i=(s,d)=>{o(d)},a=bn.filter(({label:s})=>s===nt?n:s===rt?n&&r:s===at?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((s,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:s.label,...yn(d)},s.label))}),a.map((s,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(s.component,{})},s.label))]})},Cn=c(Qt)` +`,bn=[{label:it,component:Fs},{label:Yt,component:lo},{label:at,component:Xs},{label:rt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=qe(o=>[o.isAdmin]),[r]=It(o=>[o.queuedSourcesFeatureFlag]),l=Rt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===rt?n:o===at?n&&r:o===it?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(Qt)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -876,4 +876,4 @@ import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i @media (max-width: 768px) { padding: 3px; } -`,Pn=()=>{const{close:t}=M("sourcesTable"),{visible:o}=M("addContent");return o?null:e.jsx(de,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Pn as SourcesTableModal}; +`,Fn=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Fn as SourcesTableModal}; diff --git a/build/assets/index-751d453d.js b/build/assets/index-751d453d.js deleted file mode 100644 index 170ccb566..000000000 --- a/build/assets/index-751d453d.js +++ /dev/null @@ -1,77 +0,0 @@ -import{t as v,v as q,T as z,F as n,r as m,j as e,aA as J,aO as $,N as K,aP as Q,az as O,a_ as X,b1 as Z}from"./index-b416b1a9.js";import{$ as U,B as P,e as V,u as D,a0 as N,a1 as ee}from"./index-1f5ac1eb.js";import{B as te}from"./index-8331965f.js";import{T as re}from"./index-64813bbe.js";import{p as G}from"./index-c0853f89.js";import{n as ne}from"./constants-b2a2fa82.js";import{C as W}from"./ClipLoader-a0a9ce2c.js";import{A as Y}from"./index-69075348.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-258646ab.js";import"./three.module-26d3b3c0.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const M=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,b]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{b(!0);const o=await $(x),T=G(o),A=H(T);C(A),b(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{a(""),l("sourceType")},w=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(W,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(z,{children:s(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(P,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",disabled:w,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(z)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ie=v(n)` - width: 100%; - display: flex; - justify-content: center; - gap: 10px; - margin: 0 0 15px 0; - - .input__wrapper { - display: flex; - gap: 15px; - max-height: 225px; - overflow-y: auto; - padding-right: 20px; - width: calc(100% + 20px); - } -`,ce=v(n)` - display: flex; - gap: 10px; - - #item-name { - color: ${q.GRAY7}; - -webkit-text-fill-color: ${q.GRAY7}; - } -`,le=({nodeType:a,onclose:l,selectedNodeType:x})=>e.jsxs(n,{children:[e.jsx(n,{mb:20,children:e.jsx(R,{children:"Confirm Type Change"})}),e.jsx(n,{mb:25,children:e.jsxs(R,{children:["From: ",x]})}),e.jsx(n,{mb:25,children:e.jsxs(R,{children:["To: ",a]})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(P,{color:"secondary",onClick:l,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),R=v(z)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,pe=({handleSelectType:a,skipToStep:l,selectedNodeType:x,nodeType:r,selectedValues:f,setSelectedValues:b})=>{const[h,C]=m.useState(!1),[j,t]=m.useState(),[s,i]=m.useState(),{watch:p}=U();m.useEffect(()=>{const d=async(u,y)=>{C(!0);const g=await $(u),F=G(g),_=H(F);y(_),C(!1)};r&&d(r,t),x&&d(x,i)},[r,x,p]);const S=m.useMemo(()=>k(j),[j]),w=m.useMemo(()=>k(s),[s]),c=()=>{a(""),l("sourceType")};m.useEffect(()=>{if(j&&s){const d=s.reduce((u,y)=>{const g=j.find(F=>F.key===y.key);return u[y.key]=g?y.key:"none",u},{});b(d)}},[j,s,b]);const o=(d,u)=>{b(y=>({...y,[d]:u}))},T=()=>{const d=S.every(({key:u,required:y})=>!y||y&&f[u]&&f[u]!=="none");l(d?"createConfirmation":"requiredProperties")},A=m.useMemo(()=>w.map(({key:d})=>{const u=f[d]||"none",y=S.filter(g=>!Object.values(f).includes(g.key)||g.key===u).map(g=>({label:M(g.key),value:g.key}));return y.unshift({label:"None",value:"none"}),{key:d,autoCompleteOptions:y,selectedValue:u}}),[w,S,f]);return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(de,{children:"Map Properties"})})}),e.jsx(ue,{children:h?e.jsx(n,{style:{margin:"auto"},children:e.jsx(W,{color:q.lightGray})}):e.jsxs(xe,{children:[e.jsxs(me,{children:[e.jsx(I,{children:M(x)}),w.map(({key:d})=>e.jsx(fe,{children:e.jsx(z,{children:M(d)})},d))]}),e.jsxs(he,{children:[e.jsx(I,{children:M(r)}),A.map(({key:d,autoCompleteOptions:u,selectedValue:y})=>e.jsx(n,{children:e.jsx(Y,{isLoading:h,onSelect:g=>o(d,g?g.value:"none"),options:u,selectedValue:u.find(g=>g.value===y)})},d))]})]})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(P,{color:"secondary",onClick:c,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",disabled:h,onClick:T,size:"large",variant:"contained",children:"Next"})})]})]})},de=v(z)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ue=v(n)` - width: 100%; - display: flex; - justify-content: center; - gap: 10px; - margin: 0 0 15px 0; - - .input__wrapper { - display: flex; - gap: 15px; - max-height: 225px; - overflow-y: auto; - padding-right: 20px; - width: calc(100% + 20px); - } -`,xe=v.div` - display: flex; - justify-content: space-between; -`,me=v.div` - flex: 1; - margin-right: 16px; -`,fe=v.div` - display: flex; - gap: 16px; - margin-top: 38px; -`,he=v.div` - flex: 1; - display: flex; - flex-direction: column; - gap: 16px; -`,I=v.h3` - font-size: 16px; - font-weight: bold; - margin-bottom: 8px; - font-family: 'Barlow'; - color: white; - margin-bottom: 15px; -`,ye={label:"Not Selected",value:"Not Selected"},ge=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],je=({skipToStep:a,allowNextStep:l,onSelectType:x,selectedType:r})=>{const[f]=K(i=>[i.customSchemaFeatureFlag]),[b,h]=m.useState(null),[C,j]=m.useState(!1),t=V();m.useEffect(()=>{(async()=>{var p;if(f){j(!0);try{const S=await Q(),w=["about","schema",(p=t==null?void 0:t.node_type)==null?void 0:p.toLowerCase()],c=S.schemas.filter(o=>o.ref_id&&!w.includes(o.type.toLowerCase())&&!o.is_deleted).map(o=>({label:oe(o.type),value:o.type,action:()=>a("mapProperties")}));h(c)}catch(S){console.warn(S)}finally{j(!1)}}else h([...ge,ye])})()},[t==null?void 0:t.node_type,r,f,a]);const s=i=>{x((i==null?void 0:i.label)||"")};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(we,{children:"Select Type"})})}),e.jsx(n,{direction:"row",mb:20,children:e.jsx(Y,{autoFocus:!0,isLoading:C,onSelect:s,options:b})}),e.jsx(n,{children:e.jsx(P,{color:"secondary",disabled:!l,onClick:()=>a("mapProperties"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},we=v(z)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,be=async(a,l,x,r)=>{const f={},b=[];Object.entries(x).forEach(([t,s])=>{s!=="none"&&(f[s]=t),t!==s&&b.push(t)});const h={};Object.keys(r||{}).forEach(t=>{const s=r==null?void 0:r[t];Object.entries(f).forEach(([i,p])=>{p===t&&(h[f[i]]=s)})}),Object.keys(a).forEach(t=>{t!=="nodeType"&&(h[t]=a[t])});const C=r?r.node_type.charAt(0).toUpperCase()+r.node_type.slice(1):void 0,j={node_type:l,node_data:h,properties_to_be_deleted:b,type_to_be_deleted:C?[C]:[]};try{let t=r==null?void 0:r.ref_id;if((r==null?void 0:r.type)==="topic"){const{data:i}=await X({search:r==null?void 0:r.name}),p=i.find(S=>S.name===r.name);t=p==null?void 0:p.ref_id}const s=t||(r==null?void 0:r.ref_id);s&&await Z(s,j)}catch(t){console.error(t);let s=O;if(t.status===400)try{const i=await t.json();s=i.message||i.errorCode||(i==null?void 0:i.status)||O}catch{s=O}else t instanceof Error&&(s=t.message);throw new Error(s)}},Le=()=>{const[a,l]=m.useState("sourceType"),{close:x,visible:r}=D("changeNodeType"),{open:f}=D("editNodeName"),{open:b}=D("addType"),h=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=h,[s,i]=m.useState(""),[p,S]=m.useState({});m.useEffect(()=>()=>{l("sourceType"),t()},[r,t]);const w=V(),c=w!=null&&w.node_type?w.node_type.charAt(0).toUpperCase()+w.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{x()},A=_=>{l(_)},d=h.handleSubmit(async _=>{try{await be(_,o,p,w),T()}catch(E){let L=O;if(T(),(E==null?void 0:E.status)===400){const B=await E.json();L=B.errorCode||(B==null?void 0:B.status)||O}else E instanceof Error&&(L=E.message);i(String(L))}}),u=_=>{_==="Create custom type"?b():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(ae,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=a==="mapProperties"?"regular":"small",F=()=>{x(),f()};return e.jsx(te,{id:"changeNodeType",kind:g,onClose:F,preventOutsideClose:!0,children:e.jsx(ee,{...h,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[a]})})})};export{Le as ChangeNodeTypeModal}; diff --git a/build/assets/index-77fe94be.js b/build/assets/index-77fe94be.js deleted file mode 100644 index 0a1b8ca7d..000000000 --- a/build/assets/index-77fe94be.js +++ /dev/null @@ -1,92 +0,0 @@ -import{r,j as e,aV as O,H as k,F as h,aW as E,t as l,T as A,v as T,aX as F}from"./index-b416b1a9.js";import{B as z}from"./index-8331965f.js";import{ai as N,aP as D,aQ as M,aR as P,u as I,a0 as X,e as Y,a1 as H,B as R}from"./index-1f5ac1eb.js";import{A as L,T as G}from"./index-69075348.js";import{O as V}from"./constants-b2a2fa82.js";import{S as W,A as Q}from"./constants-6b0b8728.js";import{C as _}from"./ClipLoader-a0a9ce2c.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await O();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},q=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:Q,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return k.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(W,{onClick:()=>t(null),size:"medium",children:e.jsx(N,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},J=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(q,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(D,{})}),e.jsx(ae,{onClick:x,children:e.jsx(M,{})}),e.jsx(ie,{children:e.jsx(P,{})})]})]})]})},K=l.div` - position: absolute; - top: 26px; - bottom: 26px; - left: 4px; - width: 35px; - border-left: 1.5px solid #6b7a8d4d; - border-top: 1.5px solid #6b7a8d4d; - border-bottom: 1.5px solid #6b7a8d4d; - border-radius: 12px 0 0 12px; -`,U=l(A)` - font-size: 22px; - font-weight: 600; -`,Z=l.div` - position: relative; - color: white; - font-family: 'Barlow'; - display: flex; - flex-direction: ${t=>t.swap?"column-reverse":"column"}; - margin-bottom: 10px; - padding-left: 38px; -`,ee=l(G)` - position: relative; - width: 100%; - padding: 16px; - gap: 10px; - border-radius: 6px; - border: 1px solid #6b7a8d4d; - opacity: 0px; - display: flex; -`,te=l.div` - position: relative; - width: 100%; - padding: 15px; - gap: 10px; - border-radius: 6px; - border: 1.4px solid #6b7a8d4d; - opacity: 0px; - display: flex; - align-items: center; -`,oe=l.label` - color: #bac1c6; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - margin-bottom: 6px; -`,se=l.label` - color: #bac1c6; - background-color: #23252f; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - position: absolute; - left: 15px; - top: -10px; -`,ne=l.div` - position: absolute; - top: 0; - right: 0; - transform: translateY(-50%) translateX(50%); - color: #23252f; -`,ae=l.div` - position: absolute; - color: transparent; - top: 50%; - left: 0; - transform: translateY(-50%) translateX(-50%); - cursor: pointer; - width: 32px; - height: 32px; - background-color: #303342; - display: flex; - justify-content: center; - align-items: center; - border-radius: 8px; -`,ie=l.div` - position: absolute; - bottom: 0; - right: 0; - transform: translateY(10px) translateX(3px); - color: #6b7a8d; - line-height: 1; -`,re=()=>{const{close:t}=I("addEdgeToNode"),c=X({mode:"onChange"}),[p,d]=r.useState(!1),[a,f]=r.useState(""),[o,x]=r.useState(!1),[b,j]=r.useState(!1),[n,v]=r.useState(null),[s,u]=r.useState(),i=Y();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:m}=await E(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),C=m.find(B=>B.node_type==="topic");u(C)}}catch(m){console.error(m)}finally{j(!1)}}})()},[i]);const S=()=>{t()},w=async()=>{const g=s||i;if(!(!n||!(g!=null&&g.ref_id))){d(!0);try{await F({relationship:a,...o?{to:g.ref_id,from:n==null?void 0:n.ref_id}:{from:g.ref_id,to:n==null?void 0:n.ref_id}});const{ref_id:m}=g,{ref_id:C}=n;console.log(m,C),S()}catch(m){console.warn(m)}finally{d(!1)}}},y=p||!n||!a;return e.jsxs(H,{...c,children:[b?e.jsx(h,{align:"center",my:24,children:e.jsx(_,{color:T.lightGray,size:24})}):e.jsx(J,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:n,selectedType:a,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:y,onClick:w,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(_,{color:T.lightGray,size:12})})]})]})},le=l(R)` - width: 293px !important; - margin: 0 0 10px auto !important; -`,ce=l.span` - margin-top: 2px; -`,je=()=>{const{close:t}=I("addEdgeToNode");return e.jsx(z,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{je as AddNodeEdgeModal}; diff --git a/build/assets/index-8331965f.js b/build/assets/index-8331965f.js deleted file mode 100644 index 236b1257e..000000000 --- a/build/assets/index-8331965f.js +++ /dev/null @@ -1,74 +0,0 @@ -import{a7 as m,t as s,v as r,a5 as o,F as d,r as w,j as e}from"./index-b416b1a9.js";import{u as v,ai as y}from"./index-1f5ac1eb.js";const j=m` - 0% { - transform: scale(0.8); - } - - 100% { - transform: scale(1); - } -`,k=({kind:a="regular"})=>{switch(a){case"small":return o` - width: 370px; - `;case"large":return o` - width: 709px; - `;case"full":return o` - width: 100%; - height: 100%; - `;default:return o` - width: 520px; - `}},b=s(d)` - z-index: 2000; - margin: 0 auto; - animation: ${j} 0.2s ease-in-out; - position: relative; - max-width: 100%; - overflow: visible; - background: ${r}; - ${k}; - - @media (max-width: 1024px) { - height: auto; - max-height: 80%; - } - - @media (max-width: 768px) { - height: auto; - max-height: 80%; - } - - @media (max-width: 480px) { - height: auto; - max-height: 80%; - } -`,C=m` - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } -`,$=s(d)` - position: fixed; - width: 100%; - height: 100vh; - left: 0; - right: 0; - bottom: 0; - top: 0; - transition: all; - z-index: 1500; - animation: ${C} 0.2s ease-in-out; - padding: 1rem; - - ${({hideBg:a})=>!a&&o` - background-color: ${r.modalWhiteOverlayBg}; - `} -`,B=s(d)` - position: absolute; - top: 16px; - right: 16px; - font-size: 20px; - color: ${r.GRAY6}; - cursor: pointer; - z-index: 1; -`,M=({background:a="modalBg",children:x,id:l,hideBg:u,kind:p,preventOutsideClose:g,noWrap:c=!1,onClose:h})=>{const{visible:i,close:n}=v(l);return w.useEffect(()=>{const t=f=>{f.keyCode===27&&n()};return i&&document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[i,n]),i?e.jsx(e.Fragment,{children:e.jsx($,{align:"center","data-testid":"modal-overlay",hideBg:u,justify:"center",onClick:t=>{g||(t.stopPropagation(),n())},children:e.jsxs(b,{background:a,borderRadius:9,id:l,kind:p,onClick:t=>{t.stopPropagation()},px:c?0:20,py:c?0:20,children:[h&&e.jsx(B,{"data-testid":"close-modal",onClick:h,children:e.jsx(y,{})}),x]})})}):null};export{M as B}; diff --git a/build/assets/index-8344fca4.js b/build/assets/index-8344fca4.js deleted file mode 100644 index 9a1d9c9e7..000000000 --- a/build/assets/index-8344fca4.js +++ /dev/null @@ -1 +0,0 @@ -import"./index-b416b1a9.js";import{f as o}from"./index-1f5ac1eb.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; diff --git a/build/assets/index-9d4b2019.js b/build/assets/index-a01f56a3.js similarity index 96% rename from build/assets/index-9d4b2019.js rename to build/assets/index-a01f56a3.js index f65346ee7..f442f3fd4 100644 --- a/build/assets/index-9d4b2019.js +++ b/build/assets/index-a01f56a3.js @@ -1,4 +1,4 @@ -import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s as Qn,n as U$,i as dn,e as xo,u as Ty,_ as _u,f as Kn,h as Ay,m as Tu,a2 as z$,a3 as G$,a4 as iI,t as H,v as j,a5 as oI,K as Au,F as q,q as Mn,z as ds,a6 as sI,T as vt,a7 as q$,w as lr,y as Pt,A as lI,a8 as _i,a9 as At,aa as H$,g as St,J as uI,N as cI,ab as W$,ac as dI,M as V$,ad as pI,ae as fI,af as Ti,ag as Fe,R as Y,ah as Y$,ai as K$,aj as X$,ak as ku,al as Z$,am as Q$,an as J$,ao as ej,ap as hI,aq as tj,ar as Ou,as as nj,at as rj,au as aj,av as ix,C as ij,B as bn,aw as oj,ax as sj}from"./index-b416b1a9.js";import{w as wa,x as gI,y as Al,z as lj,G as bl,J as yl,K as Yc,L as mI,Q as uj,R as cj,U as dj,V as ox,W as vl,X as zr,Y as sx,Z as Hs,$ as ky,a0 as pj,a1 as fj,a2 as bI,a3 as hj,r as Oy,a4 as yI,i as Jn,T as Ai,a5 as Pr,a6 as vI,a7 as gj,a8 as ps,a9 as mj,aa as Iy,ab as Iu,ac as Ry,B as qt,ad as bj,ae as SI,af as xI,ag as yj,t as vj,ah as EI,ai as wI,aj as Sj,ak as xj,u as Ym,al as Ru,am as Ej,an as wj,ao as _j,ap as Tj,aq as Cy,ar as Aj,as as kj,at as Oj,P as Re,e as Kt,au as _I,av as Ij,aw as TI,ax as Rj,ay as Cj,az as Cu,aA as Nj,aB as Dj,aC as Lj,aD as Mj,aE as Pj,f as $j,aF as jj,aG as AI,aH as Fj}from"./index-1f5ac1eb.js";import{c as Bj,a as Kc,C as Nu}from"./ClipLoader-a0a9ce2c.js";import{S as kI}from"./Skeleton-0e0ce42e.js";import{u as OI,P as Ny,a as Uj,F as zj}from"./Stack-34a19487.js";import{S as Gj,F as lx,i as fs,g as Dn,t as qj,_ as II,a as Hj,b as Wj,c as Ta,d as Dy,e as Vj,f as Yj,h as Kj,j as hs,m as Xj,k as Zj,l as Qj,n as RI,o as Jj,p as eF}from"./map-8d3cef29.js";import{c as Ly}from"./createSvgIcon-23cd916d.js";import{B as tF}from"./index-8331965f.js";import{u as CI}from"./index-8344fca4.js";import{b as nF,a as rF,c as aF,d as iF}from"./index.esm-258646ab.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=gI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};lj(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Q=e.step)!=null?Q:void 0,disabled:r},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),EF=Ly(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wF=Ly(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Gj,{shouldForwardProp:e=>U$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=mI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=uj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),dj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=cj(()=>{O.current&&Xs(c,O.current,u)}),Z=mI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ge({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ge({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ge({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?z$(e.palette[t.color].main,.62):G$(e.palette[t.color].main,.5);return ge({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ge({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Uj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=gI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` +import{ac as aI,ad as qa,Q as ax,ae as B$,r as F,af as iI,l as Al,m as U$,p as bl,e as ge,j as y,d as wy,c as _y,s as Qn,ag as z$,k as dn,f as xo,u as Ty,a as _u,h as Kn,i as Ay,q as Tu,ah as G$,ai as q$,aj as oI,w as H,x as j,ak as sI,al as ky,X as Au,F as q,a1 as H$,v as Mn,E as ds,am as lI,a3 as W$,H as vt,an as V$,y as lr,D as Pt,G as uI,ao as _i,ap as At,aq as Y$,g as St,z as qt,V as cI,a0 as dI,C as pI,ar as K$,as as fI,M as Ym,at as X$,Z as Z$,au as hI,av as gI,aw as Ti,ax as Fe,b as Y,ay as Q$,az as J$,aA as ej,aB as ku,aC as tj,aD as nj,aE as rj,aF as aj,aG as mI,aH as ij,aI as Ou,aJ as oj,aK as sj,aL as lj,aM as uj,aa as cj,aN as ix,K as dj,aO as pj,aP as fj,J as hj,I as bn,aQ as gj,aR as mj}from"./index-bde6e5ef.js";import{x as wa,y as yl,z as Yc,B as bI,G as bj,J as yj,K as vj,L as ox,Q as vl,U as zr,V as sx,W as Hs,X as yI,Y as Sj,s as Oy,Z as vI,h as Jn,T as Ai,$ as Pr,a0 as SI,a1 as xj,a2 as ps,a3 as Ej,a4 as Iy,a5 as Iu,a6 as Ry,a7 as wj,a8 as xI,a9 as EI,aa as _j,v as Tj,ab as wI,ac as Aj,ad as kj,ae as Ru,af as Oj,ag as Ij,ah as Rj,ai as Cj,aj as Cy,ak as Nj,al as Dj,am as Lj,P as Re,u as Kt,an as _I,ao as Mj,ap as TI,aq as Pj,ar as Cu,as as $j,at as jj,au as Fj,av as Bj,aw as Uj,e as zj,ax as Gj,ay as AI,az as qj}from"./index-5c574277.js";import{c as Hj,a as Kc,C as Nu}from"./ClipLoader-2c26140d.js";import{S as kI}from"./Skeleton-1ccdf5c1.js";import{u as OI,P as Ny,a as Wj,F as Vj}from"./Stack-06c1211e.js";import{S as Yj,F as lx,i as fs,g as Dn,t as Kj,_ as II,a as Xj,b as Zj,c as Ta,d as Dy,e as Qj,f as Jj,h as eF,j as hs,m as tF,k as nF,l as rF,n as RI,o as aF,p as iF}from"./map-3259c6de.js";import{c as Ly}from"./createSvgIcon-016a2106.js";import{u as CI}from"./index-2a7ba5ab.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=iI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};U$(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Q=e.step)!=null?Q:void 0,disabled:r},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),EF=Ly(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wF=Ly(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Yj,{shouldForwardProp:e=>z$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=bI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=bj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),vj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=yj(()=>{O.current&&Xs(c,O.current,u)}),Z=bI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ge({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ge({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ge({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?G$(e.palette[t.color].main,.62):q$(e.palette[t.color].main,.5);return ge({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ge({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>oI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>oI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Wj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=iI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -34,14 +34,14 @@ import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s color: ${j.GRAY7}; } - ${({loading:e})=>e&&oI` + ${({loading:e})=>e&&sI` background-image: url('https://i.gifer.com/ZZ5H.gif'); background-size: 25px 25px; background-position: right center; background-position-x: 95%; background-repeat: no-repeat; `} -`,LI=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:a}=ky(),i=a("search"),o=Au();return y.jsx(b2,{...r("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(n){n();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},y2=()=>{const e=pj({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Mn(s=>s),{setBudget:r}=ds(s=>s),{reset:a}=e,i=sI(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),a({search:""}))});return y.jsx(MI,{children:y.jsx(fj,{...e,children:y.jsxs(v2,{children:[y.jsx(LI,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(S2,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?y.jsx(x2,{color:j.lightGray,"data-testid":"loader",size:"20"}):y.jsx(bI,{})})]})})})},MI=H(q)` +`,LI=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:a}=ky(),i=a("search"),o=Au();return y.jsx(b2,{...r("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(n){n();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},y2=()=>{const e=H$({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Mn(s=>s),{setBudget:r}=ds(s=>s),{reset:a}=e,i=lI(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),a({search:""}))});return y.jsx(MI,{children:y.jsx(W$,{...e,children:y.jsxs(v2,{children:[y.jsx(LI,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(S2,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?y.jsx(x2,{color:j.lightGray,"data-testid":"loader",size:"20"}):y.jsx(yI,{})})]})})})},MI=H(q)` position: sticky; bottom: 0; padding: 12px; @@ -135,7 +135,7 @@ import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s height: 4px; background: ${j.GRAY6}; } -`;const _2=q$` +`;const _2=V$` 0% { background-color: ${j.SECONDARY_BLUE}; color: white; @@ -188,7 +188,7 @@ import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s font-size: 14px; font-weight: 400; line-height: 19.6px; -`,C2=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:a,setAbortRequests:i}=Mn(S=>S),{setBudget:o}=ds(S=>S),[s,l]=F.useState(""),[u,c]=F.useState(t),[p,f]=F.useState(!0);F.useEffect(()=>{let S;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(S);f(!0),n()}},[e,s,n,r]),F.useEffect(()=>{s||r&&l(e)},[e,s,r]);const h=S=>{a(o,i,S)};F.useEffect(()=>{t&&u!==t&&c(t)},[t,u]);const m=()=>{f(!1)},b=A2(s,h,u,p);return y.jsx(I2,{onMouseMove:m,children:y.jsx(R2,{children:b})})},N2=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Mn(o=>o),[r]=ds(o=>[o.setBudget]),a=sI(),i=o=>{a||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs($2,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(L2,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(hj,{})}),y.jsx(M2,{children:"More on this"})]})}),y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(q,{children:e.map(o=>y.jsxs(P2,{align:"center",className:lr({disabled:a}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[y.jsx("span",{children:o}),y.jsx(q,{className:lr({disabled:a},"icon"),children:y.jsx(Oy,{})})]},o))})})]}):null},D2=F.memo(N2),L2=H(q)` +`,C2=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:a,setAbortRequests:i}=Mn(S=>S),{setBudget:o}=ds(S=>S),[s,l]=F.useState(""),[u,c]=F.useState(t),[p,f]=F.useState(!0);F.useEffect(()=>{let S;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(S);f(!0),n()}},[e,s,n,r]),F.useEffect(()=>{s||r&&l(e)},[e,s,r]);const h=S=>{a(o,i,S)};F.useEffect(()=>{t&&u!==t&&c(t)},[t,u]);const m=()=>{f(!1)},b=A2(s,h,u,p);return y.jsx(I2,{onMouseMove:m,children:y.jsx(R2,{children:b})})},N2=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Mn(o=>o),[r]=ds(o=>[o.setBudget]),a=lI(),i=o=>{a||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs($2,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(L2,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(Sj,{})}),y.jsx(M2,{children:"More on this"})]})}),y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(q,{children:e.map(o=>y.jsxs(P2,{align:"center",className:lr({disabled:a}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[y.jsx("span",{children:o}),y.jsx(q,{className:lr({disabled:a},"icon"),children:y.jsx(Oy,{})})]},o))})})]}):null},D2=F.memo(N2),L2=H(q)` &.heading { font-weight: 600; color: ${j.white}; @@ -256,7 +256,7 @@ import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s margin: 0; border-radius: 3px; color: inherit; -`,Lu=({amt:e})=>y.jsxs(F2,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(yI,{})}),y.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),y.jsx("div",{className:"text",children:"sat"})]}),F2=H(q)` +`,Lu=({amt:e})=>y.jsxs(F2,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(vI,{})}),y.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),y.jsx("div",{className:"text",children:"sat"})]}),F2=H(q)` font-size: 13px; font-style: normal; font-weight: 500; @@ -277,7 +277,7 @@ import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s margin: 0 4px 0 8px; color: ${j.white}; } -`,B2=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,newName:i,sourceLink:o,node:s})=>{var T,_;const l=Pt(x=>x.currentSearch),{getNodeKeysByType:u}=lI(x=>x),p=ur(String(a==="show"?"":r),l),f=a?(u(a)||"").split("-"):[],{properties:h={}}=s,[m=""]=f.map(x=>h[x]||""),S=ur(String(m||i),l);return y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[n&&y.jsx(q,{align:"center",pr:16,children:y.jsx(Jn,{size:80,src:n,type:a||""})}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:a&&y.jsx(Ai,{type:a})}),o&&y.jsx(z2,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:x=>x.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),S&&y.jsx(fx,{"data-testid":"episode-name",children:S}),((T=s==null?void 0:s.properties)==null?void 0:T.summary)&&y.jsx(fx,{"data-testid":"episode-description",children:(_=s==null?void 0:s.properties)==null?void 0:_.summary}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx($I,{children:_i.unix(t).fromNow()}),!!p&&y.jsx(U2,{children:p}),e>0&&y.jsx(q,{style:{marginLeft:"auto"},children:y.jsx(Lu,{amt:e})})]})]})]})},fx=H(q)` +`,B2=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,newName:i,sourceLink:o,node:s})=>{var T,_;const l=Pt(x=>x.currentSearch),{getNodeKeysByType:u}=uI(x=>x),p=ur(String(a==="show"?"":r),l),f=a?(u(a)||"").split("-"):[],{properties:h={}}=s,[m=""]=f.map(x=>h[x]||""),S=ur(String(m||i),l);return y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[n&&y.jsx(q,{align:"center",pr:16,children:y.jsx(Jn,{size:80,src:n,type:a||""})}),y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:a&&y.jsx(Ai,{type:a})}),o&&y.jsx(z2,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:x=>x.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),S&&y.jsx(fx,{"data-testid":"episode-name",children:S}),((T=s==null?void 0:s.properties)==null?void 0:T.summary)&&y.jsx(fx,{"data-testid":"episode-description",children:(_=s==null?void 0:s.properties)==null?void 0:_.summary}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx($I,{children:_i.unix(t).fromNow()}),!!p&&y.jsx(U2,{children:p}),e>0&&y.jsx(q,{style:{marginLeft:"auto"},children:y.jsx(Lu,{amt:e})})]})]})]})},fx=H(q)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -390,8 +390,8 @@ import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s `;var jI={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(At,function(){var n;function r(){return n.apply(null,arguments)}function a(d){n=d}function i(d){return d instanceof Array||Object.prototype.toString.call(d)==="[object Array]"}function o(d){return d!=null&&Object.prototype.toString.call(d)==="[object Object]"}function s(d,g){return Object.prototype.hasOwnProperty.call(d,g)}function l(d){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(d).length===0;var g;for(g in d)if(s(d,g))return!1;return!0}function u(d){return d===void 0}function c(d){return typeof d=="number"||Object.prototype.toString.call(d)==="[object Number]"}function p(d){return d instanceof Date||Object.prototype.toString.call(d)==="[object Date]"}function f(d,g){var w=[],k,I=d.length;for(k=0;k>>0,k;for(k=0;k0)for(w=0;w=0;return(U?w?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+k}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},ye={};function re(d,g,w,k){var I=k;typeof k=="string"&&(I=function(){return this[k]()}),d&&(ye[d]=I),g&&(ye[g[0]]=function(){return D(I.apply(this,arguments),g[1],g[2])}),w&&(ye[w]=function(){return this.localeData().ordinal(I.apply(this,arguments),d)})}function Se(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function je(d){var g=d.match(ie),w,k;for(w=0,k=g.length;w=0&&ne.test(d);)d=d.replace(ne,k),ne.lastIndex=0,w-=1;return d}var de={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ce(d){var g=this._longDateFormat[d],w=this._longDateFormat[d.toUpperCase()];return g||!w?g:(this._longDateFormat[d]=w.match(ie).map(function(k){return k==="MMMM"||k==="MM"||k==="DD"||k==="dddd"?k.slice(1):k}).join(""),this._longDateFormat[d])}var ee="Invalid date";function _e(){return this._invalidDate}var me="%d",ve=/\d{1,2}/;function Ue(d){return this._ordinal.replace("%d",d)}var at={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Je(d,g,w,k){var I=this._relativeTime[w];return z(I)?I(d,g,w,k):I.replace(/%d/i,d)}function Ht(d,g){var w=this._relativeTime[d>0?"future":"past"];return z(w)?w(g):w.replace(/%s/i,g)}var ze={};function Ge(d,g){var w=d.toLowerCase();ze[w]=ze[w+"s"]=ze[g]=d}function Xe(d){return typeof d=="string"?ze[d]||ze[d.toLowerCase()]:void 0}function Ft(d){var g={},w,k;for(k in d)s(d,k)&&(w=Xe(k),w&&(g[w]=d[k]));return g}var Wt={};function B(d,g){Wt[d]=g}function Q(d){var g=[],w;for(w in d)s(d,w)&&g.push({unit:w,priority:Wt[w]});return g.sort(function(k,I){return k.priority-I.priority}),g}function oe(d){return d%4===0&&d%100!==0||d%400===0}function pe(d){return d<0?Math.ceil(d)||0:Math.floor(d)}function ue(d){var g=+d,w=0;return g!==0&&isFinite(g)&&(w=pe(g)),w}function ke(d,g){return function(w){return w!=null?(Ie(this,d,w),r.updateOffset(this,g),this):Ae(this,d)}}function Ae(d,g){return d.isValid()?d._d["get"+(d._isUTC?"UTC":"")+g]():NaN}function Ie(d,g,w){d.isValid()&&!isNaN(w)&&(g==="FullYear"&&oe(d.year())&&d.month()===1&&d.date()===29?(w=ue(w),d._d["set"+(d._isUTC?"UTC":"")+g](w,d.month(),Ds(w,d.month()))):d._d["set"+(d._isUTC?"UTC":"")+g](w))}function We(d){return d=Xe(d),z(this[d])?this[d]():this}function xt(d,g){if(typeof d=="object"){d=Ft(d);var w=Q(d),k,I=w.length;for(k=0;k68?1900:2e3)};var AS=ke("FullYear",!0);function _L(){return oe(this.year())}function TL(d,g,w,k,I,U,J){var xe;return d<100&&d>=0?(xe=new Date(d+400,g,w,k,I,U,J),isFinite(xe.getFullYear())&&xe.setFullYear(d)):xe=new Date(d,g,w,k,I,U,J),xe}function Pi(d){var g,w;return d<100&&d>=0?(w=Array.prototype.slice.call(arguments),w[0]=d+400,g=new Date(Date.UTC.apply(null,w)),isFinite(g.getUTCFullYear())&&g.setUTCFullYear(d)):g=new Date(Date.UTC.apply(null,arguments)),g}function Ls(d,g,w){var k=7+g-w,I=(7+Pi(d,0,k).getUTCDay()-g)%7;return-I+k-1}function kS(d,g,w,k,I){var U=(7+w-k)%7,J=Ls(d,k,I),xe=1+7*(g-1)+U+J,Ne,tt;return xe<=0?(Ne=d-1,tt=Mi(Ne)+xe):xe>Mi(d)?(Ne=d+1,tt=xe-Mi(d)):(Ne=d,tt=xe),{year:Ne,dayOfYear:tt}}function $i(d,g,w){var k=Ls(d.year(),g,w),I=Math.floor((d.dayOfYear()-k-1)/7)+1,U,J;return I<1?(J=d.year()-1,U=I+Sr(J,g,w)):I>Sr(d.year(),g,w)?(U=I-Sr(d.year(),g,w),J=d.year()+1):(J=d.year(),U=I),{week:U,year:J}}function Sr(d,g,w){var k=Ls(d,g,w),I=Ls(d+1,g,w);return(Mi(d)-k+I)/7}re("w",["ww",2],"wo","week"),re("W",["WW",2],"Wo","isoWeek"),Ge("week","w"),Ge("isoWeek","W"),B("week",5),B("isoWeek",5),he("w",Ze),he("ww",Ze,Le),he("W",Ze),he("WW",Ze,Le),gn(["w","ww","W","WW"],function(d,g,w,k){g[k.substr(0,1)]=ue(d)});function AL(d){return $i(d,this._week.dow,this._week.doy).week}var kL={dow:0,doy:6};function OL(){return this._week.dow}function IL(){return this._week.doy}function RL(d){var g=this.localeData().week(this);return d==null?g:this.add((d-g)*7,"d")}function CL(d){var g=$i(this,1,4).week;return d==null?g:this.add((d-g)*7,"d")}re("d",0,"do","day"),re("dd",0,0,function(d){return this.localeData().weekdaysMin(this,d)}),re("ddd",0,0,function(d){return this.localeData().weekdaysShort(this,d)}),re("dddd",0,0,function(d){return this.localeData().weekdays(this,d)}),re("e",0,0,"weekday"),re("E",0,0,"isoWeekday"),Ge("day","d"),Ge("weekday","e"),Ge("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),he("d",Ze),he("e",Ze),he("E",Ze),he("dd",function(d,g){return g.weekdaysMinRegex(d)}),he("ddd",function(d,g){return g.weekdaysShortRegex(d)}),he("dddd",function(d,g){return g.weekdaysRegex(d)}),gn(["dd","ddd","dddd"],function(d,g,w,k){var I=w._locale.weekdaysParse(d,k,w._strict);I!=null?g.d=I:S(w).invalidWeekday=d}),gn(["d","e","E"],function(d,g,w,k){g[k]=ue(d)});function NL(d,g){return typeof d!="string"?d:isNaN(d)?(d=g.weekdaysParse(d),typeof d=="number"?d:null):parseInt(d,10)}function DL(d,g){return typeof d=="string"?g.weekdaysParse(d)%7||7:isNaN(d)?null:d}function Cc(d,g){return d.slice(g,7).concat(d.slice(0,g))}var LL="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),OS="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ML="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),PL=Gn,$L=Gn,jL=Gn;function FL(d,g){var w=i(this._weekdays)?this._weekdays:this._weekdays[d&&d!==!0&&this._weekdays.isFormat.test(g)?"format":"standalone"];return d===!0?Cc(w,this._week.dow):d?w[d.day()]:w}function BL(d){return d===!0?Cc(this._weekdaysShort,this._week.dow):d?this._weekdaysShort[d.day()]:this._weekdaysShort}function UL(d){return d===!0?Cc(this._weekdaysMin,this._week.dow):d?this._weekdaysMin[d.day()]:this._weekdaysMin}function zL(d,g,w){var k,I,U,J=d.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],k=0;k<7;++k)U=m([2e3,1]).day(k),this._minWeekdaysParse[k]=this.weekdaysMin(U,"").toLocaleLowerCase(),this._shortWeekdaysParse[k]=this.weekdaysShort(U,"").toLocaleLowerCase(),this._weekdaysParse[k]=this.weekdays(U,"").toLocaleLowerCase();return w?g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1?I:null):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null):(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null):g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1||(I=Et.call(this._shortWeekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):(I=Et.call(this._minWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null))}function GL(d,g,w){var k,I,U;if(this._weekdaysParseExact)return zL.call(this,d,g,w);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),k=0;k<7;k++){if(I=m([2e3,1]).day(k),w&&!this._fullWeekdaysParse[k]&&(this._fullWeekdaysParse[k]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[k]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[k]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[k]||(U="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[k]=new RegExp(U.replace(".",""),"i")),w&&g==="dddd"&&this._fullWeekdaysParse[k].test(d))return k;if(w&&g==="ddd"&&this._shortWeekdaysParse[k].test(d))return k;if(w&&g==="dd"&&this._minWeekdaysParse[k].test(d))return k;if(!w&&this._weekdaysParse[k].test(d))return k}}function qL(d){if(!this.isValid())return d!=null?this:NaN;var g=this._isUTC?this._d.getUTCDay():this._d.getDay();return d!=null?(d=NL(d,this.localeData()),this.add(d-g,"d")):g}function HL(d){if(!this.isValid())return d!=null?this:NaN;var g=(this.day()+7-this.localeData()._week.dow)%7;return d==null?g:this.add(d-g,"d")}function WL(d){if(!this.isValid())return d!=null?this:NaN;if(d!=null){var g=DL(d,this.localeData());return this.day(this.day()%7?g:g-7)}else return this.day()||7}function VL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=PL),this._weekdaysStrictRegex&&d?this._weekdaysStrictRegex:this._weekdaysRegex)}function YL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$L),this._weekdaysShortStrictRegex&&d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function KL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jL),this._weekdaysMinStrictRegex&&d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nc(){function d(Jt,Tr){return Tr.length-Jt.length}var g=[],w=[],k=[],I=[],U,J,xe,Ne,tt;for(U=0;U<7;U++)J=m([2e3,1]).day(U),xe=mt(this.weekdaysMin(J,"")),Ne=mt(this.weekdaysShort(J,"")),tt=mt(this.weekdays(J,"")),g.push(xe),w.push(Ne),k.push(tt),I.push(xe),I.push(Ne),I.push(tt);g.sort(d),w.sort(d),k.sort(d),I.sort(d),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Dc(){return this.hours()%12||12}function XL(){return this.hours()||24}re("H",["HH",2],0,"hour"),re("h",["hh",2],0,Dc),re("k",["kk",2],0,XL),re("hmm",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)}),re("hmmss",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),re("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),re("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)});function IS(d,g){re(d,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),g)})}IS("a",!0),IS("A",!1),Ge("hour","h"),B("hour",13);function RS(d,g){return g._meridiemParse}he("a",RS),he("A",RS),he("H",Ze),he("h",Ze),he("k",Ze),he("HH",Ze,Le),he("hh",Ze,Le),he("kk",Ze,Le),he("hmm",ia),he("hmmss",br),he("Hmm",ia),he("Hmmss",br),Me(["H","HH"],st),Me(["k","kk"],function(d,g,w){var k=ue(d);g[st]=k===24?0:k}),Me(["a","A"],function(d,g,w){w._isPm=w._locale.isPM(d),w._meridiem=d}),Me(["h","hh"],function(d,g,w){g[st]=ue(d),S(w).bigHour=!0}),Me("hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k)),S(w).bigHour=!0}),Me("hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I)),S(w).bigHour=!0}),Me("Hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k))}),Me("Hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I))});function ZL(d){return(d+"").toLowerCase().charAt(0)==="p"}var QL=/[ap]\.?m?\.?/i,JL=ke("Hours",!0);function eM(d,g,w){return d>11?w?"pm":"PM":w?"am":"AM"}var CS={calendar:W,longDateFormat:de,invalidDate:ee,ordinal:me,dayOfMonthOrdinalParse:ve,relativeTime:at,months:hL,monthsShort:xS,week:kL,weekdays:LL,weekdaysMin:ML,weekdaysShort:OS,meridiemParse:QL},ht={},ji={},Fi;function tM(d,g){var w,k=Math.min(d.length,g.length);for(w=0;w0;){if(I=Ms(U.slice(0,w).join("-")),I)return I;if(k&&k.length>=w&&tM(U,k)>=w-1)break;w--}g++}return Fi}function rM(d){return d.match("^[^/\\\\]*$")!=null}function Ms(d){var g=null,w;if(ht[d]===void 0&&e&&e.exports&&rM(d))try{g=Fi._abbr,w=H$,w("./locale/"+d),Fr(g)}catch{ht[d]=null}return ht[d]}function Fr(d,g){var w;return d&&(u(g)?w=xr(d):w=Lc(d,g),w?Fi=w:typeof console<"u"&&console.warn&&console.warn("Locale "+d+" not found. Did you forget to load it?")),Fi._abbr}function Lc(d,g){if(g!==null){var w,k=CS;if(g.abbr=d,ht[d]!=null)P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),k=ht[d]._config;else if(g.parentLocale!=null)if(ht[g.parentLocale]!=null)k=ht[g.parentLocale]._config;else if(w=Ms(g.parentLocale),w!=null)k=w._config;else return ji[g.parentLocale]||(ji[g.parentLocale]=[]),ji[g.parentLocale].push({name:d,config:g}),null;return ht[d]=new K(G(k,g)),ji[d]&&ji[d].forEach(function(I){Lc(I.name,I.config)}),Fr(d),ht[d]}else return delete ht[d],null}function aM(d,g){if(g!=null){var w,k,I=CS;ht[d]!=null&&ht[d].parentLocale!=null?ht[d].set(G(ht[d]._config,g)):(k=Ms(d),k!=null&&(I=k._config),g=G(I,g),k==null&&(g.abbr=d),w=new K(g),w.parentLocale=ht[d],ht[d]=w),Fr(d)}else ht[d]!=null&&(ht[d].parentLocale!=null?(ht[d]=ht[d].parentLocale,d===Fr()&&Fr(d)):ht[d]!=null&&delete ht[d]);return ht[d]}function xr(d){var g;if(d&&d._locale&&d._locale._abbr&&(d=d._locale._abbr),!d)return Fi;if(!i(d)){if(g=Ms(d),g)return g;d=[d]}return nM(d)}function iM(){return X(ht)}function Mc(d){var g,w=d._a;return w&&S(d).overflow===-2&&(g=w[Qe]<0||w[Qe]>11?Qe:w[Bt]<1||w[Bt]>Ds(w[Ce],w[Qe])?Bt:w[st]<0||w[st]>24||w[st]===24&&(w[bt]!==0||w[qn]!==0||w[vr]!==0)?st:w[bt]<0||w[bt]>59?bt:w[qn]<0||w[qn]>59?qn:w[vr]<0||w[vr]>999?vr:-1,S(d)._overflowDayOfYear&&(gBt)&&(g=Bt),S(d)._overflowWeeks&&g===-1&&(g=Pe),S(d)._overflowWeekday&&g===-1&&(g=Qt),S(d).overflow=g),d}var oM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lM=/Z|[+-]\d\d(?::?\d\d)?/,Ps=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Pc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uM=/^\/?Date\((-?\d+)/i,cM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function DS(d){var g,w,k=d._i,I=oM.exec(k)||sM.exec(k),U,J,xe,Ne,tt=Ps.length,Jt=Pc.length;if(I){for(S(d).iso=!0,g=0,w=tt;gMi(J)||d._dayOfYear===0)&&(S(d)._overflowDayOfYear=!0),w=Pi(J,0,d._dayOfYear),d._a[Qe]=w.getUTCMonth(),d._a[Bt]=w.getUTCDate()),g=0;g<3&&d._a[g]==null;++g)d._a[g]=k[g]=I[g];for(;g<7;g++)d._a[g]=k[g]=d._a[g]==null?g===2?1:0:d._a[g];d._a[st]===24&&d._a[bt]===0&&d._a[qn]===0&&d._a[vr]===0&&(d._nextDay=!0,d._a[st]=0),d._d=(d._useUTC?Pi:TL).apply(null,k),U=d._useUTC?d._d.getUTCDay():d._d.getDay(),d._tzm!=null&&d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),d._nextDay&&(d._a[st]=24),d._w&&typeof d._w.d<"u"&&d._w.d!==U&&(S(d).weekdayMismatch=!0)}}function vM(d){var g,w,k,I,U,J,xe,Ne,tt;g=d._w,g.GG!=null||g.W!=null||g.E!=null?(U=1,J=4,w=Da(g.GG,d._a[Ce],$i(dt(),1,4).year),k=Da(g.W,1),I=Da(g.E,1),(I<1||I>7)&&(Ne=!0)):(U=d._locale._week.dow,J=d._locale._week.doy,tt=$i(dt(),U,J),w=Da(g.gg,d._a[Ce],tt.year),k=Da(g.w,tt.week),g.d!=null?(I=g.d,(I<0||I>6)&&(Ne=!0)):g.e!=null?(I=g.e+U,(g.e<0||g.e>6)&&(Ne=!0)):I=U),k<1||k>Sr(w,U,J)?S(d)._overflowWeeks=!0:Ne!=null?S(d)._overflowWeekday=!0:(xe=kS(w,k,I,U,J),d._a[Ce]=xe.year,d._dayOfYear=xe.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function jc(d){if(d._f===r.ISO_8601){DS(d);return}if(d._f===r.RFC_2822){LS(d);return}d._a=[],S(d).empty=!0;var g=""+d._i,w,k,I,U,J,xe=g.length,Ne=0,tt,Jt;for(I=ae(d._f,d._locale).match(ie)||[],Jt=I.length,w=0;w0&&S(d).unusedInput.push(J),g=g.slice(g.indexOf(k)+k.length),Ne+=k.length),ye[U]?(k?S(d).empty=!1:S(d).unusedTokens.push(U),Na(U,k,d)):d._strict&&!k&&S(d).unusedTokens.push(U);S(d).charsLeftOver=xe-Ne,g.length>0&&S(d).unusedInput.push(g),d._a[st]<=12&&S(d).bigHour===!0&&d._a[st]>0&&(S(d).bigHour=void 0),S(d).parsedDateParts=d._a.slice(0),S(d).meridiem=d._meridiem,d._a[st]=SM(d._locale,d._a[st],d._meridiem),tt=S(d).era,tt!==null&&(d._a[Ce]=d._locale.erasConvertYear(tt,d._a[Ce])),$c(d),Mc(d)}function SM(d,g,w){var k;return w==null?g:d.meridiemHour!=null?d.meridiemHour(g,w):(d.isPM!=null&&(k=d.isPM(w),k&&g<12&&(g+=12),!k&&g===12&&(g=0)),g)}function xM(d){var g,w,k,I,U,J,xe=!1,Ne=d._f.length;if(Ne===0){S(d).invalidFormat=!0,d._d=new Date(NaN);return}for(I=0;Ithis?this:d:x()});function $S(d,g){var w,k;if(g.length===1&&i(g[0])&&(g=g[0]),!g.length)return dt();for(w=g[0],k=1;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zM(){if(!u(this._isDSTShifted))return this._isDSTShifted;var d={},g;return v(d,this),d=MS(d),d._a?(g=d._isUTC?m(d._a):dt(d._a),this._isDSTShifted=this.isValid()&&DM(d._a,g.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GM(){return this.isValid()?!this._isUTC:!1}function qM(){return this.isValid()?this._isUTC:!1}function FS(){return this.isValid()?this._isUTC&&this._offset===0:!1}var HM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,WM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hn(d,g){var w=d,k=null,I,U,J;return js(d)?w={ms:d._milliseconds,d:d._days,M:d._months}:c(d)||!isNaN(+d)?(w={},g?w[g]=+d:w.milliseconds=+d):(k=HM.exec(d))?(I=k[1]==="-"?-1:1,w={y:0,d:ue(k[Bt])*I,h:ue(k[st])*I,m:ue(k[bt])*I,s:ue(k[qn])*I,ms:ue(Fc(k[vr]*1e3))*I}):(k=WM.exec(d))?(I=k[1]==="-"?-1:1,w={y:ua(k[2],I),M:ua(k[3],I),w:ua(k[4],I),d:ua(k[5],I),h:ua(k[6],I),m:ua(k[7],I),s:ua(k[8],I)}):w==null?w={}:typeof w=="object"&&("from"in w||"to"in w)&&(J=VM(dt(w.from),dt(w.to)),w={},w.ms=J.milliseconds,w.M=J.months),U=new $s(w),js(d)&&s(d,"_locale")&&(U._locale=d._locale),js(d)&&s(d,"_isValid")&&(U._isValid=d._isValid),U}Hn.fn=$s.prototype,Hn.invalid=NM;function ua(d,g){var w=d&&parseFloat(d.replace(",","."));return(isNaN(w)?0:w)*g}function BS(d,g){var w={};return w.months=g.month()-d.month()+(g.year()-d.year())*12,d.clone().add(w.months,"M").isAfter(g)&&--w.months,w.milliseconds=+g-+d.clone().add(w.months,"M"),w}function VM(d,g){var w;return d.isValid()&&g.isValid()?(g=Uc(g,d),d.isBefore(g)?w=BS(d,g):(w=BS(g,d),w.milliseconds=-w.milliseconds,w.months=-w.months),w):{milliseconds:0,months:0}}function US(d,g){return function(w,k){var I,U;return k!==null&&!isNaN(+k)&&(P(g,"moment()."+g+"(period, number) is deprecated. Please use moment()."+g+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),U=w,w=k,k=U),I=Hn(w,k),zS(this,I,d),this}}function zS(d,g,w,k){var I=g._milliseconds,U=Fc(g._days),J=Fc(g._months);d.isValid()&&(k=k??!0,J&&wS(d,Ae(d,"Month")+J*w),U&&Ie(d,"Date",Ae(d,"Date")+U*w),I&&d._d.setTime(d._d.valueOf()+I*w),k&&r.updateOffset(d,U||J))}var YM=US(1,"add"),KM=US(-1,"subtract");function GS(d){return typeof d=="string"||d instanceof String}function XM(d){return R(d)||p(d)||GS(d)||c(d)||QM(d)||ZM(d)||d===null||d===void 0}function ZM(d){var g=o(d)&&!l(d),w=!1,k=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,U,J=k.length;for(I=0;Iw.valueOf():w.valueOf()9999?we(w,g?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?g?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",we(w,"Z")):we(w,g?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pP(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var d="moment",g="",w,k,I,U;return this.isLocal()||(d=this.utcOffset()===0?"moment.utc":"moment.parseZone",g="Z"),w="["+d+'("]',k=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",U=g+'[")]',this.format(w+k+I+U)}function fP(d){d||(d=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var g=we(this,d);return this.localeData().postformat(g)}function hP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({to:this,from:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function gP(d){return this.from(dt(),d)}function mP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({from:this,to:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function bP(d){return this.to(dt(),d)}function qS(d){var g;return d===void 0?this._locale._abbr:(g=xr(d),g!=null&&(this._locale=g),this)}var HS=$("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(d){return d===void 0?this.localeData():this.locale(d)});function WS(){return this._locale}var Bs=1e3,La=60*Bs,Us=60*La,VS=(365*400+97)*24*Us;function Ma(d,g){return(d%g+g)%g}function YS(d,g,w){return d<100&&d>=0?new Date(d+400,g,w)-VS:new Date(d,g,w).valueOf()}function KS(d,g,w){return d<100&&d>=0?Date.UTC(d+400,g,w)-VS:Date.UTC(d,g,w)}function yP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year(),0,1);break;case"quarter":g=w(this.year(),this.month()-this.month()%3,1);break;case"month":g=w(this.year(),this.month(),1);break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":g=w(this.year(),this.month(),this.date());break;case"hour":g=this._d.valueOf(),g-=Ma(g+(this._isUTC?0:this.utcOffset()*La),Us);break;case"minute":g=this._d.valueOf(),g-=Ma(g,La);break;case"second":g=this._d.valueOf(),g-=Ma(g,Bs);break}return this._d.setTime(g),r.updateOffset(this,!0),this}function vP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year()+1,0,1)-1;break;case"quarter":g=w(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":g=w(this.year(),this.month()+1,1)-1;break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":g=w(this.year(),this.month(),this.date()+1)-1;break;case"hour":g=this._d.valueOf(),g+=Us-Ma(g+(this._isUTC?0:this.utcOffset()*La),Us)-1;break;case"minute":g=this._d.valueOf(),g+=La-Ma(g,La)-1;break;case"second":g=this._d.valueOf(),g+=Bs-Ma(g,Bs)-1;break}return this._d.setTime(g),r.updateOffset(this,!0),this}function SP(){return this._d.valueOf()-(this._offset||0)*6e4}function xP(){return Math.floor(this.valueOf()/1e3)}function EP(){return new Date(this.valueOf())}function wP(){var d=this;return[d.year(),d.month(),d.date(),d.hour(),d.minute(),d.second(),d.millisecond()]}function _P(){var d=this;return{years:d.year(),months:d.month(),date:d.date(),hours:d.hours(),minutes:d.minutes(),seconds:d.seconds(),milliseconds:d.milliseconds()}}function TP(){return this.isValid()?this.toISOString():null}function AP(){return _(this)}function kP(){return h({},S(this))}function OP(){return S(this).overflow}function IP(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}re("N",0,0,"eraAbbr"),re("NN",0,0,"eraAbbr"),re("NNN",0,0,"eraAbbr"),re("NNNN",0,0,"eraName"),re("NNNNN",0,0,"eraNarrow"),re("y",["y",1],"yo","eraYear"),re("y",["yy",2],0,"eraYear"),re("y",["yyy",3],0,"eraYear"),re("y",["yyyy",4],0,"eraYear"),he("N",Gc),he("NN",Gc),he("NNN",Gc),he("NNNN",BP),he("NNNNN",UP),Me(["N","NN","NNN","NNNN","NNNNN"],function(d,g,w,k){var I=w._locale.erasParse(d,k,w._strict);I?S(w).era=I:S(w).invalidEra=d}),he("y",Un),he("yy",Un),he("yyy",Un),he("yyyy",Un),he("yo",zP),Me(["y","yy","yyy","yyyy"],Ce),Me(["yo"],function(d,g,w,k){var I;w._locale._eraYearOrdinalRegex&&(I=d.match(w._locale._eraYearOrdinalRegex)),w._locale.eraYearOrdinalParse?g[Ce]=w._locale.eraYearOrdinalParse(d,I):g[Ce]=parseInt(d,10)});function RP(d,g){var w,k,I,U=this._eras||xr("en")._eras;for(w=0,k=U.length;w=0)return U[k]}function NP(d,g){var w=d.since<=d.until?1:-1;return g===void 0?r(d.since).year():r(d.since).year()+(g-d.offset)*w}function DP(){var d,g,w,k=this.localeData().eras();for(d=0,g=k.length;dU&&(g=U),KP.call(this,d,g,w,k,I))}function KP(d,g,w,k,I){var U=kS(d,g,w,k,I),J=Pi(U.year,0,U.dayOfYear);return this.year(J.getUTCFullYear()),this.month(J.getUTCMonth()),this.date(J.getUTCDate()),this}re("Q",0,"Qo","quarter"),Ge("quarter","Q"),B("quarter",7),he("Q",it),Me("Q",function(d,g){g[Qe]=(ue(d)-1)*3});function XP(d){return d==null?Math.ceil((this.month()+1)/3):this.month((d-1)*3+this.month()%3)}re("D",["DD",2],"Do","date"),Ge("date","D"),B("date",9),he("D",Ze),he("DD",Ze,Le),he("Do",function(d,g){return d?g._dayOfMonthOrdinalParse||g._ordinalParse:g._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],Bt),Me("Do",function(d,g){g[Bt]=ue(d.match(Ze)[0])});var ZS=ke("Date",!0);re("DDD",["DDDD",3],"DDDo","dayOfYear"),Ge("dayOfYear","DDD"),B("dayOfYear",4),he("DDD",Fn),he("DDDD",It),Me(["DDD","DDDD"],function(d,g,w){w._dayOfYear=ue(d)});function ZP(d){var g=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return d==null?g:this.add(d-g,"d")}re("m",["mm",2],0,"minute"),Ge("minute","m"),B("minute",14),he("m",Ze),he("mm",Ze,Le),Me(["m","mm"],bt);var QP=ke("Minutes",!1);re("s",["ss",2],0,"second"),Ge("second","s"),B("second",15),he("s",Ze),he("ss",Ze,Le),Me(["s","ss"],qn);var JP=ke("Seconds",!1);re("S",0,0,function(){return~~(this.millisecond()/100)}),re(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),re(0,["SSS",3],0,"millisecond"),re(0,["SSSS",4],0,function(){return this.millisecond()*10}),re(0,["SSSSS",5],0,function(){return this.millisecond()*100}),re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ge("millisecond","ms"),B("millisecond",16),he("S",Fn,it),he("SS",Fn,Le),he("SSS",Fn,It);var Br,QS;for(Br="SSSS";Br.length<=9;Br+="S")he(Br,Un);function e$(d,g){g[vr]=ue(("0."+d)*1e3)}for(Br="S";Br.length<=9;Br+="S")Me(Br,e$);QS=ke("Milliseconds",!1),re("z",0,0,"zoneAbbr"),re("zz",0,0,"zoneName");function t$(){return this._isUTC?"UTC":""}function n$(){return this._isUTC?"Coordinated Universal Time":""}var se=O.prototype;se.add=YM,se.calendar=tP,se.clone=nP,se.diff=uP,se.endOf=vP,se.format=fP,se.from=hP,se.fromNow=gP,se.to=mP,se.toNow=bP,se.get=We,se.invalidAt=OP,se.isAfter=rP,se.isBefore=aP,se.isBetween=iP,se.isSame=oP,se.isSameOrAfter=sP,se.isSameOrBefore=lP,se.isValid=AP,se.lang=HS,se.locale=qS,se.localeData=WS,se.max=AM,se.min=TM,se.parsingFlags=kP,se.set=xt,se.startOf=yP,se.subtract=KM,se.toArray=wP,se.toObject=_P,se.toDate=EP,se.toISOString=dP,se.inspect=pP,typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=TP,se.toString=cP,se.unix=xP,se.valueOf=SP,se.creationData=IP,se.eraName=DP,se.eraNarrow=LP,se.eraAbbr=MP,se.eraYear=PP,se.year=AS,se.isLeapYear=_L,se.weekYear=GP,se.isoWeekYear=qP,se.quarter=se.quarters=XP,se.month=_S,se.daysInMonth=xL,se.week=se.weeks=RL,se.isoWeek=se.isoWeeks=CL,se.weeksInYear=VP,se.weeksInWeekYear=YP,se.isoWeeksInYear=HP,se.isoWeeksInISOWeekYear=WP,se.date=ZS,se.day=se.days=qL,se.weekday=HL,se.isoWeekday=WL,se.dayOfYear=ZP,se.hour=se.hours=JL,se.minute=se.minutes=QP,se.second=se.seconds=JP,se.millisecond=se.milliseconds=QS,se.utcOffset=MM,se.utc=$M,se.local=jM,se.parseZone=FM,se.hasAlignedHourOffset=BM,se.isDST=UM,se.isLocal=GM,se.isUtcOffset=qM,se.isUtc=FS,se.isUTC=FS,se.zoneAbbr=t$,se.zoneName=n$,se.dates=$("dates accessor is deprecated. Use date instead.",ZS),se.months=$("months accessor is deprecated. Use month instead",_S),se.years=$("years accessor is deprecated. Use year instead",AS),se.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",PM),se.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zM);function r$(d){return dt(d*1e3)}function a$(){return dt.apply(null,arguments).parseZone()}function JS(d){return d}var Ve=K.prototype;Ve.calendar=Z,Ve.longDateFormat=ce,Ve.invalidDate=_e,Ve.ordinal=Ue,Ve.preparse=JS,Ve.postformat=JS,Ve.relativeTime=Je,Ve.pastFuture=Ht,Ve.set=V,Ve.eras=RP,Ve.erasParse=CP,Ve.erasConvertYear=NP,Ve.erasAbbrRegex=jP,Ve.erasNameRegex=$P,Ve.erasNarrowRegex=FP,Ve.months=bL,Ve.monthsShort=yL,Ve.monthsParse=SL,Ve.monthsRegex=wL,Ve.monthsShortRegex=EL,Ve.week=AL,Ve.firstDayOfYear=IL,Ve.firstDayOfWeek=OL,Ve.weekdays=FL,Ve.weekdaysMin=UL,Ve.weekdaysShort=BL,Ve.weekdaysParse=GL,Ve.weekdaysRegex=VL,Ve.weekdaysShortRegex=YL,Ve.weekdaysMinRegex=KL,Ve.isPM=ZL,Ve.meridiem=eM;function Gs(d,g,w,k){var I=xr(),U=m().set(k,g);return I[w](U,d)}function ex(d,g,w){if(c(d)&&(g=d,d=void 0),d=d||"",g!=null)return Gs(d,g,w,"month");var k,I=[];for(k=0;k<12;k++)I[k]=Gs(d,k,w,"month");return I}function Hc(d,g,w,k){typeof d=="boolean"?(c(g)&&(w=g,g=void 0),g=g||""):(g=d,w=g,d=!1,c(g)&&(w=g,g=void 0),g=g||"");var I=xr(),U=d?I._week.dow:0,J,xe=[];if(w!=null)return Gs(g,(w+U)%7,k,"day");for(J=0;J<7;J++)xe[J]=Gs(g,(J+U)%7,k,"day");return xe}function i$(d,g){return ex(d,g,"months")}function o$(d,g){return ex(d,g,"monthsShort")}function s$(d,g,w){return Hc(d,g,w,"weekdays")}function l$(d,g,w){return Hc(d,g,w,"weekdaysShort")}function u$(d,g,w){return Hc(d,g,w,"weekdaysMin")}Fr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(d){var g=d%10,w=ue(d%100/10)===1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th";return d+w}}),r.lang=$("moment.lang is deprecated. Use moment.locale instead.",Fr),r.langData=$("moment.langData is deprecated. Use moment.localeData instead.",xr);var Er=Math.abs;function c$(){var d=this._data;return this._milliseconds=Er(this._milliseconds),this._days=Er(this._days),this._months=Er(this._months),d.milliseconds=Er(d.milliseconds),d.seconds=Er(d.seconds),d.minutes=Er(d.minutes),d.hours=Er(d.hours),d.months=Er(d.months),d.years=Er(d.years),this}function tx(d,g,w,k){var I=Hn(g,w);return d._milliseconds+=k*I._milliseconds,d._days+=k*I._days,d._months+=k*I._months,d._bubble()}function d$(d,g){return tx(this,d,g,1)}function p$(d,g){return tx(this,d,g,-1)}function nx(d){return d<0?Math.floor(d):Math.ceil(d)}function f$(){var d=this._milliseconds,g=this._days,w=this._months,k=this._data,I,U,J,xe,Ne;return d>=0&&g>=0&&w>=0||d<=0&&g<=0&&w<=0||(d+=nx(Wc(w)+g)*864e5,g=0,w=0),k.milliseconds=d%1e3,I=pe(d/1e3),k.seconds=I%60,U=pe(I/60),k.minutes=U%60,J=pe(U/60),k.hours=J%24,g+=pe(J/24),Ne=pe(rx(g)),w+=Ne,g-=nx(Wc(Ne)),xe=pe(w/12),w%=12,k.days=g,k.months=w,k.years=xe,this}function rx(d){return d*4800/146097}function Wc(d){return d*146097/4800}function h$(d){if(!this.isValid())return NaN;var g,w,k=this._milliseconds;if(d=Xe(d),d==="month"||d==="quarter"||d==="year")switch(g=this._days+k/864e5,w=this._months+rx(g),d){case"month":return w;case"quarter":return w/3;case"year":return w/12}else switch(g=this._days+Math.round(Wc(this._months)),d){case"week":return g/7+k/6048e5;case"day":return g+k/864e5;case"hour":return g*24+k/36e5;case"minute":return g*1440+k/6e4;case"second":return g*86400+k/1e3;case"millisecond":return Math.floor(g*864e5)+k;default:throw new Error("Unknown unit "+d)}}function g$(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function wr(d){return function(){return this.as(d)}}var m$=wr("ms"),b$=wr("s"),y$=wr("m"),v$=wr("h"),S$=wr("d"),x$=wr("w"),E$=wr("M"),w$=wr("Q"),_$=wr("y");function T$(){return Hn(this)}function A$(d){return d=Xe(d),this.isValid()?this[d+"s"]():NaN}function ca(d){return function(){return this.isValid()?this._data[d]:NaN}}var k$=ca("milliseconds"),O$=ca("seconds"),I$=ca("minutes"),R$=ca("hours"),C$=ca("days"),N$=ca("months"),D$=ca("years");function L$(){return pe(this.days()/7)}var _r=Math.round,Pa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function M$(d,g,w,k,I){return I.relativeTime(g||1,!!w,d,k)}function P$(d,g,w,k){var I=Hn(d).abs(),U=_r(I.as("s")),J=_r(I.as("m")),xe=_r(I.as("h")),Ne=_r(I.as("d")),tt=_r(I.as("M")),Jt=_r(I.as("w")),Tr=_r(I.as("y")),Ur=U<=w.ss&&["s",U]||U0,Ur[4]=k,M$.apply(null,Ur)}function $$(d){return d===void 0?_r:typeof d=="function"?(_r=d,!0):!1}function j$(d,g){return Pa[d]===void 0?!1:g===void 0?Pa[d]:(Pa[d]=g,d==="s"&&(Pa.ss=g-1),!0)}function F$(d,g){if(!this.isValid())return this.localeData().invalidDate();var w=!1,k=Pa,I,U;return typeof d=="object"&&(g=d,d=!1),typeof d=="boolean"&&(w=d),typeof g=="object"&&(k=Object.assign({},Pa,g),g.s!=null&&g.ss==null&&(k.ss=g.s-1)),I=this.localeData(),U=P$(this,!w,k,I),w&&(U=I.pastFuture(+this,U)),I.postformat(U)}var Vc=Math.abs;function $a(d){return(d>0)-(d<0)||+d}function qs(){if(!this.isValid())return this.localeData().invalidDate();var d=Vc(this._milliseconds)/1e3,g=Vc(this._days),w=Vc(this._months),k,I,U,J,xe=this.asSeconds(),Ne,tt,Jt,Tr;return xe?(k=pe(d/60),I=pe(k/60),d%=60,k%=60,U=pe(w/12),w%=12,J=d?d.toFixed(3).replace(/\.?0+$/,""):"",Ne=xe<0?"-":"",tt=$a(this._months)!==$a(xe)?"-":"",Jt=$a(this._days)!==$a(xe)?"-":"",Tr=$a(this._milliseconds)!==$a(xe)?"-":"",Ne+"P"+(U?tt+U+"Y":"")+(w?tt+w+"M":"")+(g?Jt+g+"D":"")+(I||k||d?"T":"")+(I?Tr+I+"H":"")+(k?Tr+k+"M":"")+(d?Tr+J+"S":"")):"P0D"}var qe=$s.prototype;qe.isValid=CM,qe.abs=c$,qe.add=d$,qe.subtract=p$,qe.as=h$,qe.asMilliseconds=m$,qe.asSeconds=b$,qe.asMinutes=y$,qe.asHours=v$,qe.asDays=S$,qe.asWeeks=x$,qe.asMonths=E$,qe.asQuarters=w$,qe.asYears=_$,qe.valueOf=g$,qe._bubble=f$,qe.clone=T$,qe.get=A$,qe.milliseconds=k$,qe.seconds=O$,qe.minutes=I$,qe.hours=R$,qe.days=C$,qe.weeks=L$,qe.months=N$,qe.years=D$,qe.humanize=F$,qe.toISOString=qs,qe.toString=qs,qe.toJSON=qs,qe.locale=qS,qe.localeData=WS,qe.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),qe.lang=HS,re("X",0,0,"unix"),re("x",0,0,"valueOf"),he("x",zn),he("X",Li),Me("X",function(d,g,w){w._d=new Date(parseFloat(d)*1e3)}),Me("x",function(d,g,w){w._d=new Date(ue(d))});//! moment.js -return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.unix=r$,r.months=i$,r.isDate=p,r.locale=Fr,r.invalid=x,r.duration=Hn,r.isMoment=R,r.weekdays=s$,r.parseZone=a$,r.localeData=xr,r.isDuration=js,r.monthsShort=o$,r.weekdaysMin=u$,r.defineLocale=Lc,r.updateLocale=aM,r.locales=iM,r.weekdaysShort=l$,r.normalizeUnits=Xe,r.relativeTimeRounding=$$,r.relativeTimeThreshold=j$,r.calendarFormat=eP,r.prototype=se,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})})(jI);var W2=jI.exports;const FI=St(W2),V2=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(q,{direction:"column",children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:y.jsx(Ai,{type:t})}),n&&y.jsx(ri,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(aB,{"data-testid":"episode-description",children:e}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(q,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(Aa,{children:FI.unix(r).fromNow()})}),n&&y.jsxs(ri,{href:n,onClick:a=>a.stopPropagation(),target:"_blank",children:[y.jsx(vI,{}),y.jsx(Y2,{children:n})]})]})]}),Y2=H(vt)` +`+new Error().stack),w=!1}return g.apply(this,arguments)},g)}var N={};function P(d,g){r.deprecationHandler!=null&&r.deprecationHandler(d,g),N[d]||(C(g),N[d]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function z(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}function V(d){var g,w;for(w in d)s(d,w)&&(g=d[w],z(g)?this[w]=g:this["_"+w]=g);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function G(d,g){var w=h({},d),k;for(k in g)s(g,k)&&(o(d[k])&&o(g[k])?(w[k]={},h(w[k],d[k]),h(w[k],g[k])):g[k]!=null?w[k]=g[k]:delete w[k]);for(k in d)s(d,k)&&!s(g,k)&&o(d[k])&&(w[k]=h({},w[k]));return w}function K(d){d!=null&&this.set(d)}var X;Object.keys?X=Object.keys:X=function(d){var g,w=[];for(g in d)s(d,g)&&w.push(g);return w};var W={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Z(d,g,w){var k=this._calendar[d]||this._calendar.sameElse;return z(k)?k.call(g,w):k}function D(d,g,w){var k=""+Math.abs(d),I=g-k.length,U=d>=0;return(U?w?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+k}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},ye={};function re(d,g,w,k){var I=k;typeof k=="string"&&(I=function(){return this[k]()}),d&&(ye[d]=I),g&&(ye[g[0]]=function(){return D(I.apply(this,arguments),g[1],g[2])}),w&&(ye[w]=function(){return this.localeData().ordinal(I.apply(this,arguments),d)})}function Se(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function je(d){var g=d.match(ie),w,k;for(w=0,k=g.length;w=0&&ne.test(d);)d=d.replace(ne,k),ne.lastIndex=0,w-=1;return d}var de={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ce(d){var g=this._longDateFormat[d],w=this._longDateFormat[d.toUpperCase()];return g||!w?g:(this._longDateFormat[d]=w.match(ie).map(function(k){return k==="MMMM"||k==="MM"||k==="DD"||k==="dddd"?k.slice(1):k}).join(""),this._longDateFormat[d])}var ee="Invalid date";function _e(){return this._invalidDate}var me="%d",ve=/\d{1,2}/;function Ue(d){return this._ordinal.replace("%d",d)}var at={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Je(d,g,w,k){var I=this._relativeTime[w];return z(I)?I(d,g,w,k):I.replace(/%d/i,d)}function Ht(d,g){var w=this._relativeTime[d>0?"future":"past"];return z(w)?w(g):w.replace(/%s/i,g)}var ze={};function Ge(d,g){var w=d.toLowerCase();ze[w]=ze[w+"s"]=ze[g]=d}function Xe(d){return typeof d=="string"?ze[d]||ze[d.toLowerCase()]:void 0}function Ft(d){var g={},w,k;for(k in d)s(d,k)&&(w=Xe(k),w&&(g[w]=d[k]));return g}var Wt={};function B(d,g){Wt[d]=g}function Q(d){var g=[],w;for(w in d)s(d,w)&&g.push({unit:w,priority:Wt[w]});return g.sort(function(k,I){return k.priority-I.priority}),g}function oe(d){return d%4===0&&d%100!==0||d%400===0}function pe(d){return d<0?Math.ceil(d)||0:Math.floor(d)}function ue(d){var g=+d,w=0;return g!==0&&isFinite(g)&&(w=pe(g)),w}function ke(d,g){return function(w){return w!=null?(Ie(this,d,w),r.updateOffset(this,g),this):Ae(this,d)}}function Ae(d,g){return d.isValid()?d._d["get"+(d._isUTC?"UTC":"")+g]():NaN}function Ie(d,g,w){d.isValid()&&!isNaN(w)&&(g==="FullYear"&&oe(d.year())&&d.month()===1&&d.date()===29?(w=ue(w),d._d["set"+(d._isUTC?"UTC":"")+g](w,d.month(),Ds(w,d.month()))):d._d["set"+(d._isUTC?"UTC":"")+g](w))}function We(d){return d=Xe(d),z(this[d])?this[d]():this}function xt(d,g){if(typeof d=="object"){d=Ft(d);var w=Q(d),k,I=w.length;for(k=0;k68?1900:2e3)};var AS=ke("FullYear",!0);function _L(){return oe(this.year())}function TL(d,g,w,k,I,U,J){var xe;return d<100&&d>=0?(xe=new Date(d+400,g,w,k,I,U,J),isFinite(xe.getFullYear())&&xe.setFullYear(d)):xe=new Date(d,g,w,k,I,U,J),xe}function Pi(d){var g,w;return d<100&&d>=0?(w=Array.prototype.slice.call(arguments),w[0]=d+400,g=new Date(Date.UTC.apply(null,w)),isFinite(g.getUTCFullYear())&&g.setUTCFullYear(d)):g=new Date(Date.UTC.apply(null,arguments)),g}function Ls(d,g,w){var k=7+g-w,I=(7+Pi(d,0,k).getUTCDay()-g)%7;return-I+k-1}function kS(d,g,w,k,I){var U=(7+w-k)%7,J=Ls(d,k,I),xe=1+7*(g-1)+U+J,Ne,tt;return xe<=0?(Ne=d-1,tt=Mi(Ne)+xe):xe>Mi(d)?(Ne=d+1,tt=xe-Mi(d)):(Ne=d,tt=xe),{year:Ne,dayOfYear:tt}}function $i(d,g,w){var k=Ls(d.year(),g,w),I=Math.floor((d.dayOfYear()-k-1)/7)+1,U,J;return I<1?(J=d.year()-1,U=I+Sr(J,g,w)):I>Sr(d.year(),g,w)?(U=I-Sr(d.year(),g,w),J=d.year()+1):(J=d.year(),U=I),{week:U,year:J}}function Sr(d,g,w){var k=Ls(d,g,w),I=Ls(d+1,g,w);return(Mi(d)-k+I)/7}re("w",["ww",2],"wo","week"),re("W",["WW",2],"Wo","isoWeek"),Ge("week","w"),Ge("isoWeek","W"),B("week",5),B("isoWeek",5),he("w",Ze),he("ww",Ze,Le),he("W",Ze),he("WW",Ze,Le),gn(["w","ww","W","WW"],function(d,g,w,k){g[k.substr(0,1)]=ue(d)});function AL(d){return $i(d,this._week.dow,this._week.doy).week}var kL={dow:0,doy:6};function OL(){return this._week.dow}function IL(){return this._week.doy}function RL(d){var g=this.localeData().week(this);return d==null?g:this.add((d-g)*7,"d")}function CL(d){var g=$i(this,1,4).week;return d==null?g:this.add((d-g)*7,"d")}re("d",0,"do","day"),re("dd",0,0,function(d){return this.localeData().weekdaysMin(this,d)}),re("ddd",0,0,function(d){return this.localeData().weekdaysShort(this,d)}),re("dddd",0,0,function(d){return this.localeData().weekdays(this,d)}),re("e",0,0,"weekday"),re("E",0,0,"isoWeekday"),Ge("day","d"),Ge("weekday","e"),Ge("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),he("d",Ze),he("e",Ze),he("E",Ze),he("dd",function(d,g){return g.weekdaysMinRegex(d)}),he("ddd",function(d,g){return g.weekdaysShortRegex(d)}),he("dddd",function(d,g){return g.weekdaysRegex(d)}),gn(["dd","ddd","dddd"],function(d,g,w,k){var I=w._locale.weekdaysParse(d,k,w._strict);I!=null?g.d=I:S(w).invalidWeekday=d}),gn(["d","e","E"],function(d,g,w,k){g[k]=ue(d)});function NL(d,g){return typeof d!="string"?d:isNaN(d)?(d=g.weekdaysParse(d),typeof d=="number"?d:null):parseInt(d,10)}function DL(d,g){return typeof d=="string"?g.weekdaysParse(d)%7||7:isNaN(d)?null:d}function Cc(d,g){return d.slice(g,7).concat(d.slice(0,g))}var LL="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),OS="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ML="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),PL=Gn,$L=Gn,jL=Gn;function FL(d,g){var w=i(this._weekdays)?this._weekdays:this._weekdays[d&&d!==!0&&this._weekdays.isFormat.test(g)?"format":"standalone"];return d===!0?Cc(w,this._week.dow):d?w[d.day()]:w}function BL(d){return d===!0?Cc(this._weekdaysShort,this._week.dow):d?this._weekdaysShort[d.day()]:this._weekdaysShort}function UL(d){return d===!0?Cc(this._weekdaysMin,this._week.dow):d?this._weekdaysMin[d.day()]:this._weekdaysMin}function zL(d,g,w){var k,I,U,J=d.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],k=0;k<7;++k)U=m([2e3,1]).day(k),this._minWeekdaysParse[k]=this.weekdaysMin(U,"").toLocaleLowerCase(),this._shortWeekdaysParse[k]=this.weekdaysShort(U,"").toLocaleLowerCase(),this._weekdaysParse[k]=this.weekdays(U,"").toLocaleLowerCase();return w?g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1?I:null):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null):(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null):g==="dddd"?(I=Et.call(this._weekdaysParse,J),I!==-1||(I=Et.call(this._shortWeekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):g==="ddd"?(I=Et.call(this._shortWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._minWeekdaysParse,J),I!==-1?I:null)):(I=Et.call(this._minWeekdaysParse,J),I!==-1||(I=Et.call(this._weekdaysParse,J),I!==-1)?I:(I=Et.call(this._shortWeekdaysParse,J),I!==-1?I:null))}function GL(d,g,w){var k,I,U;if(this._weekdaysParseExact)return zL.call(this,d,g,w);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),k=0;k<7;k++){if(I=m([2e3,1]).day(k),w&&!this._fullWeekdaysParse[k]&&(this._fullWeekdaysParse[k]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[k]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[k]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[k]||(U="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[k]=new RegExp(U.replace(".",""),"i")),w&&g==="dddd"&&this._fullWeekdaysParse[k].test(d))return k;if(w&&g==="ddd"&&this._shortWeekdaysParse[k].test(d))return k;if(w&&g==="dd"&&this._minWeekdaysParse[k].test(d))return k;if(!w&&this._weekdaysParse[k].test(d))return k}}function qL(d){if(!this.isValid())return d!=null?this:NaN;var g=this._isUTC?this._d.getUTCDay():this._d.getDay();return d!=null?(d=NL(d,this.localeData()),this.add(d-g,"d")):g}function HL(d){if(!this.isValid())return d!=null?this:NaN;var g=(this.day()+7-this.localeData()._week.dow)%7;return d==null?g:this.add(d-g,"d")}function WL(d){if(!this.isValid())return d!=null?this:NaN;if(d!=null){var g=DL(d,this.localeData());return this.day(this.day()%7?g:g-7)}else return this.day()||7}function VL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=PL),this._weekdaysStrictRegex&&d?this._weekdaysStrictRegex:this._weekdaysRegex)}function YL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$L),this._weekdaysShortStrictRegex&&d?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function KL(d){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Nc.call(this),d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jL),this._weekdaysMinStrictRegex&&d?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nc(){function d(Jt,Tr){return Tr.length-Jt.length}var g=[],w=[],k=[],I=[],U,J,xe,Ne,tt;for(U=0;U<7;U++)J=m([2e3,1]).day(U),xe=mt(this.weekdaysMin(J,"")),Ne=mt(this.weekdaysShort(J,"")),tt=mt(this.weekdays(J,"")),g.push(xe),w.push(Ne),k.push(tt),I.push(xe),I.push(Ne),I.push(tt);g.sort(d),w.sort(d),k.sort(d),I.sort(d),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+w.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Dc(){return this.hours()%12||12}function XL(){return this.hours()||24}re("H",["HH",2],0,"hour"),re("h",["hh",2],0,Dc),re("k",["kk",2],0,XL),re("hmm",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)}),re("hmmss",0,0,function(){return""+Dc.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),re("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),re("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)});function IS(d,g){re(d,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),g)})}IS("a",!0),IS("A",!1),Ge("hour","h"),B("hour",13);function RS(d,g){return g._meridiemParse}he("a",RS),he("A",RS),he("H",Ze),he("h",Ze),he("k",Ze),he("HH",Ze,Le),he("hh",Ze,Le),he("kk",Ze,Le),he("hmm",ia),he("hmmss",br),he("Hmm",ia),he("Hmmss",br),Me(["H","HH"],st),Me(["k","kk"],function(d,g,w){var k=ue(d);g[st]=k===24?0:k}),Me(["a","A"],function(d,g,w){w._isPm=w._locale.isPM(d),w._meridiem=d}),Me(["h","hh"],function(d,g,w){g[st]=ue(d),S(w).bigHour=!0}),Me("hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k)),S(w).bigHour=!0}),Me("hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I)),S(w).bigHour=!0}),Me("Hmm",function(d,g,w){var k=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k))}),Me("Hmmss",function(d,g,w){var k=d.length-4,I=d.length-2;g[st]=ue(d.substr(0,k)),g[bt]=ue(d.substr(k,2)),g[qn]=ue(d.substr(I))});function ZL(d){return(d+"").toLowerCase().charAt(0)==="p"}var QL=/[ap]\.?m?\.?/i,JL=ke("Hours",!0);function eM(d,g,w){return d>11?w?"pm":"PM":w?"am":"AM"}var CS={calendar:W,longDateFormat:de,invalidDate:ee,ordinal:me,dayOfMonthOrdinalParse:ve,relativeTime:at,months:hL,monthsShort:xS,week:kL,weekdays:LL,weekdaysMin:ML,weekdaysShort:OS,meridiemParse:QL},ht={},ji={},Fi;function tM(d,g){var w,k=Math.min(d.length,g.length);for(w=0;w0;){if(I=Ms(U.slice(0,w).join("-")),I)return I;if(k&&k.length>=w&&tM(U,k)>=w-1)break;w--}g++}return Fi}function rM(d){return d.match("^[^/\\\\]*$")!=null}function Ms(d){var g=null,w;if(ht[d]===void 0&&e&&e.exports&&rM(d))try{g=Fi._abbr,w=Y$,w("./locale/"+d),Fr(g)}catch{ht[d]=null}return ht[d]}function Fr(d,g){var w;return d&&(u(g)?w=xr(d):w=Lc(d,g),w?Fi=w:typeof console<"u"&&console.warn&&console.warn("Locale "+d+" not found. Did you forget to load it?")),Fi._abbr}function Lc(d,g){if(g!==null){var w,k=CS;if(g.abbr=d,ht[d]!=null)P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),k=ht[d]._config;else if(g.parentLocale!=null)if(ht[g.parentLocale]!=null)k=ht[g.parentLocale]._config;else if(w=Ms(g.parentLocale),w!=null)k=w._config;else return ji[g.parentLocale]||(ji[g.parentLocale]=[]),ji[g.parentLocale].push({name:d,config:g}),null;return ht[d]=new K(G(k,g)),ji[d]&&ji[d].forEach(function(I){Lc(I.name,I.config)}),Fr(d),ht[d]}else return delete ht[d],null}function aM(d,g){if(g!=null){var w,k,I=CS;ht[d]!=null&&ht[d].parentLocale!=null?ht[d].set(G(ht[d]._config,g)):(k=Ms(d),k!=null&&(I=k._config),g=G(I,g),k==null&&(g.abbr=d),w=new K(g),w.parentLocale=ht[d],ht[d]=w),Fr(d)}else ht[d]!=null&&(ht[d].parentLocale!=null?(ht[d]=ht[d].parentLocale,d===Fr()&&Fr(d)):ht[d]!=null&&delete ht[d]);return ht[d]}function xr(d){var g;if(d&&d._locale&&d._locale._abbr&&(d=d._locale._abbr),!d)return Fi;if(!i(d)){if(g=Ms(d),g)return g;d=[d]}return nM(d)}function iM(){return X(ht)}function Mc(d){var g,w=d._a;return w&&S(d).overflow===-2&&(g=w[Qe]<0||w[Qe]>11?Qe:w[Bt]<1||w[Bt]>Ds(w[Ce],w[Qe])?Bt:w[st]<0||w[st]>24||w[st]===24&&(w[bt]!==0||w[qn]!==0||w[vr]!==0)?st:w[bt]<0||w[bt]>59?bt:w[qn]<0||w[qn]>59?qn:w[vr]<0||w[vr]>999?vr:-1,S(d)._overflowDayOfYear&&(gBt)&&(g=Bt),S(d)._overflowWeeks&&g===-1&&(g=Pe),S(d)._overflowWeekday&&g===-1&&(g=Qt),S(d).overflow=g),d}var oM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lM=/Z|[+-]\d\d(?::?\d\d)?/,Ps=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Pc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],uM=/^\/?Date\((-?\d+)/i,cM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function DS(d){var g,w,k=d._i,I=oM.exec(k)||sM.exec(k),U,J,xe,Ne,tt=Ps.length,Jt=Pc.length;if(I){for(S(d).iso=!0,g=0,w=tt;gMi(J)||d._dayOfYear===0)&&(S(d)._overflowDayOfYear=!0),w=Pi(J,0,d._dayOfYear),d._a[Qe]=w.getUTCMonth(),d._a[Bt]=w.getUTCDate()),g=0;g<3&&d._a[g]==null;++g)d._a[g]=k[g]=I[g];for(;g<7;g++)d._a[g]=k[g]=d._a[g]==null?g===2?1:0:d._a[g];d._a[st]===24&&d._a[bt]===0&&d._a[qn]===0&&d._a[vr]===0&&(d._nextDay=!0,d._a[st]=0),d._d=(d._useUTC?Pi:TL).apply(null,k),U=d._useUTC?d._d.getUTCDay():d._d.getDay(),d._tzm!=null&&d._d.setUTCMinutes(d._d.getUTCMinutes()-d._tzm),d._nextDay&&(d._a[st]=24),d._w&&typeof d._w.d<"u"&&d._w.d!==U&&(S(d).weekdayMismatch=!0)}}function vM(d){var g,w,k,I,U,J,xe,Ne,tt;g=d._w,g.GG!=null||g.W!=null||g.E!=null?(U=1,J=4,w=Da(g.GG,d._a[Ce],$i(dt(),1,4).year),k=Da(g.W,1),I=Da(g.E,1),(I<1||I>7)&&(Ne=!0)):(U=d._locale._week.dow,J=d._locale._week.doy,tt=$i(dt(),U,J),w=Da(g.gg,d._a[Ce],tt.year),k=Da(g.w,tt.week),g.d!=null?(I=g.d,(I<0||I>6)&&(Ne=!0)):g.e!=null?(I=g.e+U,(g.e<0||g.e>6)&&(Ne=!0)):I=U),k<1||k>Sr(w,U,J)?S(d)._overflowWeeks=!0:Ne!=null?S(d)._overflowWeekday=!0:(xe=kS(w,k,I,U,J),d._a[Ce]=xe.year,d._dayOfYear=xe.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function jc(d){if(d._f===r.ISO_8601){DS(d);return}if(d._f===r.RFC_2822){LS(d);return}d._a=[],S(d).empty=!0;var g=""+d._i,w,k,I,U,J,xe=g.length,Ne=0,tt,Jt;for(I=ae(d._f,d._locale).match(ie)||[],Jt=I.length,w=0;w0&&S(d).unusedInput.push(J),g=g.slice(g.indexOf(k)+k.length),Ne+=k.length),ye[U]?(k?S(d).empty=!1:S(d).unusedTokens.push(U),Na(U,k,d)):d._strict&&!k&&S(d).unusedTokens.push(U);S(d).charsLeftOver=xe-Ne,g.length>0&&S(d).unusedInput.push(g),d._a[st]<=12&&S(d).bigHour===!0&&d._a[st]>0&&(S(d).bigHour=void 0),S(d).parsedDateParts=d._a.slice(0),S(d).meridiem=d._meridiem,d._a[st]=SM(d._locale,d._a[st],d._meridiem),tt=S(d).era,tt!==null&&(d._a[Ce]=d._locale.erasConvertYear(tt,d._a[Ce])),$c(d),Mc(d)}function SM(d,g,w){var k;return w==null?g:d.meridiemHour!=null?d.meridiemHour(g,w):(d.isPM!=null&&(k=d.isPM(w),k&&g<12&&(g+=12),!k&&g===12&&(g=0)),g)}function xM(d){var g,w,k,I,U,J,xe=!1,Ne=d._f.length;if(Ne===0){S(d).invalidFormat=!0,d._d=new Date(NaN);return}for(I=0;Ithis?this:d:x()});function $S(d,g){var w,k;if(g.length===1&&i(g[0])&&(g=g[0]),!g.length)return dt();for(w=g[0],k=1;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zM(){if(!u(this._isDSTShifted))return this._isDSTShifted;var d={},g;return v(d,this),d=MS(d),d._a?(g=d._isUTC?m(d._a):dt(d._a),this._isDSTShifted=this.isValid()&&DM(d._a,g.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function GM(){return this.isValid()?!this._isUTC:!1}function qM(){return this.isValid()?this._isUTC:!1}function FS(){return this.isValid()?this._isUTC&&this._offset===0:!1}var HM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,WM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hn(d,g){var w=d,k=null,I,U,J;return js(d)?w={ms:d._milliseconds,d:d._days,M:d._months}:c(d)||!isNaN(+d)?(w={},g?w[g]=+d:w.milliseconds=+d):(k=HM.exec(d))?(I=k[1]==="-"?-1:1,w={y:0,d:ue(k[Bt])*I,h:ue(k[st])*I,m:ue(k[bt])*I,s:ue(k[qn])*I,ms:ue(Fc(k[vr]*1e3))*I}):(k=WM.exec(d))?(I=k[1]==="-"?-1:1,w={y:ua(k[2],I),M:ua(k[3],I),w:ua(k[4],I),d:ua(k[5],I),h:ua(k[6],I),m:ua(k[7],I),s:ua(k[8],I)}):w==null?w={}:typeof w=="object"&&("from"in w||"to"in w)&&(J=VM(dt(w.from),dt(w.to)),w={},w.ms=J.milliseconds,w.M=J.months),U=new $s(w),js(d)&&s(d,"_locale")&&(U._locale=d._locale),js(d)&&s(d,"_isValid")&&(U._isValid=d._isValid),U}Hn.fn=$s.prototype,Hn.invalid=NM;function ua(d,g){var w=d&&parseFloat(d.replace(",","."));return(isNaN(w)?0:w)*g}function BS(d,g){var w={};return w.months=g.month()-d.month()+(g.year()-d.year())*12,d.clone().add(w.months,"M").isAfter(g)&&--w.months,w.milliseconds=+g-+d.clone().add(w.months,"M"),w}function VM(d,g){var w;return d.isValid()&&g.isValid()?(g=Uc(g,d),d.isBefore(g)?w=BS(d,g):(w=BS(g,d),w.milliseconds=-w.milliseconds,w.months=-w.months),w):{milliseconds:0,months:0}}function US(d,g){return function(w,k){var I,U;return k!==null&&!isNaN(+k)&&(P(g,"moment()."+g+"(period, number) is deprecated. Please use moment()."+g+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),U=w,w=k,k=U),I=Hn(w,k),zS(this,I,d),this}}function zS(d,g,w,k){var I=g._milliseconds,U=Fc(g._days),J=Fc(g._months);d.isValid()&&(k=k??!0,J&&wS(d,Ae(d,"Month")+J*w),U&&Ie(d,"Date",Ae(d,"Date")+U*w),I&&d._d.setTime(d._d.valueOf()+I*w),k&&r.updateOffset(d,U||J))}var YM=US(1,"add"),KM=US(-1,"subtract");function GS(d){return typeof d=="string"||d instanceof String}function XM(d){return R(d)||p(d)||GS(d)||c(d)||QM(d)||ZM(d)||d===null||d===void 0}function ZM(d){var g=o(d)&&!l(d),w=!1,k=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,U,J=k.length;for(I=0;Iw.valueOf():w.valueOf()9999?we(w,g?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?g?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",we(w,"Z")):we(w,g?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pP(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var d="moment",g="",w,k,I,U;return this.isLocal()||(d=this.utcOffset()===0?"moment.utc":"moment.parseZone",g="Z"),w="["+d+'("]',k=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",U=g+'[")]',this.format(w+k+I+U)}function fP(d){d||(d=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var g=we(this,d);return this.localeData().postformat(g)}function hP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({to:this,from:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function gP(d){return this.from(dt(),d)}function mP(d,g){return this.isValid()&&(R(d)&&d.isValid()||dt(d).isValid())?Hn({from:this,to:d}).locale(this.locale()).humanize(!g):this.localeData().invalidDate()}function bP(d){return this.to(dt(),d)}function qS(d){var g;return d===void 0?this._locale._abbr:(g=xr(d),g!=null&&(this._locale=g),this)}var HS=$("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(d){return d===void 0?this.localeData():this.locale(d)});function WS(){return this._locale}var Bs=1e3,La=60*Bs,Us=60*La,VS=(365*400+97)*24*Us;function Ma(d,g){return(d%g+g)%g}function YS(d,g,w){return d<100&&d>=0?new Date(d+400,g,w)-VS:new Date(d,g,w).valueOf()}function KS(d,g,w){return d<100&&d>=0?Date.UTC(d+400,g,w)-VS:Date.UTC(d,g,w)}function yP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year(),0,1);break;case"quarter":g=w(this.year(),this.month()-this.month()%3,1);break;case"month":g=w(this.year(),this.month(),1);break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":g=w(this.year(),this.month(),this.date());break;case"hour":g=this._d.valueOf(),g-=Ma(g+(this._isUTC?0:this.utcOffset()*La),Us);break;case"minute":g=this._d.valueOf(),g-=Ma(g,La);break;case"second":g=this._d.valueOf(),g-=Ma(g,Bs);break}return this._d.setTime(g),r.updateOffset(this,!0),this}function vP(d){var g,w;if(d=Xe(d),d===void 0||d==="millisecond"||!this.isValid())return this;switch(w=this._isUTC?KS:YS,d){case"year":g=w(this.year()+1,0,1)-1;break;case"quarter":g=w(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":g=w(this.year(),this.month()+1,1)-1;break;case"week":g=w(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":g=w(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":g=w(this.year(),this.month(),this.date()+1)-1;break;case"hour":g=this._d.valueOf(),g+=Us-Ma(g+(this._isUTC?0:this.utcOffset()*La),Us)-1;break;case"minute":g=this._d.valueOf(),g+=La-Ma(g,La)-1;break;case"second":g=this._d.valueOf(),g+=Bs-Ma(g,Bs)-1;break}return this._d.setTime(g),r.updateOffset(this,!0),this}function SP(){return this._d.valueOf()-(this._offset||0)*6e4}function xP(){return Math.floor(this.valueOf()/1e3)}function EP(){return new Date(this.valueOf())}function wP(){var d=this;return[d.year(),d.month(),d.date(),d.hour(),d.minute(),d.second(),d.millisecond()]}function _P(){var d=this;return{years:d.year(),months:d.month(),date:d.date(),hours:d.hours(),minutes:d.minutes(),seconds:d.seconds(),milliseconds:d.milliseconds()}}function TP(){return this.isValid()?this.toISOString():null}function AP(){return _(this)}function kP(){return h({},S(this))}function OP(){return S(this).overflow}function IP(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}re("N",0,0,"eraAbbr"),re("NN",0,0,"eraAbbr"),re("NNN",0,0,"eraAbbr"),re("NNNN",0,0,"eraName"),re("NNNNN",0,0,"eraNarrow"),re("y",["y",1],"yo","eraYear"),re("y",["yy",2],0,"eraYear"),re("y",["yyy",3],0,"eraYear"),re("y",["yyyy",4],0,"eraYear"),he("N",Gc),he("NN",Gc),he("NNN",Gc),he("NNNN",BP),he("NNNNN",UP),Me(["N","NN","NNN","NNNN","NNNNN"],function(d,g,w,k){var I=w._locale.erasParse(d,k,w._strict);I?S(w).era=I:S(w).invalidEra=d}),he("y",Un),he("yy",Un),he("yyy",Un),he("yyyy",Un),he("yo",zP),Me(["y","yy","yyy","yyyy"],Ce),Me(["yo"],function(d,g,w,k){var I;w._locale._eraYearOrdinalRegex&&(I=d.match(w._locale._eraYearOrdinalRegex)),w._locale.eraYearOrdinalParse?g[Ce]=w._locale.eraYearOrdinalParse(d,I):g[Ce]=parseInt(d,10)});function RP(d,g){var w,k,I,U=this._eras||xr("en")._eras;for(w=0,k=U.length;w=0)return U[k]}function NP(d,g){var w=d.since<=d.until?1:-1;return g===void 0?r(d.since).year():r(d.since).year()+(g-d.offset)*w}function DP(){var d,g,w,k=this.localeData().eras();for(d=0,g=k.length;dU&&(g=U),KP.call(this,d,g,w,k,I))}function KP(d,g,w,k,I){var U=kS(d,g,w,k,I),J=Pi(U.year,0,U.dayOfYear);return this.year(J.getUTCFullYear()),this.month(J.getUTCMonth()),this.date(J.getUTCDate()),this}re("Q",0,"Qo","quarter"),Ge("quarter","Q"),B("quarter",7),he("Q",it),Me("Q",function(d,g){g[Qe]=(ue(d)-1)*3});function XP(d){return d==null?Math.ceil((this.month()+1)/3):this.month((d-1)*3+this.month()%3)}re("D",["DD",2],"Do","date"),Ge("date","D"),B("date",9),he("D",Ze),he("DD",Ze,Le),he("Do",function(d,g){return d?g._dayOfMonthOrdinalParse||g._ordinalParse:g._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],Bt),Me("Do",function(d,g){g[Bt]=ue(d.match(Ze)[0])});var ZS=ke("Date",!0);re("DDD",["DDDD",3],"DDDo","dayOfYear"),Ge("dayOfYear","DDD"),B("dayOfYear",4),he("DDD",Fn),he("DDDD",It),Me(["DDD","DDDD"],function(d,g,w){w._dayOfYear=ue(d)});function ZP(d){var g=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return d==null?g:this.add(d-g,"d")}re("m",["mm",2],0,"minute"),Ge("minute","m"),B("minute",14),he("m",Ze),he("mm",Ze,Le),Me(["m","mm"],bt);var QP=ke("Minutes",!1);re("s",["ss",2],0,"second"),Ge("second","s"),B("second",15),he("s",Ze),he("ss",Ze,Le),Me(["s","ss"],qn);var JP=ke("Seconds",!1);re("S",0,0,function(){return~~(this.millisecond()/100)}),re(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),re(0,["SSS",3],0,"millisecond"),re(0,["SSSS",4],0,function(){return this.millisecond()*10}),re(0,["SSSSS",5],0,function(){return this.millisecond()*100}),re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ge("millisecond","ms"),B("millisecond",16),he("S",Fn,it),he("SS",Fn,Le),he("SSS",Fn,It);var Br,QS;for(Br="SSSS";Br.length<=9;Br+="S")he(Br,Un);function e$(d,g){g[vr]=ue(("0."+d)*1e3)}for(Br="S";Br.length<=9;Br+="S")Me(Br,e$);QS=ke("Milliseconds",!1),re("z",0,0,"zoneAbbr"),re("zz",0,0,"zoneName");function t$(){return this._isUTC?"UTC":""}function n$(){return this._isUTC?"Coordinated Universal Time":""}var se=O.prototype;se.add=YM,se.calendar=tP,se.clone=nP,se.diff=uP,se.endOf=vP,se.format=fP,se.from=hP,se.fromNow=gP,se.to=mP,se.toNow=bP,se.get=We,se.invalidAt=OP,se.isAfter=rP,se.isBefore=aP,se.isBetween=iP,se.isSame=oP,se.isSameOrAfter=sP,se.isSameOrBefore=lP,se.isValid=AP,se.lang=HS,se.locale=qS,se.localeData=WS,se.max=AM,se.min=TM,se.parsingFlags=kP,se.set=xt,se.startOf=yP,se.subtract=KM,se.toArray=wP,se.toObject=_P,se.toDate=EP,se.toISOString=dP,se.inspect=pP,typeof Symbol<"u"&&Symbol.for!=null&&(se[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),se.toJSON=TP,se.toString=cP,se.unix=xP,se.valueOf=SP,se.creationData=IP,se.eraName=DP,se.eraNarrow=LP,se.eraAbbr=MP,se.eraYear=PP,se.year=AS,se.isLeapYear=_L,se.weekYear=GP,se.isoWeekYear=qP,se.quarter=se.quarters=XP,se.month=_S,se.daysInMonth=xL,se.week=se.weeks=RL,se.isoWeek=se.isoWeeks=CL,se.weeksInYear=VP,se.weeksInWeekYear=YP,se.isoWeeksInYear=HP,se.isoWeeksInISOWeekYear=WP,se.date=ZS,se.day=se.days=qL,se.weekday=HL,se.isoWeekday=WL,se.dayOfYear=ZP,se.hour=se.hours=JL,se.minute=se.minutes=QP,se.second=se.seconds=JP,se.millisecond=se.milliseconds=QS,se.utcOffset=MM,se.utc=$M,se.local=jM,se.parseZone=FM,se.hasAlignedHourOffset=BM,se.isDST=UM,se.isLocal=GM,se.isUtcOffset=qM,se.isUtc=FS,se.isUTC=FS,se.zoneAbbr=t$,se.zoneName=n$,se.dates=$("dates accessor is deprecated. Use date instead.",ZS),se.months=$("months accessor is deprecated. Use month instead",_S),se.years=$("years accessor is deprecated. Use year instead",AS),se.zone=$("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",PM),se.isDSTShifted=$("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zM);function r$(d){return dt(d*1e3)}function a$(){return dt.apply(null,arguments).parseZone()}function JS(d){return d}var Ve=K.prototype;Ve.calendar=Z,Ve.longDateFormat=ce,Ve.invalidDate=_e,Ve.ordinal=Ue,Ve.preparse=JS,Ve.postformat=JS,Ve.relativeTime=Je,Ve.pastFuture=Ht,Ve.set=V,Ve.eras=RP,Ve.erasParse=CP,Ve.erasConvertYear=NP,Ve.erasAbbrRegex=jP,Ve.erasNameRegex=$P,Ve.erasNarrowRegex=FP,Ve.months=bL,Ve.monthsShort=yL,Ve.monthsParse=SL,Ve.monthsRegex=wL,Ve.monthsShortRegex=EL,Ve.week=AL,Ve.firstDayOfYear=IL,Ve.firstDayOfWeek=OL,Ve.weekdays=FL,Ve.weekdaysMin=UL,Ve.weekdaysShort=BL,Ve.weekdaysParse=GL,Ve.weekdaysRegex=VL,Ve.weekdaysShortRegex=YL,Ve.weekdaysMinRegex=KL,Ve.isPM=ZL,Ve.meridiem=eM;function Gs(d,g,w,k){var I=xr(),U=m().set(k,g);return I[w](U,d)}function ex(d,g,w){if(c(d)&&(g=d,d=void 0),d=d||"",g!=null)return Gs(d,g,w,"month");var k,I=[];for(k=0;k<12;k++)I[k]=Gs(d,k,w,"month");return I}function Hc(d,g,w,k){typeof d=="boolean"?(c(g)&&(w=g,g=void 0),g=g||""):(g=d,w=g,d=!1,c(g)&&(w=g,g=void 0),g=g||"");var I=xr(),U=d?I._week.dow:0,J,xe=[];if(w!=null)return Gs(g,(w+U)%7,k,"day");for(J=0;J<7;J++)xe[J]=Gs(g,(J+U)%7,k,"day");return xe}function i$(d,g){return ex(d,g,"months")}function o$(d,g){return ex(d,g,"monthsShort")}function s$(d,g,w){return Hc(d,g,w,"weekdays")}function l$(d,g,w){return Hc(d,g,w,"weekdaysShort")}function u$(d,g,w){return Hc(d,g,w,"weekdaysMin")}Fr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(d){var g=d%10,w=ue(d%100/10)===1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th";return d+w}}),r.lang=$("moment.lang is deprecated. Use moment.locale instead.",Fr),r.langData=$("moment.langData is deprecated. Use moment.localeData instead.",xr);var Er=Math.abs;function c$(){var d=this._data;return this._milliseconds=Er(this._milliseconds),this._days=Er(this._days),this._months=Er(this._months),d.milliseconds=Er(d.milliseconds),d.seconds=Er(d.seconds),d.minutes=Er(d.minutes),d.hours=Er(d.hours),d.months=Er(d.months),d.years=Er(d.years),this}function tx(d,g,w,k){var I=Hn(g,w);return d._milliseconds+=k*I._milliseconds,d._days+=k*I._days,d._months+=k*I._months,d._bubble()}function d$(d,g){return tx(this,d,g,1)}function p$(d,g){return tx(this,d,g,-1)}function nx(d){return d<0?Math.floor(d):Math.ceil(d)}function f$(){var d=this._milliseconds,g=this._days,w=this._months,k=this._data,I,U,J,xe,Ne;return d>=0&&g>=0&&w>=0||d<=0&&g<=0&&w<=0||(d+=nx(Wc(w)+g)*864e5,g=0,w=0),k.milliseconds=d%1e3,I=pe(d/1e3),k.seconds=I%60,U=pe(I/60),k.minutes=U%60,J=pe(U/60),k.hours=J%24,g+=pe(J/24),Ne=pe(rx(g)),w+=Ne,g-=nx(Wc(Ne)),xe=pe(w/12),w%=12,k.days=g,k.months=w,k.years=xe,this}function rx(d){return d*4800/146097}function Wc(d){return d*146097/4800}function h$(d){if(!this.isValid())return NaN;var g,w,k=this._milliseconds;if(d=Xe(d),d==="month"||d==="quarter"||d==="year")switch(g=this._days+k/864e5,w=this._months+rx(g),d){case"month":return w;case"quarter":return w/3;case"year":return w/12}else switch(g=this._days+Math.round(Wc(this._months)),d){case"week":return g/7+k/6048e5;case"day":return g+k/864e5;case"hour":return g*24+k/36e5;case"minute":return g*1440+k/6e4;case"second":return g*86400+k/1e3;case"millisecond":return Math.floor(g*864e5)+k;default:throw new Error("Unknown unit "+d)}}function g$(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ue(this._months/12)*31536e6:NaN}function wr(d){return function(){return this.as(d)}}var m$=wr("ms"),b$=wr("s"),y$=wr("m"),v$=wr("h"),S$=wr("d"),x$=wr("w"),E$=wr("M"),w$=wr("Q"),_$=wr("y");function T$(){return Hn(this)}function A$(d){return d=Xe(d),this.isValid()?this[d+"s"]():NaN}function ca(d){return function(){return this.isValid()?this._data[d]:NaN}}var k$=ca("milliseconds"),O$=ca("seconds"),I$=ca("minutes"),R$=ca("hours"),C$=ca("days"),N$=ca("months"),D$=ca("years");function L$(){return pe(this.days()/7)}var _r=Math.round,Pa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function M$(d,g,w,k,I){return I.relativeTime(g||1,!!w,d,k)}function P$(d,g,w,k){var I=Hn(d).abs(),U=_r(I.as("s")),J=_r(I.as("m")),xe=_r(I.as("h")),Ne=_r(I.as("d")),tt=_r(I.as("M")),Jt=_r(I.as("w")),Tr=_r(I.as("y")),Ur=U<=w.ss&&["s",U]||U0,Ur[4]=k,M$.apply(null,Ur)}function $$(d){return d===void 0?_r:typeof d=="function"?(_r=d,!0):!1}function j$(d,g){return Pa[d]===void 0?!1:g===void 0?Pa[d]:(Pa[d]=g,d==="s"&&(Pa.ss=g-1),!0)}function F$(d,g){if(!this.isValid())return this.localeData().invalidDate();var w=!1,k=Pa,I,U;return typeof d=="object"&&(g=d,d=!1),typeof d=="boolean"&&(w=d),typeof g=="object"&&(k=Object.assign({},Pa,g),g.s!=null&&g.ss==null&&(k.ss=g.s-1)),I=this.localeData(),U=P$(this,!w,k,I),w&&(U=I.pastFuture(+this,U)),I.postformat(U)}var Vc=Math.abs;function $a(d){return(d>0)-(d<0)||+d}function qs(){if(!this.isValid())return this.localeData().invalidDate();var d=Vc(this._milliseconds)/1e3,g=Vc(this._days),w=Vc(this._months),k,I,U,J,xe=this.asSeconds(),Ne,tt,Jt,Tr;return xe?(k=pe(d/60),I=pe(k/60),d%=60,k%=60,U=pe(w/12),w%=12,J=d?d.toFixed(3).replace(/\.?0+$/,""):"",Ne=xe<0?"-":"",tt=$a(this._months)!==$a(xe)?"-":"",Jt=$a(this._days)!==$a(xe)?"-":"",Tr=$a(this._milliseconds)!==$a(xe)?"-":"",Ne+"P"+(U?tt+U+"Y":"")+(w?tt+w+"M":"")+(g?Jt+g+"D":"")+(I||k||d?"T":"")+(I?Tr+I+"H":"")+(k?Tr+k+"M":"")+(d?Tr+J+"S":"")):"P0D"}var qe=$s.prototype;qe.isValid=CM,qe.abs=c$,qe.add=d$,qe.subtract=p$,qe.as=h$,qe.asMilliseconds=m$,qe.asSeconds=b$,qe.asMinutes=y$,qe.asHours=v$,qe.asDays=S$,qe.asWeeks=x$,qe.asMonths=E$,qe.asQuarters=w$,qe.asYears=_$,qe.valueOf=g$,qe._bubble=f$,qe.clone=T$,qe.get=A$,qe.milliseconds=k$,qe.seconds=O$,qe.minutes=I$,qe.hours=R$,qe.days=C$,qe.weeks=L$,qe.months=N$,qe.years=D$,qe.humanize=F$,qe.toISOString=qs,qe.toString=qs,qe.toJSON=qs,qe.locale=qS,qe.localeData=WS,qe.toIsoString=$("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qs),qe.lang=HS,re("X",0,0,"unix"),re("x",0,0,"valueOf"),he("x",zn),he("X",Li),Me("X",function(d,g,w){w._d=new Date(parseFloat(d)*1e3)}),Me("x",function(d,g,w){w._d=new Date(ue(d))});//! moment.js +return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.unix=r$,r.months=i$,r.isDate=p,r.locale=Fr,r.invalid=x,r.duration=Hn,r.isMoment=R,r.weekdays=s$,r.parseZone=a$,r.localeData=xr,r.isDuration=js,r.monthsShort=o$,r.weekdaysMin=u$,r.defineLocale=Lc,r.updateLocale=aM,r.locales=iM,r.weekdaysShort=l$,r.normalizeUnits=Xe,r.relativeTimeRounding=$$,r.relativeTimeThreshold=j$,r.calendarFormat=eP,r.prototype=se,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})})(jI);var W2=jI.exports;const FI=St(W2),V2=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(q,{direction:"column",children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(q,{align:"center",direction:"row",children:y.jsx(Ai,{type:t})}),n&&y.jsx(ri,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(aB,{"data-testid":"episode-description",children:e}),y.jsxs(q,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(q,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(Aa,{children:FI.unix(r).fromNow()})}),n&&y.jsxs(ri,{href:n,onClick:a=>a.stopPropagation(),target:"_blank",children:[y.jsx(SI,{}),y.jsx(Y2,{children:n})]})]})]}),Y2=H(vt)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; @@ -477,7 +477,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni .player-controls { margin-left: 4px; } -`,My=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:u,className:c="episode-wrapper",onClick:p,node:f})=>{const h=Pt(x=>x.currentSearch),m=ur(String(i),h),b=ur(String(o),h),T=ur(String(a==="show"?"":r),h),_=["Tweet","person","guest","topic","document"];return y.jsxs(rB,{className:c,onClick:p,children:[!_.includes(a)&&y.jsx(B2,{boostCount:e,date:t,imageUrl:n,newName:o,node:f,showTitle:r,type:a}),a==="topic"&&y.jsx(iB,{children:y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",pr:16,children:[y.jsx(gj,{}),y.jsx("p",{children:T})]}),s&&y.jsx(ri,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:x=>x.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(q,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(Aa,{children:_i.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&y.jsx(K2,{date:t,imageUrl:n,name:b||"",sourceLink:s||"",title:r||""}),["image"].includes(a)&&y.jsx(G2,{date:t,imageUrl:s,name:b||"",sourceLink:s||""}),a==="Tweet"&&y.jsx(Q2,{date:t,imageUrl:n,name:b||"",sourceLink:s||"",text:m||"",twitterHandle:u,verified:l}),a==="document"&&y.jsx(V2,{date:t,sourceLink:s||"",text:m||"",type:a})]})},aB=H(q)` +`,My=({boostCount:e,date:t,imageUrl:n,showTitle:r,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:u,className:c="episode-wrapper",onClick:p,node:f})=>{const h=Pt(x=>x.currentSearch),m=ur(String(i),h),b=ur(String(o),h),T=ur(String(a==="show"?"":r),h),_=["Tweet","person","guest","topic","document"];return y.jsxs(rB,{className:c,onClick:p,children:[!_.includes(a)&&y.jsx(B2,{boostCount:e,date:t,imageUrl:n,newName:o,node:f,showTitle:r,type:a}),a==="topic"&&y.jsx(iB,{children:y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(q,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",pr:16,children:[y.jsx(xj,{}),y.jsx("p",{children:T})]}),s&&y.jsx(ri,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:x=>x.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(q,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(Aa,{children:_i.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&y.jsx(K2,{date:t,imageUrl:n,name:b||"",sourceLink:s||"",title:r||""}),["image"].includes(a)&&y.jsx(G2,{date:t,imageUrl:s,name:b||"",sourceLink:s||""}),a==="Tweet"&&y.jsx(Q2,{date:t,imageUrl:n,name:b||"",sourceLink:s||"",text:m||"",twitterHandle:u,verified:l}),a==="document"&&y.jsx(V2,{date:t,sourceLink:s||"",text:m||"",type:a})]})},aB=H(q)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -576,7 +576,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni overflow-y: auto; overflow-x: hidden; background: ${j.body}; -`,Py=e=>{const{properties:t,ref_id:n}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:n,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},sB=({sourceIds:e})=>{const t=F.useRef(null),[n,r]=F.useState(!1),{dataInitial:a}=Mn(c=>c),i=ps(),o=F.useCallback(c=>{i(c)},[i]),s=()=>r(!n),l=(a==null?void 0:a.nodes.filter(c=>e.includes(c.ref_id)))||[],u=n?l:[...l].slice(0,3);return y.jsxs(cB,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(uB,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(mj,{})}),y.jsx("span",{className:"tittle",children:"Sources"}),y.jsx("span",{className:"heading__count",children:e.length})]}),y.jsxs(pB,{onClick:s,children:[n?"Hide all":"Show all",n?y.jsx(Iy,{}):y.jsx(Iu,{})]})]})}),n&&u.length>0&&y.jsx(oB,{ref:t,id:"search-result-list",shrink:1,children:u.map((c,p)=>{const f=Py(c),{image_url:h,date:m,boost:b,show_title:S,node_type:T,text:_,source_link:x,name:A,verified:E=!1,twitter_handle:v}=f||{};return y.jsx(dB,{boostCount:b||0,date:m||0,imageUrl:h||"",name:A||"",node:c,onClick:()=>{o(c)},showTitle:Ry(S),sourceLink:x,text:_||"",twitterHandle:v,type:T,verified:E},p.toString())})})]})},lB=F.memo(sB),uB=H(q)` +`,Py=e=>{const{properties:t,ref_id:n}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:n,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},sB=({sourceIds:e})=>{const t=F.useRef(null),[n,r]=F.useState(!1),{dataInitial:a}=Mn(c=>c),i=ps(),o=F.useCallback(c=>{i(c)},[i]),s=()=>r(!n),l=(a==null?void 0:a.nodes.filter(c=>e.includes(c.ref_id)))||[],u=n?l:[...l].slice(0,3);return y.jsxs(cB,{children:[y.jsx(ni,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(uB,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[y.jsxs(q,{align:"center",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(Ej,{})}),y.jsx("span",{className:"tittle",children:"Sources"}),y.jsx("span",{className:"heading__count",children:e.length})]}),y.jsxs(pB,{onClick:s,children:[n?"Hide all":"Show all",n?y.jsx(Iy,{}):y.jsx(Iu,{})]})]})}),n&&u.length>0&&y.jsx(oB,{ref:t,id:"search-result-list",shrink:1,children:u.map((c,p)=>{const f=Py(c),{image_url:h,date:m,boost:b,show_title:S,node_type:T,text:_,source_link:x,name:A,verified:E=!1,twitter_handle:v}=f||{};return y.jsx(dB,{boostCount:b||0,date:m||0,imageUrl:h||"",name:A||"",node:c,onClick:()=>{o(c)},showTitle:Ry(S),sourceLink:x,text:_||"",twitterHandle:v,type:T,verified:E},p.toString())})})]})},lB=F.memo(sB),uB=H(q)` &.heading { font-weight: 600; color: ${j.white}; @@ -675,7 +675,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni `,mB=H(vt)` font-weight: 600; font-size: 0.9375rem; -`,qi=8,el=332,bB=()=>y.jsx(y.Fragment,{children:y.jsx(fB,{children:y.jsxs(q,{direction:"column",children:[y.jsxs(q,{direction:"row",children:[y.jsx(gB,{children:y.jsx(bj,{})}),y.jsx(mB,{children:"Answer"})]}),y.jsxs(hB,{grow:1,shrink:1,children:[y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:180})]})]})})}),yB=H(vt)` +`,qi=8,el=332,bB=()=>y.jsx(y.Fragment,{children:y.jsx(fB,{children:y.jsxs(q,{direction:"column",children:[y.jsxs(q,{direction:"row",children:[y.jsx(gB,{children:y.jsx(wj,{})}),y.jsx(mB,{children:"Answer"})]}),y.jsxs(hB,{grow:1,shrink:1,children:[y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:el}),y.jsx(Gi,{height:qi,variant:"rectangular",width:180})]})]})})}),yB=H(vt)` font-size: 20px; font-weight: 600; flex-grow: 1; @@ -687,7 +687,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni padding: 24px 10px 24px 24px; flex-shrink: 1; overflow: hidden; -`,hx=({question:e,response:t,refId:n})=>{var m;const r=F.useRef(null),[a,i]=F.useState(!1),{setAiSummaryAnswer:o}=uI(b=>b),s=F.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:u}=Pt(b=>b);F.useEffect(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),F.useEffect(()=>{const b=s.current,S=()=>{u(null)};return b&&b.addEventListener("ended",S),()=>{b&&b.removeEventListener("ended",S)}},[u]);const c=()=>{i(!a)},p=()=>{n&&o(n,{hasBeenRendered:!0})},f=()=>{s.current&&(s.current.paused?(s.current.play(),u(s)):(s.current.pause(),u(null)))},h=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),u(null)),f()};return y.jsxs(SB,{children:[y.jsxs(vB,{children:[y.jsx(yB,{ref:r,children:e}),t.audio_en&&y.jsx(EB,{onClick:h,children:(l==null?void 0:l.current)===s.current&&!((m=s.current)!=null&&m.paused)?y.jsx(SI,{}):y.jsx(xI,{})}),y.jsx(xB,{onClick:c,children:a?y.jsx(Iu,{}):y.jsx(Iy,{})})]}),!a&&y.jsxs(y.Fragment,{children:[t.answerLoading?y.jsx(bB,{}):y.jsx(C2,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>p(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?y.jsx(PI,{count:1}):y.jsx(D2,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?y.jsx(lB,{sourceIds:t.sources||[]}):null]}),t.audio_en&&y.jsx(wB,{ref:s,src:t.audio_en,children:y.jsx("track",{kind:"captions"})})]})},SB=H(q).attrs({direction:"column"})` +`,hx=({question:e,response:t,refId:n})=>{var m;const r=F.useRef(null),[a,i]=F.useState(!1),{setAiSummaryAnswer:o}=cI(b=>b),s=F.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:u}=Pt(b=>b);F.useEffect(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),F.useEffect(()=>{const b=s.current,S=()=>{u(null)};return b&&b.addEventListener("ended",S),()=>{b&&b.removeEventListener("ended",S)}},[u]);const c=()=>{i(!a)},p=()=>{n&&o(n,{hasBeenRendered:!0})},f=()=>{s.current&&(s.current.paused?(s.current.play(),u(s)):(s.current.pause(),u(null)))},h=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),u(null)),f()};return y.jsxs(SB,{children:[y.jsxs(vB,{children:[y.jsx(yB,{ref:r,children:e}),t.audio_en&&y.jsx(EB,{onClick:h,children:(l==null?void 0:l.current)===s.current&&!((m=s.current)!=null&&m.paused)?y.jsx(xI,{}):y.jsx(EI,{})}),y.jsx(xB,{onClick:c,children:a?y.jsx(Iu,{}):y.jsx(Iy,{})})]}),!a&&y.jsxs(y.Fragment,{children:[t.answerLoading?y.jsx(bB,{}):y.jsx(C2,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>p(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?y.jsx(PI,{count:1}):y.jsx(D2,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?y.jsx(lB,{sourceIds:t.sources||[]}):null]}),t.audio_en&&y.jsx(wB,{ref:s,src:t.audio_en,children:y.jsx("track",{kind:"captions"})})]})},SB=H(q).attrs({direction:"column"})` border-top: 1px solid #101317; `,xB=H(qt)` &&.MuiButton-root { @@ -736,12 +736,12 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni } `,wB=H.audio` display: none; -`,_B=390,TB=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=uI(l=>l),{abortFetchData:a,resetGraph:i}=Mn(l=>l),o=Au(),s=()=>{r(null),a(),i(),t(),o("/")};return y.jsxs(AB,{children:[y.jsx(q,{align:"flex-start",children:y.jsx(q,{p:24,children:y.jsx(qt,{onClick:s,startIcon:y.jsx(yj,{}),children:"Home"})})}),y.jsx(kB,{children:y.jsxs(q,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var u;return y.jsx(hx,{question:((u=e[l])==null?void 0:u.question)||"",refId:l,response:e[l]},l)}),n&&y.jsx(hx,{question:n.question||"",refId:"",response:n})]})}),y.jsx(y2,{})]})},AB=H(q)(({theme:e})=>({position:"relative",background:j.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:_B}})),kB=H(q)` +`,_B=390,TB=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=cI(l=>l),{abortFetchData:a,resetGraph:i}=Mn(l=>l),o=Au(),s=()=>{r(null),a(),i(),t(),o("/")};return y.jsxs(AB,{children:[y.jsx(q,{align:"flex-start",children:y.jsx(q,{p:24,children:y.jsx(qt,{onClick:s,startIcon:y.jsx(_j,{}),children:"Home"})})}),y.jsx(kB,{children:y.jsxs(q,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var u;return y.jsx(hx,{question:((u=e[l])==null?void 0:u.question)||"",refId:l,response:e[l]},l)}),n&&y.jsx(hx,{question:n.question||"",refId:"",response:n})]})}),y.jsx(y2,{})]})},AB=H(q)(({theme:e})=>({position:"relative",background:j.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:_B}})),kB=H(q)` overflow-y: auto; overflow-x: hidden; flex: 1; width: 100%; -`,OB=()=>{var p;const[e,t]=F.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:a=[]}=Mn(f=>f),i=(n??"").toLowerCase(),o=((p=a.find(f=>f.name===i))==null?void 0:p.count)||0,s=f=>f?f.charAt(0).toUpperCase()+f.slice(1):"",l=f=>{o>=1&&t(f.currentTarget)},u=()=>{t(null)},c=f=>{r(f),u()};return y.jsxs("div",{children:[y.jsxs(IB,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(Iy,{}):y.jsx(Iu,{})})]}),y.jsx(CB,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(zj,{children:a.filter(({name:f})=>f).map(({name:f,count:h})=>y.jsxs(RB,{className:lr({active:f===n}),onClick:m=>{m.preventDefault(),c(f)},children:[y.jsx("span",{className:"icon",children:f===n?y.jsx(EI,{}):null}),y.jsx("span",{children:`${s(f)} (${h})`})]},f))})})]})},IB=H(q).attrs({direction:"row",align:"center"})` +`,OB=()=>{var p;const[e,t]=F.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:a=[]}=Mn(f=>f),i=(n??"").toLowerCase(),o=((p=a.find(f=>f.name===i))==null?void 0:p.count)||0,s=f=>f?f.charAt(0).toUpperCase()+f.slice(1):"",l=f=>{o>=1&&t(f.currentTarget)},u=()=>{t(null)},c=f=>{r(f),u()};return y.jsxs("div",{children:[y.jsxs(IB,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(Iy,{}):y.jsx(Iu,{})})]}),y.jsx(CB,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(Vj,{children:a.filter(({name:f})=>f).map(({name:f,count:h})=>y.jsxs(RB,{className:lr({active:f===n}),onClick:m=>{m.preventDefault(),c(f)},children:[y.jsx("span",{className:"icon",children:f===n?y.jsx(wI,{}):null}),y.jsx("span",{children:`${s(f)} (${h})`})]},f))})})]})},IB=H(q).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${j.GRAY6}; @@ -778,7 +778,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni width: 9px; font-size: 10px; } -`,CB=H(vj)` +`,CB=H(Tj)` .MuiPaper-root { background: ${j.BUTTON1}; min-width: 149px; @@ -907,7 +907,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni &:active { background: ${j.BUTTON1_PRESS}; } -`,KB=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return y.jsxs(y.Fragment,{children:[y.jsxs(jy,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx($y,{children:"Core set of nodes based on search term"})]}),y.jsxs(gs,{children:[y.jsxs(UI,{children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"100"})]}),y.jsx(BI,{direction:"row",children:y.jsx(XB,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:n,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},XB=H(Du)({"& .MuiSlider-valueLabel":{backgroundColor:`${j.primaryBlue}`}}),Gr={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},ZB=({anchorEl:e,setAnchorEl:t,onClose:n})=>{const[r,a]=lI(v=>[v.schemas,v.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s}=Mn(v=>v),[l,u]=F.useState(Gr.selectedTypes),[c,p]=F.useState(Gr.hops),[f,h]=F.useState(Gr.sourceNodes),[m,b]=F.useState(Gr.maxResults),{fastFiltersFeatureFlag:S}=cI(v=>v);F.useEffect(()=>{(async()=>{try{const O=await W$();a(O.schemas.filter(R=>!R.is_deleted))}catch(O){console.error("Error fetching schema:",O)}})()},[a]);const T=v=>{u(O=>O.includes(v)?O.filter(R=>R!==v):[...O,v])},_=v=>{u(v)},x=()=>{u(Gr.selectedTypes),p(Gr.hops),h(Gr.sourceNodes),b(Gr.maxResults)},A=async()=>{x(),i(),o()},E=async()=>{s({node_type:l,limit:m,depth:c.toString(),top_node_count:f.toString()}),t(null),n()};return y.jsxs(QB,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(NB,{handleFastFiltersSelect:_}),y.jsx(Hi,{})]}),y.jsx(BB,{handleSchemaTypeClick:T,schemaAll:r,selectedTypes:l}),y.jsx(Hi,{}),y.jsx(KB,{setSourceNodes:h,sourceNodes:f}),y.jsx(Hi,{}),y.jsx(PB,{hops:c,setHops:p}),y.jsx(Hi,{}),y.jsx(jB,{maxResults:m,setMaxResults:b}),y.jsx(Hi,{}),y.jsx(JB,{children:y.jsxs(rU,{children:[y.jsxs(eU,{color:"secondary",onClick:A,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(tU,{children:y.jsx(wI,{})}),"Clear"]}),y.jsx(nU,{color:"secondary",onClick:E,size:"large",variant:"contained",children:"Show Results"})]})})]})},QB=H(Ny)` +`,KB=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return y.jsxs(y.Fragment,{children:[y.jsxs(jy,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx($y,{children:"Core set of nodes based on search term"})]}),y.jsxs(gs,{children:[y.jsxs(UI,{children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"100"})]}),y.jsx(BI,{direction:"row",children:y.jsx(XB,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:n,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},XB=H(Du)({"& .MuiSlider-valueLabel":{backgroundColor:`${j.primaryBlue}`}}),Gr={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},ZB=({anchorEl:e,setAnchorEl:t,onClose:n})=>{const[r,a]=uI(v=>[v.schemas,v.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s}=Mn(v=>v),[l,u]=F.useState(Gr.selectedTypes),[c,p]=F.useState(Gr.hops),[f,h]=F.useState(Gr.sourceNodes),[m,b]=F.useState(Gr.maxResults),{fastFiltersFeatureFlag:S}=dI(v=>v);F.useEffect(()=>{(async()=>{try{const O=await K$();a(O.schemas.filter(R=>!R.is_deleted))}catch(O){console.error("Error fetching schema:",O)}})()},[a]);const T=v=>{u(O=>O.includes(v)?O.filter(R=>R!==v):[...O,v])},_=v=>{u(v)},x=()=>{u(Gr.selectedTypes),p(Gr.hops),h(Gr.sourceNodes),b(Gr.maxResults)},A=async()=>{x(),i(),o()},E=async()=>{s({node_type:l,limit:m,depth:c.toString(),top_node_count:f.toString()}),t(null),n()};return y.jsxs(QB,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[S&&y.jsxs(y.Fragment,{children:[y.jsx(NB,{handleFastFiltersSelect:_}),y.jsx(Hi,{})]}),y.jsx(BB,{handleSchemaTypeClick:T,schemaAll:r,selectedTypes:l}),y.jsx(Hi,{}),y.jsx(KB,{setSourceNodes:h,sourceNodes:f}),y.jsx(Hi,{}),y.jsx(PB,{hops:c,setHops:p}),y.jsx(Hi,{}),y.jsx(jB,{maxResults:m,setMaxResults:b}),y.jsx(Hi,{}),y.jsx(JB,{children:y.jsxs(rU,{children:[y.jsxs(eU,{color:"secondary",onClick:A,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(tU,{children:y.jsx(pI,{})}),"Clear"]}),y.jsx(nU,{color:"secondary",onClick:E,size:"large",variant:"contained",children:"Show Results"})]})})]})},QB=H(Ny)` &&.MuiPopper-root { background: ${j.BG2}; padding: 16px; @@ -1040,7 +1040,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni .entity { color: ${j.SECONDARY_BLUE}; } -`,oU=()=>{const{nodeCount:e,setNodeCount:t,setBudget:n}=ds(o=>o),{fetchData:r,setAbortRequests:a}=Mn(o=>o),i=async()=>{e<1||(await r(n,a,"",{skip_cache:"true"}),t("CLEAR"))};return y.jsx(uU,{children:y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Latest"}),y.jsx("span",{className:"heading__icon",children:y.jsx(Sj,{})})]}),e?y.jsx("div",{className:"button_container",children:y.jsx(sU,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:y.jsx(xj,{}),children:`See Latest (${e})`})}):null]})})},sU=H(qt)` +`,oU=()=>{const{nodeCount:e,setNodeCount:t,setBudget:n}=ds(o=>o),{fetchData:r,setAbortRequests:a}=Mn(o=>o),i=async()=>{e<1||(await r(n,a,"",{skip_cache:"true"}),t("CLEAR"))};return y.jsx(uU,{children:y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Latest"}),y.jsx("span",{className:"heading__icon",children:y.jsx(Aj,{})})]}),e?y.jsx("div",{className:"button_container",children:y.jsx(sU,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:y.jsx(kj,{}),children:`See Latest (${e})`})}):null]})})},sU=H(qt)` && { width: 100%; margin-top: 1.2rem; @@ -1103,7 +1103,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni } } } -`,cU=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Mn(A=>A),a=ps(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Pt(A=>A),[l,u]=F.useState(0),[c,p]=F.useState(0),f=dI(),m=l*t+t,b=f&&f.length>0?f.length-1>m:!1,S=d2("sm","down"),T=F.useCallback(A=>{uF(A),n(A),s(!0),a(A),S&&o(!1)},[a,s,o,n,S]),_=()=>{r(),b&&(u(l+1),p(A=>A+1))},x=F.useMemo(()=>{if(f){const A=[...f].sort((E,v)=>(v.date||0)-(E.date||0));return i&&A.sort((E,v)=>{const O=E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0;return(v.node_type==="topic"&&v.name.toLowerCase()===i.toLowerCase()?1:0)-O}),A.slice(0,m)}return[]},[f,i,m]);return y.jsxs(y.Fragment,{children:[(x??[]).map(A=>{const E=Py(A),{image_url:v,date:O,boost:R,show_title:C,node_type:$,text:N,source_link:P,name:z,verified:V=!1,twitter_handle:G}=E||{};return $?y.jsx(My,{boostCount:R||0,date:O||0,imageUrl:v||"",name:z||"",node:A,onClick:()=>{T(A)},showTitle:Ry(C),sourceLink:P,text:N||"",twitterHandle:G,type:$,verified:V},E.ref_id):null}),y.jsx(pU,{align:"center",background:"BG1",direction:"row",justify:"center",children:b&&y.jsx(qt,{onClick:_,size:"medium",children:"Load More"},c)})]})},dU=F.memo(cU),pU=H(q)` +`,cU=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Mn(A=>A),a=ps(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Pt(A=>A),[l,u]=F.useState(0),[c,p]=F.useState(0),f=fI(),m=l*t+t,b=f&&f.length>0?f.length-1>m:!1,S=d2("sm","down"),T=F.useCallback(A=>{uF(A),n(A),s(!0),a(A),S&&o(!1)},[a,s,o,n,S]),_=()=>{r(),b&&(u(l+1),p(A=>A+1))},x=F.useMemo(()=>{if(f){const A=[...f].sort((E,v)=>(v.date||0)-(E.date||0));return i&&A.sort((E,v)=>{const O=E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0;return(v.node_type==="topic"&&v.name.toLowerCase()===i.toLowerCase()?1:0)-O}),A.slice(0,m)}return[]},[f,i,m]);return y.jsxs(y.Fragment,{children:[(x??[]).map(A=>{const E=Py(A),{image_url:v,date:O,boost:R,show_title:C,node_type:$,text:N,source_link:P,name:z,verified:V=!1,twitter_handle:G}=E||{};return $?y.jsx(My,{boostCount:R||0,date:O||0,imageUrl:v||"",name:z||"",node:A,onClick:()=>{T(A)},showTitle:Ry(C),sourceLink:P,text:N||"",twitterHandle:G,type:$,verified:V},E.ref_id):null}),y.jsx(pU,{align:"center",background:"BG1",direction:"row",justify:"center",children:b&&y.jsx(qt,{onClick:_,size:"medium",children:"Load More"},c)})]})},dU=F.memo(cU),pU=H(q)` flex: 0 0 86px; `,fU=async()=>{const e="/get_trends";return await aI.get(e)};function hU(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gU=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mU=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bU={};function mx(e,t){return((t||bU).jsx?mU:gU).test(e)}const yU=/[ \t\n\f\r]/g;function vU(e){return typeof e=="object"?e.type==="text"?bx(e.value):!1:bx(e)}function bx(e){return e.replace(yU,"")===""}let ms=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ms.prototype.property={};ms.prototype.normal={};ms.prototype.space=null;function zI(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&_U.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(vx,OU);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!vx.test(i)){let o=i.replace(TU,kU);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Fy}return new a(r,t)}function kU(e){return"-"+e.toLowerCase()}function OU(e){return e.charAt(1).toUpperCase()}const IU={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"},RU=zI([HI,qI,YI,KI,EU],"html"),By=zI([HI,qI,YI,KI,wU],"svg");function CU(e){return e.join(" ").trim()}var XI={},Sx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NU=/\n/g,DU=/^\s*/,LU=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,MU=/^:\s*/,PU=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$U=/^[;\s]*/,jU=/^\s+|\s+$/g,FU=` `,xx="/",Ex="*",ga="",BU="comment",UU="declaration",zU=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(m){var b=m.match(NU);b&&(n+=b.length);var S=m.lastIndexOf(FU);r=~S?m.length-S:r+m.length}function i(){var m={line:n,column:r};return function(b){return b.position=new o(m),u(),b}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var S=b[0];return a(S),e=e.slice(S.length),b}}function u(){l(DU)}function c(m){var b;for(m=m||[];b=p();)b!==!1&&m.push(b);return m}function p(){var m=i();if(!(xx!=e.charAt(0)||Ex!=e.charAt(1))){for(var b=2;ga!=e.charAt(b)&&(Ex!=e.charAt(b)||xx!=e.charAt(b+1));)++b;if(b+=2,ga===e.charAt(b-1))return s("End of comment missing");var S=e.slice(2,b-2);return r+=2,a(S),e=e.slice(b),r+=2,m({type:BU,comment:S})}}function f(){var m=i(),b=l(LU);if(b){if(p(),!l(MU))return s("property missing ':'");var S=l(PU),T=m({type:UU,property:wx(b[0].replace(Sx,ga)),value:S?wx(S[0].replace(Sx,ga)):ga});return l($U),T}}function h(){var m=[];c(m);for(var b;b=f();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function wx(e){return e?e.replace(jU,ga):ga}var GU=At&&At.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(XI,"__esModule",{value:!0});var qU=GU(zU);function HU(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,qU.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}var _x=XI.default=HU;const WU=_x.default||_x,ZI=QI("end"),Uy=QI("start");function QI(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function VU(e){const t=Uy(e),n=ZI(e);if(t&&n)return{start:t,end:n}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tx(e.position):"start"in e||"end"in e?Tx(e):"line"in e||"column"in e?Zm(e):""}function Zm(e){return Ax(e&&e.line)+":"+Ax(e&&e.column)}function Tx(e){return Zm(e&&e.start)+"-"+Zm(e&&e.end)}function Ax(e){return e&&typeof e=="number"?e:1}class Xt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=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=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=po(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=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xt.prototype.file="";Xt.prototype.name="";Xt.prototype.reason="";Xt.prototype.message="";Xt.prototype.stack="";Xt.prototype.column=void 0;Xt.prototype.line=void 0;Xt.prototype.ancestors=void 0;Xt.prototype.cause=void 0;Xt.prototype.fatal=void 0;Xt.prototype.place=void 0;Xt.prototype.ruleId=void 0;Xt.prototype.source=void 0;const zy={}.hasOwnProperty,YU=new Map,KU=/[A-Z]/g,XU=/-([a-z])/g,ZU=new Set(["table","tbody","thead","tfoot","tr"]),QU=new Set(["td","th"]),JI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=sz(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oz(n,t.jsx,t.jsxs)}const a={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"?By:RU,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=eR(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function eR(e,t,n){if(t.type==="element")return ez(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return tz(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return rz(e,t,n);if(t.type==="mdxjsEsm")return nz(e,t);if(t.type==="root")return az(e,t,n);if(t.type==="text")return iz(e,t)}function ez(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=By,e.schema=a),e.ancestors.push(t);const i=nR(e,t.tagName,!1),o=lz(e,t);let s=qy(e,t);return ZU.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!vU(l):!0})),tR(e,o,i,t),Gy(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function tz(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Eo(e,t.position)}function nz(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eo(e,t.position)}function rz(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=By,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:nR(e,t.name,!0),o=uz(e,t),s=qy(e,t);return tR(e,o,i,t),Gy(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function az(e,t,n){const r={};return Gy(r,qy(e,t)),e.create(t,e.Fragment,r,n)}function iz(e,t){return t.value}function tR(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gy(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oz(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function sz(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Uy(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function lz(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&zy.call(t.properties,a)){const i=cz(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&QU.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function uz(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Eo(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Eo(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qy(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:YU;for(;++ra?0:a+t:t=t>a?a: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);i0?(pr(e,e.length,0,t),e):t}const Ix={}.hasOwnProperty;function vz(e){const t={};let n=-1;for(;++n13&&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 Qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ez=ea(/\p{P}/u),or=ea(/[A-Za-z]/),xn=ea(/[\dA-Za-z]/),wz=ea(/[#-'*+\--9=?A-Z^-~]/);function Qm(e){return e!==null&&(e<32||e===127)}const Jm=ea(/\d/),_z=ea(/[\dA-Fa-f]/),iR=ea(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}function Tz(e){return iR(e)||Ez(e)}const Az=ea(/\s/);function ea(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oi(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function ct(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return Ke(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ke(l)&&i++o))return;const O=t.events.length;let R=O,C,$;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(C){$=t.events[R][1].end;break}C=!0}for(T(r),v=O;vx;){const E=n[A];t.containerState=E[1],E[0].exit.call(t,e)}n.length=x}function _(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Cz(e,t,n){return ct(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cx(e){if(e===null||fn(e)||Az(e))return 1;if(Tz(e))return 2}function Wy(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);Nx(p,-l),Nx(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rn(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rn(u,Wy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rn(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,pr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ke(v)?ct(e,_,"linePrefix",i+1)(v):_(v)}function _(v){return v===null||Te(v)?e.check(Dx,b,A)(v):(e.enter("codeFlowValue"),x(v))}function x(v){return v===null||Te(v)?(e.exit("codeFlowValue"),_(v)):(e.consume(v),x)}function A(v){return e.exit("codeFenced"),t(v)}function E(v,O,R){let C=0;return $;function $(G){return v.enter("lineEnding"),v.consume(G),v.exit("lineEnding"),N}function N(G){return v.enter("codeFencedFence"),Ke(G)?ct(v,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):P(G)}function P(G){return G===s?(v.enter("codeFencedFenceSequence"),z(G)):R(G)}function z(G){return G===s?(C++,v.consume(G),z):C>=o?(v.exit("codeFencedFenceSequence"),Ke(G)?ct(v,V,"whitespace")(G):V(G)):R(G)}function V(G){return G===null||Te(G)?(v.exit("codeFencedFence"),O(G)):R(G)}}}function Gz(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const rd={name:"codeIndented",tokenize:Hz},qz={tokenize:Wz,partial:!0};function Hz(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),ct(e,i,"linePrefix",4+1)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):Te(u)?e.attempt(qz,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Te(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Wz(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):ct(e,i,"linePrefix",4+1)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Te(o)?a(o):n(o)}}const Vz={name:"codeText",tokenize:Xz,resolve:Yz,previous:Kz};function Yz(e){let t=e.length-4,n=3,r,a;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=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function cR(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return p;function p(T){return T===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(T),e.exit(i),f):T===null||T===32||T===41||Qm(T)?n(T):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(T))}function f(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===62?(e.exit("chunkString"),e.exit(s),f(T)):T===null||T===60||Te(T)?n(T):(e.consume(T),T===92?m:h)}function m(T){return T===60||T===62||T===92?(e.consume(T),h):h(T)}function b(T){return!c&&(T===null||T===41||fn(T))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(T)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):Te(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Te(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ke(h)),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function pR(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),l(o)):f===null?n(f):Te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ct(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Te(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:c)}function p(f){return f===o||f===92?(e.consume(f),c):c(f)}}function fo(e,t){let n;return r;function r(a){return Te(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ke(a)?ct(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const rG={name:"definition",tokenize:iG},aG={tokenize:oG,partial:!0};function iG(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return dR.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return fn(h)?fo(e,u)(h):u(h)}function u(h){return cR(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(aG,p,p)(h)}function p(h){return Ke(h)?ct(e,f,"whitespace")(h):f(h)}function f(h){return h===null||Te(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function oG(e,t,n){return r;function r(s){return fn(s)?fo(e,a)(s):n(s)}function a(s){return pR(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Ke(s)?ct(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Te(s)?t(s):n(s)}}const sG={name:"hardBreakEscape",tokenize:lG};function lG(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Te(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const uG={name:"headingAtx",tokenize:dG,resolve:cG};function cG(e,t){let n=e.length-2,r=3,a,i;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},pr(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function dG(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||fn(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Te(c)?(e.exit("atxHeading"),t(c)):Ke(c)?ct(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||fn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const pG=["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"],Mx=["pre","script","style","textarea"],fG={name:"htmlFlow",tokenize:bG,resolveTo:mG,concrete:!0},hG={tokenize:vG,partial:!0},gG={tokenize:yG,partial:!0};function mG(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 bG(e,t,n){const r=this;let a,i,o,s,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),i=!0,b):M===63?(e.consume(M),a=3,r.interrupt?t:D):or(M)?(e.consume(M),o=String.fromCharCode(M),S):n(M)}function f(M){return M===45?(e.consume(M),a=2,h):M===91?(e.consume(M),a=5,s=0,m):or(M)?(e.consume(M),a=4,r.interrupt?t:D):n(M)}function h(M){return M===45?(e.consume(M),r.interrupt?t:D):n(M)}function m(M){const ye="CDATA[";return M===ye.charCodeAt(s++)?(e.consume(M),s===ye.length?r.interrupt?t:P:m):n(M)}function b(M){return or(M)?(e.consume(M),o=String.fromCharCode(M),S):n(M)}function S(M){if(M===null||M===47||M===62||fn(M)){const ye=M===47,re=o.toLowerCase();return!ye&&!i&&Mx.includes(re)?(a=1,r.interrupt?t(M):P(M)):pG.includes(o.toLowerCase())?(a=6,ye?(e.consume(M),T):r.interrupt?t(M):P(M)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):i?_(M):x(M))}return M===45||xn(M)?(e.consume(M),o+=String.fromCharCode(M),S):n(M)}function T(M){return M===62?(e.consume(M),r.interrupt?t:P):n(M)}function _(M){return Ke(M)?(e.consume(M),_):$(M)}function x(M){return M===47?(e.consume(M),$):M===58||M===95||or(M)?(e.consume(M),A):Ke(M)?(e.consume(M),x):$(M)}function A(M){return M===45||M===46||M===58||M===95||xn(M)?(e.consume(M),A):E(M)}function E(M){return M===61?(e.consume(M),v):Ke(M)?(e.consume(M),E):x(M)}function v(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,O):Ke(M)?(e.consume(M),v):R(M)}function O(M){return M===l?(e.consume(M),l=null,C):M===null||Te(M)?n(M):(e.consume(M),O)}function R(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||fn(M)?E(M):(e.consume(M),R)}function C(M){return M===47||M===62||Ke(M)?x(M):n(M)}function $(M){return M===62?(e.consume(M),N):n(M)}function N(M){return M===null||Te(M)?P(M):Ke(M)?(e.consume(M),N):n(M)}function P(M){return M===45&&a===2?(e.consume(M),K):M===60&&a===1?(e.consume(M),X):M===62&&a===4?(e.consume(M),ie):M===63&&a===3?(e.consume(M),D):M===93&&a===5?(e.consume(M),Z):Te(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(hG,ne,z)(M)):M===null||Te(M)?(e.exit("htmlFlowData"),z(M)):(e.consume(M),P)}function z(M){return e.check(gG,V,ne)(M)}function V(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),G}function G(M){return M===null||Te(M)?z(M):(e.enter("htmlFlowData"),P(M))}function K(M){return M===45?(e.consume(M),D):P(M)}function X(M){return M===47?(e.consume(M),o="",W):P(M)}function W(M){if(M===62){const ye=o.toLowerCase();return Mx.includes(ye)?(e.consume(M),ie):P(M)}return or(M)&&o.length<8?(e.consume(M),o+=String.fromCharCode(M),W):P(M)}function Z(M){return M===93?(e.consume(M),D):P(M)}function D(M){return M===62?(e.consume(M),ie):M===45&&a===2?(e.consume(M),D):P(M)}function ie(M){return M===null||Te(M)?(e.exit("htmlFlowData"),ne(M)):(e.consume(M),ie)}function ne(M){return e.exit("htmlFlow"),t(M)}}function yG(e,t,n){const r=this;return a;function a(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function vG(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Mu,t,n)}}const SG={name:"htmlText",tokenize:xG};function xG(e,t,n){const r=this;let a,i,o;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),l}function l(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),E):D===63?(e.consume(D),x):or(D)?(e.consume(D),R):n(D)}function u(D){return D===45?(e.consume(D),c):D===91?(e.consume(D),i=0,m):or(D)?(e.consume(D),_):n(D)}function c(D){return D===45?(e.consume(D),h):n(D)}function p(D){return D===null?n(D):D===45?(e.consume(D),f):Te(D)?(o=p,X(D)):(e.consume(D),p)}function f(D){return D===45?(e.consume(D),h):p(D)}function h(D){return D===62?K(D):D===45?f(D):p(D)}function m(D){const ie="CDATA[";return D===ie.charCodeAt(i++)?(e.consume(D),i===ie.length?b:m):n(D)}function b(D){return D===null?n(D):D===93?(e.consume(D),S):Te(D)?(o=b,X(D)):(e.consume(D),b)}function S(D){return D===93?(e.consume(D),T):b(D)}function T(D){return D===62?K(D):D===93?(e.consume(D),T):b(D)}function _(D){return D===null||D===62?K(D):Te(D)?(o=_,X(D)):(e.consume(D),_)}function x(D){return D===null?n(D):D===63?(e.consume(D),A):Te(D)?(o=x,X(D)):(e.consume(D),x)}function A(D){return D===62?K(D):x(D)}function E(D){return or(D)?(e.consume(D),v):n(D)}function v(D){return D===45||xn(D)?(e.consume(D),v):O(D)}function O(D){return Te(D)?(o=O,X(D)):Ke(D)?(e.consume(D),O):K(D)}function R(D){return D===45||xn(D)?(e.consume(D),R):D===47||D===62||fn(D)?C(D):n(D)}function C(D){return D===47?(e.consume(D),K):D===58||D===95||or(D)?(e.consume(D),$):Te(D)?(o=C,X(D)):Ke(D)?(e.consume(D),C):K(D)}function $(D){return D===45||D===46||D===58||D===95||xn(D)?(e.consume(D),$):N(D)}function N(D){return D===61?(e.consume(D),P):Te(D)?(o=N,X(D)):Ke(D)?(e.consume(D),N):C(D)}function P(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,z):Te(D)?(o=P,X(D)):Ke(D)?(e.consume(D),P):(e.consume(D),V)}function z(D){return D===a?(e.consume(D),a=void 0,G):D===null?n(D):Te(D)?(o=z,X(D)):(e.consume(D),z)}function V(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||fn(D)?C(D):(e.consume(D),V)}function G(D){return D===47||D===62||fn(D)?C(D):n(D)}function K(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function X(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return Ke(D)?ct(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):Z(D)}function Z(D){return e.enter("htmlTextData"),o(D)}}const Vy={name:"labelEnd",tokenize:kG,resolveTo:AG,resolveAll:TG},EG={tokenize:OG},wG={tokenize:IG},_G={tokenize:RG};function TG(e){let t=-1;for(;++t=3&&(u===null||Te(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ke(u)?ct(e,s,"whitespace")(u):s(u))}}const cn={name:"list",tokenize:FG,continuation:{tokenize:BG},exit:zG},$G={tokenize:GG,partial:!0},jG={tokenize:UG,partial:!0};function FG(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Jm(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Sl,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Jm(h)&&++o<10?(e.consume(h),l):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Mu,r.interrupt?n:c,e.attempt($G,f,p))}function c(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return Ke(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function BG(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Mu,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ct(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Ke(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jG,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ct(e,e.attempt(cn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function UG(e,t,n){const r=this;return ct(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function zG(e){e.exit(this.containerState.type)}function GG(e,t,n){const r=this;return ct(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!Ke(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Px={name:"setextUnderline",tokenize:HG,resolveTo:qG};function qG(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function HG(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,p;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){p=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ke(u)?ct(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Te(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const WG={tokenize:VG};function VG(e){const t=this,n=e.attempt(Mu,r,e.attempt(this.parser.constructs.flowInitial,a,ct(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Qz,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const YG={resolveAll:hR()},KG=fR("string"),XG=fR("text");function fR(e){return{tokenize:t,resolveAll:hR(e==="text"?ZG:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const p=a[c];let f=-1;if(p)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function eq(e,t){let n=-1;const r=[];let a;for(;++n0&&n.push({type:"text",value:` `}),n}function Wx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Vx(e,t){const n=cH(e,t),r=n.one(e,void 0),a=Jq(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` -`},a),i}function gH(e,t){return e&&"run"in e?async function(n,r){const a=Vx(n,t);await e.run(a,r)}:function(n){return Vx(n,t||e)}}function Yx(e){if(e)throw e}var xl=Object.prototype.hasOwnProperty,TR=Object.prototype.toString,Kx=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,Zx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):TR.call(t)==="[object Array]"},Qx=function(t){if(!t||TR.call(t)!=="[object Object]")return!1;var n=xl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||xl.call(t,a)},Jx=function(t,n){Kx&&n.name==="__proto__"?Kx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},eE=function(t,n){if(n==="__proto__")if(xl.call(t,n)){if(Xx)return Xx(t,n).value}else return;return t[n]},mH=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&n)throw c;return a(c)}s||(l instanceof Promise?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const rr={basename:vH,dirname:SH,extname:xH,join:EH,sep:"/"};function vH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bs(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function SH(e){if(bs(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||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xH(e){bs(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function EH(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _H(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function bs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TH={cwd:AH};function AH(){return"/"}function rb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kH(e){if(typeof e=="string")e=new URL(e);else if(!rb(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return OH(e)}function OH(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=c;const b=r[f][1];nb(b)&&nb(h)&&(h=id(!0,b,h)),r[f]=[u,h,...m]}}}}const NH=new Qy().freeze();function ud(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nE(e){if(!nb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rl(e){return DH(e)?e:new AR(e)}function DH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function LH(e){return typeof e=="string"||MH(e)}function MH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",aE=[],iE={allowDangerousHtml:!0},$H=/^(https?|ircs?|mailto|xmpp)$/i,jH=[{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:"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 FH(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||aE,l=e.remarkPlugins||aE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iE}:iE,c=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||BH,h=NH().use(Sq).use(l).use(gH,u).use(s),m=new AR;typeof r=="string"&&(m.value=r);for(const _ of jH)Object.hasOwn(e,_.from)&&(""+_.from+(_.to?"use `"+_.to+"` instead":"remove it")+PH+_.id,void 0);const b=h.parse(m);let S=h.runSync(b,m);return a&&(S={type:"element",tagName:"div",properties:{className:a},children:S.type==="root"?S.children:[S]}),_R(S,T),JU(S,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function T(_,x,A){if(_.type==="raw"&&A&&typeof x=="number")return c?A.children.splice(x,1):A.children[x]={type:"text",value:_.value},x;if(_.type==="element"){let E;for(E in nd)if(Object.hasOwn(nd,E)&&Object.hasOwn(_.properties,E)){const v=_.properties[E],O=nd[E];(O===null||O.includes(_.tagName))&&(_.properties[E]=f(String(v||""),E,_))}}if(_.type==="element"){let E=t?!t.includes(_.tagName):o?o.includes(_.tagName):!1;if(!E&&n&&typeof x=="number"&&(E=!n(_,x,A)),E&&A&&typeof x=="number")return p&&_.children?A.children.splice(x,1,..._.children):A.children.splice(x,1),x}}}function BH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||$H.test(e.slice(0,t))?e:""}const UH=({trend:e,onClose:t})=>{var S,T;const[n,r]=F.useState(!1),{close:a}=Ym("briefDescription"),{currentPlayingAudio:i,setCurrentPlayingAudio:o}=Pt(_=>_),[s]=ds(_=>[_.setBudget]),{fetchData:l,setAbortRequests:u}=Mn(_=>_),c=F.useRef(null),p=async()=>{f(),await l(s,u,e.tldr_topic??e.name)},f=F.useCallback(()=>{t(),a()},[t,a]),h=()=>{c.current&&(n?c.current.pause():c.current.play(),r(!n))},m=()=>{var x,A,E;const _=!((x=i==null?void 0:i.current)!=null&&x.paused);_&&((A=i==null?void 0:i.current)==null||A.pause(),o(null)),(((E=i==null?void 0:i.current)==null?void 0:E.src)!==e.audio_EN||!_)&&h()};F.useEffect(()=>{const _=c.current,x=()=>{r(!1),o(null)};return _&&_.addEventListener("ended",x),()=>{_&&_.removeEventListener("ended",x)}},[o]);const b=((S=i==null?void 0:i.current)==null?void 0:S.src)===e.audio_EN&&!((T=i==null?void 0:i.current)!=null&&T.paused)||n;return y.jsxs(tF,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:f,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(WH,{children:[y.jsx(oE,{className:lr("default",{play:b}),onClick:m,size:"small",startIcon:b?y.jsx(Ru,{}):y.jsx(Ej,{}),children:b?"Pause":"Listen"}),y.jsx(oE,{className:"default",onClick:p,size:"small",startIcon:y.jsx(wj,{}),children:"Learn More"})]}),y.jsx(HH,{ref:c,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(q,{mt:75,children:[y.jsx(qH,{children:e.tldr_topic??e.name}),y.jsx(zH,{children:y.jsx(q,{children:y.jsx(GH,{children:e.tldr&&y.jsx(FH,{children:e.tldr})})})})]})]})},zH=H.div` +`},a),i}function gH(e,t){return e&&"run"in e?async function(n,r){const a=Vx(n,t);await e.run(a,r)}:function(n){return Vx(n,t||e)}}function Yx(e){if(e)throw e}var xl=Object.prototype.hasOwnProperty,TR=Object.prototype.toString,Kx=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,Zx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):TR.call(t)==="[object Array]"},Qx=function(t){if(!t||TR.call(t)!=="[object Object]")return!1;var n=xl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||xl.call(t,a)},Jx=function(t,n){Kx&&n.name==="__proto__"?Kx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},eE=function(t,n){if(n==="__proto__")if(xl.call(t,n)){if(Xx)return Xx(t,n).value}else return;return t[n]},mH=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&n)throw c;return a(c)}s||(l instanceof Promise?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const rr={basename:vH,dirname:SH,extname:xH,join:EH,sep:"/"};function vH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bs(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function SH(e){if(bs(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||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xH(e){bs(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function EH(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function _H(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function bs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const TH={cwd:AH};function AH(){return"/"}function rb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kH(e){if(typeof e=="string")e=new URL(e);else if(!rb(e)){const t=new 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:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return OH(e)}function OH(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=c;const b=r[f][1];nb(b)&&nb(h)&&(h=id(!0,b,h)),r[f]=[u,h,...m]}}}}const NH=new Qy().freeze();function ud(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nE(e){if(!nb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function rE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rl(e){return DH(e)?e:new AR(e)}function DH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function LH(e){return typeof e=="string"||MH(e)}function MH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",aE=[],iE={allowDangerousHtml:!0},$H=/^(https?|ircs?|mailto|xmpp)$/i,jH=[{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:"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 FH(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||aE,l=e.remarkPlugins||aE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iE}:iE,c=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||BH,h=NH().use(Sq).use(l).use(gH,u).use(s),m=new AR;typeof r=="string"&&(m.value=r);for(const _ of jH)Object.hasOwn(e,_.from)&&(""+_.from+(_.to?"use `"+_.to+"` instead":"remove it")+PH+_.id,void 0);const b=h.parse(m);let S=h.runSync(b,m);return a&&(S={type:"element",tagName:"div",properties:{className:a},children:S.type==="root"?S.children:[S]}),_R(S,T),JU(S,{Fragment:y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function T(_,x,A){if(_.type==="raw"&&A&&typeof x=="number")return c?A.children.splice(x,1):A.children[x]={type:"text",value:_.value},x;if(_.type==="element"){let E;for(E in nd)if(Object.hasOwn(nd,E)&&Object.hasOwn(_.properties,E)){const v=_.properties[E],O=nd[E];(O===null||O.includes(_.tagName))&&(_.properties[E]=f(String(v||""),E,_))}}if(_.type==="element"){let E=t?!t.includes(_.tagName):o?o.includes(_.tagName):!1;if(!E&&n&&typeof x=="number"&&(E=!n(_,x,A)),E&&A&&typeof x=="number")return p&&_.children?A.children.splice(x,1,..._.children):A.children.splice(x,1),x}}}function BH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||$H.test(e.slice(0,t))?e:""}const UH=({trend:e,onClose:t})=>{var S,T;const[n,r]=F.useState(!1),{close:a}=Ym("briefDescription"),{currentPlayingAudio:i,setCurrentPlayingAudio:o}=Pt(_=>_),[s]=ds(_=>[_.setBudget]),{fetchData:l,setAbortRequests:u}=Mn(_=>_),c=F.useRef(null),p=async()=>{f(),await l(s,u,e.tldr_topic??e.name)},f=F.useCallback(()=>{t(),a()},[t,a]),h=()=>{c.current&&(n?c.current.pause():c.current.play(),r(!n))},m=()=>{var x,A,E;const _=!((x=i==null?void 0:i.current)!=null&&x.paused);_&&((A=i==null?void 0:i.current)==null||A.pause(),o(null)),(((E=i==null?void 0:i.current)==null?void 0:E.src)!==e.audio_EN||!_)&&h()};F.useEffect(()=>{const _=c.current,x=()=>{r(!1),o(null)};return _&&_.addEventListener("ended",x),()=>{_&&_.removeEventListener("ended",x)}},[o]);const b=((S=i==null?void 0:i.current)==null?void 0:S.src)===e.audio_EN&&!((T=i==null?void 0:i.current)!=null&&T.paused)||n;return y.jsxs(X$,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:f,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(WH,{children:[y.jsx(oE,{className:lr("default",{play:b}),onClick:m,size:"small",startIcon:b?y.jsx(Ru,{}):y.jsx(Oj,{}),children:b?"Pause":"Listen"}),y.jsx(oE,{className:"default",onClick:p,size:"small",startIcon:y.jsx(Ij,{}),children:"Learn More"})]}),y.jsx(HH,{ref:c,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(q,{mt:75,children:[y.jsx(qH,{children:e.tldr_topic??e.name}),y.jsx(zH,{children:y.jsx(q,{children:y.jsx(GH,{children:e.tldr&&y.jsx(FH,{children:e.tldr})})})})]})]})},zH=H.div` max-height: 310px; overflow-y: auto; margin: 8px 0; @@ -1167,7 +1167,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni align-items: center; background-color: ${j.BG3}; gap: 10px; -`,VH=["Drivechain","Ordinals","L402","Nostr","AI"],YH=()=>{var $;const{open:e}=Ym("addContent"),[t,n]=F.useState(!1),[r,a]=F.useState(!1),[i,o]=F.useState(null),s=F.useRef(null),[l,u]=F.useState(0),[c,p]=F.useState(!1),{currentPlayingAudio:f,setCurrentPlayingAudio:h}=Pt(N=>N),m=Au(),{open:b}=Ym("briefDescription"),{trendingTopics:S,setTrendingTopics:T}=Mn(N=>N),{setValue:_}=ky(),x=F.useCallback(async()=>{n(!0),a(!1),u(0),p(!1),h(null);try{const N=await fU();if(N.length&&Array.isArray(N)){const P=new Map(N.map(V=>[V.name,V])),z=Array.from(P.values());T(z)}}catch{T(VH.map(P=>({name:P,count:0})))}finally{n(!1)}},[h,T]);F.useEffect(()=>{S.length||x()},[x,S.length]),F.useEffect(()=>{const N=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(N)},[a,t]);const A=N=>{_("search",N);const P=N.replace(/\s+/g,"+");m(`/search?q=${P}`)},E=(N,P)=>{N.stopPropagation(),N.currentTarget.blur(),P!=null&&P.tldr&&(o(P),b())},v=()=>{o(null)},O=N=>{N.stopPropagation(),N.currentTarget.blur(),p(!c),h(s)};F.useEffect(()=>{var N,P;c?(N=s.current)==null||N.play():(P=s.current)==null||P.pause()},[l,c]),F.useEffect(()=>{f||p(!1)},[f]);const R=()=>{u(N=>{var z,V;let P=(N+1)%S.length;for(;P!==N&&!((z=S[P])!=null&&z.audio_EN);)P=(P+1)%S.length;return P===N?(p(!1),P):((V=s.current)==null||V.load(),P===0&&(p(!1),u(0)),P)}),h(s)},C=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(XH,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Nu,{color:j.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(QH,{onClick:x,size:"small",startIcon:y.jsx(_j,{})}):y.jsx(Tj,{})})})]}),p2(S)?y.jsxs("div",{children:[y.jsx(qt,{onClick:N=>O(N),startIcon:c?y.jsx(Ru,{}):y.jsx(Cy,{}),children:c?"Pause":"Play All"}),y.jsx(t3,{ref:s,onEnded:R,src:($=S[l])==null?void 0:$.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),S.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(ZH,{children:C}),y.jsx(qt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Oy,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:S.map((N,P)=>y.jsxs(q,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>A(N.tldr_topic??N.name),children:[y.jsxs(KH,{children:[y.jsx(e3,{children:y.jsx(Aj,{})}),y.jsx("span",{className:"tldr",children:f2(N)})]}),N.tldr&&y.jsx(JH,{className:lr({isPlaying:l===P&&c}),onClick:z=>E(z,N),children:"TLDR"})]},N.name))})]}),i&&y.jsx(UH,{onClose:v,trend:i})]})},KH=H.div` +`,VH=["Drivechain","Ordinals","L402","Nostr","AI"],YH=()=>{var $;const{open:e}=Ym("addContent"),[t,n]=F.useState(!1),[r,a]=F.useState(!1),[i,o]=F.useState(null),s=F.useRef(null),[l,u]=F.useState(0),[c,p]=F.useState(!1),{currentPlayingAudio:f,setCurrentPlayingAudio:h}=Pt(N=>N),m=Au(),{open:b}=Ym("briefDescription"),{trendingTopics:S,setTrendingTopics:T}=Mn(N=>N),{setValue:_}=ky(),x=F.useCallback(async()=>{n(!0),a(!1),u(0),p(!1),h(null);try{const N=await fU();if(N.length&&Array.isArray(N)){const P=new Map(N.map(V=>[V.name,V])),z=Array.from(P.values());T(z)}}catch{T(VH.map(P=>({name:P,count:0})))}finally{n(!1)}},[h,T]);F.useEffect(()=>{S.length||x()},[x,S.length]),F.useEffect(()=>{const N=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(N)},[a,t]);const A=N=>{_("search",N);const P=N.replace(/\s+/g,"+");m(`/search?q=${P}`)},E=(N,P)=>{N.stopPropagation(),N.currentTarget.blur(),P!=null&&P.tldr&&(o(P),b())},v=()=>{o(null)},O=N=>{N.stopPropagation(),N.currentTarget.blur(),p(!c),h(s)};F.useEffect(()=>{var N,P;c?(N=s.current)==null||N.play():(P=s.current)==null||P.pause()},[l,c]),F.useEffect(()=>{f||p(!1)},[f]);const R=()=>{u(N=>{var z,V;let P=(N+1)%S.length;for(;P!==N&&!((z=S[P])!=null&&z.audio_EN);)P=(P+1)%S.length;return P===N?(p(!1),P):((V=s.current)==null||V.load(),P===0&&(p(!1),u(0)),P)}),h(s)},C=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(XH,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Nu,{color:j.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(QH,{onClick:x,size:"small",startIcon:y.jsx(Rj,{})}):y.jsx(Cj,{})})})]}),p2(S)?y.jsxs("div",{children:[y.jsx(qt,{onClick:N=>O(N),startIcon:c?y.jsx(Ru,{}):y.jsx(Cy,{}),children:c?"Pause":"Play All"}),y.jsx(t3,{ref:s,onEnded:R,src:($=S[l])==null?void 0:$.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),S.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(ZH,{children:C}),y.jsx(qt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Oy,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:S.map((N,P)=>y.jsxs(q,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>A(N.tldr_topic??N.name),children:[y.jsxs(KH,{children:[y.jsx(e3,{children:y.jsx(Nj,{})}),y.jsx("span",{className:"tldr",children:f2(N)})]}),N.tldr&&y.jsx(JH,{className:lr({isPlaying:l===P&&c}),onClick:z=>E(z,N),children:"TLDR"})]},N.name))})]}),i&&y.jsx(UH,{onClose:v,trend:i})]})},KH=H.div` position: relative; display: flex; align-items: flex-start; @@ -1274,7 +1274,7 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni `,t3=H.audio` height: 0; width: 0; -`,n3=()=>{const{isFetching:e,setSidebarFilter:t}=Mn(O=>O),n=ps(),r=dI(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Pt(O=>O),[s]=cI(O=>[O.trendingTopicsFeatureFlag]),{setValue:l,watch:u}=ky(),c=F.useRef(null),[p,f]=F.useState(!1),[h,m]=F.useState(!1),[b,S]=F.useState(null),[T]=V$(),_=T.get("q")??"";F.useEffect(()=>{l("search",_||o)},[l,o,_]),F.useEffect(()=>{const O=c.current;if(!O)return;const R=()=>{f((O==null?void 0:O.scrollTop)>0)};O.addEventListener("scroll",R)},[]);const x=u("search"),A=O=>{S(h?null:O.currentTarget),m(R=>!R)},E=()=>{m(!1),S(null)},v=Au();return y.jsxs(y.Fragment,{children:[y.jsxs(kR,{className:lr({"has-shadow":p}),children:[y.jsxs(l3,{children:[y.jsxs(r3,{children:[y.jsx(LI,{}),y.jsx(i3,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),n(null),v("/");return}if(x.trim()==="")return;const O=x.replace(/\s+/g,"+");v(`/search?q=${O}`)},children:e?y.jsx(Nu,{color:j.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:a!=null&&a.trim()?y.jsx(wI,{}):y.jsx(bI,{})})})]}),y.jsx(u3,{"data-testid":"search_filter_icon",isFilterOpen:h,onClick:A,children:h?y.jsx(kj,{}):y.jsx(Oj,{})}),y.jsx(ZB,{anchorEl:b,onClose:E,setAnchorEl:S})]}),a&&y.jsx(a3,{children:e?y.jsx(aU,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:r.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(OB,{})})]})})]}),y.jsxs(o3,{ref:c,children:[!a&&s&&y.jsx(s3,{children:y.jsx(YH,{})}),!a&&y.jsx(lU,{}),e?y.jsx(PI,{}):y.jsx(dU,{isSearchResult:!!a})]})]})},kR=H(q).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:j.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),r3=H(q).attrs({direction:"row",justify:"center",align:"center"})` +`,n3=()=>{const{isFetching:e,setSidebarFilter:t}=Mn(O=>O),n=ps(),r=fI(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Pt(O=>O),[s]=dI(O=>[O.trendingTopicsFeatureFlag]),{setValue:l,watch:u}=ky(),c=F.useRef(null),[p,f]=F.useState(!1),[h,m]=F.useState(!1),[b,S]=F.useState(null),[T]=Z$(),_=T.get("q")??"";F.useEffect(()=>{l("search",_||o)},[l,o,_]),F.useEffect(()=>{const O=c.current;if(!O)return;const R=()=>{f((O==null?void 0:O.scrollTop)>0)};O.addEventListener("scroll",R)},[]);const x=u("search"),A=O=>{S(h?null:O.currentTarget),m(R=>!R)},E=()=>{m(!1),S(null)},v=Au();return y.jsxs(y.Fragment,{children:[y.jsxs(kR,{className:lr({"has-shadow":p}),children:[y.jsxs(l3,{children:[y.jsxs(r3,{children:[y.jsx(LI,{}),y.jsx(i3,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),n(null),v("/");return}if(x.trim()==="")return;const O=x.replace(/\s+/g,"+");v(`/search?q=${O}`)},children:e?y.jsx(Nu,{color:j.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:a!=null&&a.trim()?y.jsx(pI,{}):y.jsx(yI,{})})})]}),y.jsx(u3,{"data-testid":"search_filter_icon",isFilterOpen:h,onClick:A,children:h?y.jsx(Dj,{}):y.jsx(Lj,{})}),y.jsx(ZB,{anchorEl:b,onClose:E,setAnchorEl:S})]}),a&&y.jsx(a3,{children:e?y.jsx(aU,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:r.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(OB,{})})]})})]}),y.jsxs(o3,{ref:c,children:[!a&&s&&y.jsx(s3,{children:y.jsx(YH,{})}),!a&&y.jsx(lU,{}),e?y.jsx(PI,{}):y.jsx(dU,{isSearchResult:!!a})]})]})},kR=H(q).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:j.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),r3=H(q).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; `,a3=H(q).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; @@ -1346,24 +1346,24 @@ return r.version="2.29.4",a(dt),r.fn=se,r.min=kM,r.max=OM,r.now=IM,r.utc=m,r.uni * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $t=typeof Symbol=="function"&&Symbol.for,Jy=$t?Symbol.for("react.element"):60103,ev=$t?Symbol.for("react.portal"):60106,ju=$t?Symbol.for("react.fragment"):60107,Fu=$t?Symbol.for("react.strict_mode"):60108,Bu=$t?Symbol.for("react.profiler"):60114,Uu=$t?Symbol.for("react.provider"):60109,zu=$t?Symbol.for("react.context"):60110,tv=$t?Symbol.for("react.async_mode"):60111,Gu=$t?Symbol.for("react.concurrent_mode"):60111,qu=$t?Symbol.for("react.forward_ref"):60112,Hu=$t?Symbol.for("react.suspense"):60113,p3=$t?Symbol.for("react.suspense_list"):60120,Wu=$t?Symbol.for("react.memo"):60115,Vu=$t?Symbol.for("react.lazy"):60116,f3=$t?Symbol.for("react.block"):60121,h3=$t?Symbol.for("react.fundamental"):60117,g3=$t?Symbol.for("react.responder"):60118,m3=$t?Symbol.for("react.scope"):60119;function wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jy:switch(e=e.type,e){case tv:case Gu:case ju:case Bu:case Fu:case Hu:return e;default:switch(e=e&&e.$$typeof,e){case zu:case qu:case Vu:case Wu:case Uu:return e;default:return t}}case ev:return t}}}function RR(e){return wn(e)===Gu}et.AsyncMode=tv;et.ConcurrentMode=Gu;et.ContextConsumer=zu;et.ContextProvider=Uu;et.Element=Jy;et.ForwardRef=qu;et.Fragment=ju;et.Lazy=Vu;et.Memo=Wu;et.Portal=ev;et.Profiler=Bu;et.StrictMode=Fu;et.Suspense=Hu;et.isAsyncMode=function(e){return RR(e)||wn(e)===tv};et.isConcurrentMode=RR;et.isContextConsumer=function(e){return wn(e)===zu};et.isContextProvider=function(e){return wn(e)===Uu};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jy};et.isForwardRef=function(e){return wn(e)===qu};et.isFragment=function(e){return wn(e)===ju};et.isLazy=function(e){return wn(e)===Vu};et.isMemo=function(e){return wn(e)===Wu};et.isPortal=function(e){return wn(e)===ev};et.isProfiler=function(e){return wn(e)===Bu};et.isStrictMode=function(e){return wn(e)===Fu};et.isSuspense=function(e){return wn(e)===Hu};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ju||e===Gu||e===Bu||e===Fu||e===Hu||e===p3||typeof e=="object"&&e!==null&&(e.$$typeof===Vu||e.$$typeof===Wu||e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===qu||e.$$typeof===h3||e.$$typeof===g3||e.$$typeof===m3||e.$$typeof===f3)};et.typeOf=wn;IR.exports=et;var ab=IR.exports,b3=pI,y3=fI,v3="[object Number]";function S3(e){return typeof e=="number"||y3(e)&&b3(e)==v3}var CR=S3;const x3=St(CR);var E3=CR;function w3(e){return E3(e)&&e!=+e}var _3=w3;const ys=St(_3);var Zn=function(t){return t===0?0:t>0?1:-1},ma=function(t){return fs(t)&&t.indexOf("%")===t.length-1},fe=function(t){return x3(t)&&!ys(t)},Nt=function(t){return fe(t)||fs(t)},T3=0,vs=function(t){var n=++T3;return"".concat(t||"").concat(n)},ai=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!fs(t))return r;var i;if(ma(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return ys(i)&&(i=r),a&&i>n&&(i=n),i},Wr=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},A3=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function D3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var uE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ir=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},cE=null,fd=null,rv=function e(t){if(t===cE&&Array.isArray(fd))return fd;var n=[];return F.Children.forEach(t,function(r){Be(r)||(ab.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),fd=n,cE=t,n};function En(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ir(a)}):r=[Ir(t)],rv(e).forEach(function(a){var i=Dn(a,"type.displayName")||Dn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Ar(e,t){var n=En(e,t);return n&&n[0]}var dE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!fe(r)||r<=0||!fe(a)||a<=0)},L3=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],M3=function(t){return t&&t.type&&fs(t.type)&&L3.indexOf(t.type)>=0},P3=function(t,n,r,a){var i,o=(i=pd==null?void 0:pd[a])!==null&&i!==void 0?i:[];return!Fe(t)&&(a&&o.includes(n)||I3.includes(n))||r&&nv.includes(n)},He=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(F.isValidElement(t)&&(a=t.props),!Ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;P3((s=a)===null||s===void 0?void 0:s[o],o,n,r)&&(i[o]=a[o])}),i},NR=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return pE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function sb(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,u=B3(e,F3),c=a||{width:n,height:r,x:0,y:0},p=rt("recharts-surface",i);return Y.createElement("svg",ob({},He(u,!0,"svg"),{className:p,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),Y.createElement("title",null,s),Y.createElement("desc",null,l),t)}var z3=["children","className"];function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var yt=Y.forwardRef(function(e,t){var n=e.children,r=e.className,a=G3(e,z3),i=rt("recharts-layer",r);return Y.createElement("g",lb({className:i},He(a,!0),{ref:t}),n)}),Sa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;ia?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=r?e:V3(e,t,n)}var K3=Y3,X3="\\ud800-\\udfff",Z3="\\u0300-\\u036f",Q3="\\ufe20-\\ufe2f",J3="\\u20d0-\\u20ff",eW=Z3+Q3+J3,tW="\\ufe0e\\ufe0f",nW="\\u200d",rW=RegExp("["+nW+X3+eW+tW+"]");function aW(e){return rW.test(e)}var DR=aW;function iW(e){return e.split("")}var oW=iW,LR="\\ud800-\\udfff",sW="\\u0300-\\u036f",lW="\\ufe20-\\ufe2f",uW="\\u20d0-\\u20ff",cW=sW+lW+uW,dW="\\ufe0e\\ufe0f",pW="["+LR+"]",ub="["+cW+"]",cb="\\ud83c[\\udffb-\\udfff]",fW="(?:"+ub+"|"+cb+")",MR="[^"+LR+"]",PR="(?:\\ud83c[\\udde6-\\uddff]){2}",$R="[\\ud800-\\udbff][\\udc00-\\udfff]",hW="\\u200d",jR=fW+"?",FR="["+dW+"]?",gW="(?:"+hW+"(?:"+[MR,PR,$R].join("|")+")"+FR+jR+")*",mW=FR+jR+gW,bW="(?:"+[MR+ub+"?",ub,PR,$R,pW].join("|")+")",yW=RegExp(cb+"(?="+cb+")|"+bW+mW,"g");function vW(e){return e.match(yW)||[]}var SW=vW,xW=oW,EW=DR,wW=SW;function _W(e){return EW(e)?wW(e):xW(e)}var TW=_W,AW=K3,kW=DR,OW=TW,IW=qj;function RW(e){return function(t){t=IW(t);var n=kW(t)?OW(t):void 0,r=n?n[0]:t.charAt(0),a=n?AW(n,1).join(""):t.slice(1);return r[e]()+a}}var CW=RW,NW=CW,DW=NW("toUpperCase"),LW=DW;const Yu=St(LW);function ut(e){return function(){return e}}const BR=Math.cos,Ll=Math.sin,er=Math.sqrt,Ml=Math.PI,Ku=2*Ml,db=Math.PI,pb=2*db,fa=1e-6,MW=pb-fa;function UR(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return UR;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;afa)if(!(Math.abs(p*l-u*c)>fa)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,m=a-s,b=l*l+u*u,S=h*h+m*m,T=Math.sqrt(b),_=Math.sqrt(f),x=i*Math.tan((db-Math.acos((b+f-S)/(2*T*_)))/2),A=x/_,E=x/T;Math.abs(A-1)>fa&&this._append`L${t+A*c},${n+A*p}`,this._append`A${i},${i},0,0,${+(p*h>c*m)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),l=r*Math.sin(a),u=t+s,c=n+l,p=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>fa||Math.abs(this._y1-c)>fa)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%pb+pb),f>MW?this._append`A${r},${r},0,1,${p},${t-s},${n-l}A${r},${r},0,1,${p},${this._x1=u},${this._y1=c}`:f>fa&&this._append`A${r},${r},0,${+(f>=db)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function av(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new $W(t)}function iv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zR(e){this._context=e}zR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Xu(e){return new zR(e)}function GR(e){return e[0]}function qR(e){return e[1]}function HR(e,t){var n=ut(!0),r=null,a=Xu,i=null,o=av(s);e=typeof e=="function"?e:e===void 0?GR:ut(e),t=typeof t=="function"?t:t===void 0?qR:ut(t);function s(l){var u,c=(l=iv(l)).length,p,f=!1,h;for(r==null&&(i=a(h=o())),u=0;u<=c;++u)!(u=h;--m)s.point(x[m],A[m]);s.lineEnd(),s.areaEnd()}T&&(x[f]=+e(S,f,p),A[f]=+t(S,f,p),s.point(r?+r(S,f,p):x[f],n?+n(S,f,p):A[f]))}if(_)return s=null,_+""||null}function c(){return HR().defined(a).curve(o).context(i)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ut(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ut(+p),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(p){return arguments.length?(a=typeof p=="function"?p:ut(!!p),u):a},u.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),u):o},u.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),u):i},u}class WR{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jW(e){return new WR(e,!0)}function FW(e){return new WR(e,!1)}const ov={draw(e,t){const n=er(t/Ml);e.moveTo(n,0),e.arc(0,0,n,0,Ku)}},BW={draw(e,t){const n=er(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VR=er(1/3),UW=VR*2,zW={draw(e,t){const n=er(t/UW),r=n*VR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GW={draw(e,t){const n=er(t),r=-n/2;e.rect(r,r,n,n)}},qW=.8908130915292852,YR=Ll(Ml/10)/Ll(7*Ml/10),HW=Ll(Ku/10)*YR,WW=-BR(Ku/10)*YR,VW={draw(e,t){const n=er(t*qW),r=HW*n,a=WW*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Ku*i/5,s=BR(o),l=Ll(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*a,l*r+s*a)}e.closePath()}},hd=er(3),YW={draw(e,t){const n=-er(t/(hd*3));e.moveTo(0,n*2),e.lineTo(-hd*n,-n),e.lineTo(hd*n,-n),e.closePath()}},_n=-.5,Tn=er(3)/2,fb=1/er(12),KW=(fb/2+1)*3,XW={draw(e,t){const n=er(t/KW),r=n/2,a=n*fb,i=r,o=n*fb+n,s=-i,l=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(_n*r-Tn*a,Tn*r+_n*a),e.lineTo(_n*i-Tn*o,Tn*i+_n*o),e.lineTo(_n*s-Tn*l,Tn*s+_n*l),e.lineTo(_n*r+Tn*a,_n*a-Tn*r),e.lineTo(_n*i+Tn*o,_n*o-Tn*i),e.lineTo(_n*s+Tn*l,_n*l-Tn*s),e.closePath()}};function ZW(e,t){let n=null,r=av(a);e=typeof e=="function"?e:ut(e||ov),t=typeof t=="function"?t:ut(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:ut(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:ut(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Pl(){}function $l(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function KR(e){this._context=e}KR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$l(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QW(e){return new KR(e)}function XR(e){this._context=e}XR.prototype={areaStart:Pl,areaEnd:Pl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JW(e){return new XR(e)}function ZR(e){this._context=e}ZR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eV(e){return new ZR(e)}function QR(e){this._context=e}QR.prototype={areaStart:Pl,areaEnd:Pl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function tV(e){return new QR(e)}function hE(e){return e<0?-1:1}function gE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(hE(i)+hE(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function mE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function gd(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function jl(e){this._context=e}jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gd(this,this._t0,mE(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gd(this,mE(this,n=gE(this,e,t)),n);break;default:gd(this,this._t0,n=gE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JR(e){this._context=new eC(e)}(JR.prototype=Object.create(jl.prototype)).point=function(e,t){jl.prototype.point.call(this,t,e)};function eC(e){this._context=e}eC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function nV(e){return new jl(e)}function rV(e){return new JR(e)}function tC(e){this._context=e}tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=bE(e),a=bE(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function iV(e){return new Zu(e,.5)}function oV(e){return new Zu(e,0)}function sV(e){return new Zu(e,1)}function ii(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n=0;)n[t]=t;return n}function lV(e,t){return e[t]}function uV(e){const t=[];return t.key=e,t}function cV(){var e=ut([]),t=hb,n=ii,r=lV;function a(i){var o=Array.from(e.apply(this,arguments),uV),s,l=o.length,u=-1,c;for(const p of i)for(s=0,++u;s0){for(var n,r,a=0,i=e[0].length,o;a0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vV(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var nC={symbolCircle:ov,symbolCross:BW,symbolDiamond:zW,symbolSquare:GW,symbolStar:VW,symbolTriangle:YW,symbolWye:XW},SV=Math.PI/180,xV=function(t){var n="symbol".concat(Yu(t));return nC[n]||ov},EV=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*SV;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},wV=function(t,n){nC["symbol".concat(Yu(t))]=n},Qu=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=yV(t,hV),u=vE(vE({},l),{},{type:r,size:i,sizeType:s}),c=function(){var S=xV(r),T=ZW().type(S).size(EV(i,s,r));return T()},p=u.className,f=u.cx,h=u.cy,m=He(u,!0);return f===+f&&h===+h&&i===+i?Y.createElement("path",gb({},m,{className:rt("recharts-symbols",p),transform:"translate(".concat(f,", ").concat(h,")"),d:c()})):null};Qu.registerSymbol=wV;function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function To(e,t,n){return t=rC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rC(e){var t=NV(e,"string");return oi(t)==="symbol"?t:String(t)}function NV(e,t){if(oi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var An=32,sv=function(e){kV(n,e);var t=OV(n);function n(){return TV(this,n),t.apply(this,arguments)}return AV(n,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=An/2,s=An/6,l=An/3,u=a.inactive?i:a.color;if(a.type==="plainline")return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:An,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` + */var $t=typeof Symbol=="function"&&Symbol.for,Jy=$t?Symbol.for("react.element"):60103,ev=$t?Symbol.for("react.portal"):60106,ju=$t?Symbol.for("react.fragment"):60107,Fu=$t?Symbol.for("react.strict_mode"):60108,Bu=$t?Symbol.for("react.profiler"):60114,Uu=$t?Symbol.for("react.provider"):60109,zu=$t?Symbol.for("react.context"):60110,tv=$t?Symbol.for("react.async_mode"):60111,Gu=$t?Symbol.for("react.concurrent_mode"):60111,qu=$t?Symbol.for("react.forward_ref"):60112,Hu=$t?Symbol.for("react.suspense"):60113,p3=$t?Symbol.for("react.suspense_list"):60120,Wu=$t?Symbol.for("react.memo"):60115,Vu=$t?Symbol.for("react.lazy"):60116,f3=$t?Symbol.for("react.block"):60121,h3=$t?Symbol.for("react.fundamental"):60117,g3=$t?Symbol.for("react.responder"):60118,m3=$t?Symbol.for("react.scope"):60119;function wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jy:switch(e=e.type,e){case tv:case Gu:case ju:case Bu:case Fu:case Hu:return e;default:switch(e=e&&e.$$typeof,e){case zu:case qu:case Vu:case Wu:case Uu:return e;default:return t}}case ev:return t}}}function RR(e){return wn(e)===Gu}et.AsyncMode=tv;et.ConcurrentMode=Gu;et.ContextConsumer=zu;et.ContextProvider=Uu;et.Element=Jy;et.ForwardRef=qu;et.Fragment=ju;et.Lazy=Vu;et.Memo=Wu;et.Portal=ev;et.Profiler=Bu;et.StrictMode=Fu;et.Suspense=Hu;et.isAsyncMode=function(e){return RR(e)||wn(e)===tv};et.isConcurrentMode=RR;et.isContextConsumer=function(e){return wn(e)===zu};et.isContextProvider=function(e){return wn(e)===Uu};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jy};et.isForwardRef=function(e){return wn(e)===qu};et.isFragment=function(e){return wn(e)===ju};et.isLazy=function(e){return wn(e)===Vu};et.isMemo=function(e){return wn(e)===Wu};et.isPortal=function(e){return wn(e)===ev};et.isProfiler=function(e){return wn(e)===Bu};et.isStrictMode=function(e){return wn(e)===Fu};et.isSuspense=function(e){return wn(e)===Hu};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ju||e===Gu||e===Bu||e===Fu||e===Hu||e===p3||typeof e=="object"&&e!==null&&(e.$$typeof===Vu||e.$$typeof===Wu||e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===qu||e.$$typeof===h3||e.$$typeof===g3||e.$$typeof===m3||e.$$typeof===f3)};et.typeOf=wn;IR.exports=et;var ab=IR.exports,b3=hI,y3=gI,v3="[object Number]";function S3(e){return typeof e=="number"||y3(e)&&b3(e)==v3}var CR=S3;const x3=St(CR);var E3=CR;function w3(e){return E3(e)&&e!=+e}var _3=w3;const ys=St(_3);var Zn=function(t){return t===0?0:t>0?1:-1},ma=function(t){return fs(t)&&t.indexOf("%")===t.length-1},fe=function(t){return x3(t)&&!ys(t)},Nt=function(t){return fe(t)||fs(t)},T3=0,vs=function(t){var n=++T3;return"".concat(t||"").concat(n)},ai=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!fe(t)&&!fs(t))return r;var i;if(ma(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return ys(i)&&(i=r),a&&i>n&&(i=n),i},Wr=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},A3=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function D3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var uE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ir=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},cE=null,fd=null,rv=function e(t){if(t===cE&&Array.isArray(fd))return fd;var n=[];return F.Children.forEach(t,function(r){Be(r)||(ab.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),fd=n,cE=t,n};function En(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ir(a)}):r=[Ir(t)],rv(e).forEach(function(a){var i=Dn(a,"type.displayName")||Dn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Ar(e,t){var n=En(e,t);return n&&n[0]}var dE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!fe(r)||r<=0||!fe(a)||a<=0)},L3=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],M3=function(t){return t&&t.type&&fs(t.type)&&L3.indexOf(t.type)>=0},P3=function(t,n,r,a){var i,o=(i=pd==null?void 0:pd[a])!==null&&i!==void 0?i:[];return!Fe(t)&&(a&&o.includes(n)||I3.includes(n))||r&&nv.includes(n)},He=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(F.isValidElement(t)&&(a=t.props),!Ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;P3((s=a)===null||s===void 0?void 0:s[o],o,n,r)&&(i[o]=a[o])}),i},NR=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return pE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function sb(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,u=B3(e,F3),c=a||{width:n,height:r,x:0,y:0},p=rt("recharts-surface",i);return Y.createElement("svg",ob({},He(u,!0,"svg"),{className:p,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),Y.createElement("title",null,s),Y.createElement("desc",null,l),t)}var z3=["children","className"];function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q3(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var yt=Y.forwardRef(function(e,t){var n=e.children,r=e.className,a=G3(e,z3),i=rt("recharts-layer",r);return Y.createElement("g",lb({className:i},He(a,!0),{ref:t}),n)}),Sa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;ia?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r=r?e:V3(e,t,n)}var K3=Y3,X3="\\ud800-\\udfff",Z3="\\u0300-\\u036f",Q3="\\ufe20-\\ufe2f",J3="\\u20d0-\\u20ff",eW=Z3+Q3+J3,tW="\\ufe0e\\ufe0f",nW="\\u200d",rW=RegExp("["+nW+X3+eW+tW+"]");function aW(e){return rW.test(e)}var DR=aW;function iW(e){return e.split("")}var oW=iW,LR="\\ud800-\\udfff",sW="\\u0300-\\u036f",lW="\\ufe20-\\ufe2f",uW="\\u20d0-\\u20ff",cW=sW+lW+uW,dW="\\ufe0e\\ufe0f",pW="["+LR+"]",ub="["+cW+"]",cb="\\ud83c[\\udffb-\\udfff]",fW="(?:"+ub+"|"+cb+")",MR="[^"+LR+"]",PR="(?:\\ud83c[\\udde6-\\uddff]){2}",$R="[\\ud800-\\udbff][\\udc00-\\udfff]",hW="\\u200d",jR=fW+"?",FR="["+dW+"]?",gW="(?:"+hW+"(?:"+[MR,PR,$R].join("|")+")"+FR+jR+")*",mW=FR+jR+gW,bW="(?:"+[MR+ub+"?",ub,PR,$R,pW].join("|")+")",yW=RegExp(cb+"(?="+cb+")|"+bW+mW,"g");function vW(e){return e.match(yW)||[]}var SW=vW,xW=oW,EW=DR,wW=SW;function _W(e){return EW(e)?wW(e):xW(e)}var TW=_W,AW=K3,kW=DR,OW=TW,IW=Kj;function RW(e){return function(t){t=IW(t);var n=kW(t)?OW(t):void 0,r=n?n[0]:t.charAt(0),a=n?AW(n,1).join(""):t.slice(1);return r[e]()+a}}var CW=RW,NW=CW,DW=NW("toUpperCase"),LW=DW;const Yu=St(LW);function ut(e){return function(){return e}}const BR=Math.cos,Ll=Math.sin,er=Math.sqrt,Ml=Math.PI,Ku=2*Ml,db=Math.PI,pb=2*db,fa=1e-6,MW=pb-fa;function UR(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return UR;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;afa)if(!(Math.abs(p*l-u*c)>fa)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,m=a-s,b=l*l+u*u,S=h*h+m*m,T=Math.sqrt(b),_=Math.sqrt(f),x=i*Math.tan((db-Math.acos((b+f-S)/(2*T*_)))/2),A=x/_,E=x/T;Math.abs(A-1)>fa&&this._append`L${t+A*c},${n+A*p}`,this._append`A${i},${i},0,0,${+(p*h>c*m)},${this._x1=t+E*l},${this._y1=n+E*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),l=r*Math.sin(a),u=t+s,c=n+l,p=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>fa||Math.abs(this._y1-c)>fa)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%pb+pb),f>MW?this._append`A${r},${r},0,1,${p},${t-s},${n-l}A${r},${r},0,1,${p},${this._x1=u},${this._y1=c}`:f>fa&&this._append`A${r},${r},0,${+(f>=db)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function av(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new $W(t)}function iv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zR(e){this._context=e}zR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Xu(e){return new zR(e)}function GR(e){return e[0]}function qR(e){return e[1]}function HR(e,t){var n=ut(!0),r=null,a=Xu,i=null,o=av(s);e=typeof e=="function"?e:e===void 0?GR:ut(e),t=typeof t=="function"?t:t===void 0?qR:ut(t);function s(l){var u,c=(l=iv(l)).length,p,f=!1,h;for(r==null&&(i=a(h=o())),u=0;u<=c;++u)!(u=h;--m)s.point(x[m],A[m]);s.lineEnd(),s.areaEnd()}T&&(x[f]=+e(S,f,p),A[f]=+t(S,f,p),s.point(r?+r(S,f,p):x[f],n?+n(S,f,p):A[f]))}if(_)return s=null,_+""||null}function c(){return HR().defined(a).curve(o).context(i)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ut(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ut(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ut(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ut(+p),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(p){return arguments.length?(a=typeof p=="function"?p:ut(!!p),u):a},u.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),u):o},u.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),u):i},u}class WR{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function jW(e){return new WR(e,!0)}function FW(e){return new WR(e,!1)}const ov={draw(e,t){const n=er(t/Ml);e.moveTo(n,0),e.arc(0,0,n,0,Ku)}},BW={draw(e,t){const n=er(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VR=er(1/3),UW=VR*2,zW={draw(e,t){const n=er(t/UW),r=n*VR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GW={draw(e,t){const n=er(t),r=-n/2;e.rect(r,r,n,n)}},qW=.8908130915292852,YR=Ll(Ml/10)/Ll(7*Ml/10),HW=Ll(Ku/10)*YR,WW=-BR(Ku/10)*YR,VW={draw(e,t){const n=er(t*qW),r=HW*n,a=WW*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=Ku*i/5,s=BR(o),l=Ll(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*a,l*r+s*a)}e.closePath()}},hd=er(3),YW={draw(e,t){const n=-er(t/(hd*3));e.moveTo(0,n*2),e.lineTo(-hd*n,-n),e.lineTo(hd*n,-n),e.closePath()}},_n=-.5,Tn=er(3)/2,fb=1/er(12),KW=(fb/2+1)*3,XW={draw(e,t){const n=er(t/KW),r=n/2,a=n*fb,i=r,o=n*fb+n,s=-i,l=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(_n*r-Tn*a,Tn*r+_n*a),e.lineTo(_n*i-Tn*o,Tn*i+_n*o),e.lineTo(_n*s-Tn*l,Tn*s+_n*l),e.lineTo(_n*r+Tn*a,_n*a-Tn*r),e.lineTo(_n*i+Tn*o,_n*o-Tn*i),e.lineTo(_n*s+Tn*l,_n*l-Tn*s),e.closePath()}};function ZW(e,t){let n=null,r=av(a);e=typeof e=="function"?e:ut(e||ov),t=typeof t=="function"?t:ut(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:ut(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:ut(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Pl(){}function $l(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function KR(e){this._context=e}KR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$l(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QW(e){return new KR(e)}function XR(e){this._context=e}XR.prototype={areaStart:Pl,areaEnd:Pl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JW(e){return new XR(e)}function ZR(e){this._context=e}ZR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:$l(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eV(e){return new ZR(e)}function QR(e){this._context=e}QR.prototype={areaStart:Pl,areaEnd:Pl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function tV(e){return new QR(e)}function hE(e){return e<0?-1:1}function gE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(hE(i)+hE(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function mE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function gd(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function jl(e){this._context=e}jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gd(this,this._t0,mE(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gd(this,mE(this,n=gE(this,e,t)),n);break;default:gd(this,this._t0,n=gE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JR(e){this._context=new eC(e)}(JR.prototype=Object.create(jl.prototype)).point=function(e,t){jl.prototype.point.call(this,t,e)};function eC(e){this._context=e}eC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function nV(e){return new jl(e)}function rV(e){return new JR(e)}function tC(e){this._context=e}tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=bE(e),a=bE(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function iV(e){return new Zu(e,.5)}function oV(e){return new Zu(e,0)}function sV(e){return new Zu(e,1)}function ii(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n=0;)n[t]=t;return n}function lV(e,t){return e[t]}function uV(e){const t=[];return t.key=e,t}function cV(){var e=ut([]),t=hb,n=ii,r=lV;function a(i){var o=Array.from(e.apply(this,arguments),uV),s,l=o.length,u=-1,c;for(const p of i)for(s=0,++u;s0){for(var n,r,a=0,i=e[0].length,o;a0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vV(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var nC={symbolCircle:ov,symbolCross:BW,symbolDiamond:zW,symbolSquare:GW,symbolStar:VW,symbolTriangle:YW,symbolWye:XW},SV=Math.PI/180,xV=function(t){var n="symbol".concat(Yu(t));return nC[n]||ov},EV=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*SV;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},wV=function(t,n){nC["symbol".concat(Yu(t))]=n},Qu=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=yV(t,hV),u=vE(vE({},l),{},{type:r,size:i,sizeType:s}),c=function(){var S=xV(r),T=ZW().type(S).size(EV(i,s,r));return T()},p=u.className,f=u.cx,h=u.cy,m=He(u,!0);return f===+f&&h===+h&&i===+i?Y.createElement("path",gb({},m,{className:rt("recharts-symbols",p),transform:"translate(".concat(f,", ").concat(h,")"),d:c()})):null};Qu.registerSymbol=wV;function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function To(e,t,n){return t=rC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rC(e){var t=NV(e,"string");return oi(t)==="symbol"?t:String(t)}function NV(e,t){if(oi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var An=32,sv=function(e){kV(n,e);var t=OV(n);function n(){return TV(this,n),t.apply(this,arguments)}return AV(n,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=An/2,s=An/6,l=An/3,u=a.inactive?i:a.color;if(a.type==="plainline")return Y.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:An,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return Y.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(An,"M").concat(2*l,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return Y.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(An/8,"h").concat(An,"v").concat(An*3/4,"h").concat(-An,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(a.legendIcon)){var c=_V({},a);return delete c.legendIcon,Y.cloneElement(a.legendIcon,c)}return Y.createElement(Qu,{fill:u,cx:o,cy:o,size:An,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,c=i.inactiveColor,p={x:0,y:0,width:An,height:An},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(m,b){var S,T=m.formatter||u,_=rt((S={"recharts-legend-item":!0},To(S,"legend-item-".concat(b),!0),To(S,"inactive",m.inactive),S));if(m.type==="none")return null;var x=Fe(m.value)?null:m.value;Sa(!Fe(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=m.inactive?c:m.color;return Y.createElement("li",mb({className:_,style:f,key:"legend-item-".concat(b)},wo(a.props,m,b)),Y.createElement(sb,{width:s,height:s,viewBox:p,style:h},a.renderIcon(m)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},T?T(x,m,b):x))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return Y.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(F.PureComponent);To(sv,"displayName","Legend");To(sv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function DV(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i-1}var HV=qV;function WV(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=s4){var u=t?null:i4(e);if(u)return o4(u);o=!1,a=a4,l=new t4}else l=t?[]:s;e:for(;++r"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 Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function Ju(e,t,n){return t=sC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sC(e){var t=x4(e,"string");return si(t)==="symbol"?t:String(t)}function x4(e,t){if(si(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(si(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E4(e,t){if(e==null)return{};var n=w4(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _4(e){return e.value}function T4(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=E4(t,h4);return Y.createElement(sv,n)}var TE=1,Ao=function(e){b4(n,e);var t=y4(n);function n(){var r;g4(this,n);for(var a=arguments.length,i=new Array(a),o=0;oTE||Math.abs(i.height-this.lastBoundingBox.height)>TE)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?da({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,c=i.chartWidth,p=i.chartHeight,f,h;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var m=this.getBBoxSnapshot();f={left:((c||0)-m.width)/2}}else f=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((p||0)-b.height)/2}}else h=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return da(da({},f),h)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,c=i.payloadUniqBy,p=i.payload,f=da(da({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return Y.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){a.wrapperNode=m}},T4(o,da(da({},this.props),{},{payload:iC(p,c,_4)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&fe(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),n}(F.PureComponent);Ju(Ao,"displayName","Legend");Ju(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AE=K$,A4=X$,k4=ku,kE=AE?AE.isConcatSpreadable:void 0;function O4(e){return k4(e)||A4(e)||!!(kE&&e&&e[kE])}var I4=O4,R4=Z$,C4=I4;function lC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=C4),a||(a=[]);++i0&&n(s)?t>1?lC(s,t-1,n,r,a):R4(a,s):r||(a[a.length]=s)}return a}var uC=lC;function N4(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var D4=N4,OE=Dy;function L4(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=OE(e),o=t!==void 0,s=t===null,l=t===t,u=OE(t);if(!s&&!u&&!i&&e>t||i&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!a)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var j4=$4,bd=Vj,F4=Yj,B4=Ta,U4=Kj,z4=D4,G4=Q$,q4=j4,H4=hs,W4=ku;function V4(e,t,n){t.length?t=bd(t,function(i){return W4(i)?function(o){return F4(o,i.length===1?i[0]:i)}:i}):t=[H4];var r=-1;t=bd(t,G4(B4));var a=U4(e,function(i,o,s){var l=bd(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return z4(a,function(i,o){return q4(i,o,n)})}var Y4=V4;function K4(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)}var X4=K4,Z4=X4,IE=Math.max;function Q4(e,t,n){return t=IE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=IE(r.length-t,0),o=Array(i);++a0){if(++t>=oY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cY=uY,dY=iY,pY=cY,fY=pY(dY),hY=fY,gY=hs,mY=J4,bY=hY;function yY(e,t){return bY(mY(e,t,gY),e+"")}var vY=yY,SY=ej,xY=hI,EY=tj,wY=Ou;function _Y(e,t,n){if(!wY(n))return!1;var r=typeof t;return(r=="number"?xY(n)&&EY(t,n.length):r=="string"&&t in n)?SY(n[t],e):!1}var ec=_Y,TY=uC,AY=Y4,kY=vY,CE=ec,OY=kY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&CE(e,t[0],t[1])?t=[]:n>2&&CE(t[0],t[1],t[2])&&(t=[t[0]]),AY(e,TY(t,1),[])}),IY=OY;const lv=St(IY);function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function RY(e,t){return LY(e)||DY(e,t)||NY(e,t)||CY()}function CY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return Y.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(An/8,"h").concat(An,"v").concat(An*3/4,"h").concat(-An,"z"),className:"recharts-legend-icon"});if(Y.isValidElement(a.legendIcon)){var c=_V({},a);return delete c.legendIcon,Y.cloneElement(a.legendIcon,c)}return Y.createElement(Qu,{fill:u,cx:o,cy:o,size:An,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,c=i.inactiveColor,p={x:0,y:0,width:An,height:An},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(m,b){var S,T=m.formatter||u,_=rt((S={"recharts-legend-item":!0},To(S,"legend-item-".concat(b),!0),To(S,"inactive",m.inactive),S));if(m.type==="none")return null;var x=Fe(m.value)?null:m.value;Sa(!Fe(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=m.inactive?c:m.color;return Y.createElement("li",mb({className:_,style:f,key:"legend-item-".concat(b)},wo(a.props,m,b)),Y.createElement(sb,{width:s,height:s,viewBox:p,style:h},a.renderIcon(m)),Y.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},T?T(x,m,b):x))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return Y.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(F.PureComponent);To(sv,"displayName","Legend");To(sv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function DV(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i-1}var HV=qV;function WV(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=s4){var u=t?null:i4(e);if(u)return o4(u);o=!1,a=a4,l=new t4}else l=t?[]:s;e:for(;++r"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 Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function Ju(e,t,n){return t=sC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sC(e){var t=x4(e,"string");return si(t)==="symbol"?t:String(t)}function x4(e,t){if(si(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(si(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E4(e,t){if(e==null)return{};var n=w4(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function w4(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _4(e){return e.value}function T4(e,t){if(Y.isValidElement(e))return Y.cloneElement(e,t);if(typeof e=="function")return Y.createElement(e,t);t.ref;var n=E4(t,h4);return Y.createElement(sv,n)}var TE=1,Ao=function(e){b4(n,e);var t=y4(n);function n(){var r;g4(this,n);for(var a=arguments.length,i=new Array(a),o=0;oTE||Math.abs(i.height-this.lastBoundingBox.height)>TE)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?da({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,c=i.chartWidth,p=i.chartHeight,f,h;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var m=this.getBBoxSnapshot();f={left:((c||0)-m.width)/2}}else f=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((p||0)-b.height)/2}}else h=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return da(da({},f),h)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,c=i.payloadUniqBy,p=i.payload,f=da(da({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return Y.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){a.wrapperNode=m}},T4(o,da(da({},this.props),{},{payload:iC(p,c,_4)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&fe(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),n}(F.PureComponent);Ju(Ao,"displayName","Legend");Ju(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AE=J$,A4=ej,k4=ku,kE=AE?AE.isConcatSpreadable:void 0;function O4(e){return k4(e)||A4(e)||!!(kE&&e&&e[kE])}var I4=O4,R4=tj,C4=I4;function lC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=C4),a||(a=[]);++i0&&n(s)?t>1?lC(s,t-1,n,r,a):R4(a,s):r||(a[a.length]=s)}return a}var uC=lC;function N4(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var D4=N4,OE=Dy;function L4(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=OE(e),o=t!==void 0,s=t===null,l=t===t,u=OE(t);if(!s&&!u&&!i&&e>t||i&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!a)return 1;if(!r&&!i&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var j4=$4,bd=Qj,F4=Jj,B4=Ta,U4=eF,z4=D4,G4=nj,q4=j4,H4=hs,W4=ku;function V4(e,t,n){t.length?t=bd(t,function(i){return W4(i)?function(o){return F4(o,i.length===1?i[0]:i)}:i}):t=[H4];var r=-1;t=bd(t,G4(B4));var a=U4(e,function(i,o,s){var l=bd(t,function(u){return u(i)});return{criteria:l,index:++r,value:i}});return z4(a,function(i,o){return q4(i,o,n)})}var Y4=V4;function K4(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)}var X4=K4,Z4=X4,IE=Math.max;function Q4(e,t,n){return t=IE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=IE(r.length-t,0),o=Array(i);++a0){if(++t>=oY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cY=uY,dY=iY,pY=cY,fY=pY(dY),hY=fY,gY=hs,mY=J4,bY=hY;function yY(e,t){return bY(mY(e,t,gY),e+"")}var vY=yY,SY=aj,xY=mI,EY=ij,wY=Ou;function _Y(e,t,n){if(!wY(n))return!1;var r=typeof t;return(r=="number"?xY(n)&&EY(t,n.length):r=="string"&&t in n)?SY(n[t],e):!1}var ec=_Y,TY=uC,AY=Y4,kY=vY,CE=ec,OY=kY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&CE(e,t[0],t[1])?t=[]:n>2&&CE(t[0],t[1],t[2])&&(t=[t[0]]),AY(e,TY(t,1),[])}),IY=OY;const lv=St(IY);function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function RY(e,t){return LY(e)||DY(e,t)||NY(e,t)||CY()}function CY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NY(e,t){if(e){if(typeof e=="string")return NE(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 NE(e,t)}}function NE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function qY(e,t){return Ii(e.getTime(),t.getTime())}function jE(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),u=!1,c=0;(s=l.next())&&!s.done;){var p=o.value,f=p[0],h=p[1],m=s.value,b=m[0],S=m[1];!u&&!r[c]&&(u=n.equals(f,b,i,c,e,t,n)&&n.equals(h,S,f,b,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;i++}return!0}function HY(e,t,n){var r=$E(e),a=r.length;if($E(t).length!==a)return!1;for(var i;a-- >0;)if(i=r[a],i===dC&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!cC(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function Vi(e,t,n){var r=ME(e),a=r.length;if(ME(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=r[a],i===dC&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!cC(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(o=PE(e,i),s=PE(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function WY(e,t){return Ii(e.valueOf(),t.valueOf())}function VY(e,t){return e.source===t.source&&e.flags===t.flags}function FE(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(i.value,o.value,i.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function YY(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var KY="[object Arguments]",XY="[object Boolean]",ZY="[object Date]",QY="[object Map]",JY="[object Number]",e6="[object Object]",t6="[object RegExp]",n6="[object Set]",r6="[object String]",a6=Array.isArray,BE=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,UE=Object.assign,i6=Object.prototype.toString.call.bind(Object.prototype.toString);function o6(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(c,p,f){if(c===p)return!0;if(c==null||p==null||typeof c!="object"||typeof p!="object")return c!==c&&p!==p;var h=c.constructor;if(h!==p.constructor)return!1;if(h===Object)return a(c,p,f);if(a6(c))return t(c,p,f);if(BE!=null&&BE(c))return l(c,p,f);if(h===Date)return n(c,p,f);if(h===RegExp)return o(c,p,f);if(h===Map)return r(c,p,f);if(h===Set)return s(c,p,f);var m=i6(c);return m===ZY?n(c,p,f):m===t6?o(c,p,f):m===QY?r(c,p,f):m===n6?s(c,p,f):m===e6?typeof c.then!="function"&&typeof p.then!="function"&&a(c,p,f):m===KY?a(c,p,f):m===XY||m===JY||m===r6?i(c,p,f):!1}}function s6(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?Vi:GY,areDatesEqual:qY,areMapsEqual:r?LE(jE,Vi):jE,areObjectsEqual:r?Vi:HY,arePrimitiveWrappersEqual:WY,areRegExpsEqual:VY,areSetsEqual:r?LE(FE,Vi):FE,areTypedArraysEqual:r?Vi:YY};if(n&&(a=UE({},a,n(a))),t){var i=il(a.areArraysEqual),o=il(a.areMapsEqual),s=il(a.areObjectsEqual),l=il(a.areSetsEqual);a=UE({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function l6(e){return function(t,n,r,a,i,o,s){return e(t,n,s)}}function u6(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,i=e.strict;if(r)return function(l,u){var c=r(),p=c.cache,f=p===void 0?t?new WeakMap:void 0:p,h=c.meta;return n(l,u,{cache:f,equals:a,meta:h,strict:i})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,u){return n(l,u,o)}}var c6=ta();ta({strict:!0});ta({circular:!0});ta({circular:!0,strict:!0});ta({createInternalComparator:function(){return Ii}});ta({strict:!0,createInternalComparator:function(){return Ii}});ta({circular:!0,createInternalComparator:function(){return Ii}});ta({circular:!0,createInternalComparator:function(){return Ii},strict:!0});function ta(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=s6(e),l=o6(s),u=r?r(l):l6(l);return u6({circular:n,comparator:l,createState:a,equals:u,strict:o})}function d6(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):d6(a)};requestAnimationFrame(r)}function vb(e){"@babel/helpers - typeof";return vb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vb(e)}function p6(e){return m6(e)||g6(e)||h6(e)||f6()}function f6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h6(e,t){if(e){if(typeof e=="string")return GE(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 GE(e,t)}}function GE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:T<0?0:T},b=function(T){for(var _=T>1?1:T,x=_,A=0;A<8;++A){var E=p(x)-_,v=h(x);if(Math.abs(E-_)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(c,p,f){var h=-(c-p)*r,m=f*i,b=f+(h-m)*s/1e3,S=f*s/1e3+c;return Math.abs(S-p)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z6(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function vd(e){return t5(e)||e5(e)||J6(e)||Q6()}function Q6(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J6(e,t){if(e){if(typeof e=="string")return _b(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 _b(e,t)}}function e5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t5(e){if(Array.isArray(e))return _b(e)}function _b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ql(e)}var Nr=function(e){i5(n,e);var t=o5(n);function n(r,a){var i;n5(this,n),i=t.call(this,r,a);var o=i.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,p=o.steps,f=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(kb(i)),i.changeStyle=i.changeStyle.bind(kb(i)),!s||h<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:c}),Ab(i);if(p&&p.length)i.state={style:p[0].style};else if(u){if(typeof f=="function")return i.state={style:u},Ab(i);i.state={style:l?io({},l,u):u}}else i.state={style:{}};return i}return r5(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,c=i.to,p=i.from,f=this.state.style;if(s){if(!o){var h={style:l?io({},l,c):c};this.state&&f&&(l&&f[l]!==c||!l&&f!==c)&&this.setState(h);return}if(!(c6(a.to,c)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=m||u?p:a.to;if(this.state&&f){var S={style:l?io({},l,b):b};(l&&[l]!==b||!l&&f!==b)&&this.setState(S)}this.runAnimation(Wn(Wn({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,u=a.easing,c=a.begin,p=a.onAnimationEnd,f=a.onAnimationStart,h=Y6(o,s,$6(u),l,this.changeStyle),m=function(){i.stopJSAnimation=h()};this.manager.start([f,c,m,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,u=o[0],c=u.style,p=u.duration,f=p===void 0?0:p,h=function(b,S,T){if(T===0)return b;var _=S.duration,x=S.easing,A=x===void 0?"ease":x,E=S.style,v=S.properties,O=S.onAnimationEnd,R=T>0?o[T-1]:S,C=v||Object.keys(E);if(typeof A=="function"||A==="spring")return[].concat(vd(b),[i.runJSAnimation.bind(i,{from:R.style,to:E,duration:_,easing:A}),_]);var $=HE(C,_,A),N=Wn(Wn(Wn({},R.style),E),{},{transition:$});return[].concat(vd(b),[N,_,O]).filter(_6)};return this.manager.start([l].concat(vd(o.reduce(h,[c,Math.max(f,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=b6());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,u=a.easing,c=a.onAnimationStart,p=a.onAnimationEnd,f=a.steps,h=a.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(f.length>1){this.runStepAnimation(a);return}var b=s?io({},s,l):l,S=HE(Object.keys(b),o,u);m.start([c,i,Wn(Wn({},b),{},{transition:S}),o,p])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=X6(a,K6),u=F.Children.count(i),c=uv(this.state.style);if(typeof i=="function")return i(c);if(!s||u===0||o<=0)return i;var p=function(h){var m=h.props,b=m.style,S=b===void 0?{}:b,T=m.className,_=F.cloneElement(h,Wn(Wn({},l),{},{style:Wn(Wn({},S),c),className:T}));return _};return u===1?p(F.Children.only(i)):Y.createElement("div",null,F.Children.map(i,function(f){return p(f)}))}}]),n}(F.PureComponent);Nr.displayName="Animate";Nr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Nr.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Re.object,Re.object,Re.object,Re.element;Re.object,Re.object,Re.object,Re.oneOfType([Re.array,Re.element]),Re.any;function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function ol(e,t,n){return t=l5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e){var t=u5(e,"string");return Ro(t)==="symbol"?t:String(t)}function u5(e,t){if(Ro(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ro(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yi="recharts-tooltip-wrapper",c5={visibility:"hidden"};function d5(e){var t,n=e.coordinate,r=e.translateX,a=e.translateY;return rt(Yi,(t={},ol(t,"".concat(Yi,"-right"),fe(r)&&n&&fe(n.x)&&r>=n.x),ol(t,"".concat(Yi,"-left"),fe(r)&&n&&fe(n.x)&&r=n.y),ol(t,"".concat(Yi,"-top"),fe(a)&&n&&fe(n.y)&&ab?Math.max(c,l[r]):Math.max(p,l[r])}function p5(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return uv({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function f5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,p;return o.height>0&&o.width>0&&n?(c=QE({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=QE({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=p5({translateX:c,translateY:p,useTranslate3d:s})):u=c5,{cssProperties:u,cssClasses:d5({translateX:c,translateY:p,coordinate:n})}}function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t"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 Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(e)}function wl(e,t,n){return t=bC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bC(e){var t=S5(e,"string");return ci(t)==="symbol"?t:String(t)}function S5(e,t){if(ci(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ci(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tw=1,x5=function(e){m5(n,e);var t=b5(n);function n(){var r;h5(this,n);for(var a=arguments.length,i=new Array(a),o=0;otw||Math.abs(a.height-this.lastBoundingBox.height)>tw)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,c=i.children,p=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,m=i.offset,b=i.position,S=i.reverseDirection,T=i.useTranslate3d,_=i.viewBox,x=i.wrapperStyle,A=f5({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:m,position:b,reverseDirection:S,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:T,viewBox:_}),E=A.cssClasses,v=A.cssProperties,O=Sd(Sd(Sd({},h&&o&&uv({transition:"transform ".concat(l,"ms ").concat(u)})),v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return Y.createElement("div",{tabIndex:-1,role:"dialog",className:E,style:O,ref:function(C){a.wrapperNode=C}},c)}}]),n}(F.PureComponent),E5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Rr={isSsr:E5(),get:function(t){return Rr[t]},set:function(t,n){if(typeof t=="string")Rr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(a){Rr[a]=t[a]})}}};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rw(e){for(var t=1;t"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 Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wl(e)}function cv(e,t,n){return t=yC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yC(e){var t=R5(e,"string");return di(t)==="symbol"?t:String(t)}function R5(e,t){if(di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C5(e){return e.dataKey}function N5(e,t){return Y.isValidElement(e)?Y.cloneElement(e,t):typeof e=="function"?Y.createElement(e,t):Y.createElement(FY,t)}var ba=function(e){T5(n,e);var t=A5(n);function n(){return w5(this,n),t.apply(this,arguments)}return _5(n,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.content,c=a.coordinate,p=a.filterNull,f=a.isAnimationActive,h=a.offset,m=a.payload,b=a.payloadUniqBy,S=a.position,T=a.reverseDirection,_=a.useTranslate3d,x=a.viewBox,A=a.wrapperStyle,E=m??[];p&&E.length&&(E=iC(m.filter(function(O){return O.value!=null}),b,C5));var v=E.length>0;return Y.createElement(x5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:c,hasPayload:v,offset:h,position:S,reverseDirection:T,useTranslate3d:_,viewBox:x,wrapperStyle:A},N5(u,rw(rw({},this.props),{},{payload:E})))}}]),n}(F.PureComponent);cv(ba,"displayName","Tooltip");cv(ba,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Rr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var D5=nj,L5=function(){return D5.Date.now()},M5=L5,P5=/\s/;function $5(e){for(var t=e.length;t--&&P5.test(e.charAt(t)););return t}var j5=$5,F5=j5,B5=/^\s+/;function U5(e){return e&&e.slice(0,F5(e)+1).replace(B5,"")}var z5=U5,G5=z5,iw=Ou,q5=Dy,ow=0/0,H5=/^[-+]0x[0-9a-f]+$/i,W5=/^0b[01]+$/i,V5=/^0o[0-7]+$/i,Y5=parseInt;function K5(e){if(typeof e=="number")return e;if(q5(e))return ow;if(iw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=G5(e);var n=W5.test(e);return n||V5.test(e)?Y5(e.slice(2),n?2:8):H5.test(e)?ow:+e}var vC=K5,X5=Ou,xd=M5,sw=vC,Z5="Expected a function",Q5=Math.max,J5=Math.min;function e8(e,t,n){var r,a,i,o,s,l,u=0,c=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(Z5);t=sw(t)||0,X5(n)&&(c=!!n.leading,p="maxWait"in n,i=p?Q5(sw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(v){var O=r,R=a;return r=a=void 0,u=v,o=e.apply(R,O),o}function m(v){return u=v,s=setTimeout(T,t),c?h(v):o}function b(v){var O=v-l,R=v-u,C=t-O;return p?J5(C,i-R):C}function S(v){var O=v-l,R=v-u;return l===void 0||O>=t||O<0||p&&R>=i}function T(){var v=xd();if(S(v))return _(v);s=setTimeout(T,b(v))}function _(v){return s=void 0,f&&r?h(v):(r=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function A(){return s===void 0?o:_(xd())}function E(){var v=xd(),O=S(v);if(r=arguments,a=this,l=v,O){if(s===void 0)return m(l);if(p)return clearTimeout(s),s=setTimeout(T,t),h(l)}return s===void 0&&(s=setTimeout(T,t)),o}return E.cancel=x,E.flush=A,E}var t8=e8,n8=t8,r8=Ou,a8="Expected a function";function i8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(a8);return r8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),n8(e,t,{leading:r,maxWait:t,trailing:a})}var o8=i8;const SC=St(o8);function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ql(e)}var Nr=function(e){i5(n,e);var t=o5(n);function n(r,a){var i;n5(this,n),i=t.call(this,r,a);var o=i.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,p=o.steps,f=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(kb(i)),i.changeStyle=i.changeStyle.bind(kb(i)),!s||h<=0)return i.state={style:{}},typeof f=="function"&&(i.state={style:c}),Ab(i);if(p&&p.length)i.state={style:p[0].style};else if(u){if(typeof f=="function")return i.state={style:u},Ab(i);i.state={style:l?io({},l,u):u}}else i.state={style:{}};return i}return r5(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,u=i.shouldReAnimate,c=i.to,p=i.from,f=this.state.style;if(s){if(!o){var h={style:l?io({},l,c):c};this.state&&f&&(l&&f[l]!==c||!l&&f!==c)&&this.setState(h);return}if(!(c6(a.to,c)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=m||u?p:a.to;if(this.state&&f){var S={style:l?io({},l,b):b};(l&&[l]!==b||!l&&f!==b)&&this.setState(S)}this.runAnimation(Wn(Wn({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,u=a.easing,c=a.begin,p=a.onAnimationEnd,f=a.onAnimationStart,h=Y6(o,s,$6(u),l,this.changeStyle),m=function(){i.stopJSAnimation=h()};this.manager.start([f,c,m,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,u=o[0],c=u.style,p=u.duration,f=p===void 0?0:p,h=function(b,S,T){if(T===0)return b;var _=S.duration,x=S.easing,A=x===void 0?"ease":x,E=S.style,v=S.properties,O=S.onAnimationEnd,R=T>0?o[T-1]:S,C=v||Object.keys(E);if(typeof A=="function"||A==="spring")return[].concat(vd(b),[i.runJSAnimation.bind(i,{from:R.style,to:E,duration:_,easing:A}),_]);var $=HE(C,_,A),N=Wn(Wn(Wn({},R.style),E),{},{transition:$});return[].concat(vd(b),[N,_,O]).filter(_6)};return this.manager.start([l].concat(vd(o.reduce(h,[c,Math.max(f,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=b6());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,u=a.easing,c=a.onAnimationStart,p=a.onAnimationEnd,f=a.steps,h=a.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(f.length>1){this.runStepAnimation(a);return}var b=s?io({},s,l):l,S=HE(Object.keys(b),o,u);m.start([c,i,Wn(Wn({},b),{},{transition:S}),o,p])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=X6(a,K6),u=F.Children.count(i),c=uv(this.state.style);if(typeof i=="function")return i(c);if(!s||u===0||o<=0)return i;var p=function(h){var m=h.props,b=m.style,S=b===void 0?{}:b,T=m.className,_=F.cloneElement(h,Wn(Wn({},l),{},{style:Wn(Wn({},S),c),className:T}));return _};return u===1?p(F.Children.only(i)):Y.createElement("div",null,F.Children.map(i,function(f){return p(f)}))}}]),n}(F.PureComponent);Nr.displayName="Animate";Nr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Nr.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Re.object,Re.object,Re.object,Re.element;Re.object,Re.object,Re.object,Re.oneOfType([Re.array,Re.element]),Re.any;function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function ol(e,t,n){return t=l5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e){var t=u5(e,"string");return Ro(t)==="symbol"?t:String(t)}function u5(e,t){if(Ro(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ro(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yi="recharts-tooltip-wrapper",c5={visibility:"hidden"};function d5(e){var t,n=e.coordinate,r=e.translateX,a=e.translateY;return rt(Yi,(t={},ol(t,"".concat(Yi,"-right"),fe(r)&&n&&fe(n.x)&&r>=n.x),ol(t,"".concat(Yi,"-left"),fe(r)&&n&&fe(n.x)&&r=n.y),ol(t,"".concat(Yi,"-top"),fe(a)&&n&&fe(n.y)&&ab?Math.max(c,l[r]):Math.max(p,l[r])}function p5(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return uv({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function f5(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,p;return o.height>0&&o.width>0&&n?(c=QE({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=QE({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=p5({translateX:c,translateY:p,useTranslate3d:s})):u=c5,{cssProperties:u,cssClasses:d5({translateX:c,translateY:p,coordinate:n})}}function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t"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 Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(e)}function wl(e,t,n){return t=bC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bC(e){var t=S5(e,"string");return ci(t)==="symbol"?t:String(t)}function S5(e,t){if(ci(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ci(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tw=1,x5=function(e){m5(n,e);var t=b5(n);function n(){var r;h5(this,n);for(var a=arguments.length,i=new Array(a),o=0;otw||Math.abs(a.height-this.lastBoundingBox.height)>tw)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,c=i.children,p=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,m=i.offset,b=i.position,S=i.reverseDirection,T=i.useTranslate3d,_=i.viewBox,x=i.wrapperStyle,A=f5({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:m,position:b,reverseDirection:S,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:T,viewBox:_}),E=A.cssClasses,v=A.cssProperties,O=Sd(Sd(Sd({},h&&o&&uv({transition:"transform ".concat(l,"ms ").concat(u)})),v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return Y.createElement("div",{tabIndex:-1,role:"dialog",className:E,style:O,ref:function(C){a.wrapperNode=C}},c)}}]),n}(F.PureComponent),E5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Rr={isSsr:E5(),get:function(t){return Rr[t]},set:function(t,n){if(typeof t=="string")Rr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(a){Rr[a]=t[a]})}}};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rw(e){for(var t=1;t"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 Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wl(e)}function cv(e,t,n){return t=yC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yC(e){var t=R5(e,"string");return di(t)==="symbol"?t:String(t)}function R5(e,t){if(di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C5(e){return e.dataKey}function N5(e,t){return Y.isValidElement(e)?Y.cloneElement(e,t):typeof e=="function"?Y.createElement(e,t):Y.createElement(FY,t)}var ba=function(e){T5(n,e);var t=A5(n);function n(){return w5(this,n),t.apply(this,arguments)}return _5(n,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.content,c=a.coordinate,p=a.filterNull,f=a.isAnimationActive,h=a.offset,m=a.payload,b=a.payloadUniqBy,S=a.position,T=a.reverseDirection,_=a.useTranslate3d,x=a.viewBox,A=a.wrapperStyle,E=m??[];p&&E.length&&(E=iC(m.filter(function(O){return O.value!=null}),b,C5));var v=E.length>0;return Y.createElement(x5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:c,hasPayload:v,offset:h,position:S,reverseDirection:T,useTranslate3d:_,viewBox:x,wrapperStyle:A},N5(u,rw(rw({},this.props),{},{payload:E})))}}]),n}(F.PureComponent);cv(ba,"displayName","Tooltip");cv(ba,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Rr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var D5=oj,L5=function(){return D5.Date.now()},M5=L5,P5=/\s/;function $5(e){for(var t=e.length;t--&&P5.test(e.charAt(t)););return t}var j5=$5,F5=j5,B5=/^\s+/;function U5(e){return e&&e.slice(0,F5(e)+1).replace(B5,"")}var z5=U5,G5=z5,iw=Ou,q5=Dy,ow=0/0,H5=/^[-+]0x[0-9a-f]+$/i,W5=/^0b[01]+$/i,V5=/^0o[0-7]+$/i,Y5=parseInt;function K5(e){if(typeof e=="number")return e;if(q5(e))return ow;if(iw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=G5(e);var n=W5.test(e);return n||V5.test(e)?Y5(e.slice(2),n?2:8):H5.test(e)?ow:+e}var vC=K5,X5=Ou,xd=M5,sw=vC,Z5="Expected a function",Q5=Math.max,J5=Math.min;function e8(e,t,n){var r,a,i,o,s,l,u=0,c=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(Z5);t=sw(t)||0,X5(n)&&(c=!!n.leading,p="maxWait"in n,i=p?Q5(sw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(v){var O=r,R=a;return r=a=void 0,u=v,o=e.apply(R,O),o}function m(v){return u=v,s=setTimeout(T,t),c?h(v):o}function b(v){var O=v-l,R=v-u,C=t-O;return p?J5(C,i-R):C}function S(v){var O=v-l,R=v-u;return l===void 0||O>=t||O<0||p&&R>=i}function T(){var v=xd();if(S(v))return _(v);s=setTimeout(T,b(v))}function _(v){return s=void 0,f&&r?h(v):(r=a=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function A(){return s===void 0?o:_(xd())}function E(){var v=xd(),O=S(v);if(r=arguments,a=this,l=v,O){if(s===void 0)return m(l);if(p)return clearTimeout(s),s=setTimeout(T,t),h(l)}return s===void 0&&(s=setTimeout(T,t)),o}return E.cancel=x,E.flush=A,E}var t8=e8,n8=t8,r8=Ou,a8="Expected a function";function i8(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(a8);return r8(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),n8(e,t,{leading:r,maxWait:t,trailing:a})}var o8=i8;const SC=St(o8);function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(z=SC(z,b,{trailing:!0,leading:!1}));var V=new ResizeObserver(z),G=E.current.getBoundingClientRect(),K=G.width,X=G.height;return N(K,X),V.observe(E.current),function(){V.disconnect()}},[N,b]);var P=F.useMemo(function(){var z=C.containerWidth,V=C.containerHeight;if(z<0||V<0)return null;Sa(ma(o)||ma(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,l),Sa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var G=ma(o)?z:o,K=ma(l)?V:l;n&&n>0&&(G?K=G/n:K&&(G=K*n),f&&K>f&&(K=f)),Sa(G>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,G,K,o,l,c,p,n);var X=!Array.isArray(h)&&ab.isElement(h)&&Ir(h.type).endsWith("Chart");return Y.Children.map(h,function(W){return ab.isElement(W)?F.cloneElement(W,sl({width:G,height:K},X?{style:sl({height:"100%",width:"100%",maxHeight:K,maxWidth:G},W.props.style)}:{})):W})},[n,h,l,f,p,c,C,o]);return Y.createElement("div",{id:S?"".concat(S):void 0,className:rt("recharts-responsive-container",T),style:sl(sl({},A),{},{width:o,height:l,minWidth:c,minHeight:p,maxHeight:f}),ref:E},P)}),dv=function(t){return null};dv.displayName="Cell";function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rb(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Rr.isSsr)return{width:0,height:0};var r=x8(n),a=JSON.stringify({text:t,copyStyle:r});if(Fa.widthCache[a])return Fa.widthCache[a];try{var i=document.getElementById(dw);i||(i=document.createElement("span"),i.setAttribute("id",dw),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Rb(Rb({},S8),r);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Fa.widthCache[a]=l,++Fa.cacheCount>v8&&(Fa.cacheCount=0,Fa.widthCache={}),l}catch{return{width:0,height:0}}},E8=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Do(e){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(e)}function Vl(e,t){return A8(e)||T8(e,t)||_8(e,t)||w8()}function w8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _8(e,t){if(e){if(typeof e=="string")return pw(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 pw(e,t)}}function pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B8(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function yw(e,t){return q8(e)||G8(e,t)||z8(e,t)||U8()}function U8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z8(e,t){if(e){if(typeof e=="string")return vw(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 vw(e,t)}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(K,X){var W=X.word,Z=X.width,D=K[K.length-1];if(D&&(a==null||i||D.width+Z+rX.width?K:X})};if(!c)return h;for(var b="…",S=function(G){var K=p.slice(0,G),X=_C({breakAll:u,style:l,children:K+b}).wordsWithComputedWidth,W=f(X),Z=W.length>o||m(W).width>Number(a);return[Z,W]},T=0,_=p.length-1,x=0,A;T<=_&&x<=p.length-1;){var E=Math.floor((T+_)/2),v=E-1,O=S(v),R=yw(O,2),C=R[0],$=R[1],N=S(E),P=yw(N,1),z=P[0];if(!C&&!z&&(T=E+1),C&&z&&(_=E-1),!C&&z){A=$;break}x++}return A||h},Sw=function(t){var n=Be(t)?[]:t.toString().split(wC);return[{words:n}]},W8=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!Rr.isSsr){var l,u,c=_C({breakAll:o,children:a,style:i});if(c){var p=c.wordsWithComputedWidth,f=c.spaceWidth;l=p,u=f}else return Sw(a);return H8({breakAll:o,children:a,maxLines:s,style:i},l,u,n,r)}return Sw(a)},xw="#808080",Yl=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,p=c===void 0?!1:c,f=t.textAnchor,h=f===void 0?"start":f,m=t.verticalAnchor,b=m===void 0?"end":m,S=t.fill,T=S===void 0?xw:S,_=bw(t,j8),x=F.useMemo(function(){return W8({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,E=_.dy,v=_.angle,O=_.className,R=_.breakAll,C=bw(_,F8);if(!Nt(r)||!Nt(i))return null;var $=r+(fe(A)?A:0),N=i+(fe(E)?E:0),P;switch(b){case"start":P=Ed("calc(".concat(u,")"));break;case"middle":P=Ed("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:P=Ed("calc(".concat(x.length-1," * -").concat(s,")"));break}var z=[];if(p){var V=x[0].width,G=_.width;z.push("scale(".concat((fe(G)?G/V:1)/V,")"))}return v&&z.push("rotate(".concat(v,", ").concat($,", ").concat(N,")")),z.length&&(C.transform=z.join(" ")),Y.createElement("text",Cb({},He(C,!0),{x:$,y:N,className:rt("recharts-text",O),textAnchor:h,fill:T.includes("url")?xw:T}),x.map(function(K,X){var W=K.words.join(R?"":" ");return Y.createElement("tspan",{x:$,dy:X===0?P:s,key:W},W)}))};function Qr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function V8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function pv(e){let t,n,r;e.length!==2?(t=Qr,n=(s,l)=>Qr(e(s),l),r=(s,l)=>e(s)-l):(t=e===Qr||e===V8?e:Y8,n=e,r=e);function a(s,l,u=0,c=s.length){if(u>>1;n(s[p],l)<0?u=p+1:c=p}while(u>>1;n(s[p],l)<=0?u=p+1:c=p}while(uu&&r(s[p-1],l)>-r(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function Y8(){return 0}function TC(e){return e===null?NaN:+e}function*K8(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const X8=pv(Qr),Z8=X8.right;pv(TC).center;const Ss=Z8;class Ew extends Map{constructor(t,n=e9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(ww(this,t))}has(t){return super.has(ww(this,t))}set(t,n){return super.set(Q8(this,t),n)}delete(t){return super.delete(J8(this,t))}}function ww({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Q8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function J8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function e9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t9(e=Qr){if(e===Qr)return AC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function AC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const n9=Math.sqrt(50),r9=Math.sqrt(10),a9=Math.sqrt(2);function Kl(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=n9?10:i>=r9?5:i>=a9?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Tw(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function kC(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?AC:t9(a);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,c=Math.log(l),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(l-p)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*p/l+f)),m=Math.min(r,Math.floor(t+(l-u)*p/l+f));kC(e,t,h,m,a)}const i=e[t];let o=n,s=r;for(Ki(e,n,t),a(e[r],i)>0&&Ki(e,n,r);o0;)--s}a(e[n],i)===0?Ki(e,n,s):(++s,Ki(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ki(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function i9(e,t,n){if(e=Float64Array.from(K8(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Tw(e);if(t>=1)return _w(e);var r,a=(r-1)*t,i=Math.floor(a),o=_w(kC(e,i).subarray(0,i+1)),s=Tw(e.subarray(i+1));return o+(s-o)*(a-i)}}function o9(e,t,n=TC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function s9(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ul(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ul(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=u9.exec(e))?new pn(t[1],t[2],t[3],1):(t=c9.exec(e))?new pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d9.exec(e))?ul(t[1],t[2],t[3],t[4]):(t=p9.exec(e))?ul(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,1):(t=h9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,t[4]):Aw.hasOwnProperty(e)?Iw(Aw[e]):e==="transparent"?new pn(NaN,NaN,NaN,0):null}function Iw(e){return new pn(e>>16&255,e>>8&255,e&255,1)}function ul(e,t,n,r){return r<=0&&(e=t=n=NaN),new pn(e,t,n,r)}function b9(e){return e instanceof xs||(e=$o(e)),e?(e=e.rgb(),new pn(e.r,e.g,e.b,e.opacity)):new pn}function Pb(e,t,n,r){return arguments.length===1?b9(e):new pn(e,t,n,r??1)}function pn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hv(pn,Pb,IC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pn(xa(this.r),xa(this.g),xa(this.b),Zl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rw,formatHex:Rw,formatHex8:y9,formatRgb:Cw,toString:Cw}));function Rw(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}`}function y9(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}${ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cw(){const e=Zl(this.opacity);return`${e===1?"rgb(":"rgba("}${xa(this.r)}, ${xa(this.g)}, ${xa(this.b)}${e===1?")":`, ${e})`}`}function Zl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ya(e){return e=xa(e),(e<16?"0":"")+e.toString(16)}function Nw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function RC(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xs||(e=$o(e)),!e)return new Yn;if(e instanceof Yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n0&&l<1?0:o,new Yn(o,s,l,e.opacity)}function v9(e,t,n,r){return arguments.length===1?RC(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hv(Yn,v9,IC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new pn(wd(e>=240?e-240:e+120,a,r),wd(e,a,r),wd(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Yn(Dw(this.h),cl(this.s),cl(this.l),Zl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zl(this.opacity);return`${e===1?"hsl(":"hsla("}${Dw(this.h)}, ${cl(this.s)*100}%, ${cl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dw(e){return e=(e||0)%360,e<0?e+360:e}function cl(e){return Math.max(0,Math.min(1,e||0))}function wd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gv=e=>()=>e;function S9(e,t){return function(n){return e+n*t}}function x9(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function E9(e){return(e=+e)==1?CC:function(t,n){return n-t?x9(t,n,e):gv(isNaN(t)?n:t)}}function CC(e,t){var n=t-e;return n?S9(e,n):gv(isNaN(e)?t:e)}const Lw=function e(t){var n=E9(t);function r(a,i){var o=n((a=Pb(a)).r,(i=Pb(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=CC(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function w9(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:Ql(r,a)})),n=_d.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function L9(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?M9:L9,l=u=null,p}function p(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return p.invert=function(f){return o(a((u||(u=s(t,e.map(r),Ql)))(f)))},p.domain=function(f){return arguments.length?(e=Array.from(f,Jl),c()):e.slice()},p.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},p.rangeRound=function(f){return t=Array.from(f),n=mv,c()},p.clamp=function(f){return arguments.length?(o=f?!0:on,c()):o!==on},p.interpolate=function(f){return arguments.length?(n=f,c()):n},p.unknown=function(f){return arguments.length?(i=f,p):i},function(f,h){return r=f,a=h,c()}}function bv(){return tc()(on,on)}function P9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function eu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pi(e){return e=eu(Math.abs(e)),e?e[1]:NaN}function $9(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function j9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var F9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jo(e){if(!(t=F9.exec(e)))throw new Error("invalid format: "+e);var t;return new yv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}jo.prototype=yv.prototype;function yv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function B9(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var NC;function U9(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(NC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+eu(e,Math.max(0,t+i-1))[0]}function Pw(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const $w={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:P9,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Pw(e*100,t),r:Pw,s:U9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jw(e){return e}var Fw=Array.prototype.map,Bw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function z9(e){var t=e.grouping===void 0||e.thousands===void 0?jw:$9(Fw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?jw:j9(Fw.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(p){p=jo(p);var f=p.fill,h=p.align,m=p.sign,b=p.symbol,S=p.zero,T=p.width,_=p.comma,x=p.precision,A=p.trim,E=p.type;E==="n"?(_=!0,E="g"):$w[E]||(x===void 0&&(x=12),A=!0,E="g"),(S||f==="0"&&h==="=")&&(S=!0,f="0",h="=");var v=b==="$"?n:b==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",O=b==="$"?r:/[%p]/.test(E)?o:"",R=$w[E],C=/[defgprs%]/.test(E);x=x===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function $(N){var P=v,z=O,V,G,K;if(E==="c")z=R(N)+z,N="";else{N=+N;var X=N<0||1/N<0;if(N=isNaN(N)?l:R(Math.abs(N),x),A&&(N=B9(N)),X&&+N==0&&m!=="+"&&(X=!1),P=(X?m==="("?m:s:m==="-"||m==="("?"":m)+P,z=(E==="s"?Bw[8+NC/3]:"")+z+(X&&m==="("?")":""),C){for(V=-1,G=N.length;++VK||K>57){z=(K===46?a+N.slice(V+1):N.slice(V))+z,N=N.slice(0,V);break}}}_&&!S&&(N=t(N,1/0));var W=P.length+N.length+z.length,Z=W>1)+P+N+z+Z.slice(W);break;default:N=Z+P+N+z;break}return i(N)}return $.toString=function(){return p+""},$}function c(p,f){var h=u((p=jo(p),p.type="f",p)),m=Math.max(-8,Math.min(8,Math.floor(pi(f)/3)))*3,b=Math.pow(10,-m),S=Bw[8+m/3];return function(T){return h(b*T)+S}}return{format:u,formatPrefix:c}}var dl,vv,DC;G9({thousands:",",grouping:[3],currency:["$",""]});function G9(e){return dl=z9(e),vv=dl.format,DC=dl.formatPrefix,dl}function q9(e){return Math.max(0,-pi(Math.abs(e)))}function H9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pi(t)/3)))*3-pi(Math.abs(e)))}function W9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pi(t)-pi(e))+1}function LC(e,t,n,r){var a=Lb(e,t,n),i;switch(r=jo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=H9(a,o))&&(r.precision=i),DC(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=W9(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=q9(a))&&(r.precision=i-(r.type==="%")*2);break}}return vv(r)}function na(e){var t=e.domain;return e.ticks=function(n){var r=t();return Nb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return LC(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],l,u,c=10;for(s0;){if(u=Db(o,s,n),u===l)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function tu(){var e=bv();return e.copy=function(){return Es(e,tu())},$n.apply(e,arguments),na(e)}function MC(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Jl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return MC(e).unknown(t)},e=arguments.length?Array.from(e,Jl):[0,1],na(n)}function PC(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Z9(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Gw(e){return(t,n)=>-e(-t,n)}function Sv(e){const t=e(Uw,zw),n=t.domain;let r=10,a,i;function o(){return a=Z9(r),i=X9(r),n()[0]<0?(a=Gw(a),i=Gw(i),e(V9,Y9)):e(Uw,zw),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const p=c0){for(;f<=h;++f)for(m=1;mc)break;T.push(b)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(b=f>0?m/i(-f):m*i(f),!(bc)break;T.push(b)}T.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=jo(l)).precision==null&&(l.trim=!0),l=vv(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let p=c/i(Math.round(a(c)));return p*rn(PC(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function $C(){const e=Sv(tc()).domain([1,10]);return e.copy=()=>Es(e,$C()).base(e.base()),$n.apply(e,arguments),e}function qw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xv(e){var t=1,n=e(qw(t),Hw(t));return n.constant=function(r){return arguments.length?e(qw(t=+r),Hw(t)):t},na(n)}function jC(){var e=xv(tc());return e.copy=function(){return Es(e,jC()).constant(e.constant())},$n.apply(e,arguments)}function Ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Q9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function J9(e){return e<0?-e*e:e*e}function Ev(e){var t=e(on,on),n=1;function r(){return n===1?e(on,on):n===.5?e(Q9,J9):e(Ww(n),Ww(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},na(t)}function wv(){var e=Ev(tc());return e.copy=function(){return Es(e,wv()).exponent(e.exponent())},$n.apply(e,arguments),e}function eK(){return wv.apply(null,arguments).exponent(.5)}function Vw(e){return Math.sign(e)*e*e}function tK(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function FC(){var e=bv(),t=[0,1],n=!1,r;function a(i){var o=tK(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(Vw(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Jl)).map(Vw)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return FC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(a,arguments),na(a)}function BC(){var e=[],t=[],n=[],r;function a(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return UC().domain([e,t]).range(a).unknown(i)},$n.apply(na(o),arguments)}function zC(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Ss(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return zC().domain(e).range(t).unknown(n)},$n.apply(a,arguments)}const Td=new Date,Ad=new Date;function Dt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uDt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Td.setTime(+i),Ad.setTime(+o),e(Td),e(Ad),Math.floor(n(Td,Ad))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const nu=Dt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nu);nu.range;const kr=1e3,Nn=kr*60,Or=Nn*60,Dr=Or*24,_v=Dr*7,Yw=Dr*30,kd=Dr*365,va=Dt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCSeconds());va.range;const Tv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());Tv.range;const Av=Dt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());Av.range;const kv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getHours());kv.range;const Ov=Dt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCHours());Ov.range;const ws=Dt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Dr,e=>e.getDate()-1);ws.range;const nc=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>e.getUTCDate()-1);nc.range;const GC=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>Math.floor(e/Dr));GC.range;function Oa(e){return Dt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nn)/_v)}const rc=Oa(0),ru=Oa(1),nK=Oa(2),rK=Oa(3),fi=Oa(4),aK=Oa(5),iK=Oa(6);rc.range;ru.range;nK.range;rK.range;fi.range;aK.range;iK.range;function Ia(e){return Dt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/_v)}const ac=Ia(0),au=Ia(1),oK=Ia(2),sK=Ia(3),hi=Ia(4),lK=Ia(5),uK=Ia(6);ac.range;au.range;oK.range;sK.range;hi.range;lK.range;uK.range;const Iv=Dt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Iv.range;const Rv=Dt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Rv.range;const Lr=Dt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Lr.range;const Mr=Dt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mr.range;function qC(e,t,n,r,a,i){const o=[[va,1,kr],[va,5,5*kr],[va,15,15*kr],[va,30,30*kr],[i,1,Nn],[i,5,5*Nn],[i,15,15*Nn],[i,30,30*Nn],[a,1,Or],[a,3,3*Or],[a,6,6*Or],[a,12,12*Or],[r,1,Dr],[r,2,2*Dr],[n,1,_v],[t,1,Yw],[t,3,3*Yw],[e,1,kd]];function s(u,c,p){const f=cS).right(o,f);if(h===o.length)return e.every(Lb(u/kd,c/kd,p));if(h===0)return nu.every(Math.max(Lb(u,c,p),1));const[m,b]=o[f/o[h-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(me=Id(Xi(ee.y,0,1)),ve=me.getUTCDay(),me=ve>4||ve===0?au.ceil(me):au(me),me=nc.offset(me,(ee.V-1)*7),ee.y=me.getUTCFullYear(),ee.m=me.getUTCMonth(),ee.d=me.getUTCDate()+(ee.w+6)%7):(me=Od(Xi(ee.y,0,1)),ve=me.getDay(),me=ve>4||ve===0?ru.ceil(me):ru(me),me=ws.offset(me,(ee.V-1)*7),ee.y=me.getFullYear(),ee.m=me.getMonth(),ee.d=me.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),ve="Z"in ee?Id(Xi(ee.y,0,1)).getUTCDay():Od(Xi(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(ve+5)%7:ee.w+ee.U*7-(ve+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Id(ee)):Od(ee)}}function R(ae,de,ce,ee){for(var _e=0,me=de.length,ve=ce.length,Ue,at;_e=ve)return-1;if(Ue=de.charCodeAt(_e++),Ue===37){if(Ue=de.charAt(_e++),at=E[Ue in Kw?de.charAt(_e++):Ue],!at||(ee=at(ae,ce,ee))<0)return-1}else if(Ue!=ce.charCodeAt(ee++))return-1}return ee}function C(ae,de,ce){var ee=u.exec(de.slice(ce));return ee?(ae.p=c.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function $(ae,de,ce){var ee=h.exec(de.slice(ce));return ee?(ae.w=m.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function N(ae,de,ce){var ee=p.exec(de.slice(ce));return ee?(ae.w=f.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function P(ae,de,ce){var ee=T.exec(de.slice(ce));return ee?(ae.m=_.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function z(ae,de,ce){var ee=b.exec(de.slice(ce));return ee?(ae.m=S.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function V(ae,de,ce){return R(ae,t,de,ce)}function G(ae,de,ce){return R(ae,n,de,ce)}function K(ae,de,ce){return R(ae,r,de,ce)}function X(ae){return o[ae.getDay()]}function W(ae){return i[ae.getDay()]}function Z(ae){return l[ae.getMonth()]}function D(ae){return s[ae.getMonth()]}function ie(ae){return a[+(ae.getHours()>=12)]}function ne(ae){return 1+~~(ae.getMonth()/3)}function M(ae){return o[ae.getUTCDay()]}function ye(ae){return i[ae.getUTCDay()]}function re(ae){return l[ae.getUTCMonth()]}function Se(ae){return s[ae.getUTCMonth()]}function je(ae){return a[+(ae.getUTCHours()>=12)]}function we(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=v(ae+="",x);return de.toString=function(){return ae},de},parse:function(ae){var de=O(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=v(ae+="",A);return de.toString=function(){return ae},de},utcParse:function(ae){var de=O(ae+="",!0);return de.toString=function(){return ae},de}}}var Kw={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,gK=/^%/,mK=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function yK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xw(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Zw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wK(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _K(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function TK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Qw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function AK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Jw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function OK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function RK(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CK(e,t,n){var r=gK.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function DK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function e0(e,t){return Ye(e.getDate(),t,2)}function LK(e,t){return Ye(e.getHours(),t,2)}function MK(e,t){return Ye(e.getHours()%12||12,t,2)}function PK(e,t){return Ye(1+ws.count(Lr(e),e),t,3)}function HC(e,t){return Ye(e.getMilliseconds(),t,3)}function $K(e,t){return HC(e,t)+"000"}function jK(e,t){return Ye(e.getMonth()+1,t,2)}function FK(e,t){return Ye(e.getMinutes(),t,2)}function BK(e,t){return Ye(e.getSeconds(),t,2)}function UK(e){var t=e.getDay();return t===0?7:t}function zK(e,t){return Ye(rc.count(Lr(e)-1,e),t,2)}function WC(e){var t=e.getDay();return t>=4||t===0?fi(e):fi.ceil(e)}function GK(e,t){return e=WC(e),Ye(fi.count(Lr(e),e)+(Lr(e).getDay()===4),t,2)}function qK(e){return e.getDay()}function HK(e,t){return Ye(ru.count(Lr(e)-1,e),t,2)}function WK(e,t){return Ye(e.getFullYear()%100,t,2)}function VK(e,t){return e=WC(e),Ye(e.getFullYear()%100,t,2)}function YK(e,t){return Ye(e.getFullYear()%1e4,t,4)}function KK(e,t){var n=e.getDay();return e=n>=4||n===0?fi(e):fi.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function XK(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function t0(e,t){return Ye(e.getUTCDate(),t,2)}function ZK(e,t){return Ye(e.getUTCHours(),t,2)}function QK(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function JK(e,t){return Ye(1+nc.count(Mr(e),e),t,3)}function VC(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function eX(e,t){return VC(e,t)+"000"}function tX(e,t){return Ye(e.getUTCMonth()+1,t,2)}function nX(e,t){return Ye(e.getUTCMinutes(),t,2)}function rX(e,t){return Ye(e.getUTCSeconds(),t,2)}function aX(e){var t=e.getUTCDay();return t===0?7:t}function iX(e,t){return Ye(ac.count(Mr(e)-1,e),t,2)}function YC(e){var t=e.getUTCDay();return t>=4||t===0?hi(e):hi.ceil(e)}function oX(e,t){return e=YC(e),Ye(hi.count(Mr(e),e)+(Mr(e).getUTCDay()===4),t,2)}function sX(e){return e.getUTCDay()}function lX(e,t){return Ye(au.count(Mr(e)-1,e),t,2)}function uX(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function cX(e,t){return e=YC(e),Ye(e.getUTCFullYear()%100,t,2)}function dX(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function pX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hi(e):hi.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function fX(){return"+0000"}function n0(){return"%"}function r0(e){return+e}function a0(e){return Math.floor(+e/1e3)}var Ba,KC,XC;hX({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hX(e){return Ba=hK(e),KC=Ba.format,Ba.parse,XC=Ba.utcFormat,Ba.utcParse,Ba}function gX(e){return new Date(e)}function mX(e){return e instanceof Date?+e:+new Date(+e)}function Cv(e,t,n,r,a,i,o,s,l,u){var c=bv(),p=c.invert,f=c.domain,h=u(".%L"),m=u(":%S"),b=u("%I:%M"),S=u("%I %p"),T=u("%a %d"),_=u("%b %d"),x=u("%B"),A=u("%Y");function E(v){return(l(v)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>i9(e,i/r))},n.copy=function(){return eN(t).domain(e)},$r.apply(n,arguments)}function oc(){var e=0,t=.5,n=1,r=1,a,i,o,s,l,u=on,c,p=!1,f;function h(b){return isNaN(b=+b)?f:(b=.5+((b=+c(b))-i)*(r*bt}var _X=wX,TX=aN,AX=_X,kX=hs;function OX(e){return e&&e.length?TX(e,kX,AX):void 0}var IX=OX;const sc=St(IX);function RX(e,t){return ee.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return Cr(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return ot(Cr(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return kt(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Sn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(Sn)?new r(0):(gt=!1,t=Cr(Fo(n,i),Fo(e,i),i),gt=!0,ot(t,a))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lN(t,e):oN(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Ln+"NaN");return n.s?(gt=!1,t=Cr(n,e,0,1).times(e),gt=!0,n.minus(t)):ot(new r(n),a)};be.naturalExponential=be.exp=function(){return sN(this)};be.naturalLogarithm=be.ln=function(){return Fo(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oN(t,e):lN(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ea+e);if(t=kt(a)+1,r=a.d.length-1,n=r*ft+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ln+"NaN")}for(e=kt(s),gt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=sr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Ni((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(a.toString()),n=l.precision,a=o=n+3;;)if(i=r,r=i.plus(Cr(s,i,o+2)).times(.5),sr(i.d).slice(0,o)===(t=sr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(ot(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;o+=4}return gt=!0,ot(r,n)};be.times=be.mul=function(e){var t,n,r,a,i,o,s,l,u,c=this,p=c.constructor,f=c.d,h=(e=new p(e)).d;if(!c.s||!e.s)return new p(0);for(e.s*=c.s,n=c.e+e.e,l=f.length,u=h.length,l=0;){for(t=0,a=l+r;a>r;)s=i[a]+h[r]*f[a-r-1]+t,i[a--]=s%Mt|0,t=s/Mt|0;i[a]=(i[a]+t)%Mt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,gt?ot(e,p.precision):e};be.toDecimalPlaces=be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(fr(e,0,Ci),t===void 0?t=r.rounding:fr(t,0,8),ot(n,e+kt(n)+1,t))};be.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=_a(r,!0):(fr(e,0,Ci),t===void 0?t=a.rounding:fr(t,0,8),r=ot(new a(r),e+1,t),n=_a(r,!0,e+1)),n};be.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?_a(a):(fr(e,0,Ci),t===void 0?t=i.rounding:fr(t,0,8),r=ot(new i(a),e+kt(a)+1,t),n=_a(r.abs(),!1,e+kt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};be.toInteger=be.toint=function(){var e=this,t=e.constructor;return ot(new t(e),kt(e)+1,t.rounding)};be.toNumber=function(){return+this};be.toPower=be.pow=function(e){var t,n,r,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Sn);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ln+"Infinity");return s}if(s.eq(Sn))return s;if(r=l.precision,e.eq(Sn))return ot(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=s.s,o){if((n=c<0?-c:c)<=iN){for(a=new l(Sn),t=Math.ceil(r/ft+4),gt=!1;n%2&&(a=a.times(s),s0(a.d,t)),n=Ni(n/2),n!==0;)s=s.times(s),s0(s.d,t);return gt=!0,e.s<0?new l(Sn).div(a):ot(a,r)}}else if(i<0)throw Error(Ln+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,gt=!1,a=e.times(Fo(s,r+u)),gt=!0,a=sN(a),a.s=i,a};be.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=kt(a),r=_a(a,n<=i.toExpNeg||n>=i.toExpPos)):(fr(e,1,Ci),t===void 0?t=i.rounding:fr(t,0,8),a=ot(new i(a),e,t),n=kt(a),r=_a(a,e<=n||n<=i.toExpNeg,e)),r};be.toSignificantDigits=be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(fr(e,1,Ci),t===void 0?t=r.rounding:fr(t,0,8)),ot(new r(n),e,t)};be.toString=be.valueOf=be.val=be.toJSON=be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=kt(e),n=e.constructor;return _a(e,t<=n.toExpNeg||t>=n.toExpPos)};function oN(e,t){var n,r,a,i,o,s,l,u,c=e.constructor,p=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),gt?ot(t,p):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(r=l,i=-i,s=u.length):(r=u,a=o,s=l.length),o=Math.ceil(p/ft),s=o>s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/Mt|0,l[i]%=Mt;for(n&&(l.unshift(n),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,gt?ot(t,p):t}function fr(e,t,n){if(e!==~~e||en)throw Error(Ea+e)}function sr(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]1;)r.shift()}return function(r,a,i,o){var s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C=r.constructor,$=r.s==a.s?1:-1,N=r.d,P=a.d;if(!r.s)return new C(r);if(!a.s)throw Error(Ln+"Division by zero");for(l=r.e-a.e,O=P.length,E=N.length,h=new C($),m=h.d=[],u=0;P[u]==(N[u]||0);)++u;if(P[u]>(N[u]||0)&&--l,i==null?_=i=C.precision:o?_=i+(kt(r)-kt(a))+1:_=i,_<0)return new C(0);if(_=_/ft+2|0,u=0,O==1)for(c=0,P=P[0],_++;(u1&&(P=e(P,c),N=e(N,c),O=P.length,E=N.length),A=O,b=N.slice(0,O),S=b.length;S=Mt/2&&++v;do c=0,s=t(P,b,O,S),s<0?(T=b[0],O!=S&&(T=T*Mt+(b[1]||0)),c=T/v|0,c>1?(c>=Mt&&(c=Mt-1),p=e(P,c),f=p.length,S=b.length,s=t(p,b,f,S),s==1&&(c--,n(p,O16)throw Error(Lv+kt(e));if(!e.s)return new c(Sn);for(t==null?(gt=!1,s=p):s=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(ha(2,u))/Math.LN10*2+5|0,s+=r,n=a=i=new c(Sn),c.precision=s;;){if(a=ot(a.times(e),s),n=n.times(++l),o=i.plus(Cr(a,n,s)),sr(o.d).slice(0,s)===sr(i.d).slice(0,s)){for(;u--;)i=ot(i.times(i),s);return c.precision=p,t==null?(gt=!0,ot(i,p)):i}i=o}}function kt(e){for(var t=e.e*ft,n=e.d[0];n>=10;n/=10)t++;return t}function Rd(e,t,n){if(t>e.LN10.sd())throw gt=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return ot(new e(e.LN10),t)}function Yr(e){for(var t="";e--;)t+="0";return t}function Fo(e,t){var n,r,a,i,o,s,l,u,c,p=1,f=10,h=e,m=h.d,b=h.constructor,S=b.precision;if(h.s<1)throw Error(Ln+(h.s?"NaN":"-Infinity"));if(h.eq(Sn))return new b(0);if(t==null?(gt=!1,u=S):u=t,h.eq(10))return t==null&&(gt=!0),Rd(b,u);if(u+=f,b.precision=u,n=sr(m),r=n.charAt(0),i=kt(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=sr(h.d),r=n.charAt(0),p++;i=kt(h),r>1?(h=new b("0."+n),i++):h=new b(r+"."+n.slice(1))}else return l=Rd(b,u+2,S).times(i+""),h=Fo(new b(r+"."+n.slice(1)),u-f).plus(l),b.precision=S,t==null?(gt=!0,ot(h,S)):h;for(s=o=h=Cr(h.minus(Sn),h.plus(Sn),u),c=ot(h.times(h),u),a=3;;){if(o=ot(o.times(c),u),l=s.plus(Cr(o,new b(a),u)),sr(l.d).slice(0,u)===sr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Rd(b,u+2,S).times(i+""))),s=Cr(s,new b(p),u),b.precision=S,t==null?(gt=!0,ot(s,S)):s;s=l,a+=2}}function o0(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Ni(n/ft),e.d=[],r=(n+1)%ft,n<0&&(r+=ft),riu||e.e<-iu))throw Error(Lv+n)}else e.s=0,e.e=0,e.d=[0];return e}function ot(e,t,n){var r,a,i,o,s,l,u,c,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=ft,a=t,u=p[c=0];else{if(c=Math.ceil((r+1)/ft),i=p.length,c>=i)return e;for(u=i=p[c],o=1;i>=10;i/=10)o++;r%=ft,a=r-ft+o}if(n!==void 0&&(i=ha(10,o-a-1),s=u/i%10|0,l=t<0||p[c+1]!==void 0||u%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?a>0?u/ha(10,o-a):0:p[c-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return l?(i=kt(e),p.length=1,t=t-i-1,p[0]=ha(10,(ft-t%ft)%ft),e.e=Ni(-t/ft)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=c,i=1,c--):(p.length=c+1,i=ha(10,ft-r),p[c]=a>0?(u/ha(10,o-a)%ha(10,a)|0)*i:0),l)for(;;)if(c==0){(p[0]+=i)==Mt&&(p[0]=1,++e.e);break}else{if(p[c]+=i,p[c]!=Mt)break;p[c--]=0,i=1}for(r=p.length;p[--r]===0;)p.pop();if(gt&&(e.e>iu||e.e<-iu))throw Error(Lv+kt(e));return e}function lN(e,t){var n,r,a,i,o,s,l,u,c,p,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),gt?ot(t,h):t;if(l=e.d,p=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(c=o<0,c?(n=l,o=-o,s=p.length):(n=p,r=u,s=l.length),a=Math.max(Math.ceil(h/ft),s)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=l.length,s=p.length,c=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+Yr(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Yr(-a-1)+i,n&&(r=n-o)>0&&(i+=Yr(r))):a>=o?(i+=Yr(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Yr(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=Yr(r))),e.s<0?"-"+i:i}function s0(e,t){if(e.length>t)return e.length=t,!0}function uN(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ea+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return o0(o,i.toString())}else if(typeof i!="string")throw Error(Ea+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,WX.test(i))o0(o,i);else throw Error(Ea+i)}if(a.prototype=be,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=uN,a.config=a.set=VX,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ea+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ea+n+": "+r);return this}var Mv=uN(HX);Sn=new Mv(1);const nt=Mv;function YX(e){return QX(e)||ZX(e)||XX(e)||KX()}function KX(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z8(e,t){if(e){if(typeof e=="string")return vw(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 vw(e,t)}}function vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return G.reduce(function(K,X){var W=X.word,Z=X.width,D=K[K.length-1];if(D&&(a==null||i||D.width+Z+rX.width?K:X})};if(!c)return h;for(var b="…",S=function(G){var K=p.slice(0,G),X=_C({breakAll:u,style:l,children:K+b}).wordsWithComputedWidth,W=f(X),Z=W.length>o||m(W).width>Number(a);return[Z,W]},T=0,_=p.length-1,x=0,A;T<=_&&x<=p.length-1;){var E=Math.floor((T+_)/2),v=E-1,O=S(v),R=yw(O,2),C=R[0],$=R[1],N=S(E),P=yw(N,1),z=P[0];if(!C&&!z&&(T=E+1),C&&z&&(_=E-1),!C&&z){A=$;break}x++}return A||h},Sw=function(t){var n=Be(t)?[]:t.toString().split(wC);return[{words:n}]},W8=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!Rr.isSsr){var l,u,c=_C({breakAll:o,children:a,style:i});if(c){var p=c.wordsWithComputedWidth,f=c.spaceWidth;l=p,u=f}else return Sw(a);return H8({breakAll:o,children:a,maxLines:s,style:i},l,u,n,r)}return Sw(a)},xw="#808080",Yl=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,p=c===void 0?!1:c,f=t.textAnchor,h=f===void 0?"start":f,m=t.verticalAnchor,b=m===void 0?"end":m,S=t.fill,T=S===void 0?xw:S,_=bw(t,j8),x=F.useMemo(function(){return W8({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,E=_.dy,v=_.angle,O=_.className,R=_.breakAll,C=bw(_,F8);if(!Nt(r)||!Nt(i))return null;var $=r+(fe(A)?A:0),N=i+(fe(E)?E:0),P;switch(b){case"start":P=Ed("calc(".concat(u,")"));break;case"middle":P=Ed("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:P=Ed("calc(".concat(x.length-1," * -").concat(s,")"));break}var z=[];if(p){var V=x[0].width,G=_.width;z.push("scale(".concat((fe(G)?G/V:1)/V,")"))}return v&&z.push("rotate(".concat(v,", ").concat($,", ").concat(N,")")),z.length&&(C.transform=z.join(" ")),Y.createElement("text",Cb({},He(C,!0),{x:$,y:N,className:rt("recharts-text",O),textAnchor:h,fill:T.includes("url")?xw:T}),x.map(function(K,X){var W=K.words.join(R?"":" ");return Y.createElement("tspan",{x:$,dy:X===0?P:s,key:W},W)}))};function Qr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function V8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function pv(e){let t,n,r;e.length!==2?(t=Qr,n=(s,l)=>Qr(e(s),l),r=(s,l)=>e(s)-l):(t=e===Qr||e===V8?e:Y8,n=e,r=e);function a(s,l,u=0,c=s.length){if(u>>1;n(s[p],l)<0?u=p+1:c=p}while(u>>1;n(s[p],l)<=0?u=p+1:c=p}while(uu&&r(s[p-1],l)>-r(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function Y8(){return 0}function TC(e){return e===null?NaN:+e}function*K8(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const X8=pv(Qr),Z8=X8.right;pv(TC).center;const Ss=Z8;class Ew extends Map{constructor(t,n=e9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(ww(this,t))}has(t){return super.has(ww(this,t))}set(t,n){return super.set(Q8(this,t),n)}delete(t){return super.delete(J8(this,t))}}function ww({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Q8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function J8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function e9(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t9(e=Qr){if(e===Qr)return AC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function AC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const n9=Math.sqrt(50),r9=Math.sqrt(10),a9=Math.sqrt(2);function Kl(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=n9?10:i>=r9?5:i>=a9?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function Tw(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function kC(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?AC:t9(a);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,c=Math.log(l),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(l-p)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*p/l+f)),m=Math.min(r,Math.floor(t+(l-u)*p/l+f));kC(e,t,h,m,a)}const i=e[t];let o=n,s=r;for(Ki(e,n,t),a(e[r],i)>0&&Ki(e,n,r);o0;)--s}a(e[n],i)===0?Ki(e,n,s):(++s,Ki(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ki(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function i9(e,t,n){if(e=Float64Array.from(K8(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Tw(e);if(t>=1)return _w(e);var r,a=(r-1)*t,i=Math.floor(a),o=_w(kC(e,i).subarray(0,i+1)),s=Tw(e.subarray(i+1));return o+(s-o)*(a-i)}}function o9(e,t,n=TC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function s9(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ul(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ul(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=u9.exec(e))?new pn(t[1],t[2],t[3],1):(t=c9.exec(e))?new pn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d9.exec(e))?ul(t[1],t[2],t[3],t[4]):(t=p9.exec(e))?ul(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=f9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,1):(t=h9.exec(e))?Nw(t[1],t[2]/100,t[3]/100,t[4]):Aw.hasOwnProperty(e)?Iw(Aw[e]):e==="transparent"?new pn(NaN,NaN,NaN,0):null}function Iw(e){return new pn(e>>16&255,e>>8&255,e&255,1)}function ul(e,t,n,r){return r<=0&&(e=t=n=NaN),new pn(e,t,n,r)}function b9(e){return e instanceof xs||(e=$o(e)),e?(e=e.rgb(),new pn(e.r,e.g,e.b,e.opacity)):new pn}function Pb(e,t,n,r){return arguments.length===1?b9(e):new pn(e,t,n,r??1)}function pn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hv(pn,Pb,IC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new pn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pn(xa(this.r),xa(this.g),xa(this.b),Zl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rw,formatHex:Rw,formatHex8:y9,formatRgb:Cw,toString:Cw}));function Rw(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}`}function y9(){return`#${ya(this.r)}${ya(this.g)}${ya(this.b)}${ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cw(){const e=Zl(this.opacity);return`${e===1?"rgb(":"rgba("}${xa(this.r)}, ${xa(this.g)}, ${xa(this.b)}${e===1?")":`, ${e})`}`}function Zl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ya(e){return e=xa(e),(e<16?"0":"")+e.toString(16)}function Nw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function RC(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xs||(e=$o(e)),!e)return new Yn;if(e instanceof Yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(n-r)/s+(n0&&l<1?0:o,new Yn(o,s,l,e.opacity)}function v9(e,t,n,r){return arguments.length===1?RC(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hv(Yn,v9,IC(xs,{brighter(e){return e=e==null?Xl:Math.pow(Xl,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mo:Math.pow(Mo,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new pn(wd(e>=240?e-240:e+120,a,r),wd(e,a,r),wd(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Yn(Dw(this.h),cl(this.s),cl(this.l),Zl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zl(this.opacity);return`${e===1?"hsl(":"hsla("}${Dw(this.h)}, ${cl(this.s)*100}%, ${cl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dw(e){return e=(e||0)%360,e<0?e+360:e}function cl(e){return Math.max(0,Math.min(1,e||0))}function wd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gv=e=>()=>e;function S9(e,t){return function(n){return e+n*t}}function x9(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function E9(e){return(e=+e)==1?CC:function(t,n){return n-t?x9(t,n,e):gv(isNaN(t)?n:t)}}function CC(e,t){var n=t-e;return n?S9(e,n):gv(isNaN(e)?t:e)}const Lw=function e(t){var n=E9(t);function r(a,i){var o=n((a=Pb(a)).r,(i=Pb(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=CC(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function w9(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:Ql(r,a)})),n=_d.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function L9(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?M9:L9,l=u=null,p}function p(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return p.invert=function(f){return o(a((u||(u=s(t,e.map(r),Ql)))(f)))},p.domain=function(f){return arguments.length?(e=Array.from(f,Jl),c()):e.slice()},p.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},p.rangeRound=function(f){return t=Array.from(f),n=mv,c()},p.clamp=function(f){return arguments.length?(o=f?!0:on,c()):o!==on},p.interpolate=function(f){return arguments.length?(n=f,c()):n},p.unknown=function(f){return arguments.length?(i=f,p):i},function(f,h){return r=f,a=h,c()}}function bv(){return tc()(on,on)}function P9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function eu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pi(e){return e=eu(Math.abs(e)),e?e[1]:NaN}function $9(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function j9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var F9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jo(e){if(!(t=F9.exec(e)))throw new Error("invalid format: "+e);var t;return new yv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}jo.prototype=yv.prototype;function yv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function B9(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var NC;function U9(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(NC=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+eu(e,Math.max(0,t+i-1))[0]}function Pw(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const $w={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:P9,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Pw(e*100,t),r:Pw,s:U9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function jw(e){return e}var Fw=Array.prototype.map,Bw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function z9(e){var t=e.grouping===void 0||e.thousands===void 0?jw:$9(Fw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?jw:j9(Fw.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(p){p=jo(p);var f=p.fill,h=p.align,m=p.sign,b=p.symbol,S=p.zero,T=p.width,_=p.comma,x=p.precision,A=p.trim,E=p.type;E==="n"?(_=!0,E="g"):$w[E]||(x===void 0&&(x=12),A=!0,E="g"),(S||f==="0"&&h==="=")&&(S=!0,f="0",h="=");var v=b==="$"?n:b==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",O=b==="$"?r:/[%p]/.test(E)?o:"",R=$w[E],C=/[defgprs%]/.test(E);x=x===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function $(N){var P=v,z=O,V,G,K;if(E==="c")z=R(N)+z,N="";else{N=+N;var X=N<0||1/N<0;if(N=isNaN(N)?l:R(Math.abs(N),x),A&&(N=B9(N)),X&&+N==0&&m!=="+"&&(X=!1),P=(X?m==="("?m:s:m==="-"||m==="("?"":m)+P,z=(E==="s"?Bw[8+NC/3]:"")+z+(X&&m==="("?")":""),C){for(V=-1,G=N.length;++VK||K>57){z=(K===46?a+N.slice(V+1):N.slice(V))+z,N=N.slice(0,V);break}}}_&&!S&&(N=t(N,1/0));var W=P.length+N.length+z.length,Z=W>1)+P+N+z+Z.slice(W);break;default:N=Z+P+N+z;break}return i(N)}return $.toString=function(){return p+""},$}function c(p,f){var h=u((p=jo(p),p.type="f",p)),m=Math.max(-8,Math.min(8,Math.floor(pi(f)/3)))*3,b=Math.pow(10,-m),S=Bw[8+m/3];return function(T){return h(b*T)+S}}return{format:u,formatPrefix:c}}var dl,vv,DC;G9({thousands:",",grouping:[3],currency:["$",""]});function G9(e){return dl=z9(e),vv=dl.format,DC=dl.formatPrefix,dl}function q9(e){return Math.max(0,-pi(Math.abs(e)))}function H9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pi(t)/3)))*3-pi(Math.abs(e)))}function W9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pi(t)-pi(e))+1}function LC(e,t,n,r){var a=Lb(e,t,n),i;switch(r=jo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=H9(a,o))&&(r.precision=i),DC(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=W9(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=q9(a))&&(r.precision=i-(r.type==="%")*2);break}}return vv(r)}function na(e){var t=e.domain;return e.ticks=function(n){var r=t();return Nb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return LC(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],l,u,c=10;for(s0;){if(u=Db(o,s,n),u===l)return r[a]=o,r[i]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function tu(){var e=bv();return e.copy=function(){return Es(e,tu())},$n.apply(e,arguments),na(e)}function MC(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Jl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return MC(e).unknown(t)},e=arguments.length?Array.from(e,Jl):[0,1],na(n)}function PC(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Z9(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Gw(e){return(t,n)=>-e(-t,n)}function Sv(e){const t=e(Uw,zw),n=t.domain;let r=10,a,i;function o(){return a=Z9(r),i=X9(r),n()[0]<0?(a=Gw(a),i=Gw(i),e(V9,Y9)):e(Uw,zw),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],c=l[l.length-1];const p=c0){for(;f<=h;++f)for(m=1;mc)break;T.push(b)}}else for(;f<=h;++f)for(m=r-1;m>=1;--m)if(b=f>0?m/i(-f):m*i(f),!(bc)break;T.push(b)}T.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=jo(l)).precision==null&&(l.trim=!0),l=vv(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return c=>{let p=c/i(Math.round(a(c)));return p*rn(PC(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function $C(){const e=Sv(tc()).domain([1,10]);return e.copy=()=>Es(e,$C()).base(e.base()),$n.apply(e,arguments),e}function qw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xv(e){var t=1,n=e(qw(t),Hw(t));return n.constant=function(r){return arguments.length?e(qw(t=+r),Hw(t)):t},na(n)}function jC(){var e=xv(tc());return e.copy=function(){return Es(e,jC()).constant(e.constant())},$n.apply(e,arguments)}function Ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Q9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function J9(e){return e<0?-e*e:e*e}function Ev(e){var t=e(on,on),n=1;function r(){return n===1?e(on,on):n===.5?e(Q9,J9):e(Ww(n),Ww(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},na(t)}function wv(){var e=Ev(tc());return e.copy=function(){return Es(e,wv()).exponent(e.exponent())},$n.apply(e,arguments),e}function eK(){return wv.apply(null,arguments).exponent(.5)}function Vw(e){return Math.sign(e)*e*e}function tK(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function FC(){var e=bv(),t=[0,1],n=!1,r;function a(i){var o=tK(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(Vw(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Jl)).map(Vw)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return FC(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(a,arguments),na(a)}function BC(){var e=[],t=[],n=[],r;function a(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return UC().domain([e,t]).range(a).unknown(i)},$n.apply(na(o),arguments)}function zC(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Ss(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return zC().domain(e).range(t).unknown(n)},$n.apply(a,arguments)}const Td=new Date,Ad=new Date;function Dt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(uDt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Td.setTime(+i),Ad.setTime(+o),e(Td),e(Ad),Math.floor(n(Td,Ad))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const nu=Dt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nu);nu.range;const kr=1e3,Nn=kr*60,Or=Nn*60,Dr=Or*24,_v=Dr*7,Yw=Dr*30,kd=Dr*365,va=Dt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCSeconds());va.range;const Tv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getMinutes());Tv.range;const Av=Dt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nn)},(e,t)=>(t-e)/Nn,e=>e.getUTCMinutes());Av.range;const kv=Dt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr-e.getMinutes()*Nn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getHours());kv.range;const Ov=Dt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCHours());Ov.range;const ws=Dt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nn)/Dr,e=>e.getDate()-1);ws.range;const nc=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>e.getUTCDate()-1);nc.range;const GC=Dt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Dr,e=>Math.floor(e/Dr));GC.range;function Oa(e){return Dt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nn)/_v)}const rc=Oa(0),ru=Oa(1),nK=Oa(2),rK=Oa(3),fi=Oa(4),aK=Oa(5),iK=Oa(6);rc.range;ru.range;nK.range;rK.range;fi.range;aK.range;iK.range;function Ia(e){return Dt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/_v)}const ac=Ia(0),au=Ia(1),oK=Ia(2),sK=Ia(3),hi=Ia(4),lK=Ia(5),uK=Ia(6);ac.range;au.range;oK.range;sK.range;hi.range;lK.range;uK.range;const Iv=Dt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Iv.range;const Rv=Dt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Rv.range;const Lr=Dt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Lr.range;const Mr=Dt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Mr.range;function qC(e,t,n,r,a,i){const o=[[va,1,kr],[va,5,5*kr],[va,15,15*kr],[va,30,30*kr],[i,1,Nn],[i,5,5*Nn],[i,15,15*Nn],[i,30,30*Nn],[a,1,Or],[a,3,3*Or],[a,6,6*Or],[a,12,12*Or],[r,1,Dr],[r,2,2*Dr],[n,1,_v],[t,1,Yw],[t,3,3*Yw],[e,1,kd]];function s(u,c,p){const f=cS).right(o,f);if(h===o.length)return e.every(Lb(u/kd,c/kd,p));if(h===0)return nu.every(Math.max(Lb(u,c,p),1));const[m,b]=o[f/o[h-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(me=Id(Xi(ee.y,0,1)),ve=me.getUTCDay(),me=ve>4||ve===0?au.ceil(me):au(me),me=nc.offset(me,(ee.V-1)*7),ee.y=me.getUTCFullYear(),ee.m=me.getUTCMonth(),ee.d=me.getUTCDate()+(ee.w+6)%7):(me=Od(Xi(ee.y,0,1)),ve=me.getDay(),me=ve>4||ve===0?ru.ceil(me):ru(me),me=ws.offset(me,(ee.V-1)*7),ee.y=me.getFullYear(),ee.m=me.getMonth(),ee.d=me.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),ve="Z"in ee?Id(Xi(ee.y,0,1)).getUTCDay():Od(Xi(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(ve+5)%7:ee.w+ee.U*7-(ve+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Id(ee)):Od(ee)}}function R(ae,de,ce,ee){for(var _e=0,me=de.length,ve=ce.length,Ue,at;_e=ve)return-1;if(Ue=de.charCodeAt(_e++),Ue===37){if(Ue=de.charAt(_e++),at=E[Ue in Kw?de.charAt(_e++):Ue],!at||(ee=at(ae,ce,ee))<0)return-1}else if(Ue!=ce.charCodeAt(ee++))return-1}return ee}function C(ae,de,ce){var ee=u.exec(de.slice(ce));return ee?(ae.p=c.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function $(ae,de,ce){var ee=h.exec(de.slice(ce));return ee?(ae.w=m.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function N(ae,de,ce){var ee=p.exec(de.slice(ce));return ee?(ae.w=f.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function P(ae,de,ce){var ee=T.exec(de.slice(ce));return ee?(ae.m=_.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function z(ae,de,ce){var ee=b.exec(de.slice(ce));return ee?(ae.m=S.get(ee[0].toLowerCase()),ce+ee[0].length):-1}function V(ae,de,ce){return R(ae,t,de,ce)}function G(ae,de,ce){return R(ae,n,de,ce)}function K(ae,de,ce){return R(ae,r,de,ce)}function X(ae){return o[ae.getDay()]}function W(ae){return i[ae.getDay()]}function Z(ae){return l[ae.getMonth()]}function D(ae){return s[ae.getMonth()]}function ie(ae){return a[+(ae.getHours()>=12)]}function ne(ae){return 1+~~(ae.getMonth()/3)}function M(ae){return o[ae.getUTCDay()]}function ye(ae){return i[ae.getUTCDay()]}function re(ae){return l[ae.getUTCMonth()]}function Se(ae){return s[ae.getUTCMonth()]}function je(ae){return a[+(ae.getUTCHours()>=12)]}function we(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=v(ae+="",x);return de.toString=function(){return ae},de},parse:function(ae){var de=O(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=v(ae+="",A);return de.toString=function(){return ae},de},utcParse:function(ae){var de=O(ae+="",!0);return de.toString=function(){return ae},de}}}var Kw={"-":"",_:" ",0:"0"},jt=/^\s*\d+/,gK=/^%/,mK=/[\\^$*+?|[\]().{}]/g;function Ye(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function yK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vK(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xw(e,t,n){var r=jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Zw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wK(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _K(e,t,n){var r=jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function TK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Qw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function AK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Jw(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function OK(e,t,n){var r=jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IK(e,t,n){var r=jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function RK(e,t,n){var r=jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function CK(e,t,n){var r=gK.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function DK(e,t,n){var r=jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function e0(e,t){return Ye(e.getDate(),t,2)}function LK(e,t){return Ye(e.getHours(),t,2)}function MK(e,t){return Ye(e.getHours()%12||12,t,2)}function PK(e,t){return Ye(1+ws.count(Lr(e),e),t,3)}function HC(e,t){return Ye(e.getMilliseconds(),t,3)}function $K(e,t){return HC(e,t)+"000"}function jK(e,t){return Ye(e.getMonth()+1,t,2)}function FK(e,t){return Ye(e.getMinutes(),t,2)}function BK(e,t){return Ye(e.getSeconds(),t,2)}function UK(e){var t=e.getDay();return t===0?7:t}function zK(e,t){return Ye(rc.count(Lr(e)-1,e),t,2)}function WC(e){var t=e.getDay();return t>=4||t===0?fi(e):fi.ceil(e)}function GK(e,t){return e=WC(e),Ye(fi.count(Lr(e),e)+(Lr(e).getDay()===4),t,2)}function qK(e){return e.getDay()}function HK(e,t){return Ye(ru.count(Lr(e)-1,e),t,2)}function WK(e,t){return Ye(e.getFullYear()%100,t,2)}function VK(e,t){return e=WC(e),Ye(e.getFullYear()%100,t,2)}function YK(e,t){return Ye(e.getFullYear()%1e4,t,4)}function KK(e,t){var n=e.getDay();return e=n>=4||n===0?fi(e):fi.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function XK(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function t0(e,t){return Ye(e.getUTCDate(),t,2)}function ZK(e,t){return Ye(e.getUTCHours(),t,2)}function QK(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function JK(e,t){return Ye(1+nc.count(Mr(e),e),t,3)}function VC(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function eX(e,t){return VC(e,t)+"000"}function tX(e,t){return Ye(e.getUTCMonth()+1,t,2)}function nX(e,t){return Ye(e.getUTCMinutes(),t,2)}function rX(e,t){return Ye(e.getUTCSeconds(),t,2)}function aX(e){var t=e.getUTCDay();return t===0?7:t}function iX(e,t){return Ye(ac.count(Mr(e)-1,e),t,2)}function YC(e){var t=e.getUTCDay();return t>=4||t===0?hi(e):hi.ceil(e)}function oX(e,t){return e=YC(e),Ye(hi.count(Mr(e),e)+(Mr(e).getUTCDay()===4),t,2)}function sX(e){return e.getUTCDay()}function lX(e,t){return Ye(au.count(Mr(e)-1,e),t,2)}function uX(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function cX(e,t){return e=YC(e),Ye(e.getUTCFullYear()%100,t,2)}function dX(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function pX(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hi(e):hi.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function fX(){return"+0000"}function n0(){return"%"}function r0(e){return+e}function a0(e){return Math.floor(+e/1e3)}var Ba,KC,XC;hX({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hX(e){return Ba=hK(e),KC=Ba.format,Ba.parse,XC=Ba.utcFormat,Ba.utcParse,Ba}function gX(e){return new Date(e)}function mX(e){return e instanceof Date?+e:+new Date(+e)}function Cv(e,t,n,r,a,i,o,s,l,u){var c=bv(),p=c.invert,f=c.domain,h=u(".%L"),m=u(":%S"),b=u("%I:%M"),S=u("%I %p"),T=u("%a %d"),_=u("%b %d"),x=u("%B"),A=u("%Y");function E(v){return(l(v)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>i9(e,i/r))},n.copy=function(){return eN(t).domain(e)},$r.apply(n,arguments)}function oc(){var e=0,t=.5,n=1,r=1,a,i,o,s,l,u=on,c,p=!1,f;function h(b){return isNaN(b=+b)?f:(b=.5+((b=+c(b))-i)*(r*bt}var _X=wX,TX=aN,AX=_X,kX=hs;function OX(e){return e&&e.length?TX(e,kX,AX):void 0}var IX=OX;const sc=St(IX);function RX(e,t){return ee.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return Cr(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return ot(Cr(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return kt(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Sn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(Sn)?new r(0):(gt=!1,t=Cr(Fo(n,i),Fo(e,i),i),gt=!0,ot(t,a))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lN(t,e):oN(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Ln+"NaN");return n.s?(gt=!1,t=Cr(n,e,0,1).times(e),gt=!0,n.minus(t)):ot(new r(n),a)};be.naturalExponential=be.exp=function(){return sN(this)};be.naturalLogarithm=be.ln=function(){return Fo(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oN(t,e):lN(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ea+e);if(t=kt(a)+1,r=a.d.length-1,n=r*ft+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ln+"NaN")}for(e=kt(s),gt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=sr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Ni((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(a.toString()),n=l.precision,a=o=n+3;;)if(i=r,r=i.plus(Cr(s,i,o+2)).times(.5),sr(i.d).slice(0,o)===(t=sr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(ot(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;o+=4}return gt=!0,ot(r,n)};be.times=be.mul=function(e){var t,n,r,a,i,o,s,l,u,c=this,p=c.constructor,f=c.d,h=(e=new p(e)).d;if(!c.s||!e.s)return new p(0);for(e.s*=c.s,n=c.e+e.e,l=f.length,u=h.length,l=0;){for(t=0,a=l+r;a>r;)s=i[a]+h[r]*f[a-r-1]+t,i[a--]=s%Mt|0,t=s/Mt|0;i[a]=(i[a]+t)%Mt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,gt?ot(e,p.precision):e};be.toDecimalPlaces=be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(fr(e,0,Ci),t===void 0?t=r.rounding:fr(t,0,8),ot(n,e+kt(n)+1,t))};be.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=_a(r,!0):(fr(e,0,Ci),t===void 0?t=a.rounding:fr(t,0,8),r=ot(new a(r),e+1,t),n=_a(r,!0,e+1)),n};be.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?_a(a):(fr(e,0,Ci),t===void 0?t=i.rounding:fr(t,0,8),r=ot(new i(a),e+kt(a)+1,t),n=_a(r.abs(),!1,e+kt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};be.toInteger=be.toint=function(){var e=this,t=e.constructor;return ot(new t(e),kt(e)+1,t.rounding)};be.toNumber=function(){return+this};be.toPower=be.pow=function(e){var t,n,r,a,i,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Sn);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ln+"Infinity");return s}if(s.eq(Sn))return s;if(r=l.precision,e.eq(Sn))return ot(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=s.s,o){if((n=c<0?-c:c)<=iN){for(a=new l(Sn),t=Math.ceil(r/ft+4),gt=!1;n%2&&(a=a.times(s),s0(a.d,t)),n=Ni(n/2),n!==0;)s=s.times(s),s0(s.d,t);return gt=!0,e.s<0?new l(Sn).div(a):ot(a,r)}}else if(i<0)throw Error(Ln+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,gt=!1,a=e.times(Fo(s,r+u)),gt=!0,a=sN(a),a.s=i,a};be.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=kt(a),r=_a(a,n<=i.toExpNeg||n>=i.toExpPos)):(fr(e,1,Ci),t===void 0?t=i.rounding:fr(t,0,8),a=ot(new i(a),e,t),n=kt(a),r=_a(a,e<=n||n<=i.toExpNeg,e)),r};be.toSignificantDigits=be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(fr(e,1,Ci),t===void 0?t=r.rounding:fr(t,0,8)),ot(new r(n),e,t)};be.toString=be.valueOf=be.val=be.toJSON=be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=kt(e),n=e.constructor;return _a(e,t<=n.toExpNeg||t>=n.toExpPos)};function oN(e,t){var n,r,a,i,o,s,l,u,c=e.constructor,p=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),gt?ot(t,p):t;if(l=e.d,u=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(r=l,i=-i,s=u.length):(r=u,a=o,s=l.length),o=Math.ceil(p/ft),s=o>s?o+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/Mt|0,l[i]%=Mt;for(n&&(l.unshift(n),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,gt?ot(t,p):t}function fr(e,t,n){if(e!==~~e||en)throw Error(Ea+e)}function sr(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]1;)r.shift()}return function(r,a,i,o){var s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C=r.constructor,$=r.s==a.s?1:-1,N=r.d,P=a.d;if(!r.s)return new C(r);if(!a.s)throw Error(Ln+"Division by zero");for(l=r.e-a.e,O=P.length,E=N.length,h=new C($),m=h.d=[],u=0;P[u]==(N[u]||0);)++u;if(P[u]>(N[u]||0)&&--l,i==null?_=i=C.precision:o?_=i+(kt(r)-kt(a))+1:_=i,_<0)return new C(0);if(_=_/ft+2|0,u=0,O==1)for(c=0,P=P[0],_++;(u1&&(P=e(P,c),N=e(N,c),O=P.length,E=N.length),A=O,b=N.slice(0,O),S=b.length;S=Mt/2&&++v;do c=0,s=t(P,b,O,S),s<0?(T=b[0],O!=S&&(T=T*Mt+(b[1]||0)),c=T/v|0,c>1?(c>=Mt&&(c=Mt-1),p=e(P,c),f=p.length,S=b.length,s=t(p,b,f,S),s==1&&(c--,n(p,O16)throw Error(Lv+kt(e));if(!e.s)return new c(Sn);for(t==null?(gt=!1,s=p):s=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(ha(2,u))/Math.LN10*2+5|0,s+=r,n=a=i=new c(Sn),c.precision=s;;){if(a=ot(a.times(e),s),n=n.times(++l),o=i.plus(Cr(a,n,s)),sr(o.d).slice(0,s)===sr(i.d).slice(0,s)){for(;u--;)i=ot(i.times(i),s);return c.precision=p,t==null?(gt=!0,ot(i,p)):i}i=o}}function kt(e){for(var t=e.e*ft,n=e.d[0];n>=10;n/=10)t++;return t}function Rd(e,t,n){if(t>e.LN10.sd())throw gt=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return ot(new e(e.LN10),t)}function Yr(e){for(var t="";e--;)t+="0";return t}function Fo(e,t){var n,r,a,i,o,s,l,u,c,p=1,f=10,h=e,m=h.d,b=h.constructor,S=b.precision;if(h.s<1)throw Error(Ln+(h.s?"NaN":"-Infinity"));if(h.eq(Sn))return new b(0);if(t==null?(gt=!1,u=S):u=t,h.eq(10))return t==null&&(gt=!0),Rd(b,u);if(u+=f,b.precision=u,n=sr(m),r=n.charAt(0),i=kt(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=sr(h.d),r=n.charAt(0),p++;i=kt(h),r>1?(h=new b("0."+n),i++):h=new b(r+"."+n.slice(1))}else return l=Rd(b,u+2,S).times(i+""),h=Fo(new b(r+"."+n.slice(1)),u-f).plus(l),b.precision=S,t==null?(gt=!0,ot(h,S)):h;for(s=o=h=Cr(h.minus(Sn),h.plus(Sn),u),c=ot(h.times(h),u),a=3;;){if(o=ot(o.times(c),u),l=s.plus(Cr(o,new b(a),u)),sr(l.d).slice(0,u)===sr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Rd(b,u+2,S).times(i+""))),s=Cr(s,new b(p),u),b.precision=S,t==null?(gt=!0,ot(s,S)):s;s=l,a+=2}}function o0(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Ni(n/ft),e.d=[],r=(n+1)%ft,n<0&&(r+=ft),riu||e.e<-iu))throw Error(Lv+n)}else e.s=0,e.e=0,e.d=[0];return e}function ot(e,t,n){var r,a,i,o,s,l,u,c,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=ft,a=t,u=p[c=0];else{if(c=Math.ceil((r+1)/ft),i=p.length,c>=i)return e;for(u=i=p[c],o=1;i>=10;i/=10)o++;r%=ft,a=r-ft+o}if(n!==void 0&&(i=ha(10,o-a-1),s=u/i%10|0,l=t<0||p[c+1]!==void 0||u%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?a>0?u/ha(10,o-a):0:p[c-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return l?(i=kt(e),p.length=1,t=t-i-1,p[0]=ha(10,(ft-t%ft)%ft),e.e=Ni(-t/ft)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=c,i=1,c--):(p.length=c+1,i=ha(10,ft-r),p[c]=a>0?(u/ha(10,o-a)%ha(10,a)|0)*i:0),l)for(;;)if(c==0){(p[0]+=i)==Mt&&(p[0]=1,++e.e);break}else{if(p[c]+=i,p[c]!=Mt)break;p[c--]=0,i=1}for(r=p.length;p[--r]===0;)p.pop();if(gt&&(e.e>iu||e.e<-iu))throw Error(Lv+kt(e));return e}function lN(e,t){var n,r,a,i,o,s,l,u,c,p,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),gt?ot(t,h):t;if(l=e.d,p=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(c=o<0,c?(n=l,o=-o,s=p.length):(n=p,r=u,s=l.length),a=Math.max(Math.ceil(h/ft),s)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=l.length,s=p.length,c=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+Yr(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Yr(-a-1)+i,n&&(r=n-o)>0&&(i+=Yr(r))):a>=o?(i+=Yr(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Yr(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=Yr(r))),e.s<0?"-"+i:i}function s0(e,t){if(e.length>t)return e.length=t,!0}function uN(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ea+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return o0(o,i.toString())}else if(typeof i!="string")throw Error(Ea+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,WX.test(i))o0(o,i);else throw Error(Ea+i)}if(a.prototype=be,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=uN,a.config=a.set=VX,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Ea+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ea+n+": "+r);return this}var Mv=uN(HX);Sn=new Mv(1);const nt=Mv;function YX(e){return QX(e)||ZX(e)||XX(e)||KX()}function KX(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XX(e,t){if(e){if(typeof e=="string")return Fb(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 Fb(e,t)}}function ZX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function QX(e){if(Array.isArray(e))return Fb(e)}function Fb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,a):e(t-o,l0(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=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(l){a=!0,i=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function f7(e){if(Array.isArray(e))return e}function hN(e){var t=Bo(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function gN(e,t,n){if(e.lte(0))return new nt(0);var r=dc.getDigitCount(e.toNumber()),a=new nt(10).pow(r),i=e.div(a),o=r!==1?.05:.1,s=new nt(Math.ceil(i.div(o).toNumber())).add(n).mul(o),l=s.mul(a);return t?l:new nt(Math.ceil(l))}function h7(e,t,n){var r=1,a=new nt(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new nt(10).pow(dc.getDigitCount(e)-1),a=new nt(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new nt(Math.floor(e)))}else e===0?a=new nt(Math.floor((t-1)/2)):n||(a=new nt(Math.floor(e)));var o=Math.floor((t-1)/2),s=n7(t7(function(l){return a.add(new nt(l-o).mul(r)).toNumber()}),Bb);return s(0,t)}function mN(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new nt(0),tickMin:new nt(0),tickMax:new nt(0)};var i=gN(new nt(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new nt(0):(o=new nt(e).add(t).div(2),o=o.sub(new nt(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new nt(t).sub(o).div(i).toNumber()),u=s+l+1;return u>n?mN(e,t,n,r,a+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:i,tickMin:o.sub(new nt(s).mul(i)),tickMax:o.add(new nt(l).mul(i))})}function g7(e){var t=Bo(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=hN([n,r]),l=Bo(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var p=c===1/0?[u].concat(zb(Bb(0,a-1).map(function(){return 1/0}))):[].concat(zb(Bb(0,a-1).map(function(){return-1/0})),[c]);return n>r?Ub(p):p}if(u===c)return h7(u,a,i);var f=mN(u,c,o,i),h=f.step,m=f.tickMin,b=f.tickMax,S=dc.rangeStep(m,b.add(new nt(.1).mul(h)),h);return n>r?Ub(S):S}function m7(e,t){var n=Bo(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=hN([r,a]),s=Bo(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,a];if(l===u)return[l];var c=Math.max(t,2),p=gN(new nt(u).sub(l).div(c-1),i,0),f=[].concat(zb(dc.rangeStep(new nt(l),new nt(u).sub(new nt(.99).mul(p)),p)),[u]);return r>a?Ub(f):f}var b7=pN(g7),y7=pN(m7),v7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(l)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),p=Math.min(o,o+l),f=Math.max(o,o+l);return r>=u&&r<=c&&a>=p&&a<=f}return!1},dQ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$v=function(t){var n=L0(L0({},dQ),t),r=F.useRef(),a=F.useState(-1),i=nQ(a,2),o=i[0],s=i[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,c=n.width,p=n.height,f=n.radius,h=n.className,m=n.animationEasing,b=n.animationDuration,S=n.animationBegin,T=n.isAnimationActive,_=n.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||p!==+p||c===0||p===0)return null;var x=rt("recharts-rectangle",h);return _?Y.createElement(Nr,{canBegin:o>0,from:{width:c,height:p,x:l,y:u},to:{width:c,height:p,x:l,y:u},duration:b,animationEasing:m,isActive:_},function(A){var E=A.width,v=A.height,O=A.x,R=A.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,isActive:T,easing:m},Y.createElement("path",cu({},He(n,!0),{className:x,d:M0(O,R,E,v,f),ref:r})))}):Y.createElement("path",cu({},He(n,!0),{className:x,d:M0(l,u,c,p,f)}))};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vQ=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},SQ=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,p=c===void 0?0:c,f=t.height,h=f===void 0?0:f,m=t.className,b=bQ(t,pQ),S=fQ({x:r,y:i,top:s,left:u,width:p,height:h},b);return!fe(r)||!fe(i)||!fe(p)||!fe(h)||!fe(s)||!fe(u)?null:Y.createElement("path",Qb({},He(S,!0),{className:rt("recharts-cross",m),d:vQ(r,i,p,h,s,u)}))},xQ=pI,EQ=fI,wQ="[object Boolean]";function _Q(e){return e===!0||e===!1||EQ(e)&&xQ(e)==wQ}var TQ=_Q;const AQ=St(TQ);function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:c,lowerWidth:p,height:f,x:l,y:u},duration:b,animationEasing:m,isActive:T},function(x){var A=x.upperWidth,E=x.lowerWidth,v=x.height,O=x.x,R=x.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,easing:m},Y.createElement("path",du({},He(n,!0),{className:_,d:B0(O,R,A,E,v),ref:r})))}):Y.createElement("g",null,Y.createElement("path",du({},He(n,!0),{className:_,d:B0(l,u,c,p,f)})))},$Q=["option","shapeType","propTransformer","activeClassName","isActive"];function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function jQ(e,t){if(e==null)return{};var n=FQ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t"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 gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gu(e)}function vn(e,t,n){return t=ON(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e){var t=wJ(e,"string");return gi(t)==="symbol"?t:String(t)}function wJ(e,t){if(gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _J=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=mo().domain(fu(0,l)).range([i,i+o-s]),c=u.domain().map(function(p){return u(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:c}},Y0=function(t){return t.changedTouches&&!!t.changedTouches.length},ts=function(e){vJ(n,e);var t=SJ(n);function n(r){var a;return bJ(this,n),a=t.call(this,r),vn(nr(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),vn(nr(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),vn(nr(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),vn(nr(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),vn(nr(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),vn(nr(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),vn(nr(a),"handleSlideDragStart",function(i){var o=Y0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(nr(a),"startX"),endX:a.handleTravellerDragStart.bind(nr(a),"endX")},a.state={},a}return yJ(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,u=l.gap,c=l.data,p=c.length-1,f=Math.min(i,o),h=Math.max(i,o),m=n.getIndexInRange(s,f),b=n.getIndexInRange(s,h);return{startIndex:m-m%u,endIndex:b===p?p:b-b%u}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=sn(o[a],l,a);return Fe(s)?s(u,a):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,u=this.props,c=u.x,p=u.width,f=u.travellerWidth,h=u.startIndex,m=u.endIndex,b=u.onChange,S=a.pageX-o;S>0?S=Math.min(S,c+p-f-l,c+p-f-s):S<0&&(S=Math.max(S,c-s,c-l));var T=this.getIndex({startX:s+S,endX:l+S});(T.startIndex!==h||T.endIndex!==m)&&b&&b(T),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=Y0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,u=o.endX,c=o.startX,p=this.state[l],f=this.props,h=f.x,m=f.width,b=f.travellerWidth,S=f.onChange,T=f.gap,_=f.data,x={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,h+m-b-p):A<0&&(A=Math.max(A,h-p)),x[l]=p+A;var E=this.getIndex(x),v=E.startIndex,O=E.endIndex,R=function(){var $=_.length-1;return l==="startX"&&(u>c?v%T===0:O%T===0)||uc?O%T===0:v%T===0)||u>c&&O===$};this.setState((i={},vn(i,l,p+A),vn(i,"brushMoveStartX",a.pageX),i),function(){S&&R()&&S(E)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,c=s.endX,p=this.state[i],f=l.indexOf(p);if(f!==-1){var h=f+a;if(!(h===-1||h>=l.length)){var m=l[h];i==="startX"&&m>=c||i==="endX"&&m<=u||this.setState(vn({},i,m),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.fill,c=a.stroke;return Y.createElement("rect",{stroke:c,fill:u,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.data,c=a.children,p=a.padding,f=F.Children.only(c);return f?Y.cloneElement(f,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,u=s.travellerWidth,c=s.height,p=s.traveller,f=s.ariaLabel,h=s.data,m=s.startIndex,b=s.endIndex,S=Math.max(a,this.props.x),T=Ld(Ld({},He(this.props)),{},{x:S,y:l,width:u,height:c}),_=f||"Min value: ".concat(h[m].name,", Max value: ").concat(h[b].name);return Y.createElement(yt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(p,T))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,c=o.travellerWidth,p=Math.min(a,i)+c,f=Math.max(Math.abs(i-a)-c,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:p,y:s,width:f,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,u=a.travellerWidth,c=a.stroke,p=this.state,f=p.startX,h=p.endX,m=5,b={pointerEvents:"none",fill:c};return Y.createElement(yt,{className:"recharts-brush-texts"},Y.createElement(Yl,hu({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:s+l/2},b),this.getTextOfTick(i)),Y.createElement(Yl,hu({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+m,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,u=a.y,c=a.width,p=a.height,f=a.alwaysShowText,h=this.state,m=h.startX,b=h.endX,S=h.isTextActive,T=h.isSlideMoving,_=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!fe(l)||!fe(u)||!fe(c)||!fe(p)||c<=0||p<=0)return null;var A=rt("recharts-brush",o),E=Y.Children.count(s)===1,v=mJ("userSelect","none");return Y.createElement(yt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(m,b),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(b,"endX"),(S||T||_||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,u=a.stroke,c=Math.floor(o+l/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),Y.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return Y.isValidElement(a)?o=Y.cloneElement(a,i):Fe(a)?o=a(i):o=n.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,u=a.travellerWidth,c=a.updateId,p=a.startIndex,f=a.endIndex;if(o!==i.prevData||c!==i.prevUpdateId)return Ld({prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s},o&&o.length?_J({data:o,width:s,x:l,travellerWidth:u,startIndex:p,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var h=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);a[u]>i?l=u:s=u}return i>=a[l]?l:s}}]),n}(F.PureComponent);vn(ts,"displayName","Brush");vn(ts,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var TJ=RI;function AJ(e,t){var n;return TJ(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var kJ=AJ,OJ=Jj,IJ=Ta,RJ=kJ,CJ=ku,NJ=ec;function DJ(e,t,n){var r=CJ(e)?OJ:RJ;return n&&NJ(e,t,n)&&(t=void 0),r(e,IJ(t))}var LJ=DJ;const MJ=St(LJ);var dr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},PJ=rj,$J=eF,jJ=Ta;function FJ(e,t){var n={};return t=jJ(t),$J(e,function(r,a,i){PJ(n,a,t(r,a,i))}),n}var BJ=FJ;const UJ=St(BJ);function zJ(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function oee(e,t){var n=e.x,r=e.y,a=aee(e,eee),i="".concat(n),o=parseInt(i,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||a.height),c=parseInt(u,10),p="".concat(t.width||a.width),f=parseInt(p,10);return to(to(to(to(to({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function X0(e){return Y.createElement(Jb,ty({shapeType:"rectangle",propTransformer:oee,activeClassName:"recharts-active-bar"},e))}var see=["value","background"];function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function lee(e,t){if(e==null)return{};var n=uee(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bu(e)}function Xr(e,t,n){return t=RN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e){var t=mee(e,"string");return mi(t)==="symbol"?t:String(t)}function mee(e,t){if(mi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hc=function(e){pee(n,e);var t=fee(n);function n(){var r;cee(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(V)0&&Math.abs(z)0&&(z=Math.min((ye||0)-(V[re-1]||0),z))});var G=z/P,K=b.layout==="vertical"?r.height:r.width;if(b.padding==="gap"&&(O=G*K/2),b.padding==="no-gap"){var X=ai(t.barCategoryGap,G*K),W=G*K/2;O=W-X-(W-X)/K*X}}a==="xAxis"?R=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?R=l==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(O||0),r.top+r.height-(x.bottom||0)-(O||0)]:R=b.range,E&&(R=[R[1],R[0]]);var Z=z7(b,i,f),D=Z.scale,ie=Z.realScaleType;D.domain(T).range(R),G7(D);var ne=Z7(D,Vn(Vn({},b),{},{realScaleType:ie}));a==="xAxis"?(N=S==="top"&&!A||S==="bottom"&&A,C=r.left,$=p[v]-N*b.height):a==="yAxis"&&(N=S==="left"&&!A||S==="right"&&A,C=p[v]-N*b.width,$=r.top);var M=Vn(Vn(Vn({},b),ne),{},{realScaleType:ie,x:C,y:$,scale:D,width:a==="xAxis"?r.width:b.width,height:a==="yAxis"?r.height:b.height});return M.bandSize=su(M,ne),!b.hide&&a==="xAxis"?p[v]+=(N?-1:1)*M.height:b.hide||(p[v]+=(N?-1:1)*M.width),Vn(Vn({},h),{},gc({},m,M))},{})},NN=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},xee=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return NN({x:n,y:r},{x:a,y:i})},DN=function(){function e(t){bee(this,e),this.scale=t}return yee(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}]),e}();gc(DN,"EPS",1e-4);var Fv=function(t){var n=Object.keys(t).reduce(function(r,a){return Vn(Vn({},r),{},gc({},a,DN.create(t[a])))},{});return Vn(Vn({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return UJ(a,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return IN(a,function(i,o){return n[o].isInRange(i)})}})};function Eee(e){return(e%180+180)%180}var wee=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Eee(a),o=i*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function qee(e,t){return LN(e,t+1)}function Hee(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,p=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:LN(r,u)};var b=l,S,T=function(){return S===void 0&&(S=n(m,b)),S},_=m.coordinate,x=l===0||yu(e,_,T,c,s);x||(l=0,c=o,u+=1),x&&(c=_+e*(T()/2+a),l+=u)},f;u<=i.length;)if(f=p(),f)return f.v;return[]}function ss(e){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t0?h.coordinate-S*e:h.coordinate})}else i[f]=h=Vt(Vt({},h),{},{tickCoord:h.coordinate});var T=yu(e,h.tickCoord,b,s,l);T&&(l=h.tickCoord-e*(b()/2+a),i[f]=Vt(Vt({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return i}function Xee(e,t,n,r,a,i){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(i){var c=r[s-1],p=n(c,s-1),f=e*(c.coordinate+e*p/2-u);o[s-1]=c=Vt(Vt({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate});var h=yu(e,c.tickCoord,function(){return p},l,u);h&&(u=c.tickCoord-e*(p/2+a),o[s-1]=Vt(Vt({},c),{},{isShow:!0}))}for(var m=i?s-1:s,b=function(_){var x=o[_],A,E=function(){return A===void 0&&(A=n(x,_)),A};if(_===0){var v=e*(x.coordinate-e*E()/2-l);o[_]=x=Vt(Vt({},x),{},{tickCoord:v<0?x.coordinate-v*e:x.coordinate})}else o[_]=x=Vt(Vt({},x),{},{tickCoord:x.coordinate});var O=yu(e,x.tickCoord,E,l,u);O&&(l=x.tickCoord+e*(E()/2+a),o[_]=Vt(Vt({},x),{},{isShow:!0}))},S=0;S=2?Zn(a[1].coordinate-a[0].coordinate):1,T=Gee(i,S,h);return l==="equidistantPreserveStart"?Hee(S,T,b,a,o):(l==="preserveStart"||l==="preserveStartEnd"?f=Xee(S,T,b,a,o,l==="preserveStartEnd"):f=Kee(S,T,b,a,o),f.filter(function(_){return _.isShow}))}var Zee=["viewBox"],Qee=["viewBox"],Jee=["ticks"];function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(e,t){for(var n=0;n"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 vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(e)}function Uv(e,t,n){return t=MN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MN(e){var t=lte(e,"string");return bi(t)==="symbol"?t:String(t)}function lte(e,t){if(bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yo=function(e){rte(n,e);var t=ate(n);function n(r){var a;return tte(this,n),a=t.call(this,r),a.state={fontSize:"",letterSpacing:""},a}return nte(n,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Md(a,Zee),l=this.props,u=l.viewBox,c=Md(l,Qee);return!Ja(o,u)||!Ja(s,c)||!Ja(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,u=i.height,c=i.orientation,p=i.tickSize,f=i.mirror,h=i.tickMargin,m,b,S,T,_,x,A=f?-1:1,E=a.tickSize||p,v=fe(a.tickCoord)?a.tickCoord:a.coordinate;switch(c){case"top":m=b=a.coordinate,T=s+ +!f*u,S=T-A*E,x=S-A*h,_=v;break;case"left":S=T=a.coordinate,b=o+ +!f*l,m=b-A*E,_=m-A*h,x=v;break;case"right":S=T=a.coordinate,b=o+ +f*l,m=b+A*E,_=m+A*h,x=v;break;default:m=b=a.coordinate,T=s+ +f*u,S=T+A*E,x=S+A*h,_=v;break}return{line:{x1:m,y1:S,x2:b,y2:T},tick:{x:_,y:x}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.orientation,c=a.mirror,p=a.axisLine,f=en(en(en({},He(this.props)),He(p)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!c||u==="bottom"&&c);f=en(en({},f),{},{x1:i,y1:o+h*l,x2:i+s,y2:o+h*l})}else{var m=+(u==="left"&&!c||u==="right"&&c);f=en(en({},f),{},{x1:i+m*s,y1:o,x2:i+m*s,y2:o+l})}return Y.createElement("line",Ya({},f,{className:rt("recharts-cartesian-axis-line",Dn(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,u=l.tickLine,c=l.stroke,p=l.tick,f=l.tickFormatter,h=l.unit,m=oy(en(en({},this.props),{},{ticks:a}),i,o),b=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),T=He(this.props),_=He(p),x=en(en({},T),{},{fill:"none"},He(u)),A=m.map(function(E,v){var O=s.getTickLineCoord(E),R=O.line,C=O.tick,$=en(en(en(en({textAnchor:b,verticalAnchor:S},T),{},{stroke:"none",fill:c},_),C),{},{index:v,payload:E,visibleTicksCount:m.length,tickFormatter:f});return Y.createElement(yt,Ya({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},wo(s.props,E,v)),u&&Y.createElement("line",Ya({},x,R,{className:rt("recharts-cartesian-axis-tick-line",Dn(u,"className"))})),p&&n.renderTickItem(p,$,"".concat(Fe(f)?f(E.value,v):E.value).concat(h||"")))});return Y.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,u=i.ticksGenerator,c=i.className,p=i.hide;if(p)return null;var f=this.props,h=f.ticks,m=Md(f,Jee),b=h;return Fe(u)&&(b=h&&h.length>0?u(this.props):u(m)),s<=0||l<=0||!b||!b.length?null:Y.createElement(yt,{className:rt("recharts-cartesian-axis",c),ref:function(T){a.layerReference=T}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Yt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return Y.isValidElement(a)?s=Y.cloneElement(a,i):Fe(a)?s=a(i):s=Y.createElement(Yl,Ya({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(F.Component);Uv(yo,"displayName","CartesianAxis");Uv(yo,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var ute=["x1","y1","x2","y2","key"],cte=["offset"];function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dte(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t"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 Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Su(e)}function zv(e,t,n){return t=PN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=vte(e,"string");return yi(t)==="symbol"?t:String(t)}function vte(e,t){if(yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gv=function(e){hte(n,e);var t=gte(n);function n(){return pte(this,n),t.apply(this,arguments)}return fte(n,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+l-l)}).sort(function(m,b){return m-b});l!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?l+c-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),x:m,y:u,width:T,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+u-u)}).sort(function(m,b){return m-b});u!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?u+p-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),y:m,x:l,height:T,width:c,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,u=i.width,c=i.height;return Y.createElement("rect",{x:s,y:l,width:u,height:c,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.horizontal,c=a.vertical,p=a.horizontalCoordinatesGenerator,f=a.verticalCoordinatesGenerator,h=a.xAxis,m=a.yAxis,b=a.offset,S=a.chartWidth,T=a.chartHeight,_=a.syncWithTicks,x=a.horizontalValues,A=a.verticalValues;if(!fe(s)||s<=0||!fe(l)||l<=0||!fe(i)||i!==+i||!fe(o)||o!==+o)return null;var E=this.props,v=E.horizontalPoints,O=E.verticalPoints;if((!v||!v.length)&&Fe(p)){var R=x&&x.length;v=p({yAxis:m?Hr(Hr({},m),{},{ticks:R?x:m.ticks}):void 0,width:S,height:T,offset:b},R?!0:_)}if((!O||!O.length)&&Fe(f)){var C=A&&A.length;O=f({xAxis:h?Hr(Hr({},h),{},{ticks:C?A:h.ticks}):void 0,width:S,height:T,offset:b},C?!0:_)}return Y.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(v),c&&this.renderVertical(O),u&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(O))}}],[{key:"renderLineItem",value:function(a,i){var o;if(Y.isValidElement(a))o=Y.cloneElement(a,i);else if(Fe(a))o=a(i);else{var s=i.x1,l=i.y1,u=i.x2,c=i.y2,p=i.key,f=d_(i,ute),h=He(f);h.offset;var m=d_(h,cte);o=Y.createElement("line",ly({},m,{x1:s,y1:l,x2:u,y2:c,fill:"none",key:p}))}return o}}]),n}(F.PureComponent);zv(Gv,"displayName","CartesianGrid");zv(Gv,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var mc=function(){return null};mc.displayName="ZAxis";mc.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var Ste=["option","isActive"];function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function wte(e){var t=e.option,n=e.isActive,r=xte(e,Ste);return typeof t=="string"?Y.createElement(Jb,vo({option:Y.createElement(Qu,vo({type:t},r)),isActive:n,shapeType:"symbols"},r)):Y.createElement(Jb,vo({option:t,isActive:n,shapeType:"symbols"},r))}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xu(e)}function Zr(e,t,n){return t=$N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e){var t=Rte(e,"string");return vi(t)==="symbol"?t:String(t)}function Rte(e,t){if(vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ks=function(e){Ate(n,e);var t=kte(n);function n(){var r;_te(this,n);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var Mte=Lte,Pte=AN;function $te(e){var t=Pte(e),n=t%1;return t===t?n?t-n:t:0}var jte=$te,Fte=aC,Bte=Ta,Ute=jte,zte=Math.max;function Gte(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:Ute(n);return a<0&&(a=zte(r+a,0)),Fte(e,Bte(t),a)}var qte=Gte,Hte=Mte,Wte=qte,Vte=Hte(Wte),Yte=Vte;const Kte=St(Yte);var Xte="Invariant failed";function Zte(e,t){if(!e)throw new Error(Xte)}function jN(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Gt(t,n,r,a),s=Gt(t,n,r,i);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function m_(e){return tne(e)||ene(e)||Jte(e)||Qte()}function Qte(){throw new TypeError(`Invalid attempt to spread non-iterable instance. + A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+a-s*m," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return c},cQ=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(i,i+s),c=Math.max(i,i+s),p=Math.min(o,o+l),f=Math.max(o,o+l);return r>=u&&r<=c&&a>=p&&a<=f}return!1},dQ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$v=function(t){var n=L0(L0({},dQ),t),r=F.useRef(),a=F.useState(-1),i=nQ(a,2),o=i[0],s=i[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&s(A)}catch{}},[]);var l=n.x,u=n.y,c=n.width,p=n.height,f=n.radius,h=n.className,m=n.animationEasing,b=n.animationDuration,S=n.animationBegin,T=n.isAnimationActive,_=n.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||p!==+p||c===0||p===0)return null;var x=rt("recharts-rectangle",h);return _?Y.createElement(Nr,{canBegin:o>0,from:{width:c,height:p,x:l,y:u},to:{width:c,height:p,x:l,y:u},duration:b,animationEasing:m,isActive:_},function(A){var E=A.width,v=A.height,O=A.x,R=A.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,isActive:T,easing:m},Y.createElement("path",cu({},He(n,!0),{className:x,d:M0(O,R,E,v,f),ref:r})))}):Y.createElement("path",cu({},He(n,!0),{className:x,d:M0(l,u,c,p,f)}))};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vQ=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},SQ=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,p=c===void 0?0:c,f=t.height,h=f===void 0?0:f,m=t.className,b=bQ(t,pQ),S=fQ({x:r,y:i,top:s,left:u,width:p,height:h},b);return!fe(r)||!fe(i)||!fe(p)||!fe(h)||!fe(s)||!fe(u)?null:Y.createElement("path",Qb({},He(S,!0),{className:rt("recharts-cross",m),d:vQ(r,i,p,h,s,u)}))},xQ=hI,EQ=gI,wQ="[object Boolean]";function _Q(e){return e===!0||e===!1||EQ(e)&&xQ(e)==wQ}var TQ=_Q;const AQ=St(TQ);function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:c,lowerWidth:p,height:f,x:l,y:u},duration:b,animationEasing:m,isActive:T},function(x){var A=x.upperWidth,E=x.lowerWidth,v=x.height,O=x.x,R=x.y;return Y.createElement(Nr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,easing:m},Y.createElement("path",du({},He(n,!0),{className:_,d:B0(O,R,A,E,v),ref:r})))}):Y.createElement("g",null,Y.createElement("path",du({},He(n,!0),{className:_,d:B0(l,u,c,p,f)})))},$Q=["option","shapeType","propTransformer","activeClassName","isActive"];function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function jQ(e,t){if(e==null)return{};var n=FQ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t"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 gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gu(e)}function vn(e,t,n){return t=ON(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e){var t=wJ(e,"string");return gi(t)==="symbol"?t:String(t)}function wJ(e,t){if(gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _J=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=mo().domain(fu(0,l)).range([i,i+o-s]),c=u.domain().map(function(p){return u(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:c}},Y0=function(t){return t.changedTouches&&!!t.changedTouches.length},ts=function(e){vJ(n,e);var t=SJ(n);function n(r){var a;return bJ(this,n),a=t.call(this,r),vn(nr(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),vn(nr(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),vn(nr(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),vn(nr(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),vn(nr(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),vn(nr(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),vn(nr(a),"handleSlideDragStart",function(i){var o=Y0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(nr(a),"startX"),endX:a.handleTravellerDragStart.bind(nr(a),"endX")},a.state={},a}return yJ(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,u=l.gap,c=l.data,p=c.length-1,f=Math.min(i,o),h=Math.max(i,o),m=n.getIndexInRange(s,f),b=n.getIndexInRange(s,h);return{startIndex:m-m%u,endIndex:b===p?p:b-b%u}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=sn(o[a],l,a);return Fe(s)?s(u,a):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,u=this.props,c=u.x,p=u.width,f=u.travellerWidth,h=u.startIndex,m=u.endIndex,b=u.onChange,S=a.pageX-o;S>0?S=Math.min(S,c+p-f-l,c+p-f-s):S<0&&(S=Math.max(S,c-s,c-l));var T=this.getIndex({startX:s+S,endX:l+S});(T.startIndex!==h||T.endIndex!==m)&&b&&b(T),this.setState({startX:s+S,endX:l+S,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=Y0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,u=o.endX,c=o.startX,p=this.state[l],f=this.props,h=f.x,m=f.width,b=f.travellerWidth,S=f.onChange,T=f.gap,_=f.data,x={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,h+m-b-p):A<0&&(A=Math.max(A,h-p)),x[l]=p+A;var E=this.getIndex(x),v=E.startIndex,O=E.endIndex,R=function(){var $=_.length-1;return l==="startX"&&(u>c?v%T===0:O%T===0)||uc?O%T===0:v%T===0)||u>c&&O===$};this.setState((i={},vn(i,l,p+A),vn(i,"brushMoveStartX",a.pageX),i),function(){S&&R()&&S(E)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,c=s.endX,p=this.state[i],f=l.indexOf(p);if(f!==-1){var h=f+a;if(!(h===-1||h>=l.length)){var m=l[h];i==="startX"&&m>=c||i==="endX"&&m<=u||this.setState(vn({},i,m),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.fill,c=a.stroke;return Y.createElement("rect",{stroke:c,fill:u,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.data,c=a.children,p=a.padding,f=F.Children.only(c);return f?Y.cloneElement(f,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,u=s.travellerWidth,c=s.height,p=s.traveller,f=s.ariaLabel,h=s.data,m=s.startIndex,b=s.endIndex,S=Math.max(a,this.props.x),T=Ld(Ld({},He(this.props)),{},{x:S,y:l,width:u,height:c}),_=f||"Min value: ".concat(h[m].name,", Max value: ").concat(h[b].name);return Y.createElement(yt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(p,T))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,c=o.travellerWidth,p=Math.min(a,i)+c,f=Math.max(Math.abs(i-a)-c,0);return Y.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:p,y:s,width:f,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,u=a.travellerWidth,c=a.stroke,p=this.state,f=p.startX,h=p.endX,m=5,b={pointerEvents:"none",fill:c};return Y.createElement(yt,{className:"recharts-brush-texts"},Y.createElement(Yl,hu({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:s+l/2},b),this.getTextOfTick(i)),Y.createElement(Yl,hu({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+m,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,u=a.y,c=a.width,p=a.height,f=a.alwaysShowText,h=this.state,m=h.startX,b=h.endX,S=h.isTextActive,T=h.isSlideMoving,_=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!fe(l)||!fe(u)||!fe(c)||!fe(p)||c<=0||p<=0)return null;var A=rt("recharts-brush",o),E=Y.Children.count(s)===1,v=mJ("userSelect","none");return Y.createElement(yt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(m,b),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(b,"endX"),(S||T||_||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,u=a.stroke,c=Math.floor(o+l/2)-1;return Y.createElement(Y.Fragment,null,Y.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),Y.createElement("line",{x1:i+1,y1:c,x2:i+s-1,y2:c,fill:"none",stroke:"#fff"}),Y.createElement("line",{x1:i+1,y1:c+2,x2:i+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return Y.isValidElement(a)?o=Y.cloneElement(a,i):Fe(a)?o=a(i):o=n.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,u=a.travellerWidth,c=a.updateId,p=a.startIndex,f=a.endIndex;if(o!==i.prevData||c!==i.prevUpdateId)return Ld({prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s},o&&o.length?_J({data:o,width:s,x:l,travellerWidth:u,startIndex:p,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var h=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);a[u]>i?l=u:s=u}return i>=a[l]?l:s}}]),n}(F.PureComponent);vn(ts,"displayName","Brush");vn(ts,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var TJ=RI;function AJ(e,t){var n;return TJ(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var kJ=AJ,OJ=aF,IJ=Ta,RJ=kJ,CJ=ku,NJ=ec;function DJ(e,t,n){var r=CJ(e)?OJ:RJ;return n&&NJ(e,t,n)&&(t=void 0),r(e,IJ(t))}var LJ=DJ;const MJ=St(LJ);var dr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},PJ=sj,$J=iF,jJ=Ta;function FJ(e,t){var n={};return t=jJ(t),$J(e,function(r,a,i){PJ(n,a,t(r,a,i))}),n}var BJ=FJ;const UJ=St(BJ);function zJ(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function oee(e,t){var n=e.x,r=e.y,a=aee(e,eee),i="".concat(n),o=parseInt(i,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||a.height),c=parseInt(u,10),p="".concat(t.width||a.width),f=parseInt(p,10);return to(to(to(to(to({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function X0(e){return Y.createElement(Jb,ty({shapeType:"rectangle",propTransformer:oee,activeClassName:"recharts-active-bar"},e))}var see=["value","background"];function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function lee(e,t){if(e==null)return{};var n=uee(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uee(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bu(e)}function Xr(e,t,n){return t=RN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e){var t=mee(e,"string");return mi(t)==="symbol"?t:String(t)}function mee(e,t){if(mi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hc=function(e){pee(n,e);var t=fee(n);function n(){var r;cee(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(V)0&&Math.abs(z)0&&(z=Math.min((ye||0)-(V[re-1]||0),z))});var G=z/P,K=b.layout==="vertical"?r.height:r.width;if(b.padding==="gap"&&(O=G*K/2),b.padding==="no-gap"){var X=ai(t.barCategoryGap,G*K),W=G*K/2;O=W-X-(W-X)/K*X}}a==="xAxis"?R=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?R=l==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(O||0),r.top+r.height-(x.bottom||0)-(O||0)]:R=b.range,E&&(R=[R[1],R[0]]);var Z=z7(b,i,f),D=Z.scale,ie=Z.realScaleType;D.domain(T).range(R),G7(D);var ne=Z7(D,Vn(Vn({},b),{},{realScaleType:ie}));a==="xAxis"?(N=S==="top"&&!A||S==="bottom"&&A,C=r.left,$=p[v]-N*b.height):a==="yAxis"&&(N=S==="left"&&!A||S==="right"&&A,C=p[v]-N*b.width,$=r.top);var M=Vn(Vn(Vn({},b),ne),{},{realScaleType:ie,x:C,y:$,scale:D,width:a==="xAxis"?r.width:b.width,height:a==="yAxis"?r.height:b.height});return M.bandSize=su(M,ne),!b.hide&&a==="xAxis"?p[v]+=(N?-1:1)*M.height:b.hide||(p[v]+=(N?-1:1)*M.width),Vn(Vn({},h),{},gc({},m,M))},{})},NN=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},xee=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return NN({x:n,y:r},{x:a,y:i})},DN=function(){function e(t){bee(this,e),this.scale=t}return yee(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}]),e}();gc(DN,"EPS",1e-4);var Fv=function(t){var n=Object.keys(t).reduce(function(r,a){return Vn(Vn({},r),{},gc({},a,DN.create(t[a])))},{});return Vn(Vn({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return UJ(a,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return IN(a,function(i,o){return n[o].isInRange(i)})}})};function Eee(e){return(e%180+180)%180}var wee=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Eee(a),o=i*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function qee(e,t){return LN(e,t+1)}function Hee(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,p=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:LN(r,u)};var b=l,S,T=function(){return S===void 0&&(S=n(m,b)),S},_=m.coordinate,x=l===0||yu(e,_,T,c,s);x||(l=0,c=o,u+=1),x&&(c=_+e*(T()/2+a),l+=u)},f;u<=i.length;)if(f=p(),f)return f.v;return[]}function ss(e){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(e)}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t0?h.coordinate-S*e:h.coordinate})}else i[f]=h=Vt(Vt({},h),{},{tickCoord:h.coordinate});var T=yu(e,h.tickCoord,b,s,l);T&&(l=h.tickCoord-e*(b()/2+a),i[f]=Vt(Vt({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return i}function Xee(e,t,n,r,a,i){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(i){var c=r[s-1],p=n(c,s-1),f=e*(c.coordinate+e*p/2-u);o[s-1]=c=Vt(Vt({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate});var h=yu(e,c.tickCoord,function(){return p},l,u);h&&(u=c.tickCoord-e*(p/2+a),o[s-1]=Vt(Vt({},c),{},{isShow:!0}))}for(var m=i?s-1:s,b=function(_){var x=o[_],A,E=function(){return A===void 0&&(A=n(x,_)),A};if(_===0){var v=e*(x.coordinate-e*E()/2-l);o[_]=x=Vt(Vt({},x),{},{tickCoord:v<0?x.coordinate-v*e:x.coordinate})}else o[_]=x=Vt(Vt({},x),{},{tickCoord:x.coordinate});var O=yu(e,x.tickCoord,E,l,u);O&&(l=x.tickCoord+e*(E()/2+a),o[_]=Vt(Vt({},x),{},{isShow:!0}))},S=0;S=2?Zn(a[1].coordinate-a[0].coordinate):1,T=Gee(i,S,h);return l==="equidistantPreserveStart"?Hee(S,T,b,a,o):(l==="preserveStart"||l==="preserveStartEnd"?f=Xee(S,T,b,a,o,l==="preserveStartEnd"):f=Kee(S,T,b,a,o),f.filter(function(_){return _.isShow}))}var Zee=["viewBox"],Qee=["viewBox"],Jee=["ticks"];function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(e,t){for(var n=0;n"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 vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vu(e)}function Uv(e,t,n){return t=MN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MN(e){var t=lte(e,"string");return bi(t)==="symbol"?t:String(t)}function lte(e,t){if(bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yo=function(e){rte(n,e);var t=ate(n);function n(r){var a;return tte(this,n),a=t.call(this,r),a.state={fontSize:"",letterSpacing:""},a}return nte(n,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Md(a,Zee),l=this.props,u=l.viewBox,c=Md(l,Qee);return!Ja(o,u)||!Ja(s,c)||!Ja(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,u=i.height,c=i.orientation,p=i.tickSize,f=i.mirror,h=i.tickMargin,m,b,S,T,_,x,A=f?-1:1,E=a.tickSize||p,v=fe(a.tickCoord)?a.tickCoord:a.coordinate;switch(c){case"top":m=b=a.coordinate,T=s+ +!f*u,S=T-A*E,x=S-A*h,_=v;break;case"left":S=T=a.coordinate,b=o+ +!f*l,m=b-A*E,_=m-A*h,x=v;break;case"right":S=T=a.coordinate,b=o+ +f*l,m=b+A*E,_=m+A*h,x=v;break;default:m=b=a.coordinate,T=s+ +f*u,S=T+A*E,x=S+A*h,_=v;break}return{line:{x1:m,y1:S,x2:b,y2:T},tick:{x:_,y:x}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.orientation,c=a.mirror,p=a.axisLine,f=en(en(en({},He(this.props)),He(p)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!c||u==="bottom"&&c);f=en(en({},f),{},{x1:i,y1:o+h*l,x2:i+s,y2:o+h*l})}else{var m=+(u==="left"&&!c||u==="right"&&c);f=en(en({},f),{},{x1:i+m*s,y1:o,x2:i+m*s,y2:o+l})}return Y.createElement("line",Ya({},f,{className:rt("recharts-cartesian-axis-line",Dn(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,u=l.tickLine,c=l.stroke,p=l.tick,f=l.tickFormatter,h=l.unit,m=oy(en(en({},this.props),{},{ticks:a}),i,o),b=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),T=He(this.props),_=He(p),x=en(en({},T),{},{fill:"none"},He(u)),A=m.map(function(E,v){var O=s.getTickLineCoord(E),R=O.line,C=O.tick,$=en(en(en(en({textAnchor:b,verticalAnchor:S},T),{},{stroke:"none",fill:c},_),C),{},{index:v,payload:E,visibleTicksCount:m.length,tickFormatter:f});return Y.createElement(yt,Ya({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},wo(s.props,E,v)),u&&Y.createElement("line",Ya({},x,R,{className:rt("recharts-cartesian-axis-tick-line",Dn(u,"className"))})),p&&n.renderTickItem(p,$,"".concat(Fe(f)?f(E.value,v):E.value).concat(h||"")))});return Y.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,u=i.ticksGenerator,c=i.className,p=i.hide;if(p)return null;var f=this.props,h=f.ticks,m=Md(f,Jee),b=h;return Fe(u)&&(b=h&&h.length>0?u(this.props):u(m)),s<=0||l<=0||!b||!b.length?null:Y.createElement(yt,{className:rt("recharts-cartesian-axis",c),ref:function(T){a.layerReference=T}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Yt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return Y.isValidElement(a)?s=Y.cloneElement(a,i):Fe(a)?s=a(i):s=Y.createElement(Yl,Ya({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(F.Component);Uv(yo,"displayName","CartesianAxis");Uv(yo,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var ute=["x1","y1","x2","y2","key"],cte=["offset"];function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dte(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t"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 Su(e){return Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Su(e)}function zv(e,t,n){return t=PN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=vte(e,"string");return yi(t)==="symbol"?t:String(t)}function vte(e,t){if(yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gv=function(e){hte(n,e);var t=gte(n);function n(){return pte(this,n),t.apply(this,arguments)}return fte(n,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!a||!a.length)return null;var c=a.map(function(p,f){var h=Hr(Hr({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(f),index:f});return n.renderLineItem(u,h)});return Y.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+l-l)}).sort(function(m,b){return m-b});l!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?l+c-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),x:m,y:u,width:T,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,c=o.width,p=o.height,f=a.map(function(m){return Math.round(m+u-u)}).sort(function(m,b){return m-b});u!==f[0]&&f.unshift(0);var h=f.map(function(m,b){var S=!f[b+1],T=S?u+p-m:f[b+1]-m;if(T<=0)return null;var _=b%i.length;return Y.createElement("rect",{key:"react-".concat(b),y:m,x:l,height:T,width:c,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return Y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,u=i.width,c=i.height;return Y.createElement("rect",{x:s,y:l,width:u,height:c,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,u=a.horizontal,c=a.vertical,p=a.horizontalCoordinatesGenerator,f=a.verticalCoordinatesGenerator,h=a.xAxis,m=a.yAxis,b=a.offset,S=a.chartWidth,T=a.chartHeight,_=a.syncWithTicks,x=a.horizontalValues,A=a.verticalValues;if(!fe(s)||s<=0||!fe(l)||l<=0||!fe(i)||i!==+i||!fe(o)||o!==+o)return null;var E=this.props,v=E.horizontalPoints,O=E.verticalPoints;if((!v||!v.length)&&Fe(p)){var R=x&&x.length;v=p({yAxis:m?Hr(Hr({},m),{},{ticks:R?x:m.ticks}):void 0,width:S,height:T,offset:b},R?!0:_)}if((!O||!O.length)&&Fe(f)){var C=A&&A.length;O=f({xAxis:h?Hr(Hr({},h),{},{ticks:C?A:h.ticks}):void 0,width:S,height:T,offset:b},C?!0:_)}return Y.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(v),c&&this.renderVertical(O),u&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(O))}}],[{key:"renderLineItem",value:function(a,i){var o;if(Y.isValidElement(a))o=Y.cloneElement(a,i);else if(Fe(a))o=a(i);else{var s=i.x1,l=i.y1,u=i.x2,c=i.y2,p=i.key,f=d_(i,ute),h=He(f);h.offset;var m=d_(h,cte);o=Y.createElement("line",ly({},m,{x1:s,y1:l,x2:u,y2:c,fill:"none",key:p}))}return o}}]),n}(F.PureComponent);zv(Gv,"displayName","CartesianGrid");zv(Gv,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var mc=function(){return null};mc.displayName="ZAxis";mc.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var Ste=["option","isActive"];function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ete(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function wte(e){var t=e.option,n=e.isActive,r=xte(e,Ste);return typeof t=="string"?Y.createElement(Jb,vo({option:Y.createElement(Qu,vo({type:t},r)),isActive:n,shapeType:"symbols"},r)):Y.createElement(Jb,vo({option:t,isActive:n,shapeType:"symbols"},r))}function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xu(e)}function Zr(e,t,n){return t=$N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e){var t=Rte(e,"string");return vi(t)==="symbol"?t:String(t)}function Rte(e,t){if(vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ks=function(e){Ate(n,e);var t=kte(n);function n(){var r;_te(this,n);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var Mte=Lte,Pte=AN;function $te(e){var t=Pte(e),n=t%1;return t===t?n?t-n:t:0}var jte=$te,Fte=aC,Bte=Ta,Ute=jte,zte=Math.max;function Gte(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:Ute(n);return a<0&&(a=zte(r+a,0)),Fte(e,Bte(t),a)}var qte=Gte,Hte=Mte,Wte=qte,Vte=Hte(Wte),Yte=Vte;const Kte=St(Yte);var Xte="Invariant failed";function Zte(e,t){if(!e)throw new Error(Xte)}function jN(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Gt(t,n,r,a),s=Gt(t,n,r,i);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function m_(e){return tne(e)||ene(e)||Jte(e)||Qte()}function Qte(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jte(e,t){if(e){if(typeof e=="string")return dy(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 dy(e,t)}}function ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tne(e){if(Array.isArray(e))return dy(e)}function dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S_(e,t){for(var n=0;n"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 Eu(e){return Eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eu(e)}function xi(e){return Tne(e)||_ne(e)||UN(e)||wne()}function wne(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UN(e,t){if(e){if(typeof e=="string")return hy(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 hy(e,t)}}function _ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tne(e){if(Array.isArray(e))return hy(e)}function hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&fe(a)&&fe(i)?t.slice(a,i+1):[]};function qN(e){return e==="number"?[0,"auto"]:void 0}var HN=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,s=vc(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,u){var c,p=u.props.hide;if(p)return l;var f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var m=f===void 0?s:f;h=Nl(m,o.dataKey,a)}else h=f&&f[r]||s[r];return h?[].concat(xi(l),[EN(u,h)]):l},[])},E_=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Ine(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=P7(o,s,u,l);if(c>=0&&u){var p=u[c]&&u[c].value,f=HN(t,n,c,p),h=Rne(r,s,c,i);return{activeTooltipIndex:c,activeLabel:p,activePayload:f,activeCoordinate:h}}return null},Cne=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,p=t.children,f=t.stackOffset,h=SN(c,i);return r.reduce(function(m,b){var S,T=b.props,_=T.type,x=T.dataKey,A=T.allowDataOverflow,E=T.allowDuplicatedCategory,v=T.scale,O=T.ticks,R=T.includeHidden,C=b.props[o];if(m[C])return m;var $=vc(t.data,{graphicalItems:a.filter(function(ne){return ne.props[o]===C}),dataStartIndex:l,dataEndIndex:u}),N=$.length,P,z,V;lne(b.props.domain,A,_)&&(P=Hb(b.props.domain,null,A),h&&(_==="number"||v!=="auto")&&(V=bo($,x,"category")));var G=qN(_);if(!P||P.length===0){var K,X=(K=b.props.domain)!==null&&K!==void 0?K:G;if(x){if(P=bo($,x,_),_==="category"&&h){var W=A3(P);E&&W?(z=P,P=fu(0,N)):E||(P=v0(X,P,b).reduce(function(ne,M){return ne.indexOf(M)>=0?ne:[].concat(xi(ne),[M])},[]))}else if(_==="category")E?P=P.filter(function(ne){return ne!==""&&!Be(ne)}):P=v0(X,P,b).reduce(function(ne,M){return ne.indexOf(M)>=0||M===""||Be(M)?ne:[].concat(xi(ne),[M])},[]);else if(_==="number"){var Z=U7($,a.filter(function(ne){return ne.props[o]===C&&(R||!ne.props.hide)}),x,i,c);Z&&(P=Z)}h&&(_==="number"||v!=="auto")&&(V=bo($,x,"category"))}else h?P=fu(0,N):s&&s[C]&&s[C].hasStack&&_==="number"?P=f==="expand"?[0,1]:xN(s[C].stackGroups,l,u):P=vN($,a.filter(function(ne){return ne.props[o]===C&&(R||!ne.props.hide)}),_,c,!0);if(_==="number")P=py(p,P,C,i,O),X&&(P=Hb(X,P,A));else if(_==="category"&&X){var D=X,ie=P.every(function(ne){return D.indexOf(ne)>=0});ie&&(P=D)}}return te(te({},m),{},Ee({},C,te(te({},b.props),{},{axisType:i,domain:P,categoricalDomain:V,duplicateDomain:z,originalDomain:(S=b.props.domain)!==null&&S!==void 0?S:G,isCategorical:h,layout:c})))},{})},Nne=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,p=t.children,f=vc(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),h=f.length,m=SN(c,i),b=-1;return r.reduce(function(S,T){var _=T.props[o],x=qN("number");if(!S[_]){b++;var A;return m?A=fu(0,h):s&&s[_]&&s[_].hasStack?(A=xN(s[_].stackGroups,l,u),A=py(p,A,_,i)):(A=Hb(x,vN(f,r.filter(function(E){return E.props[o]===_&&!E.props.hide}),"number",c),a.defaultProps.allowDataOverflow),A=py(p,A,_,i)),te(te({},S),{},Ee({},_,te(te({axisType:i},a.defaultProps),{},{hide:!0,orientation:Dn(kne,"".concat(i,".").concat(b%2),null),domain:A,originalDomain:x,isCategorical:m,layout:c})))}return S},{})},Dne=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,c=t.children,p="".concat(a,"Id"),f=En(c,i),h={};return f&&f.length?h=Cne(t,{axes:f,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=Nne(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},Lne=function(t){var n=Wr(t),r=Vr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:lv(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:su(n,r)}},w_=function(t){var n=t.children,r=t.defaultShowTooltip,a=Ar(n,ts),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Mne=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ir(n&&n.type);return r&&r.indexOf("Bar")>=0})},__=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Pne=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,c=r.height,p=r.children,f=r.margin||{},h=Ar(p,ts),m=Ar(p,Ao),b=Object.keys(l).reduce(function(E,v){var O=l[v],R=O.orientation;return!O.mirror&&!O.hide?te(te({},E),{},Ee({},R,E[R]+O.width)):E},{left:f.left||0,right:f.right||0}),S=Object.keys(o).reduce(function(E,v){var O=o[v],R=O.orientation;return!O.mirror&&!O.hide?te(te({},E),{},Ee({},R,Dn(E,"".concat(R))+O.height)):E},{top:f.top||0,bottom:f.bottom||0}),T=te(te({},S),b),_=T.bottom;h&&(T.bottom+=h.props.height||ts.defaultProps.height),m&&n&&(T=F7(T,a,r,n));var x=u-T.left-T.right,A=c-T.top-T.bottom;return te(te({brushBottom:_},T),{},{width:Math.max(x,0),height:Math.max(A,0)})},$ne=function(t){var n,r=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,p=t.formatAxisMap,f=t.defaultProps,h=function(S,T){var _=T.graphicalItems,x=T.stackGroups,A=T.offset,E=T.updateId,v=T.dataStartIndex,O=T.dataEndIndex,R=S.barSize,C=S.layout,$=S.barGap,N=S.barCategoryGap,P=S.maxBarSize,z=__(C),V=z.numericAxisName,G=z.cateAxisName,K=Mne(_),X=K&&$7({barSize:R,stackGroups:x}),W=[];return _.forEach(function(Z,D){var ie=vc(S.data,{graphicalItems:[Z],dataStartIndex:v,dataEndIndex:O}),ne=Z.props,M=ne.dataKey,ye=ne.maxBarSize,re=Z.props["".concat(V,"Id")],Se=Z.props["".concat(G,"Id")],je={},we=u.reduce(function(Ge,Xe){var Ft,Wt=T["".concat(Xe.axisType,"Map")],B=Z.props["".concat(Xe.axisType,"Id")];Wt&&Wt[B]||Xe.axisType==="zAxis"||Zte(!1);var Q=Wt[B];return te(te({},Ge),{},(Ft={},Ee(Ft,Xe.axisType,Q),Ee(Ft,"".concat(Xe.axisType,"Ticks"),Vr(Q)),Ft))},je),ae=we[G],de=we["".concat(G,"Ticks")],ce=x&&x[re]&&x[re].hasStack&&J7(Z,x[re].stackGroups),ee=Ir(Z.type).indexOf("Bar")>=0,_e=su(ae,de),me=[];if(ee){var ve,Ue,at=Be(ye)?P:ye,Je=(ve=(Ue=su(ae,de,!0))!==null&&Ue!==void 0?Ue:at)!==null&&ve!==void 0?ve:0;me=j7({barGap:$,barCategoryGap:N,bandSize:Je!==_e?Je:_e,sizeList:X[Se],maxBarSize:at}),Je!==_e&&(me=me.map(function(Ge){return te(te({},Ge),{},{position:te(te({},Ge.position),{},{offset:Ge.position.offset-Je/2})})}))}var Ht=Z&&Z.type&&Z.type.getComposedData;if(Ht){var ze;W.push({props:te(te({},Ht(te(te({},we),{},{displayedData:ie,props:S,dataKey:M,item:Z,bandSize:_e,barPosition:me,offset:A,stackedData:ce,layout:C,dataStartIndex:v,dataEndIndex:O}))),{},(ze={key:Z.key||"item-".concat(D)},Ee(ze,V,we[V]),Ee(ze,G,we[G]),Ee(ze,"animationId",E),ze)),childIndex:j3(Z,S.children),item:Z})}}),W},m=function(S,T){var _=S.props,x=S.dataStartIndex,A=S.dataEndIndex,E=S.updateId;if(!dE({props:_}))return null;var v=_.children,O=_.layout,R=_.stackOffset,C=_.data,$=_.reverseStackOrder,N=__(O),P=N.numericAxisName,z=N.cateAxisName,V=En(v,a),G=X7(C,V,"".concat(P,"Id"),"".concat(z,"Id"),R,$),K=u.reduce(function(ie,ne){var M="".concat(ne.axisType,"Map");return te(te({},ie),{},Ee({},M,Dne(_,te(te({},ne),{},{graphicalItems:V,stackGroups:ne.axisType===P&&G,dataStartIndex:x,dataEndIndex:A}))))},{}),X=Pne(te(te({},K),{},{props:_,graphicalItems:V}),T==null?void 0:T.legendBBox);Object.keys(K).forEach(function(ie){K[ie]=p(_,K[ie],X,ie.replace("Map",""),r)});var W=K["".concat(z,"Map")],Z=Lne(W),D=h(_,te(te({},K),{},{dataStartIndex:x,dataEndIndex:A,updateId:E,graphicalItems:V,stackGroups:G,offset:X}));return te(te({formattedGraphicalItems:D,graphicalItems:V,offset:X,stackGroups:G},Z),K)};return n=function(b){vne(T,b);var S=Sne(T);function T(_){var x,A,E;return bne(this,T),E=S.call(this,_),Ee(De(E),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ee(De(E),"accessibilityManager",new sne),Ee(De(E),"handleLegendBBoxUpdate",function(v){if(v){var O=E.state,R=O.dataStartIndex,C=O.dataEndIndex,$=O.updateId;E.setState(te({legendBBox:v},m({props:E.props,dataStartIndex:R,dataEndIndex:C,updateId:$},te(te({},E.state),{},{legendBBox:v}))))}}),Ee(De(E),"handleReceiveSyncEvent",function(v,O,R){if(E.props.syncId===v){if(R===E.eventEmitterSymbol&&typeof E.props.syncMethod!="function")return;E.applySyncEvent(O)}}),Ee(De(E),"handleBrushChange",function(v){var O=v.startIndex,R=v.endIndex;if(O!==E.state.dataStartIndex||R!==E.state.dataEndIndex){var C=E.state.updateId;E.setState(function(){return te({dataStartIndex:O,dataEndIndex:R},m({props:E.props,dataStartIndex:O,dataEndIndex:R,updateId:C},E.state))}),E.triggerSyncEvent({dataStartIndex:O,dataEndIndex:R})}}),Ee(De(E),"handleMouseEnter",function(v){var O=E.getMouseInfo(v);if(O){var R=te(te({},O),{},{isTooltipActive:!0});E.setState(R),E.triggerSyncEvent(R);var C=E.props.onMouseEnter;Fe(C)&&C(R,v)}}),Ee(De(E),"triggeredAfterMouseMove",function(v){var O=E.getMouseInfo(v),R=O?te(te({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};E.setState(R),E.triggerSyncEvent(R);var C=E.props.onMouseMove;Fe(C)&&C(R,v)}),Ee(De(E),"handleItemMouseEnter",function(v){E.setState(function(){return{isTooltipActive:!0,activeItem:v,activePayload:v.tooltipPayload,activeCoordinate:v.tooltipPosition||{x:v.cx,y:v.cy}}})}),Ee(De(E),"handleItemMouseLeave",function(){E.setState(function(){return{isTooltipActive:!1}})}),Ee(De(E),"handleMouseMove",function(v){v.persist(),E.throttleTriggeredAfterMouseMove(v)}),Ee(De(E),"handleMouseLeave",function(v){var O={isTooltipActive:!1};E.setState(O),E.triggerSyncEvent(O);var R=E.props.onMouseLeave;Fe(R)&&R(O,v)}),Ee(De(E),"handleOuterEvent",function(v){var O=$3(v),R=Dn(E.props,"".concat(O));if(O&&Fe(R)){var C,$;/.*touch.*/i.test(O)?$=E.getMouseInfo(v.changedTouches[0]):$=E.getMouseInfo(v),R((C=$)!==null&&C!==void 0?C:{},v)}}),Ee(De(E),"handleClick",function(v){var O=E.getMouseInfo(v);if(O){var R=te(te({},O),{},{isTooltipActive:!0});E.setState(R),E.triggerSyncEvent(R);var C=E.props.onClick;Fe(C)&&C(R,v)}}),Ee(De(E),"handleMouseDown",function(v){var O=E.props.onMouseDown;if(Fe(O)){var R=E.getMouseInfo(v);O(R,v)}}),Ee(De(E),"handleMouseUp",function(v){var O=E.props.onMouseUp;if(Fe(O)){var R=E.getMouseInfo(v);O(R,v)}}),Ee(De(E),"handleTouchMove",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&E.throttleTriggeredAfterMouseMove(v.changedTouches[0])}),Ee(De(E),"handleTouchStart",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&E.handleMouseDown(v.changedTouches[0])}),Ee(De(E),"handleTouchEnd",function(v){v.changedTouches!=null&&v.changedTouches.length>0&&E.handleMouseUp(v.changedTouches[0])}),Ee(De(E),"triggerSyncEvent",function(v){E.props.syncId!==void 0&&Pd.emit($d,E.props.syncId,v,E.eventEmitterSymbol)}),Ee(De(E),"applySyncEvent",function(v){var O=E.props,R=O.layout,C=O.syncMethod,$=E.state.updateId,N=v.dataStartIndex,P=v.dataEndIndex;if(v.dataStartIndex!==void 0||v.dataEndIndex!==void 0)E.setState(te({dataStartIndex:N,dataEndIndex:P},m({props:E.props,dataStartIndex:N,dataEndIndex:P,updateId:$},E.state)));else if(v.activeTooltipIndex!==void 0){var z=v.chartX,V=v.chartY,G=v.activeTooltipIndex,K=E.state,X=K.offset,W=K.tooltipTicks;if(!X)return;if(typeof C=="function")G=C(W,v);else if(C==="value"){G=-1;for(var Z=0;Z=0){var ce,ee;if(z.dataKey&&!z.allowDuplicatedCategory){var _e=typeof z.dataKey=="function"?de:"payload.".concat(z.dataKey.toString());ce=Nl(Z,_e,G),ee=D&&ie&&Nl(ie,_e,G)}else ce=Z==null?void 0:Z[V],ee=D&&ie&&ie[V];if(Se||re){var me=v.props.activeIndex!==void 0?v.props.activeIndex:V;return[F.cloneElement(v,te(te(te({},C.props),we),{},{activeIndex:me})),null,null]}if(!Be(ce))return[ae].concat(xi(E.renderActivePoints({item:C,activePoint:ce,basePoint:ee,childIndex:V,isRange:D})))}else{var ve,Ue=(ve=E.getItemByXY(E.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:ae},at=Ue.graphicalItem,Je=at.item,Ht=Je===void 0?v:Je,ze=at.childIndex,Ge=te(te(te({},C.props),we),{},{activeIndex:ze});return[F.cloneElement(Ht,Ge),null,null]}return D?[ae,null,null]:[ae,null]}),Ee(De(E),"renderCustomized",function(v,O,R){return F.cloneElement(v,te(te({key:"recharts-customized-".concat(R)},E.props),E.state))}),Ee(De(E),"renderMap",{CartesianGrid:{handler:E.renderGrid,once:!0},ReferenceArea:{handler:E.renderReferenceElement},ReferenceLine:{handler:E.renderReferenceElement},ReferenceDot:{handler:E.renderReferenceElement},XAxis:{handler:E.renderXAxis},YAxis:{handler:E.renderYAxis},Brush:{handler:E.renderBrush,once:!0},Bar:{handler:E.renderGraphicChild},Line:{handler:E.renderGraphicChild},Area:{handler:E.renderGraphicChild},Radar:{handler:E.renderGraphicChild},RadialBar:{handler:E.renderGraphicChild},Scatter:{handler:E.renderGraphicChild},Pie:{handler:E.renderGraphicChild},Funnel:{handler:E.renderGraphicChild},Tooltip:{handler:E.renderCursor,once:!0},PolarGrid:{handler:E.renderPolarGrid,once:!0},PolarAngleAxis:{handler:E.renderPolarAxis},PolarRadiusAxis:{handler:E.renderPolarAxis},Customized:{handler:E.renderCustomized}}),E.clipPathId="".concat((x=_.id)!==null&&x!==void 0?x:vs("recharts"),"-clip"),E.throttleTriggeredAfterMouseMove=SC(E.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),E.state={},E}return yne(T,[{key:"componentDidMount",value:function(){var x,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(x,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var E,v;this.accessibilityManager.setDetails({offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(v=this.props.margin.top)!==null&&v!==void 0?v:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ar(this.props.children,ba);if(x&&typeof x.props.shared=="boolean"){var A=x.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var A=this.container,E=A.getBoundingClientRect(),v=E8(E),O={chartX:Math.round(x.pageX-v.left),chartY:Math.round(x.pageY-v.top)},R=E.width/A.offsetWidth||1,C=this.inRange(O.chartX,O.chartY,R);if(!C)return null;var $=this.state,N=$.xAxisMap,P=$.yAxisMap,z=this.getTooltipEventType();if(z!=="axis"&&N&&P){var V=Wr(N).scale,G=Wr(P).scale,K=V&&V.invert?V.invert(O.chartX):null,X=G&&G.invert?G.invert(O.chartY):null;return te(te({},O),{},{xValue:K,yValue:X})}var W=E_(this.state,this.props.data,this.props.layout,C);return W?te(te({},O),W):null}},{key:"inRange",value:function(x,A){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=this.props.layout,O=x/E,R=A/E;if(v==="horizontal"||v==="vertical"){var C=this.state.offset,$=O>=C.left&&O<=C.left+C.width&&R>=C.top&&R<=C.top+C.height;return $?{x:O,y:R}:null}var N=this.state,P=N.angleAxisMap,z=N.radiusAxisMap;if(P&&z){var V=Wr(P);return E0({x:O,y:R},V)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,A=this.getTooltipEventType(),E=Ar(x,ba),v={};E&&A==="axis"&&(E.props.trigger==="click"?v={onClick:this.handleClick}:v={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var O=Dl(this.props,this.handleOuterEvent);return te(te({},O),v)}},{key:"addListener",value:function(){Pd.on($d,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Pd.removeListener($d,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,A,E){for(var v=this.state.formattedGraphicalItems,O=0,R=v.length;Oy.jsx(jv,{cx:e,cy:t,fill:j.blueTextAccent,r:2}),Bne=()=>{const e=Kt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),n=t.map(a=>a.year).filter(a=>a),r=t.map(a=>a.rate).filter(a=>a);return y.jsx(Une,{direction:"column",px:24,py:16,children:y.jsx(g8,{height:"100%",width:"100%",children:y.jsxs(jne,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(Gv,{stroke:"#f5f5f5"}),y.jsx(bc,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:j.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:j.white,fontSize:"8px"},type:"number"}),y.jsx(yc,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:j.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:j.white,fontSize:"8px"},type:"number"}),y.jsx(ba,{cursor:{strokeDasharray:"3 3"}}),y.jsx(ks,{data:t,fill:j.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(Fne,{})})]})})})},Une=H(q)` @@ -1426,7 +1426,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 10px 20px; -${({disabled:e})=>e&&oI` +${({disabled:e})=>e&&sI` cursor: none; opacity: 0.5; `} @@ -1437,7 +1437,7 @@ ${({disabled:e})=>e&&oI` background: ${({selected:e})=>e?j.gray300:j.gray200}; } } -`,qv=({count:e=0,updateCount:t,content:n,readOnly:r,refId:a})=>{const[i,o]=F.useState(!1);F.useEffect(()=>{o(!1)},[a]);let{image_url:s}=n||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function u(){if(!(i||!a)){o(!0);try{await sF(a,l),t&&t(e+l)}catch(c){console.error(c)}o(!1)}}return r?e?y.jsx(A_,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[y.jsx(nF,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(A_,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await u()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?y.jsx(Jne,{color:"#fff",loading:!0,size:10}):y.jsxs(q,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(yI,{style:{color:j.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},Hv=H(q)` +`,qv=({count:e=0,updateCount:t,content:n,readOnly:r,refId:a})=>{const[i,o]=F.useState(!1);F.useEffect(()=>{o(!1)},[a]);let{image_url:s}=n||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function u(){if(!(i||!a)){o(!0);try{await sF(a,l),t&&t(e+l)}catch(c){console.error(c)}o(!1)}}return r?e?y.jsx(A_,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:y.jsxs(q,{align:"center",direction:"row",justify:"center",children:[y.jsx(uj,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(A_,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await u()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?y.jsx(Jne,{color:"#fff",loading:!0,size:10}):y.jsxs(q,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(vI,{style:{color:j.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},Hv=H(q)` background: ${j.divider2}; height: 1px; margin: auto 22px; @@ -1471,7 +1471,7 @@ ${({disabled:e})=>e&&oI` &:hover { color: ${j.GRAY3}; } -`,are=({stateless:e,node:t})=>{var m;const[n,r]=Pt(b=>[b.transcriptIsOpen,b.setTranscriptOpen]),[a,i]=F.useState(!1),[o,s]=F.useState(""),[l,u]=F.useState(!1);if(!e&&!n)return null;const c=async()=>{try{const b=await ix(t==null?void 0:t.ref_id);s(b.data.text)}catch(b){console.error("Error fetching full transcript",b)}},p=async()=>{if(o===""){const b=await ix(t==null?void 0:t.ref_id);h(b.data.text)}else h(o);setTimeout(()=>{i(!1)},2e3)},f=async()=>{l?u(!1):(await c(),u(!0))},h=b=>{b!==void 0&&(navigator.clipboard.writeText(b),i(!0))};return y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(ore,{children:[e&&y.jsxs(ire,{children:[y.jsx("div",{className:"icon",children:y.jsx(_I,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:a?y.jsxs(ure,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(EI,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(qt,{endIcon:y.jsx(Ij,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(sre,{onClick:()=>{r(!1)},children:y.jsx(rF,{fontSize:35})})]}),y.jsxs(lre,{children:[l?o:`${(m=t==null?void 0:t.text)==null?void 0:m.substring(0,100)}`,y.jsxs(rre,{onClick:f,children:["... ",l?"show less":"more"]})]})]})},ire=H(q).attrs({direction:"row",align:"center"})` +`,are=({stateless:e,node:t})=>{var m;const[n,r]=Pt(b=>[b.transcriptIsOpen,b.setTranscriptOpen]),[a,i]=F.useState(!1),[o,s]=F.useState(""),[l,u]=F.useState(!1);if(!e&&!n)return null;const c=async()=>{try{const b=await ix(t==null?void 0:t.ref_id);s(b.data.text)}catch(b){console.error("Error fetching full transcript",b)}},p=async()=>{if(o===""){const b=await ix(t==null?void 0:t.ref_id);h(b.data.text)}else h(o);setTimeout(()=>{i(!1)},2e3)},f=async()=>{l?u(!1):(await c(),u(!0))},h=b=>{b!==void 0&&(navigator.clipboard.writeText(b),i(!0))};return y.jsxs(q,{grow:1,shrink:1,children:[y.jsxs(ore,{children:[e&&y.jsxs(ire,{children:[y.jsx("div",{className:"icon",children:y.jsx(_I,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:a?y.jsxs(ure,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(wI,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(qt,{endIcon:y.jsx(Mj,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(sre,{onClick:()=>{r(!1)},children:y.jsx(cj,{fontSize:35})})]}),y.jsxs(lre,{children:[l?o:`${(m=t==null?void 0:t.text)==null?void 0:m.substring(0,100)}`,y.jsxs(rre,{onClick:f,children:["... ",l?"show less":"more"]})]})]})},ire=H(q).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${j.GRAY3}; @@ -1563,7 +1563,7 @@ ${({disabled:e})=>e&&oI` margin-left: 8px; } } -`,hre=({selectedNodeShow:e})=>{const t=Kt(),n=ps(),{type:r}=t||{},a=Pt(i=>i.currentSearch);return y.jsxs(fre,{p:20,children:[y.jsx(q,{align:"flex-start",children:r&&y.jsx(Ai,{type:r})}),y.jsx(q,{direction:"row",mb:22,mt:22,children:y.jsx(q,{grow:1,shrink:1,children:y.jsx(vt,{className:"episode-title",kind:"heading",children:ur((t==null?void 0:t.episode_title)||"Unknown",a)})})}),e?y.jsxs(q,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx(Jn,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(vt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},gre="Flow 1",mre=0,bre=12,yre=15,vre={g:"LottieFiles Figma v45"},Sre=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],xre="5.7.0",Ere=60,wre=57.6,_re=0,Tre=[],Are={nm:gre,ddd:mre,h:bre,w:yre,meta:vre,layers:Sre,v:xre,fr:Ere,op:wre,ip:_re,assets:Tre},kre=()=>{const e=F.useRef(null);return F.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=ij.loadAnimation({container:t,animationData:Are,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},Ore=H(q).attrs(()=>({direction:"row"}))` +`,hre=({selectedNodeShow:e})=>{const t=Kt(),n=ps(),{type:r}=t||{},a=Pt(i=>i.currentSearch);return y.jsxs(fre,{p:20,children:[y.jsx(q,{align:"flex-start",children:r&&y.jsx(Ai,{type:r})}),y.jsx(q,{direction:"row",mb:22,mt:22,children:y.jsx(q,{grow:1,shrink:1,children:y.jsx(vt,{className:"episode-title",kind:"heading",children:ur((t==null?void 0:t.episode_title)||"Unknown",a)})})}),e?y.jsxs(q,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx(Jn,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(vt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},gre="Flow 1",mre=0,bre=12,yre=15,vre={g:"LottieFiles Figma v45"},Sre=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],xre="5.7.0",Ere=60,wre=57.6,_re=0,Tre=[],Are={nm:gre,ddd:mre,h:bre,w:yre,meta:vre,layers:Sre,v:xre,fr:Ere,op:wre,ip:_re,assets:Tre},kre=()=>{const e=F.useRef(null);return F.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=dj.loadAnimation({container:t,animationData:Are,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},Ore=H(q).attrs(()=>({direction:"row"}))` cursor: pointer; color: ${j.primaryText1}; border-top: 1px solid ${j.black}; @@ -1587,7 +1587,7 @@ ${({disabled:e})=>e&&oI` color: ${j.white}; } } -`,Ire=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const a=n?"blueTextAccent":"placeholderText";return n?(aF,j[a]):(iF,j[a]),y.jsxs(Ore,{align:"center","data-testid":"wrapper",direction:"row",isSelected:n,justify:"flex-start",onClick:e,px:20,py:20,children:[y.jsxs("div",{children:[y.jsx(TI,{className:"play-pause",children:n?y.jsx(kre,{}):y.jsx(Rj,{})}),!1]}),y.jsxs(Rre,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:lF(t.timestamp)}),y.jsx("span",{className:"title",children:Ry(t.show_title)})]}),y.jsx("div",{className:"info",children:y.jsx(q,{"data-testid":"info-icon-wrapper",onClick:()=>r(t),pt:4,children:y.jsx(Cj,{})})})]})},Rre=H(q)` +`,Ire=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const a=n?"blueTextAccent":"placeholderText";return n?(pj,j[a]):(fj,j[a]),y.jsxs(Ore,{align:"center","data-testid":"wrapper",direction:"row",isSelected:n,justify:"flex-start",onClick:e,px:20,py:20,children:[y.jsxs("div",{children:[y.jsx(TI,{className:"play-pause",children:n?y.jsx(kre,{}):y.jsx(Pj,{})}),!1]}),y.jsxs(Rre,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:lF(t.timestamp)}),y.jsx("span",{className:"title",children:Ry(t.show_title)})]}),y.jsx("div",{className:"info",children:y.jsx(q,{"data-testid":"info-icon-wrapper",onClick:()=>r(t),pt:4,children:y.jsx(hj,{})})})]})},Rre=H(q)` font-size: 13px; color: ${j.white}; font-family: 'Barlow'; @@ -1822,7 +1822,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function _(x){return x instanceof l?new l(x.type,_(x.content),x.alias):Array.isArray(x)?x.map(_):x.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(E){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(_){var x=document.getElementsByTagName("script");for(var A in x)if(x[A].src==_)return x[A]}return null}},isActive:function(_,x,A){for(var E="no-"+x;_;){var v=_.classList;if(v.contains(x))return!0;if(v.contains(E))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,x){var A=s.util.clone(s.languages[_]);for(var E in x)A[E]=x[E];return A},insertBefore:function(_,x,A,E){E=E||s.languages;var v=E[_],O={};for(var R in v)if(v.hasOwnProperty(R)){if(R==x)for(var C in A)A.hasOwnProperty(C)&&(O[C]=A[C]);A.hasOwnProperty(R)||(O[R]=v[R])}var $=E[_];return E[_]=O,s.languages.DFS(s.languages,function(N,P){P===$&&N!=_&&(this[N]=O)}),O},DFS:function _(x,A,E,v){v=v||{};var O=s.util.objId;for(var R in x)if(x.hasOwnProperty(R)){A.call(x,R,x[R],E||R);var C=x[R],$=s.util.type(C);$==="Object"&&!v[O(C)]?(v[O(C)]=!0,_(C,A,null,v)):$==="Array"&&!v[O(C)]&&(v[O(C)]=!0,_(C,A,R,v))}}},plugins:{},highlightAll:function(_,x){s.highlightAllUnder(document,_,x)},highlightAllUnder:function(_,x,A){var E={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),s.hooks.run("before-all-elements-highlight",E);for(var v=0,O;O=E.elements[v++];)s.highlightElement(O,x===!0,E.callback)},highlightElement:function(_,x,A){var E=s.util.getLanguage(_),v=s.languages[E];s.util.setLanguage(_,E);var O=_.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,E);var R=_.textContent,C={element:_,language:E,grammar:v,code:R};function $(P){C.highlightedCode=P,s.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,s.hooks.run("after-highlight",C),s.hooks.run("complete",C),A&&A.call(C.element)}if(s.hooks.run("before-sanity-check",C),O=C.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!C.code){s.hooks.run("complete",C),A&&A.call(C.element);return}if(s.hooks.run("before-highlight",C),!C.grammar){$(s.util.encode(C.code));return}if(x&&r.Worker){var N=new Worker(s.filename);N.onmessage=function(P){$(P.data)},N.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else $(s.highlight(C.code,C.grammar,C.language))},highlight:function(_,x,A){var E={code:_,grammar:x,language:A};if(s.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=s.tokenize(E.code,E.grammar),s.hooks.run("after-tokenize",E),l.stringify(s.util.encode(E.tokens),E.language)},tokenize:function(_,x){var A=x.rest;if(A){for(var E in A)x[E]=A[E];delete x.rest}var v=new p;return f(v,v.head,_),c(_,v,x,v.head,0),m(v)},hooks:{all:{},add:function(_,x){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(x)},run:function(_,x){var A=s.hooks.all[_];if(!(!A||!A.length))for(var E=0,v;v=A[E++];)v(x)}},Token:l};r.Prism=s;function l(_,x,A,E){this.type=_,this.content=x,this.alias=A,this.length=(E||"").length|0}l.stringify=function _(x,A){if(typeof x=="string")return x;if(Array.isArray(x)){var E="";return x.forEach(function($){E+=_($,A)}),E}var v={type:x.type,content:_(x.content,A),tag:"span",classes:["token",x.type],attributes:{},language:A},O=x.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(v.classes,O):v.classes.push(O)),s.hooks.run("wrap",v);var R="";for(var C in v.attributes)R+=" "+C+'="'+(v.attributes[C]||"").replace(/"/g,""")+'"';return"<"+v.tag+' class="'+v.classes.join(" ")+'"'+R+">"+v.content+""};function u(_,x,A,E){_.lastIndex=x;var v=_.exec(A);if(v&&E&&v[1]){var O=v[1].length;v.index+=O,v[0]=v[0].slice(O)}return v}function c(_,x,A,E,v,O){for(var R in A)if(!(!A.hasOwnProperty(R)||!A[R])){var C=A[R];C=Array.isArray(C)?C:[C];for(var $=0;$=O.reach);Z+=W.value.length,W=W.next){var D=W.value;if(x.length>_.length)return;if(!(D instanceof l)){var ie=1,ne;if(V){if(ne=u(X,Z,_,z),!ne||ne.index>=_.length)break;var Se=ne.index,M=ne.index+ne[0].length,ye=Z;for(ye+=W.value.length;Se>=ye;)W=W.next,ye+=W.value.length;if(ye-=W.value.length,Z=ye,W.value instanceof l)continue;for(var re=W;re!==x.tail&&(yeO.reach&&(O.reach=de);var ce=W.prev;we&&(ce=f(x,ce,we),Z+=we.length),h(x,ce,ie);var ee=new l(R,P?s.tokenize(je,P):je,G,je);if(W=f(x,ce,ee),ae&&f(x,W,ae),ie>1){var _e={cause:R+","+$,reach:de};c(_,x,A,W.prev,Z,_e),O&&_e.reach>O.reach&&(O.reach=_e.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},x={value:null,prev:_,next:null};_.next=x,this.head=_,this.tail=x,this.length=0}function f(_,x,A){var E=x.next,v={value:A,prev:x,next:E};return x.next=v,E.prev=v,_.length++,v}function h(_,x,A){for(var E=x.next,v=0;v/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var kle=rS;rS.displayName="css";rS.aliases=[];function rS(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Ole=aS;aS.displayName="clike";aS.aliases=[];function aS(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Ile=iS;iS.displayName="javascript";iS.aliases=["js"];function iS(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var uo=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof At=="object"?At:{},Rle=Wle();uo.Prism={manual:!0,disableWorkerMessageHandler:!0};var Cle=Wie,Nle=lle,xD=Tle,Dle=Ale,Lle=kle,Mle=Ole,Ple=Ile;Rle();var oS={}.hasOwnProperty;function ED(){}ED.prototype=xD;var Ot=new ED,$le=Ot;Ot.highlight=Fle;Ot.register=Is;Ot.alias=jle;Ot.registered=Ble;Ot.listLanguages=Ule;Is(Dle);Is(Lle);Is(Mle);Is(Ple);Ot.util.encode=qle;Ot.Token.stringify=zle;function Is(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Ot.languages[e.displayName]===void 0&&e(Ot)}function jle(e,t){var n=Ot.languages,r=e,a,i,o,s;t&&(r={},r[e]=t);for(a in r)for(i=r[a],i=typeof i=="string"?[i]:i,o=i.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var Ud,V_;function Yle(){if(V_)return Ud;V_=1,Ud=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return Ud}var zd,Y_;function Kle(){if(Y_)return zd;Y_=1,zd=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return zd}var Gd,K_;function Xle(){if(K_)return Gd;K_=1,Gd=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return Gd}var qd,X_;function Zle(){if(X_)return qd;X_=1,qd=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return qd}var Hd,Z_;function Qle(){if(Z_)return Hd;Z_=1,Hd=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return Hd}var Wd,Q_;function Jle(){if(Q_)return Wd;Q_=1,Wd=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return Wd}var Vd,J_;function eue(){if(J_)return Vd;J_=1,Vd=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return Vd}var Yd,eT;function tue(){if(eT)return Yd;eT=1,Yd=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return Yd}var Kd,tT;function sS(){if(tT)return Kd;tT=1,Kd=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Kd}var Xd,nT;function nue(){if(nT)return Xd;nT=1;var e=sS();Xd=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(l){return RegExp(l.replace(//g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return Xd}var Zd,rT;function rue(){if(rT)return Zd;rT=1,Zd=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return Zd}var Qd,aT;function aue(){if(aT)return Qd;aT=1,Qd=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return Qd}var Jd,iT;function iue(){if(iT)return Jd;iT=1,Jd=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return Jd}var ep,oT;function Ca(){if(oT)return ep;oT=1,ep=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return ep}var tp,sT;function lS(){if(sT)return tp;sT=1;var e=Ca();tp=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return tp}var np,lT;function oue(){if(lT)return np;lT=1;var e=lS();np=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return np}var rp,uT;function sue(){if(uT)return rp;uT=1,rp=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return rp}var ap,cT;function lue(){if(cT)return ap;cT=1,ap=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,u=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return op}var sp,fT;function Ec(){if(fT)return sp;fT=1,sp=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(ie,ne){return ie.replace(/<<(\d+)>>/g,function(M,ye){return"(?:"+ne[+ye]+")"})}function a(ie,ne,M){return RegExp(r(ie,ne),M||"")}function i(ie,ne){for(var M=0;M>/g,function(){return"(?:"+ie+")"});return ie.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(ie){return"\\b(?:"+ie.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),u=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),c=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[m,f]),S=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[c,b]),T=/\[\s*(?:,\s*)*\]/.source,_=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),x=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,T]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),E=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,S,T]),v={keyword:u,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,C=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:v},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,E]),lookbehind:!0,inside:v},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,b]),lookbehind:!0,inside:v},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:v},{pattern:a(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:v},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,m]),inside:v}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:v},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,S]),inside:v,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:v,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,f]),inside:{function:a(/^<<0>>/.source,[m]),generic:{pattern:RegExp(f),alias:"class-name",inside:v}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,b,m,E,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(E),greedy:!0,inside:v},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var $=R+"|"+O,N=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$]),P=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[N]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,P]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[P]),inside:n.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var G=/:[^}\r\n]+/.source,K=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[N]),2),X=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,G]),W=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[$]),2),Z=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,G]);function D(ie,ne){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ie]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ne,G]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:D(X,K)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:D(Z,W)}],char:{pattern:RegExp(O),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return sp}var lp,hT;function due(){if(hT)return lp;hT=1;var e=Ec();lp=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return lp}var up,gT;function pue(){if(gT)return up;gT=1,up=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return up}var cp,mT;function fue(){if(mT)return cp;mT=1,cp=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return cp}var dp,bT;function hue(){if(bT)return dp;bT=1,dp=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(c,p){return c.replace(/<<(\d+)>>/g,function(f,h){return p[+h]})}function a(c,p,f){return RegExp(r(c,p),f||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[o,s,l].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return dp}var pp,yT;function gue(){if(yT)return pp;yT=1,pp=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return pp}var fp,vT;function wD(){if(vT)return fp;vT=1,fp=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return hp}var gp,xT;function mue(){if(xT)return gp;xT=1,gp=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return gp}var mp,ET;function bue(){if(ET)return mp;ET=1,mp=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return mp}var bp,wT;function yue(){if(wT)return bp;wT=1,bp=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return bp}var yp,_T;function vue(){if(_T)return yp;_T=1,yp=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return yp}var vp,TT;function Sue(){if(TT)return vp;TT=1;var e=Ca();vp=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return vp}var Sp,AT;function xue(){if(AT)return Sp;AT=1,Sp=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return Sp}var xp,kT;function Eue(){if(kT)return xp;kT=1,xp=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return xp}var Ep,OT;function wue(){if(OT)return Ep;OT=1,Ep=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return Ep}var wp,IT;function _ue(){if(IT)return wp;IT=1,wp=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return wp}var _p,RT;function Tue(){if(RT)return _p;RT=1,_p=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return _p}var Tp,CT;function Aue(){if(CT)return Tp;CT=1,Tp=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return Tp}var Ap,NT;function kue(){if(NT)return Ap;NT=1;var e=lS();Ap=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Ap}var kp,DT;function Oue(){if(DT)return kp;DT=1,kp=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return kp}var Op,LT;function Iue(){if(LT)return Op;LT=1,Op=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return Op}var Ip,MT;function Rue(){if(MT)return Ip;MT=1,Ip=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return Ip}var Rp,PT;function Cue(){if(PT)return Rp;PT=1,Rp=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return Rp}var Cp,$T;function Nue(){if($T)return Cp;$T=1,Cp=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return Cp}var Np,jT;function Due(){if(jT)return Np;jT=1,Np=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return Np}var Dp,FT;function Lue(){if(FT)return Dp;FT=1,Dp=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Dp}var Lp,BT;function wc(){if(BT)return Lp;BT=1,Lp=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return Lp}var Mp,UT;function Mue(){if(UT)return Mp;UT=1;var e=wc();Mp=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return Mp}var Pp,zT;function Pue(){if(zT)return Pp;zT=1;var e=Ec();Pp=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(S,T){for(var _=0;_/g,function(){return"(?:"+S+")"});return S.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|||)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),u=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),c=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,f=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+f+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return jp}var Fp,HT;function Fue(){if(HT)return Fp;HT=1,Fp=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Fp}var Bp,WT;function Bue(){if(WT)return Bp;WT=1,Bp=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Bp}var Up,VT;function Uue(){if(VT)return Up;VT=1,Up=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return Up}var zp,YT;function zue(){if(YT)return zp;YT=1,zp=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return zp}var Gp,KT;function Gue(){if(KT)return Gp;KT=1,Gp=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Gp}var qp,XT;function que(){if(XT)return qp;XT=1,qp=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return qp}var Hp,ZT;function Hue(){if(ZT)return Hp;ZT=1,Hp=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return Hp}var Wp,QT;function Wue(){if(QT)return Wp;QT=1,Wp=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| |(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return Wp}var Vp,JT;function hn(){if(JT)return Vp;JT=1,Vp=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(u){if(typeof s=="function"&&!s(u))return u;for(var c=l.length,p;a.code.indexOf(p=r(i,c))!==-1;)++c;return l[c]=u,p}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(u){for(var c=0;c=s.length);c++){var p=u[c];if(typeof p=="string"||p.content&&typeof p.content=="string"){var f=s[o],h=a.tokenStack[f],m=typeof p=="string"?p:p.content,b=r(i,f),S=m.indexOf(b);if(S>-1){++o;var T=m.substring(0,S),_=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),x=m.substring(S+b.length),A=[];T&&A.push.apply(A,l([T])),A.push(_),x&&A.push.apply(A,l([x])),typeof p=="string"?u.splice.apply(u,[c,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return u}l(a.tokens)}}})})(t)}return Vp}var Yp,eA;function Vue(){if(eA)return Yp;eA=1;var e=hn();Yp=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(n)}return Yp}var Kp,tA;function Yue(){if(tA)return Kp;tA=1,Kp=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Kp}var Xp,nA;function Kue(){if(nA)return Xp;nA=1,Xp=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,p){return c=c.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(c,p)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(t)}return Xp}var Zp,rA;function Xue(){if(rA)return Zp;rA=1,Zp=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return Zp}var Qp,aA;function Zue(){if(aA)return Qp;aA=1,Qp=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return Qp}var Jp,iA;function Que(){if(iA)return Jp;iA=1,Jp=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return Jp}var ef,oA;function Jue(){if(oA)return ef;oA=1,ef=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return ef}var tf,sA;function ece(){if(sA)return tf;sA=1;var e=hn();tf=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return tf}var nf,lA;function tce(){if(lA)return nf;lA=1,nf=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return nf}var rf,uA;function nce(){if(uA)return rf;uA=1,rf=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return rf}var af,cA;function rce(){if(cA)return af;cA=1;var e=wc(),t=hn();af=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(r)}return af}var of,dA;function ace(){if(dA)return of;dA=1,of=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return of}var sf,pA;function TD(){if(pA)return sf;pA=1,sf=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return sf}var lf,fA;function ice(){if(fA)return lf;fA=1;var e=TD(),t=hn();lf=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(r)}return lf}var uf,hA;function oce(){if(hA)return uf;hA=1,uf=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return uf}var cf,gA;function sce(){if(gA)return cf;gA=1,cf=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(c){return new RegExp("(^|\\s)(?:"+c.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(c){i[c].pattern=s(l[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(u),n.languages.factor=i})(t)}return cf}var df,mA;function lce(){if(mA)return df;mA=1,df=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return pf}var ff,yA;function cce(){if(yA)return ff;yA=1,ff=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return ff}var hf,vA;function dce(){if(vA)return hf;vA=1,hf=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return hf}var gf,SA;function pce(){if(SA)return gf;SA=1,gf=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return gf}var mf,xA;function fce(){if(xA)return mf;xA=1;var e=hn();mf=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return mf}var bf,EA;function hce(){if(EA)return bf;EA=1,bf=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return bf}var yf,wA;function gce(){if(wA)return yf;wA=1,yf=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return yf}var vf,_A;function mce(){if(_A)return vf;_A=1,vf=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return vf}var Sf,TA;function bce(){if(TA)return Sf;TA=1,Sf=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Sf}var xf,AA;function yce(){if(AA)return xf;AA=1,xf=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return xf}var Ef,kA;function vce(){if(kA)return Ef;kA=1,Ef=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Ef}var wf,OA;function Sce(){if(OA)return wf;OA=1;var e=Ca();wf=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return wf}var _f,IA;function xce(){if(IA)return _f;IA=1,_f=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return _f}var Tf,RA;function Ece(){if(RA)return Tf;RA=1,Tf=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return Tf}var Af,CA;function wce(){if(CA)return Af;CA=1,Af=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return Af}var kf,NA;function _ce(){if(NA)return kf;NA=1,kf=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return kf}var Of,DA;function Tce(){if(DA)return Of;DA=1,Of=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function o(T){return a[i+T]}function s(T,_){_=_||0;for(var x=0;x0)){var m=l(/^\{$/,/^\}$/);if(m===-1)continue;for(var b=i;b=0&&u(S,"variable-input")}}}}})}return Of}var If,LA;function Ace(){if(LA)return If;LA=1,If=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return If}var Rf,MA;function kce(){if(MA)return Rf;MA=1;var e=wc();Rf=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return Cf}var Nf,$A;function uS(){if($A)return Nf;$A=1,Nf=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Nf}var Df,jA;function Ice(){if(jA)return Df;jA=1,Df=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Df}var Lf,FA;function Rce(){if(FA)return Lf;FA=1,Lf=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Lf}var Mf,BA;function Cce(){if(BA)return Mf;BA=1;var e=Ca();Mf=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Mf}var Pf,UA;function Nce(){if(UA)return Pf;UA=1,Pf=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Pf}var $f,zA;function Dce(){if(zA)return $f;zA=1,$f=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return $f}var jf,GA;function Lce(){if(GA)return jf;GA=1,jf=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return jf}var Ff,qA;function Mce(){if(qA)return Ff;qA=1,Ff=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var f=p.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+p+"|"+h+")"}var l;for(var u in i)if(i[u]){l=l||{};var c=o[u]?s(u):u;l[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}l&&n.languages.insertBefore("http","header",l)})(t)}return Ff}var Bf,HA;function Pce(){if(HA)return Bf;HA=1,Bf=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return Bf}var Uf,WA;function $ce(){if(WA)return Uf;WA=1,Uf=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Uf}var zf,VA;function jce(){if(VA)return zf;VA=1,zf=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,c){return c<=0?/[]/.source:u.replace(//g,function(){return r(u,c-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return zf}var Gf,YA;function Fce(){if(YA)return Gf;YA=1;var e=uS();Gf=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Gf}var qf,KA;function Bce(){if(KA)return qf;KA=1,qf=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return qf}var Hf,XA;function Uce(){if(XA)return Hf;XA=1,Hf=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return Hf}var Wf,ZA;function zce(){if(ZA)return Wf;ZA=1,Wf=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return Wf}var Vf,QA;function Gce(){if(QA)return Vf;QA=1,Vf=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Vf}var Yf,JA;function qce(){if(JA)return Yf;JA=1,Yf=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Kf}var Xf,tk;function cS(){if(tk)return Xf;tk=1,Xf=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Xf}var Zf,nk;function _c(){if(nk)return Zf;nk=1,Zf=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",u=n.languages[o];if(u){var c=u[l];if(!c){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(o,"comment",p),c=u[l]}if(c instanceof RegExp&&(c=u[l]={pattern:c}),Array.isArray(c))for(var f=0,h=c.length;f)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return Qf}var Jf,ak;function Vce(){if(ak)return Jf;ak=1,Jf=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return Jf}var eh,ik;function Yce(){if(ik)return eh;ik=1,eh=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return eh}var th,ok;function Kce(){if(ok)return th;ok=1,th=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return th}var nh,sk;function Xce(){if(sk)return nh;sk=1,nh=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return nh}var rh,lk;function Zce(){if(lk)return rh;lk=1,rh=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,c){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=O.length)return;var N=C[$];if(typeof N=="string"||typeof N.content=="string"){var P=O[x],z=typeof N=="string"?N:N.content,V=z.indexOf(P);if(V!==-1){++x;var G=z.substring(0,V),K=p(A[P]),X=z.substring(V+P.length),W=[];if(G&&W.push(G),W.push(K),X){var Z=[X];R(Z),W.push.apply(W,Z)}typeof N=="string"?(C.splice.apply(C,[$,1].concat(W)),$+=W.length-1):N.content=W}}else{var D=N.content;Array.isArray(D)?R(D):R([D])}}}return R(v),new n.Token(T,v,"language-"+T,b)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in h))return;function S(T){for(var _=0,x=T.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return ih}var oh,dk;function Jce(){if(dk)return oh;dk=1;var e=_c(),t=dS();oh=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return oh}var sh,pk;function pS(){if(pk)return sh;pk=1,sh=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return sh}var lh,fk;function ede(){if(fk)return lh;fk=1;var e=pS();lh=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return lh}var uh,hk;function tde(){if(hk)return uh;hk=1;var e=pS();uh=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return uh}var ch,gk;function nde(){if(gk)return ch;gk=1,ch=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return ch}var dh,mk;function AD(){if(mk)return dh;mk=1,dh=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(c,p){return c=c.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(c,p)}o=s(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""},u=function(c){for(var p=[],f=0;f0&&p[p.length-1].tagName===l(h.content[0].content[1])&&p.pop():h.content[h.content.length-1].content==="/>"||p.push({tagName:l(h.content[0].content[1]),openedBraces:0}):p.length>0&&h.type==="punctuation"&&h.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?p[p.length-1].openedBraces--:m=!0),(m||typeof h=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var b=l(h);f0&&(typeof c[f-1]=="string"||c[f-1].type==="plain-text")&&(b=l(c[f-1])+b,c.splice(f-1,1),f--),c[f]=new n.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&u(h.content)}};n.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(t)}return dh}var ph,bk;function rde(){if(bk)return ph;bk=1,ph=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return ph}var fh,yk;function ade(){if(yk)return fh;yk=1,fh=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return fh}var hh,vk;function ide(){if(vk)return hh;vk=1,hh=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return hh}var gh,Sk;function ode(){if(Sk)return gh;Sk=1,gh=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return gh}var mh,xk;function sde(){if(xk)return mh;xk=1,mh=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return mh}var bh,Ek;function lde(){if(Ek)return bh;Ek=1,bh=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return bh}var yh,wk;function ude(){if(wk)return yh;wk=1,yh=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return yh}var vh,_k;function Tc(){if(_k)return vh;_k=1;var e=hn();vh=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},c=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:c,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var f=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(p,"php",f)}}),r.hooks.add("after-tokenize",function(p){r.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(n)}return vh}var Sh,Tk;function cde(){if(Tk)return Sh;Tk=1;var e=hn(),t=Tc();Sh=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(r)}return Sh}var xh,Ak;function dde(){if(Ak)return xh;Ak=1,xh=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return xh}var Eh,kk;function fS(){if(kk)return Eh;kk=1,Eh=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return Eh}var wh,Ok;function pde(){if(Ok)return wh;Ok=1;var e=fS();wh=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return wh}var _h,Ik;function fde(){if(Ik)return _h;Ik=1;var e=hn();_h=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return _h}var Th,Rk;function hde(){if(Rk)return Th;Rk=1,Th=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},h="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(s+c+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:f},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=m,p.defun.inside.arguments=n.util.clone(m),p.defun.inside.arguments.inside.sublist=m,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return Th}var Ah,Ck;function gde(){if(Ck)return Ah;Ck=1,Ah=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return Ah}var kh,Nk;function mde(){if(Nk)return kh;Nk=1,kh=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return kh}var Oh,Dk;function bde(){if(Dk)return Oh;Dk=1,Oh=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return Oh}var Ih,Lk;function yde(){if(Lk)return Ih;Lk=1,Ih=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return Ih}var Rh,Mk;function vde(){if(Mk)return Rh;Mk=1,Rh=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return Rh}var Ch,Pk;function Sde(){if(Pk)return Ch;Pk=1,Ch=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return Ch}var Nh,$k;function xde(){if($k)return Nh;$k=1,Nh=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(f){return f=f.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(f){["url","bold","italic","strike","code-snippet"].forEach(function(h){f!==h&&(n.languages.markdown[f].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(f){if(f.language!=="markdown"&&f.language!=="md")return;function h(m){if(!(!m||typeof m=="string"))for(var b=0,S=m.length;b",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function p(f){var h=f.replace(l,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,b){if(b=b.toLowerCase(),b[0]==="#"){var S;return b[1]==="x"?S=parseInt(b.slice(2),16):S=Number(b.slice(1)),c(S)}else{var T=u[b];return T||m}}),h}n.languages.md=n.languages.markdown})(t)}return Nh}var Dh,jk;function Ede(){if(jk)return Dh;jk=1,Dh=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Dh}var Lh,Fk;function wde(){if(Fk)return Lh;Fk=1,Lh=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return Lh}var Mh,Bk;function _de(){if(Bk)return Mh;Bk=1,Mh=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return Mh}var Ph,Uk;function Tde(){if(Uk)return Ph;Uk=1,Ph=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Ph}var $h,zk;function Ade(){if(zk)return $h;zk=1,$h=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return $h}var jh,Gk;function kde(){if(Gk)return jh;Gk=1,jh=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return jh}var Fh,qk;function Ode(){if(qk)return Fh;qk=1,Fh=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return Fh}var Bh,Hk;function Ide(){if(Hk)return Bh;Hk=1,Bh=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return Bh}var Uh,Wk;function Rde(){if(Wk)return Uh;Wk=1,Uh=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return Uh}var zh,Vk;function Cde(){if(Vk)return zh;Vk=1,zh=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return zh}var Gh,Yk;function Nde(){if(Yk)return Gh;Yk=1,Gh=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return Gh}var qh,Kk;function Dde(){if(Kk)return qh;Kk=1,qh=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=o(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(s){for(var l="[]{}",u=[],c=0;c=&|$!]/}}return Hh}var Wh,Zk;function Mde(){if(Zk)return Wh;Zk=1,Wh=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return Wh}var Vh,Qk;function Pde(){if(Qk)return Vh;Qk=1,Vh=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return Vh}var Yh,Jk;function $de(){if(Jk)return Yh;Jk=1,Yh=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return Yh}var Kh,e1;function jde(){if(e1)return Kh;e1=1,Kh=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return Kh}var Xh,t1;function Fde(){if(t1)return Xh;t1=1,Xh=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return Xh}var Zh,n1;function Bde(){if(n1)return Zh;n1=1,Zh=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return Zh}var Qh,r1;function Ude(){if(r1)return Qh;r1=1;var e=Ca();Qh=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return Qh}var Jh,a1;function zde(){if(a1)return Jh;a1=1,Jh=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return Jh}var eg,i1;function Gde(){if(i1)return eg;i1=1;var e=Ca();eg=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return eg}var tg,o1;function qde(){if(o1)return tg;o1=1,tg=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return tg}var ng,s1;function Hde(){if(s1)return ng;s1=1,ng=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return ng}var rg,l1;function Wde(){if(l1)return rg;l1=1,rg=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return rg}var ag,u1;function Vde(){if(u1)return ag;u1=1,ag=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return ag}var ig,c1;function Yde(){if(c1)return ig;c1=1,ig=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return ig}var og,d1;function Kde(){if(d1)return og;d1=1,og=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return og}var sg,p1;function Xde(){if(p1)return sg;p1=1,sg=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return sg}var lg,f1;function Zde(){if(f1)return lg;f1=1,lg=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return lg}var ug,h1;function Qde(){if(h1)return ug;h1=1,ug=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return ug}var cg,g1;function Jde(){if(g1)return cg;g1=1;var e=Tc();cg=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return cg}var dg,m1;function epe(){if(m1)return dg;m1=1;var e=Tc(),t=_c();dg=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return dg}var pg,b1;function tpe(){if(b1)return pg;b1=1;var e=sS();pg=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return pg}var fg,y1;function npe(){if(y1)return fg;y1=1,fg=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return fg}var hg,v1;function rpe(){if(v1)return hg;v1=1,hg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return hg}var gg,S1;function ape(){if(S1)return gg;S1=1,gg=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return gg}var mg,x1;function ipe(){if(x1)return mg;x1=1,mg=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return mg}var bg,E1;function ope(){if(E1)return bg;E1=1,bg=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return bg}var yg,w1;function spe(){if(w1)return yg;w1=1,yg=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return yg}var vg,_1;function lpe(){if(_1)return vg;_1=1,vg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return vg}var Sg,T1;function upe(){if(T1)return Sg;T1=1,Sg=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return Sg}var xg,A1;function cpe(){if(A1)return xg;A1=1,xg=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return xg}var Eg,k1;function dpe(){if(k1)return Eg;k1=1,Eg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return Eg}var wg,O1;function ppe(){if(O1)return wg;O1=1,wg=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return wg}var _g,I1;function fpe(){if(I1)return _g;I1=1,_g=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return _g}var Tg,R1;function hpe(){if(R1)return Tg;R1=1;var e=uS();Tg=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return Tg}var Ag,C1;function gpe(){if(C1)return Ag;C1=1,Ag=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return Ag}var kg,N1;function mpe(){if(N1)return kg;N1=1,kg=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return kg}var Og,D1;function bpe(){if(D1)return Og;D1=1,Og=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Og}var Ig,L1;function ype(){if(L1)return Ig;L1=1,Ig=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return Ig}var Rg,M1;function vpe(){if(M1)return Rg;M1=1,Rg=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(m,b){return m.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+b[+T]+")"})}function a(m,b,S){return RegExp(r(m,b),S||"")}function i(m,b){for(var S=0;S>/g,function(){return"(?:"+m+")"});return m.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),u=/\b[A-Za-z_]\w*\b/.source,c=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Rg}var Cg,P1;function Spe(){if(P1)return Cg;P1=1,Cg=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Cg}var Ng,$1;function xpe(){if($1)return Ng;$1=1;var e=fS();Ng=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return Ng}var Dg,j1;function Epe(){if(j1)return Dg;j1=1,Dg=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return Dg}var Lg,F1;function wpe(){if(F1)return Lg;F1=1,Lg=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Mg}var Pg,U1;function Tpe(){if(U1)return Pg;U1=1,Pg=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return Pg}var $g,z1;function Ape(){if(z1)return $g;z1=1,$g=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return $g}var jg,G1;function kpe(){if(G1)return jg;G1=1,jg=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return jg}var Fg,q1;function Ope(){if(q1)return Fg;q1=1,Fg=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return Fg}var Bg,H1;function Ipe(){if(H1)return Bg;H1=1,Bg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in c)p[f]=c[f];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return Bg}var Ug,W1;function Rpe(){if(W1)return Ug;W1=1,Ug=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return Ug}var zg,V1;function Cpe(){if(V1)return zg;V1=1,zg=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(r),greedy:!0},p=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:c},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:f,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:p,string:c}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":T,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":T,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:l,keyword:A,function:f,format:m,altformat:b,"global-statements":S,number:a,"numeric-constant":i,punctuation:p,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":x,comment:u,function:f,format:m,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:c,step:l,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return zg}var Gg,Y1;function Npe(){if(Y1)return Gg;Y1=1,Gg=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return Gg}var qg,K1;function Dpe(){if(K1)return qg;K1=1;var e=cS();qg=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return qg}var Hg,X1;function Lpe(){if(X1)return Hg;X1=1,Hg=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return Hg}var Wg,Z1;function Mpe(){if(Z1)return Wg;Z1=1;var e=wD();Wg=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return Wg}var Vg,Q1;function Ppe(){if(Q1)return Vg;Q1=1,Vg=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return Vg}var Yg,J1;function $pe(){if(J1)return Yg;J1=1,Yg=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return Yg}var Kg,eO;function jpe(){if(eO)return Kg;eO=1;var e=hn();Kg=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(c){return c===l&&(u=!1),u?!1:(c===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(n)}return Kg}var Xg,tO;function Fpe(){if(tO)return Xg;tO=1,Xg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return Xg}var Zg,nO;function Bpe(){if(nO)return Zg;nO=1,Zg=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return Zg}var Qg,rO;function Upe(){if(rO)return Qg;rO=1,Qg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return Qg}var Jg,aO;function zpe(){if(aO)return Jg;aO=1;var e=hn();Jg=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",u="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===u&&(c=!1),c?!1:(p===l&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(n)}return Jg}var em,iO;function kD(){if(iO)return em;iO=1,em=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return em}var tm,oO;function Gpe(){if(oO)return tm;oO=1;var e=kD();tm=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return tm}var nm,sO;function qpe(){if(sO)return nm;sO=1,nm=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return nm}var rm,lO;function Hpe(){if(lO)return rm;lO=1,rm=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return rm}var am,uO;function Wpe(){if(uO)return am;uO=1,am=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return am}var im,cO;function Vpe(){if(cO)return im;cO=1,im=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return im}var om,dO;function Ype(){if(dO)return om;dO=1,om=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return om}var sm,pO;function Kpe(){if(pO)return sm;pO=1,sm=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return sm}var lm,fO;function Xpe(){if(fO)return lm;fO=1,lm=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return lm}var um,hO;function hS(){if(hO)return um;hO=1,um=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,s),"class-feature":r("\\+",o,s),standard:r("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return um}var cm,gO;function Zpe(){if(gO)return cm;gO=1;var e=hS(),t=Ec();cm=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return cm}var dm,mO;function OD(){if(mO)return dm;mO=1;var e=_D();dm=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return dm}var pm,bO;function Qpe(){if(bO)return pm;bO=1;var e=hS(),t=OD();pm=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return pm}var fm,yO;function ID(){if(yO)return fm;yO=1,fm=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return fm}var hm,vO;function Jpe(){if(vO)return hm;vO=1;var e=ID();hm=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return hm}var gm,SO;function efe(){if(SO)return gm;SO=1,gm=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return gm}var mm,xO;function tfe(){if(xO)return mm;xO=1,mm=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,u={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=l.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=l.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return mm}var bm,EO;function nfe(){if(EO)return bm;EO=1,bm=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return bm}var ym,wO;function rfe(){if(wO)return ym;wO=1,ym=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return ym}var vm,_O;function afe(){if(_O)return vm;_O=1;var e=AD(),t=dS();vm=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(r)}return vm}var Sm,TO;function ife(){if(TO)return Sm;TO=1;var e=hn();Sm=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return Sm}var xm,AO;function ofe(){if(AO)return xm;AO=1;var e=hn();xm=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return xm}var Em,kO;function sfe(){if(kO)return Em;kO=1,Em=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return Em}var wm,OO;function lfe(){if(OO)return wm;OO=1,wm=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return wm}var _m,IO;function ufe(){if(IO)return _m;IO=1,_m=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return _m}var Tm,RO;function cfe(){if(RO)return Tm;RO=1,Tm=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return Tm}var Am,CO;function dfe(){if(CO)return Am;CO=1,Am=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return Am}var km,NO;function pfe(){if(NO)return km;NO=1,km=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return km}var Om,DO;function ffe(){if(DO)return Om;DO=1,Om=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return Om}var Im,LO;function hfe(){if(LO)return Im;LO=1,Im=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Im}var Rm,MO;function gfe(){if(MO)return Rm;MO=1,Rm=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Rm}var Cm,PO;function mfe(){if(PO)return Cm;PO=1,Cm=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Cm}var Nm,$O;function bfe(){if($O)return Nm;$O=1,Nm=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return Nm}var Dm,jO;function yfe(){if(jO)return Dm;jO=1,Dm=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Dm}var Lm,FO;function vfe(){if(FO)return Lm;FO=1,Lm=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Lm}var Mm,BO;function Sfe(){if(BO)return Mm;BO=1,Mm=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return Mm}var Pm,UO;function xfe(){if(UO)return Pm;UO=1,Pm=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return Pm}var $m,zO;function Efe(){if(zO)return $m;zO=1,$m=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return $m}var jm,GO;function wfe(){if(GO)return jm;GO=1,jm=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return jm}var Fm,qO;function _fe(){if(qO)return Fm;qO=1,Fm=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return Fm}var Bm,HO;function Tfe(){if(HO)return Bm;HO=1,Bm=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return Bm}var Um,WO;function Afe(){if(WO)return Um;WO=1,Um=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return Um}var zm,VO;function kfe(){if(VO)return zm;VO=1,zm=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===r(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:r(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(u=!0)),(u||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var c=r(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(c=r(i[s-1])+c,i.splice(s-1,1),s--),/^\s+$/.test(c)?i[s]=c:i[s]=new n.Token("plain-text",c,null,c)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return zm}var Gm,YO;function Ofe(){if(YO)return Gm;YO=1,Gm=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return Gm}var qm,KO;function Ife(){if(KO)return qm;KO=1,qm=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(c){return function(){return c}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=n.languages.zig)})})(t)}return qm}var L=$le,Rfe=L;L.register(Yle());L.register(Kle());L.register(Xle());L.register(Zle());L.register(Qle());L.register(Jle());L.register(eue());L.register(tue());L.register(nue());L.register(rue());L.register(aue());L.register(iue());L.register(oue());L.register(sue());L.register(lue());L.register(uue());L.register(cue());L.register(due());L.register(pue());L.register(fue());L.register(hue());L.register(gue());L.register(wD());L.register(_D());L.register(mue());L.register(bue());L.register(yue());L.register(vue());L.register(Sue());L.register(xue());L.register(Eue());L.register(wue());L.register(_ue());L.register(Tue());L.register(Ca());L.register(Aue());L.register(kue());L.register(Oue());L.register(Iue());L.register(Rue());L.register(Cue());L.register(Nue());L.register(Due());L.register(Lue());L.register(lS());L.register(Mue());L.register(Ec());L.register(Pue());L.register($ue());L.register(jue());L.register(Fue());L.register(Bue());L.register(Uue());L.register(zue());L.register(Gue());L.register(que());L.register(Hue());L.register(Wue());L.register(Vue());L.register(Yue());L.register(Kue());L.register(Xue());L.register(Zue());L.register(Que());L.register(Jue());L.register(ece());L.register(tce());L.register(nce());L.register(rce());L.register(ace());L.register(ice());L.register(oce());L.register(sce());L.register(lce());L.register(uce());L.register(cce());L.register(dce());L.register(pce());L.register(fce());L.register(hce());L.register(gce());L.register(mce());L.register(bce());L.register(yce());L.register(vce());L.register(Sce());L.register(xce());L.register(Ece());L.register(wce());L.register(_ce());L.register(Tce());L.register(Ace());L.register(kce());L.register(Oce());L.register(uS());L.register(Ice());L.register(Rce());L.register(Cce());L.register(Nce());L.register(Dce());L.register(Lce());L.register(Mce());L.register(Pce());L.register($ce());L.register(jce());L.register(Fce());L.register(Bce());L.register(Uce());L.register(zce());L.register(Gce());L.register(qce());L.register(Hce());L.register(cS());L.register(Wce());L.register(_c());L.register(Vce());L.register(Yce());L.register(Kce());L.register(Xce());L.register(Zce());L.register(Qce());L.register(Jce());L.register(pS());L.register(ede());L.register(tde());L.register(nde());L.register(AD());L.register(rde());L.register(ade());L.register(ide());L.register(ode());L.register(sde());L.register(lde());L.register(ude());L.register(cde());L.register(dde());L.register(pde());L.register(fde());L.register(hde());L.register(gde());L.register(mde());L.register(bde());L.register(yde());L.register(TD());L.register(vde());L.register(Sde());L.register(xde());L.register(hn());L.register(Ede());L.register(wde());L.register(_de());L.register(Tde());L.register(Ade());L.register(kde());L.register(Ode());L.register(Ide());L.register(Rde());L.register(Cde());L.register(Nde());L.register(Dde());L.register(Lde());L.register(Mde());L.register(Pde());L.register($de());L.register(jde());L.register(Fde());L.register(Bde());L.register(Ude());L.register(zde());L.register(Gde());L.register(qde());L.register(Hde());L.register(Wde());L.register(Vde());L.register(Yde());L.register(Kde());L.register(Xde());L.register(Zde());L.register(Qde());L.register(Jde());L.register(Tc());L.register(epe());L.register(tpe());L.register(npe());L.register(rpe());L.register(ape());L.register(ipe());L.register(ope());L.register(spe());L.register(lpe());L.register(upe());L.register(cpe());L.register(dpe());L.register(ppe());L.register(fpe());L.register(hpe());L.register(gpe());L.register(mpe());L.register(bpe());L.register(ype());L.register(vpe());L.register(Spe());L.register(xpe());L.register(Epe());L.register(wpe());L.register(_pe());L.register(Tpe());L.register(Ape());L.register(kpe());L.register(Ope());L.register(Ipe());L.register(wc());L.register(Rpe());L.register(Cpe());L.register(Npe());L.register(Dpe());L.register(fS());L.register(Lpe());L.register(Mpe());L.register(Ppe());L.register($pe());L.register(jpe());L.register(Fpe());L.register(Bpe());L.register(Upe());L.register(zpe());L.register(Gpe());L.register(qpe());L.register(Hpe());L.register(sS());L.register(Wpe());L.register(Vpe());L.register(Ype());L.register(Kpe());L.register(Xpe());L.register(Zpe());L.register(hS());L.register(Qpe());L.register(Jpe());L.register(efe());L.register(tfe());L.register(nfe());L.register(rfe());L.register(afe());L.register(ife());L.register(kD());L.register(ofe());L.register(dS());L.register(sfe());L.register(lfe());L.register(ufe());L.register(cfe());L.register(dfe());L.register(pfe());L.register(OD());L.register(ffe());L.register(hfe());L.register(gfe());L.register(mfe());L.register(bfe());L.register(yfe());L.register(vfe());L.register(Sfe());L.register(xfe());L.register(Efe());L.register(wfe());L.register(_fe());L.register(Tfe());L.register(Afe());L.register(kfe());L.register(ID());L.register(Ofe());L.register(Ife());const Cfe=St(Rfe);var RD=kae(Cfe,Vle);RD.supportedLanguages=Oae;const Nfe=RD,Dfe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},Lfe=()=>{var m,b,S,T,_,x,A;const e=Kt(),t=F.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=Pt(E=>E),[a,i]=F.useState(!1),[o,s]=F.useState(((m=e==null?void 0:e.properties)==null?void 0:m.boost)||0);F.useEffect(()=>{var E;s(((E=e==null?void 0:e.properties)==null?void 0:E.boost)||0)},[e]),F.useEffect(()=>{const E=t.current,v=()=>{r(null),i(!1)};return E&&E.addEventListener("ended",v),()=>{E&&E.removeEventListener("ended",v)}},[r,a]),F.useEffect(()=>{i(!1)},[e]);const l=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),i(!0)):(t.current.pause(),r(null),i(!1)))};if(!e)return null;const u=!!((b=e.properties)!=null&&b.image_url),c=!!((S=e.properties)!=null&&S.audio_EN),p=e.properties||{},f=(T=e.properties)==null?void 0:T.source_link,h=(_=e.properties)==null?void 0:_.pubkey;return y.jsxs(zfe,{children:[u?y.jsx(Ffe,{children:y.jsx("img",{alt:"img_a11y",onError:E=>{E.currentTarget.src="generic_placeholder_img.png",E.currentTarget.className="default-img"},src:(x=e.properties)==null?void 0:x.image_url})}):null,y.jsxs($fe,{grow:1,justify:"flex-start",pt:u?0:8,shrink:1,children:[y.jsxs(q,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[y.jsx(Ai,{type:e.node_type||""}),f&&y.jsx(Hfe,{href:`${f}${f.includes("?")?"&":"?"}open=system`,target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(jfe,{children:Object.entries(p).filter(([E])=>E!=="media_url"&&E!=="link"&&E!=="pubkey").map(([E,v])=>y.jsx(Pfe,{hasAudio:c,isPlaying:a,label:Mfe(E),togglePlay:l,value:E==="date"&&v?_i(v*1e3).format("MMMM Do YYYY"):v},E))}),h&&y.jsxs(q,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Lu,{amt:o}),y.jsx(qv,{content:e,count:o,refId:e.ref_id,updateCount:s})]})]}),c&&((A=e.properties)==null?void 0:A.audio_EN)&&y.jsx(qfe,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},Mfe=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),Pfe=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:a})=>{const i=t.length>140,o=Pt(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"?null:y.jsxs(y.Fragment,{children:[y.jsxs(Bfe,{className:lr("node-detail",{"node-detail__long":i}),children:[y.jsxs(vt,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(Gfe,{onClick:a,children:r?y.jsx(SI,{}):y.jsx(xI,{})})]}),e!=="Frame"&&e!=="Code"?y.jsx(vt,{className:"node-detail__value",children:ur(String(t),o)}):y.jsx(Nfe,{language:"javascript",style:Dfe,children:String(t)})]}),y.jsx(Ufe,{})]})},$fe=H(q)` +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return lm}var um,hO;function hS(){if(hO)return um;hO=1,um=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,s),"class-feature":r("\\+",o,s),standard:r("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return um}var cm,gO;function Zpe(){if(gO)return cm;gO=1;var e=hS(),t=Ec();cm=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return cm}var dm,mO;function OD(){if(mO)return dm;mO=1;var e=_D();dm=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return dm}var pm,bO;function Qpe(){if(bO)return pm;bO=1;var e=hS(),t=OD();pm=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return pm}var fm,yO;function ID(){if(yO)return fm;yO=1,fm=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(u,c){c=(c||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return u});return RegExp(p,c)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return fm}var hm,vO;function Jpe(){if(vO)return hm;vO=1;var e=ID();hm=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return hm}var gm,SO;function efe(){if(SO)return gm;SO=1,gm=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return gm}var mm,xO;function tfe(){if(xO)return mm;xO=1,mm=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,u={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=l.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var p=l.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return mm}var bm,EO;function nfe(){if(EO)return bm;EO=1,bm=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return bm}var ym,wO;function rfe(){if(wO)return ym;wO=1,ym=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return ym}var vm,_O;function afe(){if(_O)return vm;_O=1;var e=AD(),t=dS();vm=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(r)}return vm}var Sm,TO;function ife(){if(TO)return Sm;TO=1;var e=hn();Sm=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return Sm}var xm,AO;function ofe(){if(AO)return xm;AO=1;var e=hn();xm=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return xm}var Em,kO;function sfe(){if(kO)return Em;kO=1,Em=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return Em}var wm,OO;function lfe(){if(OO)return wm;OO=1,wm=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return wm}var _m,IO;function ufe(){if(IO)return _m;IO=1,_m=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return _m}var Tm,RO;function cfe(){if(RO)return Tm;RO=1,Tm=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return Tm}var Am,CO;function dfe(){if(CO)return Am;CO=1,Am=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return Am}var km,NO;function pfe(){if(NO)return km;NO=1,km=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return km}var Om,DO;function ffe(){if(DO)return Om;DO=1,Om=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return Om}var Im,LO;function hfe(){if(LO)return Im;LO=1,Im=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Im}var Rm,MO;function gfe(){if(MO)return Rm;MO=1,Rm=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Rm}var Cm,PO;function mfe(){if(PO)return Cm;PO=1,Cm=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Cm}var Nm,$O;function bfe(){if($O)return Nm;$O=1,Nm=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return Nm}var Dm,jO;function yfe(){if(jO)return Dm;jO=1,Dm=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Dm}var Lm,FO;function vfe(){if(FO)return Lm;FO=1,Lm=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Lm}var Mm,BO;function Sfe(){if(BO)return Mm;BO=1,Mm=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return Mm}var Pm,UO;function xfe(){if(UO)return Pm;UO=1,Pm=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return Pm}var $m,zO;function Efe(){if(zO)return $m;zO=1,$m=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return $m}var jm,GO;function wfe(){if(GO)return jm;GO=1,jm=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return jm}var Fm,qO;function _fe(){if(qO)return Fm;qO=1,Fm=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return Fm}var Bm,HO;function Tfe(){if(HO)return Bm;HO=1,Bm=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return Bm}var Um,WO;function Afe(){if(WO)return Um;WO=1,Um=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return Um}var zm,VO;function kfe(){if(VO)return zm;VO=1,zm=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===r(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:r(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(u=!0)),(u||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var c=r(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(c=r(i[s-1])+c,i.splice(s-1,1),s--),/^\s+$/.test(c)?i[s]=c:i[s]=new n.Token("plain-text",c,null,c)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return zm}var Gm,YO;function Ofe(){if(YO)return Gm;YO=1,Gm=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return Gm}var qm,KO;function Ife(){if(KO)return qm;KO=1,qm=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(c){return function(){return c}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=n.languages.zig)})})(t)}return qm}var L=$le,Rfe=L;L.register(Yle());L.register(Kle());L.register(Xle());L.register(Zle());L.register(Qle());L.register(Jle());L.register(eue());L.register(tue());L.register(nue());L.register(rue());L.register(aue());L.register(iue());L.register(oue());L.register(sue());L.register(lue());L.register(uue());L.register(cue());L.register(due());L.register(pue());L.register(fue());L.register(hue());L.register(gue());L.register(wD());L.register(_D());L.register(mue());L.register(bue());L.register(yue());L.register(vue());L.register(Sue());L.register(xue());L.register(Eue());L.register(wue());L.register(_ue());L.register(Tue());L.register(Ca());L.register(Aue());L.register(kue());L.register(Oue());L.register(Iue());L.register(Rue());L.register(Cue());L.register(Nue());L.register(Due());L.register(Lue());L.register(lS());L.register(Mue());L.register(Ec());L.register(Pue());L.register($ue());L.register(jue());L.register(Fue());L.register(Bue());L.register(Uue());L.register(zue());L.register(Gue());L.register(que());L.register(Hue());L.register(Wue());L.register(Vue());L.register(Yue());L.register(Kue());L.register(Xue());L.register(Zue());L.register(Que());L.register(Jue());L.register(ece());L.register(tce());L.register(nce());L.register(rce());L.register(ace());L.register(ice());L.register(oce());L.register(sce());L.register(lce());L.register(uce());L.register(cce());L.register(dce());L.register(pce());L.register(fce());L.register(hce());L.register(gce());L.register(mce());L.register(bce());L.register(yce());L.register(vce());L.register(Sce());L.register(xce());L.register(Ece());L.register(wce());L.register(_ce());L.register(Tce());L.register(Ace());L.register(kce());L.register(Oce());L.register(uS());L.register(Ice());L.register(Rce());L.register(Cce());L.register(Nce());L.register(Dce());L.register(Lce());L.register(Mce());L.register(Pce());L.register($ce());L.register(jce());L.register(Fce());L.register(Bce());L.register(Uce());L.register(zce());L.register(Gce());L.register(qce());L.register(Hce());L.register(cS());L.register(Wce());L.register(_c());L.register(Vce());L.register(Yce());L.register(Kce());L.register(Xce());L.register(Zce());L.register(Qce());L.register(Jce());L.register(pS());L.register(ede());L.register(tde());L.register(nde());L.register(AD());L.register(rde());L.register(ade());L.register(ide());L.register(ode());L.register(sde());L.register(lde());L.register(ude());L.register(cde());L.register(dde());L.register(pde());L.register(fde());L.register(hde());L.register(gde());L.register(mde());L.register(bde());L.register(yde());L.register(TD());L.register(vde());L.register(Sde());L.register(xde());L.register(hn());L.register(Ede());L.register(wde());L.register(_de());L.register(Tde());L.register(Ade());L.register(kde());L.register(Ode());L.register(Ide());L.register(Rde());L.register(Cde());L.register(Nde());L.register(Dde());L.register(Lde());L.register(Mde());L.register(Pde());L.register($de());L.register(jde());L.register(Fde());L.register(Bde());L.register(Ude());L.register(zde());L.register(Gde());L.register(qde());L.register(Hde());L.register(Wde());L.register(Vde());L.register(Yde());L.register(Kde());L.register(Xde());L.register(Zde());L.register(Qde());L.register(Jde());L.register(Tc());L.register(epe());L.register(tpe());L.register(npe());L.register(rpe());L.register(ape());L.register(ipe());L.register(ope());L.register(spe());L.register(lpe());L.register(upe());L.register(cpe());L.register(dpe());L.register(ppe());L.register(fpe());L.register(hpe());L.register(gpe());L.register(mpe());L.register(bpe());L.register(ype());L.register(vpe());L.register(Spe());L.register(xpe());L.register(Epe());L.register(wpe());L.register(_pe());L.register(Tpe());L.register(Ape());L.register(kpe());L.register(Ope());L.register(Ipe());L.register(wc());L.register(Rpe());L.register(Cpe());L.register(Npe());L.register(Dpe());L.register(fS());L.register(Lpe());L.register(Mpe());L.register(Ppe());L.register($pe());L.register(jpe());L.register(Fpe());L.register(Bpe());L.register(Upe());L.register(zpe());L.register(Gpe());L.register(qpe());L.register(Hpe());L.register(sS());L.register(Wpe());L.register(Vpe());L.register(Ype());L.register(Kpe());L.register(Xpe());L.register(Zpe());L.register(hS());L.register(Qpe());L.register(Jpe());L.register(efe());L.register(tfe());L.register(nfe());L.register(rfe());L.register(afe());L.register(ife());L.register(kD());L.register(ofe());L.register(dS());L.register(sfe());L.register(lfe());L.register(ufe());L.register(cfe());L.register(dfe());L.register(pfe());L.register(OD());L.register(ffe());L.register(hfe());L.register(gfe());L.register(mfe());L.register(bfe());L.register(yfe());L.register(vfe());L.register(Sfe());L.register(xfe());L.register(Efe());L.register(wfe());L.register(_fe());L.register(Tfe());L.register(Afe());L.register(kfe());L.register(ID());L.register(Ofe());L.register(Ife());const Cfe=St(Rfe);var RD=kae(Cfe,Vle);RD.supportedLanguages=Oae;const Nfe=RD,Dfe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},Lfe=()=>{var m,b,S,T,_,x,A;const e=Kt(),t=F.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=Pt(E=>E),[a,i]=F.useState(!1),[o,s]=F.useState(((m=e==null?void 0:e.properties)==null?void 0:m.boost)||0);F.useEffect(()=>{var E;s(((E=e==null?void 0:e.properties)==null?void 0:E.boost)||0)},[e]),F.useEffect(()=>{const E=t.current,v=()=>{r(null),i(!1)};return E&&E.addEventListener("ended",v),()=>{E&&E.removeEventListener("ended",v)}},[r,a]),F.useEffect(()=>{i(!1)},[e]);const l=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),i(!0)):(t.current.pause(),r(null),i(!1)))};if(!e)return null;const u=!!((b=e.properties)!=null&&b.image_url),c=!!((S=e.properties)!=null&&S.audio_EN),p=e.properties||{},f=(T=e.properties)==null?void 0:T.source_link,h=(_=e.properties)==null?void 0:_.pubkey;return y.jsxs(zfe,{children:[u?y.jsx(Ffe,{children:y.jsx("img",{alt:"img_a11y",onError:E=>{E.currentTarget.src="generic_placeholder_img.png",E.currentTarget.className="default-img"},src:(x=e.properties)==null?void 0:x.image_url})}):null,y.jsxs($fe,{grow:1,justify:"flex-start",pt:u?0:8,shrink:1,children:[y.jsxs(q,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[y.jsx(Ai,{type:e.node_type||""}),f&&y.jsx(Hfe,{href:`${f}${f.includes("?")?"&":"?"}open=system`,target:"_blank",children:y.jsx(Pr,{})})]}),y.jsx(jfe,{children:Object.entries(p).filter(([E])=>E!=="media_url"&&E!=="link"&&E!=="pubkey").map(([E,v])=>y.jsx(Pfe,{hasAudio:c,isPlaying:a,label:Mfe(E),togglePlay:l,value:E==="date"&&v?_i(v*1e3).format("MMMM Do YYYY"):v},E))}),h&&y.jsxs(q,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Lu,{amt:o}),y.jsx(qv,{content:e,count:o,refId:e.ref_id,updateCount:s})]})]}),c&&((A=e.properties)==null?void 0:A.audio_EN)&&y.jsx(qfe,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},Mfe=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),Pfe=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:a})=>{const i=t.length>140,o=Pt(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"?null:y.jsxs(y.Fragment,{children:[y.jsxs(Bfe,{className:lr("node-detail",{"node-detail__long":i}),children:[y.jsxs(vt,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(Gfe,{onClick:a,children:r?y.jsx(xI,{}):y.jsx(EI,{})})]}),e!=="Frame"&&e!=="Code"?y.jsx(vt,{className:"node-detail__value",children:ur(String(t),o)}):y.jsx(Nfe,{language:"javascript",style:Dfe,children:String(t)})]}),y.jsx(Ufe,{})]})},$fe=H(q)` overflow: auto; width: 100%; flex-grow: 1; @@ -1917,7 +1917,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 1.3em; height: 1.3em; } -`,Wfe=()=>{var s,l;const[e,t]=F.useState(!1),n=Kt(),r=!!(n!=null&&n.source_link),a=F.useRef(null),i=Pt(u=>u.currentSearch),o=u=>{u.stopPropagation(),u.currentTarget.blur(),t(!e)};return F.useEffect(()=>{var u,c;e?(u=a.current)==null||u.play():(c=a.current)==null||c.pause()},[e]),y.jsxs(q,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:r?62:0,shrink:1,children:[r&&y.jsxs(Vfe,{children:[y.jsx(vI,{color:j.GRAY6}),y.jsx(Xfe,{children:n==null?void 0:n.source_link}),y.jsx(Yfe,{href:`${n==null?void 0:n.source_link}?open=system`,onClick:u=>u.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),(s=n==null?void 0:n.audio)!=null&&s.length?y.jsxs(q,{justify:"flex-start",p:12,children:[y.jsx(qt,{onClick:u=>o(u),startIcon:e?y.jsx(Ru,{}):y.jsx(Cy,{}),children:e?"Pause":"Play"}),y.jsx(Zfe,{ref:a,src:((l=n.audio[0])==null?void 0:l.link)||"",children:y.jsx("track",{kind:"captions"})})]}):null,y.jsx(Kfe,{grow:1,justify:"flex-start",p:12,shrink:1,children:y.jsx(vt,{color:"primaryText1",kind:"regular",children:ur((n==null?void 0:n.text)||"",i)})})]})},Vfe=H(q)` +`,Wfe=()=>{var s,l;const[e,t]=F.useState(!1),n=Kt(),r=!!(n!=null&&n.source_link),a=F.useRef(null),i=Pt(u=>u.currentSearch),o=u=>{u.stopPropagation(),u.currentTarget.blur(),t(!e)};return F.useEffect(()=>{var u,c;e?(u=a.current)==null||u.play():(c=a.current)==null||c.pause()},[e]),y.jsxs(q,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:r?62:0,shrink:1,children:[r&&y.jsxs(Vfe,{children:[y.jsx(SI,{color:j.GRAY6}),y.jsx(Xfe,{children:n==null?void 0:n.source_link}),y.jsx(Yfe,{href:`${n==null?void 0:n.source_link}?open=system`,onClick:u=>u.stopPropagation(),target:"_blank",children:y.jsx(Pr,{})})]}),(s=n==null?void 0:n.audio)!=null&&s.length?y.jsxs(q,{justify:"flex-start",p:12,children:[y.jsx(qt,{onClick:u=>o(u),startIcon:e?y.jsx(Ru,{}):y.jsx(Cy,{}),children:e?"Pause":"Play"}),y.jsx(Zfe,{ref:a,src:((l=n.audio[0])==null?void 0:l.link)||"",children:y.jsx("track",{kind:"captions"})})]}):null,y.jsx(Kfe,{grow:1,justify:"flex-start",p:12,shrink:1,children:y.jsx(vt,{color:"primaryText1",kind:"regular",children:ur((n==null?void 0:n.text)||"",i)})})]})},Vfe=H(q)` top: 0px; position: absolute; border-radius: 16px 16px 0px 0px; @@ -1955,7 +1955,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,Zfe=H.audio` height: 0; width: 0; -`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-5d1560d4.js").then(e=>e.Y),["assets/YouTube-5d1560d4.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-ec95851e.js").then(e=>e.S),["assets/SoundCloud-ec95851e.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-be96d162.js").then(e=>e.V),["assets/Vimeo-be96d162.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-daf1a2ca.js").then(e=>e.F),["assets/Facebook-daf1a2ca.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-abf88c0e.js").then(e=>e.S),["assets/Streamable-abf88c0e.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-d7d9727d.js").then(e=>e.W),["assets/Wistia-d7d9727d.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-58899c17.js").then(e=>e.T),["assets/Twitch-58899c17.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-f43a72c1.js").then(e=>e.D),["assets/DailyMotion-f43a72c1.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-d94e55a6.js").then(e=>e.M),["assets/Mixcloud-d94e55a6.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-e4f3572b.js").then(e=>e.V),["assets/Vidyard-e4f3572b.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-8bcc4a6a.js").then(e=>e.K),["assets/Kaltura-8bcc4a6a.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-9d32e443.js").then(e=>e.F),["assets/FilePlayer-9d32e443.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge(Nj);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt},Ut=()=>{},wge={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ut},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),_t(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Mge));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-dd642161.js").then(e=>e.P),["assets/Preview-dd642161.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(Dj,{})}):y.jsx(Lj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Pj,{}):y.jsx(Mj,{})})]})]})},fme=H(q)` +`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-8d639dcb.js").then(e=>e.Y),["assets/YouTube-8d639dcb.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-87105b88.js").then(e=>e.S),["assets/SoundCloud-87105b88.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-0612272f.js").then(e=>e.V),["assets/Vimeo-0612272f.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-72db1bb1.js").then(e=>e.F),["assets/Facebook-72db1bb1.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-2865f475.js").then(e=>e.S),["assets/Streamable-2865f475.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-30b5d4b3.js").then(e=>e.W),["assets/Wistia-30b5d4b3.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-7cd6ba27.js").then(e=>e.T),["assets/Twitch-7cd6ba27.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-6aad69b1.js").then(e=>e.D),["assets/DailyMotion-6aad69b1.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-df4ac210.js").then(e=>e.M),["assets/Mixcloud-df4ac210.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-6c124b56.js").then(e=>e.V),["assets/Vidyard-6c124b56.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-87b4078c.js").then(e=>e.K),["assets/Kaltura-87b4078c.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-55e9654a.js").then(e=>e.F),["assets/FilePlayer-55e9654a.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge($j);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt},Ut=()=>{},wge={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Ut},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),_t(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Mge));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-7d6901d8.js").then(e=>e.P),["assets/Preview-7d6901d8.js","assets/index-bde6e5ef.js","assets/index-b4d03b7b.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(jj,{})}):y.jsx(Fj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Uj,{}):y.jsx(Bj,{})})]})]})},fme=H(q)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -2101,7 +2101,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: ${e=>e.isFullScreen?"80px auto":"0"}; width: 100%; cursor: pointer; -`,kme=F.memo(xme),Ome=({open:e})=>{const{setSelectedNode:t}=$j(i=>i),n=Kt(),{setSidebarOpen:r}=Pt(i=>i),{playingNode:a}=Cu(i=>i);return y.jsx(ni,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(Ime,{children:[y.jsx(kme,{hidden:(n==null?void 0:n.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),y.jsx(Cme,{children:y.jsx(Jfe,{})}),y.jsx(Rme,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(jj,{})}),y.jsx(Nme,{onClick:()=>{r(!1)},children:y.jsx(AI,{})})]})})},Ime=H(q)(({theme:e})=>({position:"relative",background:j.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),Rme=H(q)` +`,kme=F.memo(xme),Ome=({open:e})=>{const{setSelectedNode:t}=zj(i=>i),n=Kt(),{setSidebarOpen:r}=Pt(i=>i),{playingNode:a}=Cu(i=>i);return y.jsx(ni,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(Ime,{children:[y.jsx(kme,{hidden:(n==null?void 0:n.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),y.jsx(Cme,{children:y.jsx(Jfe,{})}),y.jsx(Rme,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(Gj,{})}),y.jsx(Nme,{onClick:()=>{r(!1)},children:y.jsx(AI,{})})]})})},Ime=H(q)(({theme:e})=>({position:"relative",background:j.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),Rme=H(q)` font-size: 32px; color: ${j.white}; cursor: pointer; @@ -2119,7 +2119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,Nme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Dme=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Pt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(Lme,{onClick:()=>{e(!0)},children:y.jsx(Fj,{})})})},Lme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),dL=390,Mme=F.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Pt(a=>a),r=sj();return y.jsxs(jme,{ref:t,id:"sidebar-wrapper",children:[y.jsx(Bme,{}),r?y.jsx(TB,{}):y.jsx(n3,{}),!e&&y.jsx(Fme,{onClick:()=>{n(!1)},children:y.jsx(AI,{})})]})}),Pme=["topic","person","guest","event","organization","place","project","software"],$me=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},pL=()=>{const{sidebarIsOpen:e}=Pt(r=>r),t=Kt(),n=!!t&&e&&!Pme.includes(t.node_type)&&!$me(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(ni,{direction:"right",in:e,children:y.jsx(Mme,{subViewOpen:n})}),y.jsx(Ome,{open:n}),!e&&y.jsx(Dme,{})]})},jme=H(q)(({theme:e})=>({position:"relative",background:j.BG1,height:"100vh",width:"100%",zIndex:1,[e.breakpoints.up("sm")]:{width:dL}})),Fme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Bme=H(q)` +`,Nme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Dme=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Pt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(Lme,{onClick:()=>{e(!0)},children:y.jsx(qj,{})})})},Lme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),dL=390,Mme=F.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Pt(a=>a),r=mj();return y.jsxs(jme,{ref:t,id:"sidebar-wrapper",children:[y.jsx(Bme,{}),r?y.jsx(TB,{}):y.jsx(n3,{}),!e&&y.jsx(Fme,{onClick:()=>{n(!1)},children:y.jsx(AI,{})})]})}),Pme=["topic","person","guest","event","organization","place","project","software"],$me=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},pL=()=>{const{sidebarIsOpen:e}=Pt(r=>r),t=Kt(),n=!!t&&e&&!Pme.includes(t.node_type)&&!$me(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(ni,{direction:"right",in:e,children:y.jsx(Mme,{subViewOpen:n})}),y.jsx(Ome,{open:n}),!e&&y.jsx(Dme,{})]})},jme=H(q)(({theme:e})=>({position:"relative",background:j.BG1,height:"100vh",width:"100%",zIndex:1,[e.breakpoints.up("sm")]:{width:dL}})),Fme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Bme=H(q)` flex: 0 0 64px; background: ${j.BG2}; -`;pL.displayName="Sidebar";const ebe=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:dL,SideBar:pL},Symbol.toStringTag,{value:"Module"}));export{ebe as i,Yhe as p,kc as u}; +`;pL.displayName="Sidebar";const Qme=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:dL,SideBar:pL},Symbol.toStringTag,{value:"Module"}));export{Qme as i,Yhe as p,kc as u}; diff --git a/build/assets/index-7e993c6c.js b/build/assets/index-a24c814f.js similarity index 62% rename from build/assets/index-7e993c6c.js rename to build/assets/index-a24c814f.js index 51a7ef4a6..c362fa2dc 100644 --- a/build/assets/index-7e993c6c.js +++ b/build/assets/index-a24c814f.js @@ -1,9 +1,9 @@ -import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y as Ji,J as Ad,A as Na,U as Xl,w as Zl,V as Md,C as Dd,R as Pd,X as Nd,H as Id,Y as Rd,O as Fd}from"./index-b416b1a9.js";import{u as Nt,a as be,m as ho,b as fo,e as Ia,L as Ld,c as Vd,d as Ud,f as zd,g as Ql,H as tr,t as Kl,T as jd,h as Bd,i as qd,C as Wd,P as Hd,j as Yd}from"./index-39784bea.js";import{P as ei,B as Jl,c as Nc,H as Gd,E as $d,_ as Bt,d as qe,e as We,f as oe,g as Ra,h as po,T as Ic,i as Xd,j as Zd,k as Qd,l as Kd,m as Jd,n as tf,D as ef,I as sf,o as nf,u as fr,p as rf,q as of,r as af,s as cf,N as lf,t as uf,O as hf,v as df}from"./index-1f5ac1eb.js";import{T as ff}from"./TextareaAutosize-2d5341b4.js";import{D as pr,F as pf,V as at,L as mf,a as _f,M as gn,b as _t,S as gf,B as yf,c as tu,P as Ro,d as vf,e as Mr,f as qs,T as mo,g as ra,h as kf,i as Rc,j as er,Q as xf,G as Tf,C as _o,k as wf,l as eu,W as bf,m as Cf,n as Sf,E as Ef,o as Of,p as Af,q as go,r as Mf,s as Fc,t as Lc}from"./three.module-26d3b3c0.js";import{M as Df,a as Pf}from"./index.esm-258646ab.js";import{u as Nf}from"./index-8344fca4.js";import{C as If}from"./ClipLoader-a0a9ce2c.js";function Rf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const Ff=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Vc=Ff?A.useEffect:A.useLayoutEffect;function Lf(i){const t=typeof i=="function"?Rf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=A.useReducer(m=>m+1,0),o=t.getState(),a=A.useRef(o),c=A.useRef(s),l=A.useRef(n),u=A.useRef(!1),h=A.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),Vc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=A.useRef(o);Vc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return A.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let si=0;const Vf=Lf(i=>(pr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},pr.onLoad=()=>{i({active:!1})},pr.onError=t=>i(e=>({errors:[...e.errors,t]})),pr.onProgress=(t,e,s)=>{e===s&&(si=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Uf=i=>`Loading ${i.toFixed(2)}%`;function zf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Uf,initialState:r=o=>o}){const{active:o,progress:a}=Vf(),c=A.useRef(0),l=A.useRef(0),u=A.useRef(null),[h,d]=A.useState(r(o));A.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=A.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?A.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},A.createElement("div",null,A.createElement("div",{style:{...mr.inner,...t}},A.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),A.createElement("span",{ref:u,style:{...mr.data,...s}})))):null}const mr={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},Fo=new pf,Lo=new at,yn=new at,Re=new at,rs=new at,Ge=new at,os=new at,as=new at,ni=new at,ii=new at,ri=new at,_r=new at,oi=new at,ai=new at,ci=new at;class jf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Fo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ge.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),oi.copy(rs).sub(Re),ai.copy(Ge).sub(Re),ci.copy(os).sub(Re),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Re),ai.add(Re),ci.add(Re);var s=Fo.planes;s[0].setFromCoplanarPoints(Re,rs,Ge),s[1].setFromCoplanarPoints(Re,Ge,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ci,ai,oi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ge.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Fo.planes;s[0].setFromCoplanarPoints(rs,ni,ii),s[1].setFromCoplanarPoints(Ge,ii,ri),s[2].setFromCoplanarPoints(ri,_r,as),s[3].setFromCoplanarPoints(_r,ni,rs),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ri,ii,ni),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Lo.copy(e.geometry.boundingSphere.center),Lo.applyMatrix4(e.matrixWorld),t.containsPoint(Lo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(P[P.length-1]):X.identity())}function n(I){const F=new qs,S=new _t,D=new _t,H=new _t;let N=!0,V=!1;const st=I.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(I){if(!(!I.sheet||!I.sheet.cssRules||!I.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Pc=Math.sqrt(Z);F=Pc*F,S=Pc*S,K=F*F,B=S*S}const tt=K*E+B*O,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Yt=vt*F*pt/S,Ie=-vt*S*J/F,ti=Math.cos(D)*Yt-Math.sin(D)*Ie+(V.x+it.x)/2,Io=Math.sin(D)*Yt+Math.cos(D)*Ie+(V.y+it.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Od=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);I.currentPath.absellipse(ti,Io,F,S,dr,dr+Od,N===0,D)}function a(I,F,S,D){const H=I*S+F*D,N=Math.sqrt(I*I+F*F)*Math.sqrt(S*S+D*D);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return I*D-F*S<0&&(V=-V),V}function c(I){const F=w(I.getAttribute("x")||0),S=w(I.getAttribute("y")||0),D=w(I.getAttribute("rx")||I.getAttribute("ry")||0),H=w(I.getAttribute("ry")||I.getAttribute("rx")||0),N=w(I.getAttribute("width")),V=w(I.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+D,S),st.lineTo(F+N-D,S),(D!==0||H!==0)&&st.bezierCurveTo(F+N-D*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(D!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-D*it,S+V,F+N-D,S+V),st.lineTo(F+D,S+V),(D!==0||H!==0)&&st.bezierCurveTo(F+D*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(D!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+D*it,S,F+D,S),st}function l(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!0,D}function u(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!1,D}function h(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("r")||0),H=new Ro;H.absarc(F,S,D,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("rx")||0),H=w(I.getAttribute("ry")||0),N=new Ro;N.absellipse(F,S,D,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(I){const F=w(I.getAttribute("x1")||0),S=w(I.getAttribute("y1")||0),D=w(I.getAttribute("x2")||0),H=w(I.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(D,H),N.currentPath.autoClose=!1,N}function _(I,F){F=Object.assign({},F);let S={};if(I.hasAttribute("class")){const V=I.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(P[P.length-1]),X.copy(F),P.push(F),F}function y(I){const F=new gn,S=U;if(I.nodeName==="use"&&(I.hasAttribute("x")||I.hasAttribute("y"))){const D=w(I.getAttribute("x")),H=w(I.getAttribute("y"));F.translate(D,H)}if(I.hasAttribute("transform")){const D=I.getAttribute("transform").split(")");for(let H=D.length-1;H>=0;H--){const N=D[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,W),W.identity().translate(pt,K),S.multiplyMatrices(W,Y)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function x(I,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const D=T(F),H=I.subPaths;for(let N=0,V=H.length;N=1||Y<0||Y>1)return null;if(P===0&&W===0){for(let j=0;j<2;j++)if(o(j===0?b:w,m,v),n.loc==s.ORIGIN){const z=j===0?b:w;return{x:z.x,y:z.y,t:n.t}}else if(n.loc==s.BETWEEN){const z=+(g+n.t*(y-g)).toPrecision(10),X=+(k+n.t*(C-k)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?b:w,m,v),n.loc==s.ORIGIN){const Q=X===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(k+G*(C-k)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,x=m.y-v.y,T=w*x-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*x<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)R.t<=M.t+Number.EPSILON&&R.t>=M.t-Number.EPSILON)===void 0&&(b.push(M),w.push(new _t(M.x,M.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,x)=>y.point.x-x.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const x=[new _t(b,y.y),new _t(w,y.y)],T=c(x,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const k=[],C=[];T.forEach(U=>{U.identifier===m.identifier?k.push(U):C.push(U)});const M=k[0].point.x,R=[];let P=0;for(;P0&&R[R.length-1]===C[P].identifier?R.pop():R.push(C[P].identifier),P++;if(R.push(m.identifier),g==="evenodd"){const U=R.length%2===0,W=R[R.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,G=null;for(let Y=0;Y{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let x=0;xb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:gf.isClockWise(v),identifier:u++,boundingBox:new yf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new tu;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],x=new Ro;x.curves=y.curves,b.holes.push(x)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(xi.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new vf;return c.setAttribute("position",new Mr(r,3)),c.setAttribute("normal",new Mr(o,3)),c.setAttribute("uv",new Mr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,x=new _t,T=new _t,k=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const M=t.length;if(M<2)return 0;const R=t[0].equals(t[M-1]);let P,U=t[0],W;const G=e.strokeWidth/2,Y=1/(M-1);let j=0,z,X,Q,et,I=!1,F=0,S=c*3,D=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&O.push(K[E]);return O.push(K[K.length-1]),O}}}function Bf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=Nt(),[f,m]=A.useState(!1),[v,b]=A.useReducer((x,{object:T,shift:k})=>T===void 0?[]:Array.isArray(T)?T:k?x.includes(T)?x.filter(C=>C!==T):[T,...x]:x[0]===T?[]:[T],[]);A.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=A.useCallback(x=>{x.stopPropagation(),b({object:o([x.object])[0],shift:t&&x.shiftKey})},[]),g=A.useCallback(x=>!f&&b({}),[f]),y=A.useRef(null);return A.useEffect(()=>{if(!i||!t)return;const x=new jf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const k=new _t,C=new _t,M=new _t,R=_().events.enabled,P=d==null?void 0:d.enabled;let U=!1;function W(I,F){const{offsetX:S,offsetY:D}=I,{width:H,height:N}=p;F.set(S/H*2-1,-(D/N)*2+1)}function G(I){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${I.clientX}px`,T.style.top=`${I.clientY}px`,T.style.width="0px",T.style.height="0px",k.x=I.clientX,k.y=I.clientY}function Y(I){M.x=Math.max(k.x,I.clientX),M.y=Math.max(k.y,I.clientY),C.x=Math.min(k.x,I.clientX),C.y=Math.min(k.y,I.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${M.x-C.x}px`,T.style.height=`${M.y-C.y}px`}function j(){if(U){var I;d&&(d.enabled=P),c({enabled:R}),U=!1,(I=T.parentElement)==null||I.removeChild(T)}}function z(I){I.shiftKey&&(G(I),W(I,x.startPoint))}let X=[];function Q(I){if(U){Y(I),W(I,x.endPoint);const F=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);Bf(F,X)||(X=F,b({object:o(F)}))}}function et(I){U&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),A.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),A.createElement(qf.Provider,{value:v},e))}const su=A.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=A.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),A.createElement("group",Oe({ref:ho([a,o])},r))}),Uc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=Nt(n=>n.gl),s=fo(mo,Uc(i)?Object.values(i):i);if(A.useLayoutEffect(()=>{t==null||t(s)},[t]),A.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),Uc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>fo.preload(mo,i);Ks.clear=i=>fo.clear(mo,i);const Hf=A.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=fo(xi,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>xi.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return A.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),A.createElement("object3D",Oe({ref:l},c),A.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return A.createElement(A.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&xi.createShapes(d).map((m,v)=>A.createElement("mesh",Oe({key:v},o),A.createElement("shapeGeometry",{args:[m]}),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ra,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>A.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ra,depthWrite:!1},r)))))})))});/*! +import{r as D,e as Oe,j as L,t as Zl,w as Ut,x as Tt,F as ys,z as Xl,v as Us,E as Ql,D as tr,V as Dd,G as Na,a6 as Kl,y as Jl,a7 as Pd,K as Id,b as Nd,M as pr,a8 as Rd,a9 as Fd,aa as Ld,Q as Vd,ab as Ud,a2 as jd}from"./index-bde6e5ef.js";import{u as It,a as be,m as fo,b as po,e as Ra,L as zd,c as Bd,d as qd,f as Wd,g as tu,H as er,t as eu,T as Hd,h as Gd,i as Yd,C as $d,P as Zd,j as Xd}from"./index-04235dc5.js";import{P as si,c as Nc,H as Qd,E as Kd,_ as qt,d as qe,u as We,e as oe,f as Fa,g as mo,T as Rc,h as Jd,i as tf,j as ef,k as sf,l as nf,m as rf,D as of,I as af,n as cf,o as lf,p as Fc,q as uf,r as hf,R as df,s as ff,t as pf,N as mf,v as _f,O as gf,w as yf}from"./index-5c574277.js";import{T as vf}from"./TextareaAutosize-f9a84af0.js";import{D as mr,F as xf,V as at,L as kf,a as Tf,M as gn,b as _t,S as wf,B as bf,c as su,P as Fo,d as Cf,e as Dr,f as qs,T as _o,g as oa,h as Sf,i as Lc,j as sr,Q as Ef,G as Of,C as go,k as Af,l as nu,W as Mf,m as Df,n as Pf,E as If,o as Nf,p as Rf,q as yo,r as Ff,s as Vc,t as Uc}from"./three.module-26d3b3c0.js";import{u as Lf}from"./index-2a7ba5ab.js";import{C as Vf}from"./ClipLoader-2c26140d.js";function Uf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const jf=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),jc=jf?D.useEffect:D.useLayoutEffect;function zf(i){const t=typeof i=="function"?Uf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=D.useReducer(m=>m+1,0),o=t.getState(),a=D.useRef(o),c=D.useRef(s),l=D.useRef(n),u=D.useRef(!1),h=D.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),jc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=D.useRef(o);jc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return D.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let ni=0;const Bf=zf(i=>(mr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-ni)/(s-ni)*100})},mr.onLoad=()=>{i({active:!1})},mr.onError=t=>i(e=>({errors:[...e.errors,t]})),mr.onProgress=(t,e,s)=>{e===s&&(ni=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-ni)/(s-ni)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),qf=i=>`Loading ${i.toFixed(2)}%`;function Wf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=qf,initialState:r=o=>o}){const{active:o,progress:a}=Bf(),c=D.useRef(0),l=D.useRef(0),u=D.useRef(null),[h,d]=D.useState(r(o));D.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=D.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?D.createElement("div",{style:{..._r.container,opacity:o?1:0,...i}},D.createElement("div",null,D.createElement("div",{style:{..._r.inner,...t}},D.createElement("div",{style:{..._r.bar,transform:`scaleX(${a/100})`,...e}}),D.createElement("span",{ref:u,style:{..._r.data,...s}})))):null}const _r={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},Lo=new xf,Vo=new at,yn=new at,Re=new at,rs=new at,Ye=new at,os=new at,as=new at,ii=new at,ri=new at,oi=new at,gr=new at,ai=new at,ci=new at,li=new at;class Hf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Lo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ye.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ye.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ai.copy(rs).sub(Re),ci.copy(Ye).sub(Re),li.copy(os).sub(Re),ai.normalize(),ci.normalize(),li.normalize(),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),li.multiplyScalar(this.deep),ai.add(Re),ci.add(Re),li.add(Re);var s=Lo.planes;s[0].setFromCoplanarPoints(Re,rs,Ye),s[1].setFromCoplanarPoints(Re,Ye,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ye,os,as),s[5].setFromCoplanarPoints(li,ci,ai),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ye.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ii.set(n,r,1),ri.set(o,r,1),oi.set(o,a,1),gr.set(n,a,1),rs.unproject(this.camera),Ye.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),oi.unproject(this.camera),gr.unproject(this.camera);var s=Lo.planes;s[0].setFromCoplanarPoints(rs,ii,ri),s[1].setFromCoplanarPoints(Ye,ri,oi),s[2].setFromCoplanarPoints(oi,gr,as),s[3].setFromCoplanarPoints(gr,ii,rs),s[4].setFromCoplanarPoints(Ye,os,as),s[5].setFromCoplanarPoints(oi,ri,ii),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Vo.copy(e.geometry.boundingSphere.center),Vo.applyMatrix4(e.matrixWorld),t.containsPoint(Vo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?Z.copy(M[M.length-1]):Z.identity())}function n(R){const F=new qs,S=new _t,P=new _t,H=new _t;let N=!0,V=!1;const st=R.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(R){if(!(!R.sheet||!R.sheet.cssRules||!R.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Ic=Math.sqrt(X);F=Ic*F,S=Ic*S,K=F*F,B=S*S}const tt=K*E+B*A,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Gt=vt*F*pt/S,Ne=-vt*S*J/F,ei=Math.cos(P)*Gt-Math.sin(P)*Ne+(V.x+it.x)/2,Ro=Math.sin(P)*Gt+Math.cos(P)*Ne+(V.y+it.y)/2,fr=a(1,0,(J-Gt)/F,(pt-Ne)/S),Md=a((J-Gt)/F,(pt-Ne)/S,(-J-Gt)/F,(-pt-Ne)/S)%(Math.PI*2);R.currentPath.absellipse(ei,Ro,F,S,fr,fr+Md,N===0,P)}function a(R,F,S,P){const H=R*S+F*P,N=Math.sqrt(R*R+F*F)*Math.sqrt(S*S+P*P);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return R*P-F*S<0&&(V=-V),V}function c(R){const F=w(R.getAttribute("x")||0),S=w(R.getAttribute("y")||0),P=w(R.getAttribute("rx")||R.getAttribute("ry")||0),H=w(R.getAttribute("ry")||R.getAttribute("rx")||0),N=w(R.getAttribute("width")),V=w(R.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+P,S),st.lineTo(F+N-P,S),(P!==0||H!==0)&&st.bezierCurveTo(F+N-P*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(P!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-P*it,S+V,F+N-P,S+V),st.lineTo(F+P,S+V),(P!==0||H!==0)&&st.bezierCurveTo(F+P*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(P!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+P*it,S,F+P,S),st}function l(R){function F(N,V,it){const st=w(V),nt=w(it);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new qs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!0,P}function u(R){function F(N,V,it){const st=w(V),nt=w(it);H===0?P.moveTo(st,nt):P.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,P=new qs;let H=0;return R.getAttribute("points").replace(S,F),P.currentPath.autoClose=!1,P}function h(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),P=w(R.getAttribute("r")||0),H=new Fo;H.absarc(F,S,P,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(R){const F=w(R.getAttribute("cx")||0),S=w(R.getAttribute("cy")||0),P=w(R.getAttribute("rx")||0),H=w(R.getAttribute("ry")||0),N=new Fo;N.absellipse(F,S,P,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(R){const F=w(R.getAttribute("x1")||0),S=w(R.getAttribute("y1")||0),P=w(R.getAttribute("x2")||0),H=w(R.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(P,H),N.currentPath.autoClose=!1,N}function _(R,F){F=Object.assign({},F);let S={};if(R.hasAttribute("class")){const V=R.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(M[M.length-1]),Z.copy(F),M.push(F),F}function y(R){const F=new gn,S=U;if(R.nodeName==="use"&&(R.hasAttribute("x")||R.hasAttribute("y"))){const P=w(R.getAttribute("x")),H=w(R.getAttribute("y"));F.translate(P,H)}if(R.hasAttribute("transform")){const P=R.getAttribute("transform").split(")");for(let H=P.length-1;H>=0;H--){const N=P[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),Y.identity().rotate(J),G.multiplyMatrices(Y,W),W.identity().translate(pt,K),S.multiplyMatrices(W,G)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function k(R,F){function S(N){j.set(N.x,N.y,1).applyMatrix3(F),N.set(j.x,j.y)}const P=T(F),H=R.subPaths;for(let N=0,V=H.length;N=1||G<0||G>1)return null;if(M===0&&W===0){for(let z=0;z<2;z++)if(o(z===0?b:w,m,v),n.loc==s.ORIGIN){const j=z===0?b:w;return{x:j.x,y:j.y,t:n.t}}else if(n.loc==s.BETWEEN){const j=+(g+n.t*(y-g)).toPrecision(10),Z=+(x+n.t*(C-x)).toPrecision(10);return{x:j,y:Z,t:n.t}}return null}else{for(let Z=0;Z<2;Z++)if(o(Z===0?b:w,m,v),n.loc==s.ORIGIN){const Q=Z===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const z=+(g+Y*(y-g)).toPrecision(10),j=+(x+Y*(C-x)).toPrecision(10);return{x:z,y:j,t:Y}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,k=m.y-v.y,T=w*k-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*k<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)I.t<=O.t+Number.EPSILON&&I.t>=O.t-Number.EPSILON)===void 0&&(b.push(O),w.push(new _t(O.x,O.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,k)=>y.point.x-k.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const k=[new _t(b,y.y),new _t(w,y.y)],T=c(k,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const x=[],C=[];T.forEach(U=>{U.identifier===m.identifier?x.push(U):C.push(U)});const O=x[0].point.x,I=[];let M=0;for(;M0&&I[I.length-1]===C[M].identifier?I.pop():I.push(C[M].identifier),M++;if(I.push(m.identifier),g==="evenodd"){const U=I.length%2===0,W=I[I.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,Y=null;for(let G=0;G{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let k=0;kb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:wf.isClockWise(v),identifier:u++,boundingBox:new bf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new su;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],k=new Fo;k.curves=y.curves,b.holes.push(k)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(Ti.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new Cf;return c.setAttribute("position",new Dr(r,3)),c.setAttribute("normal",new Dr(o,3)),c.setAttribute("uv",new Dr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,k=new _t,T=new _t,x=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const O=t.length;if(O<2)return 0;const I=t[0].equals(t[O-1]);let M,U=t[0],W;const Y=e.strokeWidth/2,G=1/(O-1);let z=0,j,Z,Q,et,R=!1,F=0,S=c*3,P=c*2;H(t[0],t[1],l).multiplyScalar(Y),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&A.push(K[E]);return A.push(K[K.length-1]),A}}}function Gf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=It(),[f,m]=D.useState(!1),[v,b]=D.useReducer((k,{object:T,shift:x})=>T===void 0?[]:Array.isArray(T)?T:x?k.includes(T)?k.filter(C=>C!==T):[T,...k]:k[0]===T?[]:[T],[]);D.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=D.useCallback(k=>{k.stopPropagation(),b({object:o([k.object])[0],shift:t&&k.shiftKey})},[]),g=D.useCallback(k=>!f&&b({}),[f]),y=D.useRef(null);return D.useEffect(()=>{if(!i||!t)return;const k=new Hf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const x=new _t,C=new _t,O=new _t,I=_().events.enabled,M=d==null?void 0:d.enabled;let U=!1;function W(R,F){const{offsetX:S,offsetY:P}=R,{width:H,height:N}=p;F.set(S/H*2-1,-(P/N)*2+1)}function Y(R){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${R.clientX}px`,T.style.top=`${R.clientY}px`,T.style.width="0px",T.style.height="0px",x.x=R.clientX,x.y=R.clientY}function G(R){O.x=Math.max(x.x,R.clientX),O.y=Math.max(x.y,R.clientY),C.x=Math.min(x.x,R.clientX),C.y=Math.min(x.y,R.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${O.x-C.x}px`,T.style.height=`${O.y-C.y}px`}function z(){if(U){var R;d&&(d.enabled=M),c({enabled:I}),U=!1,(R=T.parentElement)==null||R.removeChild(T)}}function j(R){R.shiftKey&&(Y(R),W(R,k.startPoint))}let Z=[];function Q(R){if(U){G(R),W(R,k.endPoint);const F=k.select().sort(S=>S.uuid).filter(S=>S.isMesh);Gf(F,Z)||(Z=F,b({object:o(F)}))}}function et(R){U&&z()}return document.addEventListener("pointerdown",j,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",j),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),D.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),D.createElement(Yf.Provider,{value:v},e))}const iu=D.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=D.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),D.createElement("group",Oe({ref:fo([a,o])},r))}),zc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=It(n=>n.gl),s=po(_o,zc(i)?Object.values(i):i);if(D.useLayoutEffect(()=>{t==null||t(s)},[t]),D.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),zc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>po.preload(_o,i);Ks.clear=i=>po.clear(_o,i);const Zf=D.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=po(Ti,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>Ti.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return D.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),D.createElement("object3D",Oe({ref:l},c),D.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return D.createElement(D.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Ti.createShapes(d).map((m,v)=>D.createElement("mesh",Oe({key:v},o),D.createElement("shapeGeometry",{args:[m]}),D.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:oa,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>D.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),D.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:oa,depthWrite:!1},r)))))})))});/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu * Released under the MIT License. - */const ct={LEFT:1,RIGHT:2,MIDDLE:4},q=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),vn={NONE:0,IN:1,OUT:-1};function Ws(i){return i.isPerspectiveCamera}function ws(i){return i.isOrthographicCamera}const kn=Math.PI*2,zc=Math.PI/2,nu=1e-5,li=Math.PI/180;function Fe(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=nu){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function Bc(i,t,e,s,n=1/0,r,o){s=Math.max(1e-4,s);const a=2/s,c=a*r,l=1/(1+c+.48*c*c+.235*c*c*c);let u=t.x,h=t.y,d=t.z,p=i.x-u,_=i.y-h,f=i.z-d;const m=u,v=h,b=d,w=n*s,g=w*w,y=p*p+_*_+f*f;if(y>g){const G=Math.sqrt(y);p=p/G*w,_=_/G*w,f=f/G*w}u=i.x-p,h=i.y-_,d=i.z-f;const x=(e.x+a*p)*r,T=(e.y+a*_)*r,k=(e.z+a*f)*r;e.x=(e.x-a*x)*l,e.y=(e.y-a*T)*l,e.z=(e.z-a*k)*l,o.x=u+(p+x)*l,o.y=h+(_+T)*l,o.z=d+(f+k)*l;const C=m-i.x,M=v-i.y,R=b-i.z,P=o.x-m,U=o.y-v,W=o.z-b;return C*P+M*U+R*W>0&&(o.x=m,o.y=v,o.z=b,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-b)/r),o}function Vo(i,t){t.set(0,0),i.forEach(e=>{t.x+=e.clientX,t.y+=e.clientY}),t.x/=i.length,t.y/=i.length}function Uo(i,t){return ws(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class Yf{constructor(){this._listeners={}}addEventListener(t,e){const s=this._listeners;s[t]===void 0&&(s[t]=[]),s[t].indexOf(e)===-1&&s[t].push(e)}hasEventListener(t,e){const s=this._listeners;return s[t]!==void 0&&s[t].indexOf(e)!==-1}removeEventListener(t,e){const n=this._listeners[t];if(n!==void 0){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}removeAllEventListeners(t){if(!t){this._listeners={};return}Array.isArray(this._listeners[t])&&(this._listeners[t].length=0)}dispatchEvent(t){const s=this._listeners[t.type];if(s!==void 0){t.target=this;const n=s.slice(0);for(let r=0,o=n.length;r{},this._enabled=!0,this._state=q.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=vn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new ot.Vector3,this._focalOffsetVelocity=new ot.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,x)=>{let T,k;if(Ws(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),M=this._camera.getEffectiveFOV()*li,R=C.length()*Math.tan(M*.5);T=this.truckSpeed*g*R/this._elementRect.height,k=this.truckSpeed*y*R/this._elementRect.height}else if(ws(this._camera)){const C=this._camera;T=g*(C.right-C.left)/C.zoom/this._elementRect.width,k=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(x?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(T,0,!0),this.forward(-k,!0)):x?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y+k,this._focalOffsetEnd.z,!0):this.truck(T,k,!0)},this._rotateInternal=(g,y)=>{const x=kn*this.azimuthRotateSpeed*g/this._elementRect.height,T=kn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(x,T,!0)},this._dollyInternal=(g,y,x)=>{const T=Math.pow(.95,-g*this.dollySpeed),k=this._sphericalEnd.radius,C=this._sphericalEnd.radius*T,M=Fe(C,this.minDistance,this.maxDistance),R=M-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(R,!0),this._dollyToNoClamp(M,!0)):this._dollyToNoClamp(M,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:M)-k,this._dollyControlCoord.set(y,x)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,x)=>{const T=Math.pow(.95,g*this.dollySpeed),k=this._zoom,C=this._zoom*T;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-k,this._dollyControlCoord.set(y,x))},typeof ot>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=new ot.Quaternion().setFromUnitVectors(this._camera.up,vr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=q.NONE,this._target=new ot.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new ot.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new ot.Spherical().setFromVector3(ht.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new ot.Vector3,new ot.Vector3,new ot.Vector3,new ot.Vector3],this._updateNearPlaneCorners(),this._boundary=new ot.Box3(new ot.Vector3(-1/0,-1/0,-1/0),new ot.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new ot.Vector2,this.mouseButtons={left:q.ROTATE,middle:q.DOLLY,right:q.TRUCK,wheel:Ws(this._camera)?q.DOLLY:ws(this._camera)?q.ZOOM:q.NONE},this.touches={one:q.TOUCH_ROTATE,two:Ws(this._camera)?q.TOUCH_DOLLY_TRUCK:ws(this._camera)?q.TOUCH_ZOOM_TRUCK:q.NONE,three:q.TOUCH_TRUCK};const s=new ot.Vector2,n=new ot.Vector2,r=new ot.Vector2,o=g=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const T=this._domElement.getBoundingClientRect(),k=g.clientX/T.width,C=g.clientY/T.height;if(kthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=g.pointerType!=="mouse"?null:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const x={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(x),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,f(g)},a=g=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const T=this._domElement.getBoundingClientRect(),k=g.clientX/T.width,C=g.clientY/T.height;if(kthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}const x={pointerId:1,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.LEFT?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.LEFT?ct.RIGHT:null};this._activePointers.push(x),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,x=this._lockedPointer||this._findPointerById(y);if(x){if(x.clientX=g.clientX,x.clientY=g.clientY,x.deltaX=g.movementX,x.deltaY=g.movementY,this._state=0,g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=g=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=g.clientX,y.clientY=g.clientY,y.deltaX=g.movementX,y.deltaY=g.movementY,this._state=0,(this._lockedPointer||(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=g=>{const y=this._findPointerById(g.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),g.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=q.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=q.NONE;v()}},h=()=>{const g=this._findPointerById(1);g&&g===this._lockedPointer||(g&&this._disposePointer(g),this._state=q.NONE,v())};let d=-1;const p=g=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===q.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),M=g.clientX/C.width,R=g.clientY/C.height;if(Mthis._interactiveArea.right||Rthis._interactiveArea.bottom)return}if(g.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===q.ROTATE||this.mouseButtons.wheel===q.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=$f?-1:-3,x=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),T=this.dollyToCursor?(g.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,k=this.dollyToCursor?(g.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case q.ROTATE:{this._rotateInternal(g.deltaX,g.deltaY),this._isUserControllingRotate=!0;break}case q.TRUCK:{this._truckInternal(g.deltaX,g.deltaY,!1),this._isUserControllingTruck=!0;break}case q.OFFSET:{this._truckInternal(g.deltaX,g.deltaY,!0),this._isUserControllingOffset=!0;break}case q.DOLLY:{this._dollyInternal(-x,T,k),this._isUserControllingDolly=!0;break}case q.ZOOM:{this._zoomInternal(-x,T,k),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===oa.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),x=this._findPointerById(y);x&&this._disposePointer(x),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(Vo(this._activePointers,ce),this._getClientRect(this._elementRect),s.copy(ce),n.copy(ce),this._activePointers.length>=2){const x=ce.x-this._activePointers[1].clientX,T=ce.y-this._activePointers[1].clientY,k=Math.sqrt(x*x+T*T);r.set(0,k);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,M=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;n.set(C,M)}if(this._state=0,!g)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in g&&g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(g.buttons&ct.LEFT)===ct.LEFT&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&q.ROTATE)===q.ROTATE||(this._state&q.TOUCH_ROTATE)===q.TOUCH_ROTATE||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&q.TRUCK)===q.TRUCK||(this._state&q.TOUCH_TRUCK)===q.TOUCH_TRUCK||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&q.DOLLY)===q.DOLLY||(this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&q.ZOOM)===q.ZOOM||(this._state&q.TOUCH_ZOOM)===q.TOUCH_ZOOM||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&q.OFFSET)===q.OFFSET||(this._state&q.TOUCH_OFFSET)===q.TOUCH_OFFSET||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Vo(this._activePointers,ce);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,x=y?-y.deltaX:n.x-ce.x,T=y?-y.deltaY:n.y-ce.y;if(n.copy(ce),((this._state&q.ROTATE)===q.ROTATE||(this._state&q.TOUCH_ROTATE)===q.TOUCH_ROTATE||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(x,T),this._isUserControllingRotate=!0),(this._state&q.DOLLY)===q.DOLLY||(this._state&q.ZOOM)===q.ZOOM){const k=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,M=this.dollyDragInverted?-1:1;(this._state&q.DOLLY)===q.DOLLY?(this._dollyInternal(M*T*yr,k,C),this._isUserControllingDolly=!0):(this._zoomInternal(M*T*yr,k,C),this._isUserControllingZoom=!0)}if((this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_ZOOM)===q.TOUCH_ZOOM||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE){const k=ce.x-this._activePointers[1].clientX,C=ce.y-this._activePointers[1].clientY,M=Math.sqrt(k*k+C*C),R=r.y-M;r.set(0,M);const P=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,U=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET?(this._dollyInternal(R*yr,P,U),this._isUserControllingDolly=!0):(this._zoomInternal(R*yr,P,U),this._isUserControllingZoom=!0)}((this._state&q.TRUCK)===q.TRUCK||(this._state&q.TOUCH_TRUCK)===q.TOUCH_TRUCK||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(x,T,!1),this._isUserControllingTruck=!0),((this._state&q.OFFSET)===q.OFFSET||(this._state&q.TOUCH_OFFSET)===q.TOUCH_OFFSET||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(x,T,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{Vo(this._activePointers,ce),n.copy(ce),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",b),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),f())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const b=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=g=>{this._domElement=g,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),Xf&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",p,{passive:!1}),this._domElement.addEventListener("contextmenu",_)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",p,{passive:!1}),this._domElement.removeEventListener("contextmenu",_),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==q.NONE&&(this._state=q.NONE,this._activePointers.length=0,v())},e&&this.connect(e),this.update(0)}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._domElement&&(t?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}set interactiveArea(t){this._interactiveArea.width=Fe(t.width,0,1),this._interactiveArea.height=Fe(t.height,0,1),this._interactiveArea.x=Fe(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Fe(t.y,0,1-this._interactiveArea.height)}addEventListener(t,e){super.addEventListener(t,e)}removeEventListener(t,e){super.removeEventListener(t,e)}rotate(t,e,s=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+e,s)}rotateAzimuthTo(t,e=!1){return this.rotateTo(t,this._sphericalEnd.phi,e)}rotatePolarTo(t,e=!1){return this.rotateTo(this._sphericalEnd.theta,t,e)}rotateTo(t,e,s=!1){this._isUserControllingRotate=!1;const n=Fe(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Fe(e,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=n,this._sphericalEnd.phi=r,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||gt(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,e=!1){return this.dollyTo(this._sphericalEnd.radius-t,e)}dollyTo(t,e=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0,this._dollyToNoClamp(Fe(t,this.minDistance,this.maxDistance),e)}_dollyToNoClamp(t,e=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=gt(o,this._spherical.radius);if(!(s>t)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(t,o)}else this._sphericalEnd.radius=t;this._needsUpdate=!0,e||(this._spherical.radius=this._sphericalEnd.radius);const r=!e||gt(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(r)}dollyInFixed(t,e=!1){this._targetEnd.add(this._getCameraDirection(di).multiplyScalar(t)),e||this._target.copy(this._targetEnd);const s=!e||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(t,e=!1){return this.zoomTo(this._zoomEnd+t,e)}zoomTo(t,e=!1){this._isUserControllingZoom=!1,this._zoomEnd=Fe(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,e||(this._zoom=this._zoomEnd);const s=!e||gt(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(t,e,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,e,s)}truck(t,e,s=!1){this._camera.updateMatrix(),$e.setFromMatrixColumn(this._camera.matrix,0),Xe.setFromMatrixColumn(this._camera.matrix,1),$e.multiplyScalar(t),Xe.multiplyScalar(-e);const n=ht.copy($e).add(Xe),r=mt.copy(this._targetEnd).add(n);return this.moveTo(r.x,r.y,r.z,s)}forward(t,e=!1){ht.setFromMatrixColumn(this._camera.matrix,0),ht.crossVectors(this._camera.up,ht),ht.multiplyScalar(t);const s=mt.copy(this._targetEnd).add(ht);return this.moveTo(s.x,s.y,s.z,e)}elevate(t,e=!1){return ht.copy(this._camera.up).multiplyScalar(t),this.moveTo(this._targetEnd.x+ht.x,this._targetEnd.y+ht.y,this._targetEnd.z+ht.z,e)}moveTo(t,e,s,n=!1){this._isUserControllingTruck=!1;const r=ht.set(t,e,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,r,this.boundaryFriction),this._needsUpdate=!0,n||this._target.copy(this._targetEnd);const o=!n||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(t,e,s,n=!1){const a=ht.set(t,e,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,n)}fitToBox(t,e,{cover:s=!1,paddingLeft:n=0,paddingRight:r=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=t.isBox3?Tn.copy(t):Tn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=jc(this._sphericalEnd.theta,zc),h=jc(this._sphericalEnd.phi,zc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=Gc.setFromUnitVectors(d,zo),_=gt(Math.abs(d.y),1);_&&p.multiply(Bo.setFromAxisAngle(vr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=Yc.makeEmpty();mt.copy(l.min).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setX(l.max.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setY(l.max.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setZ(l.min.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setZ(l.max.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setY(l.min.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setX(l.min.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).applyQuaternion(p),f.expandByPoint(mt),f.min.x-=n,f.min.y-=o,f.max.x+=r,f.max.y+=a,p.setFromUnitVectors(zo,d),_&&p.premultiply(Bo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(Ws(this._camera)){const b=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(b,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(ws(this._camera)){const b=this._camera,w=b.right-b.left,g=b.top-b.bottom,y=s?Math.max(w/m.x,g/m.y):Math.min(w/m.x,g/m.y);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.zoomTo(y,e)),c.push(this.setFocalOffset(0,0,0,e))}return Promise.all(c)}fitToSphere(t,e){const s=[],r=t instanceof ot.Sphere?jo.copy(t):oa.createBoundingSphere(t,jo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),Ws(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(ws(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*r.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,e))}return s.push(this.setFocalOffset(0,0,0,e)),Promise.all(s)}setLookAt(t,e,s,n,r,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const c=mt.set(n,r,o),l=ht.set(t,e,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(t,e,s,n,r,o,a,c,l,u,h,d,p,_=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);Ce.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=xn.set(u,h,d),b=mt.set(a,c,l);fi.setFromVector3(b.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const w=fi.theta-Ce.theta,g=fi.phi-Ce.phi,y=fi.radius-Ce.radius;this._sphericalEnd.set(Ce.radius+y*p,Ce.phi+g*p,Ce.theta+w*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const x=!_||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(x)}setPosition(t,e,s,n=!1){return this.setLookAt(t,e,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,n)}setTarget(t,e,s,n=!1){const r=this.getPosition(ht),o=this.setLookAt(r.x,r.y,r.z,t,e,s,n);return this._sphericalEnd.phi=Fe(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(t,e,s,n=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(t,e,s),this._needsUpdate=!0,n||this._focalOffset.copy(this._focalOffsetEnd);const r=!n||gt(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&>(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&>(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(r)}setOrbitPoint(t,e,s){this._camera.updateMatrixWorld(),$e.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Xe.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Hs.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);$e.multiplyScalar(o.x),Xe.multiplyScalar(o.y),Hs.multiplyScalar(o.z),ht.copy($e).add(Xe).add(Hs),ht.z=ht.z+r,this.dollyTo(r,!1),this.setFocalOffset(-ht.x,ht.y,-ht.z,!1),this.moveTo(t,e,s,!1)}setBoundary(t){if(!t){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(t),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(t,e,s,n){if(t===null){this._viewport=null;return}this._viewport=this._viewport||new ot.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(Uo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*li,a=this._camera.aspect;return((n?r>a:re.pointerId===t)}_findPointerByMouseButton(t){return this._activePointers.find(e=>e.mouseButton===t)}_disposePointer(t){this._activePointers.splice(this._activePointers.indexOf(t),1)}_encloseToBoundary(t,e,s){const n=e.lengthSq();if(n===0)return t;const r=mt.copy(e).add(t),a=this._boundary.clampPoint(r,xn).sub(r),c=a.lengthSq();if(c===0)return t.add(e);if(c===n)return t;if(s===0)return t.add(e).add(a);{const l=1+s*c/e.dot(a);return t.add(mt.copy(e).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ws(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*li,n=Math.tan(s*.5)*e,r=n*t.aspect;this._nearPlaneCorners[0].set(-r,-n,0),this._nearPlaneCorners[1].set(r,-n,0),this._nearPlaneCorners[2].set(r,n,0),this._nearPlaneCorners[3].set(-r,n,0)}else if(ws(this._camera)){const t=this._camera,e=1/t.zoom,s=t.left*e,n=t.right*e,r=t.top*e,o=t.bottom*e;this._nearPlaneCorners[0].set(s,r,0),this._nearPlaneCorners[1].set(n,r,0),this._nearPlaneCorners[2].set(n,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1)||Uo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(di);qo.lookAt(qc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(qo);const o=xn.addVectors(this._target,r);kr.set(o,s),kr.far=this._spherical.radius+1;const a=kr.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),e()};this.addEventListener("rest",s)}))}_addAllEventListeners(t){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(t){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(t){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(t,e=new ot.Sphere){const s=e,n=s.center;Tn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&Tn.expandByObject(o)}),Tn.getCenter(n);let r=0;return t.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{A.useMemo(()=>{Wo.install({THREE:kf}),Ia({CameraControlsImpl:Wo})},[]);const{camera:e,domElement:s,makeDefault:n,onStart:r,onEnd:o,onChange:a,regress:c,...l}=i,u=Nt(y=>y.camera),h=Nt(y=>y.gl),d=Nt(y=>y.invalidate),p=Nt(y=>y.events),_=Nt(y=>y.setEvents),f=Nt(y=>y.set),m=Nt(y=>y.get),v=Nt(y=>y.performance),b=e||u,w=s||p.connected||h.domElement,g=A.useMemo(()=>new Wo(b),[b]);return be((y,x)=>{g.enabled&&g.update(x)},-1),A.useEffect(()=>(g.connect(w),()=>void g.disconnect()),[w,g]),A.useEffect(()=>{const y=k=>{d(),c&&v.regress(),a&&a(k)},x=k=>{r&&r(k)},T=k=>{o&&o(k)};return g.addEventListener("update",y),g.addEventListener("controlstart",x),g.addEventListener("controlend",T),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",x),g.removeEventListener("controlend",T)}},[g,r,o,d,_,c,a]),A.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),A.createElement("primitive",Oe({ref:t,object:g},l))});ei.func.isRequired,ei.arrayOf(ei.oneOfType([ei.element,ei.func])).isRequired;const $c=new er,Xc=new er,xr=[],pi=new eu;class Qf extends Tf{constructor(){super(),this.color=new _o("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,e){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;pi.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,$c),Xc.multiplyMatrices(n,$c),pi.matrixWorld=Xc,s.material instanceof wf?pi.material.side=s.material.side:pi.material.side=s.material[0].side,pi.raycast(t,xr);for(let o=0,a=xr.length;o{A.useMemo(()=>Ia({PositionMesh:Qf}),[]);const n=A.useRef(),{subscribe:r,getParent:o}=A.useContext(i||ru);return A.useLayoutEffect(()=>r(n),[]),A.createElement("positionMesh",Oe({instance:o(),instanceKey:n,ref:ho([s,n])},e),t)}),Jf=A.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=A.useState(()=>{const m=A.createContext(null);return{context:m,instance:A.forwardRef((v,b)=>A.createElement(ou,Oe({context:m},v,{ref:b})))}}),c=A.useRef(null),[l,u]=A.useState([]),[[h,d]]=A.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});A.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;be(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(b=>b.current!==m.current)))}),[]);return A.createElement("instancedMesh",Oe({userData:{instances:l},matrixAutoUpdate:!1,ref:ho([r,c]),args:[null,null,0],raycast:()=>null},n),A.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Rc}),A.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Rc}),typeof i=="function"?A.createElement(o.Provider,{value:f},i(a)):A.createElement(ru.Provider,{value:f},i))}),au=A.createContext(null),t0=A.forwardRef((i,t)=>{A.useMemo(()=>Ia({SegmentObject:e0}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=A.useState([]),[c]=A.useState(()=>new Ld),[l]=A.useState(()=>new Vd),[u]=A.useState(()=>new Ud),[h]=A.useState(()=>new _t(512,512)),[d]=A.useState(()=>Array(e*6).fill(0)),[p]=A.useState(()=>Array(e*6).fill(0)),_=A.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return be(()=>{for(let m=0;mi instanceof at?i:new at(...typeof i=="number"?[i,i,i]:i),s0=A.forwardRef(({color:i,start:t,end:e},s)=>{const n=A.useContext(au);if(!n)throw"Segment must used inside Segments component.";const r=A.useRef(null);return A.useLayoutEffect(()=>n.subscribe(r),[]),A.createElement("segmentObject",{ref:ho([r,s]),color:i,start:el(t),end:el(e)})});function n0({all:i,scene:t,camera:e}){const s=Nt(({gl:o})=>o),n=Nt(({camera:o})=>o),r=Nt(({scene:o})=>o);return A.useLayoutEffect(()=>{const o=[];i&&(t||r).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(t||r,e||n);const a=new bf(128);new Cf(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function i0({pixelated:i}){const t=Nt(o=>o.gl),e=Nt(o=>o.internal.active),s=Nt(o=>o.performance.current),n=Nt(o=>o.viewport.initialDpr),r=Nt(o=>o.setDpr);return A.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),A.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function r0(){const i=Nt(s=>s.get),t=Nt(s=>s.setEvents),e=Nt(s=>s.performance.current);return A.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),A.useEffect(()=>t({enabled:e===1}),[e]),null}const cu=A.createContext(null);function o0({children:i,enabled:t=!0}){const[e,s]=A.useState([]),n=A.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(cu.Provider,{value:n,children:i})}function a0({enabled:i=!1,children:t,...e}){const s=A.useRef(null),n=A.useContext(cu);return A.useEffect(()=>{if(n&&i){let r=!1;const o=[];if(s.current.traverse(a=>{a.type==="Mesh"&&o.push(a),n.selected.indexOf(a)===-1&&(r=!0)}),r)return n.select(a=>[...a,...o]),()=>{n.select(a=>a.filter(c=>!o.includes(c)))}}},[i,t,n]),L.jsx("group",{ref:s,...e,children:t})}const c0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Os=Gl(i=>({...c0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),l0=()=>{const[i,t]=A.useState(""),e=A.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Us(g=>g),[o]=$l(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=Ji(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Ad(g=>g.resetAiSummaryAnswer),[h,d]=A.useState([]);A.useEffect(()=>{r&&d(b(r).slice(0,4))},[r]),A.useEffect(()=>{e.current&&e.current.focus()},[]);const p=async g=>{g&&(u(),a(),c(!0),l(!0)),await s(o,n,g)},_=!!i.trim().length,f=async g=>{g.keyCode===13&&g.shiftKey===!1&&_&&(g.preventDefault(),p(i))},m=async g=>{t(g),await p(g)},v=()=>{a(),c(!0),l(!0)},b=g=>{const y=[...g];let x=y.length-1;for(;x>0;){const T=Math.floor(Math.random()*(x+1));[y[x],y[T]]=[y[T],y[x]],x-=1}return y},w=!!i&&i.trim().length>0;return L.jsxs(d0,{children:["Ideas have shapes",L.jsxs(h0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(u0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(f0,{color:"secondary",disabled:!w,onClick:()=>p(i),variant:"contained",children:w?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Nc,{})]}):L.jsx(Nc,{})})]}),h.length>0&&L.jsx(m0,{children:h.map(g=>L.jsxs(_0,{onClick:()=>m(g),children:[L.jsx(Gd,{}),g]},g))}),L.jsx(p0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx($d,{}),children:"Explore Graph"})]})},u0=qt(ff).attrs({maxRows:3})` + */const ct={LEFT:1,RIGHT:2,MIDDLE:4},q=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),vn={NONE:0,IN:1,OUT:-1};function Ws(i){return i.isPerspectiveCamera}function ws(i){return i.isOrthographicCamera}const xn=Math.PI*2,Bc=Math.PI/2,ru=1e-5,ui=Math.PI/180;function Fe(i,t,e){return Math.max(t,Math.min(e,i))}function Et(i,t=ru){return Math.abs(i)0==p>u&&(p=u,e.value=(p-u)/r),p}function Wc(i,t,e,s,n=1/0,r,o){s=Math.max(1e-4,s);const a=2/s,c=a*r,l=1/(1+c+.48*c*c+.235*c*c*c);let u=t.x,h=t.y,d=t.z,p=i.x-u,_=i.y-h,f=i.z-d;const m=u,v=h,b=d,w=n*s,g=w*w,y=p*p+_*_+f*f;if(y>g){const Y=Math.sqrt(y);p=p/Y*w,_=_/Y*w,f=f/Y*w}u=i.x-p,h=i.y-_,d=i.z-f;const k=(e.x+a*p)*r,T=(e.y+a*_)*r,x=(e.z+a*f)*r;e.x=(e.x-a*k)*l,e.y=(e.y-a*T)*l,e.z=(e.z-a*x)*l,o.x=u+(p+k)*l,o.y=h+(_+T)*l,o.z=d+(f+x)*l;const C=m-i.x,O=v-i.y,I=b-i.z,M=o.x-m,U=o.y-v,W=o.z-b;return C*M+O*U+I*W>0&&(o.x=m,o.y=v,o.z=b,e.x=(o.x-m)/r,e.y=(o.y-v)/r,e.z=(o.z-b)/r),o}function Uo(i,t){t.set(0,0),i.forEach(e=>{t.x+=e.clientX,t.y+=e.clientY}),t.x/=i.length,t.y/=i.length}function jo(i,t){return ws(i)?(console.warn(`${t} is not supported in OrthographicCamera`),!0):!1}class Xf{constructor(){this._listeners={}}addEventListener(t,e){const s=this._listeners;s[t]===void 0&&(s[t]=[]),s[t].indexOf(e)===-1&&s[t].push(e)}hasEventListener(t,e){const s=this._listeners;return s[t]!==void 0&&s[t].indexOf(e)!==-1}removeEventListener(t,e){const n=this._listeners[t];if(n!==void 0){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}removeAllEventListeners(t){if(!t){this._listeners={};return}Array.isArray(this._listeners[t])&&(this._listeners[t].length=0)}dispatchEvent(t){const s=this._listeners[t.type];if(s!==void 0){t.target=this;const n=s.slice(0);for(let r=0,o=n.length;r{},this._enabled=!0,this._state=q.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=vn.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new ot.Vector3,this._focalOffsetVelocity=new ot.Vector3,this._zoomVelocity={value:0},this._truckInternal=(g,y,k)=>{let T,x;if(Ws(this._camera)){const C=ht.copy(this._camera.position).sub(this._target),O=this._camera.getEffectiveFOV()*ui,I=C.length()*Math.tan(O*.5);T=this.truckSpeed*g*I/this._elementRect.height,x=this.truckSpeed*y*I/this._elementRect.height}else if(ws(this._camera)){const C=this._camera;T=g*(C.right-C.left)/C.zoom/this._elementRect.width,x=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(k?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(T,0,!0),this.forward(-x,!0)):k?this.setFocalOffset(this._focalOffsetEnd.x+T,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(T,x,!0)},this._rotateInternal=(g,y)=>{const k=xn*this.azimuthRotateSpeed*g/this._elementRect.height,T=xn*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(k,T,!0)},this._dollyInternal=(g,y,k)=>{const T=Math.pow(.95,-g*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*T,O=Fe(C,this.minDistance,this.maxDistance),I=O-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(I,!0),this._dollyToNoClamp(O,!0)):this._dollyToNoClamp(O,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:O)-x,this._dollyControlCoord.set(y,k)),this._lastDollyDirection=Math.sign(-g)},this._zoomInternal=(g,y,k)=>{const T=Math.pow(.95,g*this.dollySpeed),x=this._zoom,C=this._zoom*T;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(y,k))},typeof ot>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=new ot.Quaternion().setFromUnitVectors(this._camera.up,xr),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=q.NONE,this._target=new ot.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new ot.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new ot.Spherical().setFromVector3(ht.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new ot.Vector3,new ot.Vector3,new ot.Vector3,new ot.Vector3],this._updateNearPlaneCorners(),this._boundary=new ot.Box3(new ot.Vector3(-1/0,-1/0,-1/0),new ot.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new ot.Vector2,this.mouseButtons={left:q.ROTATE,middle:q.DOLLY,right:q.TRUCK,wheel:Ws(this._camera)?q.DOLLY:ws(this._camera)?q.ZOOM:q.NONE},this.touches={one:q.TOUCH_ROTATE,two:Ws(this._camera)?q.TOUCH_DOLLY_TRUCK:ws(this._camera)?q.TOUCH_ZOOM_TRUCK:q.NONE,three:q.TOUCH_TRUCK};const s=new ot.Vector2,n=new ot.Vector2,r=new ot.Vector2,o=g=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const T=this._domElement.getBoundingClientRect(),x=g.clientX/T.width,C=g.clientY/T.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=g.pointerType!=="mouse"?null:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}if((g.buttons&ct.LEFT)===ct.LEFT&&this._lockedPointer)return;const k={pointerId:g.pointerId,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(k),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,f(g)},a=g=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const T=this._domElement.getBoundingClientRect(),x=g.clientX/T.width,C=g.clientY/T.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.MIDDLE?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.RIGHT?ct.RIGHT:null;if(y!==null){const T=this._findPointerByMouseButton(y);T&&this._disposePointer(T)}const k={pointerId:1,clientX:g.clientX,clientY:g.clientY,deltaX:0,deltaY:0,mouseButton:(g.buttons&ct.LEFT)===ct.LEFT?ct.LEFT:(g.buttons&ct.MIDDLE)===ct.LEFT?ct.MIDDLE:(g.buttons&ct.RIGHT)===ct.LEFT?ct.RIGHT:null};this._activePointers.push(k),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,f(g)},c=g=>{g.cancelable&&g.preventDefault();const y=g.pointerId,k=this._lockedPointer||this._findPointerById(y);if(k){if(k.clientX=g.clientX,k.clientY=g.clientY,k.deltaX=g.movementX,k.deltaY=g.movementY,this._state=0,g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=g=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=g.clientX,y.clientY=g.clientY,y.deltaX=g.movementX,y.deltaY=g.movementY,this._state=0,(this._lockedPointer||(g.buttons&ct.LEFT)===ct.LEFT)&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=g=>{const y=this._findPointerById(g.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),g.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=q.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=q.NONE;v()}},h=()=>{const g=this._findPointerById(1);g&&g===this._lockedPointer||(g&&this._disposePointer(g),this._state=q.NONE,v())};let d=-1;const p=g=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===q.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),O=g.clientX/C.width,I=g.clientY/C.height;if(Othis._interactiveArea.right||Ithis._interactiveArea.bottom)return}if(g.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===q.ROTATE||this.mouseButtons.wheel===q.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=Kf?-1:-3,k=g.deltaMode===1?g.deltaY/y:g.deltaY/(y*10),T=this.dollyToCursor?(g.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(g.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case q.ROTATE:{this._rotateInternal(g.deltaX,g.deltaY),this._isUserControllingRotate=!0;break}case q.TRUCK:{this._truckInternal(g.deltaX,g.deltaY,!1),this._isUserControllingTruck=!0;break}case q.OFFSET:{this._truckInternal(g.deltaX,g.deltaY,!0),this._isUserControllingOffset=!0;break}case q.DOLLY:{this._dollyInternal(-k,T,x),this._isUserControllingDolly=!0;break}case q.ZOOM:{this._zoomInternal(-k,T,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},_=g=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===aa.ACTION.NONE){const y=g instanceof PointerEvent?g.pointerId:(g instanceof MouseEvent,0),k=this._findPointerById(y);k&&this._disposePointer(k),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}g.preventDefault()}},f=g=>{if(!this._enabled)return;if(Uo(this._activePointers,ce),this._getClientRect(this._elementRect),s.copy(ce),n.copy(ce),this._activePointers.length>=2){const k=ce.x-this._activePointers[1].clientX,T=ce.y-this._activePointers[1].clientY,x=Math.sqrt(k*k+T*T);r.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,O=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;n.set(C,O)}if(this._state=0,!g)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in g&&g.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(g.buttons&ct.LEFT)===ct.LEFT&&(this._state=this._state|this.mouseButtons.left),(g.buttons&ct.MIDDLE)===ct.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(g.buttons&ct.RIGHT)===ct.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&q.ROTATE)===q.ROTATE||(this._state&q.TOUCH_ROTATE)===q.TOUCH_ROTATE||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&q.TRUCK)===q.TRUCK||(this._state&q.TOUCH_TRUCK)===q.TOUCH_TRUCK||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&q.DOLLY)===q.DOLLY||(this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&q.ZOOM)===q.ZOOM||(this._state&q.TOUCH_ZOOM)===q.TOUCH_ZOOM||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&q.OFFSET)===q.OFFSET||(this._state&q.TOUCH_OFFSET)===q.TOUCH_OFFSET||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Uo(this._activePointers,ce);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,k=y?-y.deltaX:n.x-ce.x,T=y?-y.deltaY:n.y-ce.y;if(n.copy(ce),((this._state&q.ROTATE)===q.ROTATE||(this._state&q.TOUCH_ROTATE)===q.TOUCH_ROTATE||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(k,T),this._isUserControllingRotate=!0),(this._state&q.DOLLY)===q.DOLLY||(this._state&q.ZOOM)===q.ZOOM){const x=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,O=this.dollyDragInverted?-1:1;(this._state&q.DOLLY)===q.DOLLY?(this._dollyInternal(O*T*vr,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(O*T*vr,x,C),this._isUserControllingZoom=!0)}if((this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_ZOOM)===q.TOUCH_ZOOM||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_ZOOM_ROTATE)===q.TOUCH_ZOOM_ROTATE){const x=ce.x-this._activePointers[1].clientX,C=ce.y-this._activePointers[1].clientY,O=Math.sqrt(x*x+C*C),I=r.y-O;r.set(0,O);const M=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,U=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&q.TOUCH_DOLLY)===q.TOUCH_DOLLY||(this._state&q.TOUCH_DOLLY_ROTATE)===q.TOUCH_DOLLY_ROTATE||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET?(this._dollyInternal(I*vr,M,U),this._isUserControllingDolly=!0):(this._zoomInternal(I*vr,M,U),this._isUserControllingZoom=!0)}((this._state&q.TRUCK)===q.TRUCK||(this._state&q.TOUCH_TRUCK)===q.TOUCH_TRUCK||(this._state&q.TOUCH_DOLLY_TRUCK)===q.TOUCH_DOLLY_TRUCK||(this._state&q.TOUCH_ZOOM_TRUCK)===q.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(k,T,!1),this._isUserControllingTruck=!0),((this._state&q.OFFSET)===q.OFFSET||(this._state&q.TOUCH_OFFSET)===q.TOUCH_OFFSET||(this._state&q.TOUCH_DOLLY_OFFSET)===q.TOUCH_DOLLY_OFFSET||(this._state&q.TOUCH_ZOOM_OFFSET)===q.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(k,T,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},v=()=>{Uo(this._activePointers,ce),n.copy(ce),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",b),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),f())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const b=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=g=>{this._domElement=g,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),Jf&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",p,{passive:!1}),this._domElement.addEventListener("contextmenu",_)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",p,{passive:!1}),this._domElement.removeEventListener("contextmenu",_),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",b),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==q.NONE&&(this._state=q.NONE,this._activePointers.length=0,v())},e&&this.connect(e),this.update(0)}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._domElement&&(t?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}set interactiveArea(t){this._interactiveArea.width=Fe(t.width,0,1),this._interactiveArea.height=Fe(t.height,0,1),this._interactiveArea.x=Fe(t.x,0,1-this._interactiveArea.width),this._interactiveArea.y=Fe(t.y,0,1-this._interactiveArea.height)}addEventListener(t,e){super.addEventListener(t,e)}removeEventListener(t,e){super.removeEventListener(t,e)}rotate(t,e,s=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+e,s)}rotateAzimuthTo(t,e=!1){return this.rotateTo(t,this._sphericalEnd.phi,e)}rotatePolarTo(t,e=!1){return this.rotateTo(this._sphericalEnd.theta,t,e)}rotateTo(t,e,s=!1){this._isUserControllingRotate=!1;const n=Fe(t,this.minAzimuthAngle,this.maxAzimuthAngle),r=Fe(e,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=n,this._sphericalEnd.phi=r,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||gt(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,e=!1){return this.dollyTo(this._sphericalEnd.radius-t,e)}dollyTo(t,e=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0,this._dollyToNoClamp(Fe(t,this.minDistance,this.maxDistance),e)}_dollyToNoClamp(t,e=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=gt(o,this._spherical.radius);if(!(s>t)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(t,o)}else this._sphericalEnd.radius=t;this._needsUpdate=!0,e||(this._spherical.radius=this._sphericalEnd.radius);const r=!e||gt(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(r)}dollyInFixed(t,e=!1){this._targetEnd.add(this._getCameraDirection(fi).multiplyScalar(t)),e||this._target.copy(this._targetEnd);const s=!e||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(t,e=!1){return this.zoomTo(this._zoomEnd+t,e)}zoomTo(t,e=!1){this._isUserControllingZoom=!1,this._zoomEnd=Fe(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,e||(this._zoom=this._zoomEnd);const s=!e||gt(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(t,e,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,e,s)}truck(t,e,s=!1){this._camera.updateMatrix(),$e.setFromMatrixColumn(this._camera.matrix,0),Ze.setFromMatrixColumn(this._camera.matrix,1),$e.multiplyScalar(t),Ze.multiplyScalar(-e);const n=ht.copy($e).add(Ze),r=mt.copy(this._targetEnd).add(n);return this.moveTo(r.x,r.y,r.z,s)}forward(t,e=!1){ht.setFromMatrixColumn(this._camera.matrix,0),ht.crossVectors(this._camera.up,ht),ht.multiplyScalar(t);const s=mt.copy(this._targetEnd).add(ht);return this.moveTo(s.x,s.y,s.z,e)}elevate(t,e=!1){return ht.copy(this._camera.up).multiplyScalar(t),this.moveTo(this._targetEnd.x+ht.x,this._targetEnd.y+ht.y,this._targetEnd.z+ht.z,e)}moveTo(t,e,s,n=!1){this._isUserControllingTruck=!1;const r=ht.set(t,e,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,r,this.boundaryFriction),this._needsUpdate=!0,n||this._target.copy(this._targetEnd);const o=!n||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(t,e,s,n=!1){const a=ht.set(t,e,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,n)}fitToBox(t,e,{cover:s=!1,paddingLeft:n=0,paddingRight:r=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=t.isBox3?Tn.copy(t):Tn.setFromObject(t);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=qc(this._sphericalEnd.theta,Bc),h=qc(this._sphericalEnd.phi,Bc);c.push(this.rotateTo(u,h,e));const d=ht.setFromSpherical(this._sphericalEnd).normalize(),p=Zc.setFromUnitVectors(d,zo),_=gt(Math.abs(d.y),1);_&&p.multiply(qo.setFromAxisAngle(xr,u)),p.multiply(this._yAxisUpSpaceInverse);const f=$c.makeEmpty();mt.copy(l.min).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setX(l.max.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setY(l.max.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setZ(l.min.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.min).setZ(l.max.z).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setY(l.min.y).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).setX(l.min.x).applyQuaternion(p),f.expandByPoint(mt),mt.copy(l.max).applyQuaternion(p),f.expandByPoint(mt),f.min.x-=n,f.min.y-=o,f.max.x+=r,f.max.y+=a,p.setFromUnitVectors(zo,d),_&&p.premultiply(qo.invert()),p.premultiply(this._yAxisUpSpace);const m=f.getSize(ht),v=f.getCenter(mt).applyQuaternion(p);if(Ws(this._camera)){const b=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.dollyTo(b,e)),c.push(this.setFocalOffset(0,0,0,e))}else if(ws(this._camera)){const b=this._camera,w=b.right-b.left,g=b.top-b.bottom,y=s?Math.max(w/m.x,g/m.y):Math.min(w/m.x,g/m.y);c.push(this.moveTo(v.x,v.y,v.z,e)),c.push(this.zoomTo(y,e)),c.push(this.setFocalOffset(0,0,0,e))}return Promise.all(c)}fitToSphere(t,e){const s=[],r=t instanceof ot.Sphere?Bo.copy(t):aa.createBoundingSphere(t,Bo);if(s.push(this.moveTo(r.center.x,r.center.y,r.center.z,e)),Ws(this._camera)){const o=this.getDistanceToFitSphere(r.radius);s.push(this.dollyTo(o,e))}else if(ws(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*r.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,e))}return s.push(this.setFocalOffset(0,0,0,e)),Promise.all(s)}setLookAt(t,e,s,n,r,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const c=mt.set(n,r,o),l=ht.set(t,e,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(t,e,s,n,r,o,a,c,l,u,h,d,p,_=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=vn.NONE,this._changedDolly=0;const f=ht.set(n,r,o),m=mt.set(t,e,s);Ce.setFromVector3(m.sub(f).applyQuaternion(this._yAxisUpSpace));const v=kn.set(u,h,d),b=mt.set(a,c,l);pi.setFromVector3(b.sub(v).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(f.lerp(v,p));const w=pi.theta-Ce.theta,g=pi.phi-Ce.phi,y=pi.radius-Ce.radius;this._sphericalEnd.set(Ce.radius+y*p,Ce.phi+g*p,Ce.theta+w*p),this.normalizeRotations(),this._needsUpdate=!0,_||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const k=!_||gt(this._target.x,this._targetEnd.x,this.restThreshold)&>(this._target.y,this._targetEnd.y,this.restThreshold)&>(this._target.z,this._targetEnd.z,this.restThreshold)&>(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&>(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&>(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(k)}setPosition(t,e,s,n=!1){return this.setLookAt(t,e,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,n)}setTarget(t,e,s,n=!1){const r=this.getPosition(ht),o=this.setLookAt(r.x,r.y,r.z,t,e,s,n);return this._sphericalEnd.phi=Fe(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(t,e,s,n=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(t,e,s),this._needsUpdate=!0,n||this._focalOffset.copy(this._focalOffsetEnd);const r=!n||gt(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&>(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&>(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(r)}setOrbitPoint(t,e,s){this._camera.updateMatrixWorld(),$e.setFromMatrixColumn(this._camera.matrixWorldInverse,0),Ze.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Hs.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const n=ht.set(t,e,s),r=n.distanceTo(this._camera.position),o=n.sub(this._camera.position);$e.multiplyScalar(o.x),Ze.multiplyScalar(o.y),Hs.multiplyScalar(o.z),ht.copy($e).add(Ze).add(Hs),ht.z=ht.z+r,this.dollyTo(r,!1),this.setFocalOffset(-ht.x,ht.y,-ht.z,!1),this.moveTo(t,e,s,!1)}setBoundary(t){if(!t){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(t),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(t,e,s,n){if(t===null){this._viewport=null;return}this._viewport=this._viewport||new ot.Vector4,typeof t=="number"?this._viewport.set(t,e,s,n):this._viewport.copy(t)}getDistanceToFitBox(t,e,s,n=!1){if(jo(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const r=t/e,o=this._camera.getEffectiveFOV()*ui,a=this._camera.aspect;return((n?r>a:re.pointerId===t)}_findPointerByMouseButton(t){return this._activePointers.find(e=>e.mouseButton===t)}_disposePointer(t){this._activePointers.splice(this._activePointers.indexOf(t),1)}_encloseToBoundary(t,e,s){const n=e.lengthSq();if(n===0)return t;const r=mt.copy(e).add(t),a=this._boundary.clampPoint(r,kn).sub(r),c=a.lengthSq();if(c===0)return t.add(e);if(c===n)return t;if(s===0)return t.add(e).add(a);{const l=1+s*c/e.dot(a);return t.add(mt.copy(e).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ws(this._camera)){const t=this._camera,e=t.near,s=t.getEffectiveFOV()*ui,n=Math.tan(s*.5)*e,r=n*t.aspect;this._nearPlaneCorners[0].set(-r,-n,0),this._nearPlaneCorners[1].set(r,-n,0),this._nearPlaneCorners[2].set(r,n,0),this._nearPlaneCorners[3].set(-r,n,0)}else if(ws(this._camera)){const t=this._camera,e=1/t.zoom,s=t.left*e,n=t.right*e,r=t.top*e,o=t.bottom*e;this._nearPlaneCorners[0].set(s,r,0),this._nearPlaneCorners[1].set(n,r,0),this._nearPlaneCorners[2].set(n,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1)||jo(this._camera,"_collisionTest"))return t;const s=this._getTargetDirection(fi);Wo.lookAt(Hc,s,this._camera.up);for(let n=0;n<4;n++){const r=mt.copy(this._nearPlaneCorners[n]);r.applyMatrix4(Wo);const o=kn.addVectors(this._target,r);kr.set(o,s),kr.far=this._spherical.radius+1;const a=kr.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),e()};this.addEventListener("rest",s)}))}_addAllEventListeners(t){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(t){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(t){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(t,e=new ot.Sphere){const s=e,n=s.center;Tn.makeEmpty(),t.traverseVisible(o=>{o.isMesh&&Tn.expandByObject(o)}),Tn.getCenter(n);let r=0;return t.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{D.useMemo(()=>{Ho.install({THREE:Sf}),Ra({CameraControlsImpl:Ho})},[]);const{camera:e,domElement:s,makeDefault:n,onStart:r,onEnd:o,onChange:a,regress:c,...l}=i,u=It(y=>y.camera),h=It(y=>y.gl),d=It(y=>y.invalidate),p=It(y=>y.events),_=It(y=>y.setEvents),f=It(y=>y.set),m=It(y=>y.get),v=It(y=>y.performance),b=e||u,w=s||p.connected||h.domElement,g=D.useMemo(()=>new Ho(b),[b]);return be((y,k)=>{g.enabled&&g.update(k)},-1),D.useEffect(()=>(g.connect(w),()=>void g.disconnect()),[w,g]),D.useEffect(()=>{const y=x=>{d(),c&&v.regress(),a&&a(x)},k=x=>{r&&r(x)},T=x=>{o&&o(x)};return g.addEventListener("update",y),g.addEventListener("controlstart",k),g.addEventListener("controlend",T),()=>{g.removeEventListener("update",y),g.removeEventListener("controlstart",k),g.removeEventListener("controlend",T)}},[g,r,o,d,_,c,a]),D.useEffect(()=>{if(n){const y=m().controls;return f({controls:g}),()=>f({controls:y})}},[n,g]),D.createElement("primitive",Oe({ref:t,object:g},l))});si.func.isRequired,si.arrayOf(si.oneOfType([si.element,si.func])).isRequired;const Xc=new sr,Qc=new sr,Tr=[],mi=new nu;class e0 extends Of{constructor(){super(),this.color=new go("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,e){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;mi.geometry=s.geometry;const n=s.matrixWorld,r=s.userData.instances.indexOf(this.instanceKey);if(!(r===-1||r>s.count)){s.getMatrixAt(r,Xc),Qc.multiplyMatrices(n,Xc),mi.matrixWorld=Qc,s.material instanceof Af?mi.material.side=s.material.side:mi.material.side=s.material[0].side,mi.raycast(t,Tr);for(let o=0,a=Tr.length;o{D.useMemo(()=>Ra({PositionMesh:e0}),[]);const n=D.useRef(),{subscribe:r,getParent:o}=D.useContext(i||au);return D.useLayoutEffect(()=>r(n),[]),D.createElement("positionMesh",Oe({instance:o(),instanceKey:n,ref:fo([s,n])},e),t)}),n0=D.forwardRef(({children:i,range:t,limit:e=1e3,frames:s=1/0,...n},r)=>{const[{context:o,instance:a}]=D.useState(()=>{const m=D.createContext(null);return{context:m,instance:D.forwardRef((v,b)=>D.createElement(cu,Oe({context:m},v,{ref:b})))}}),c=D.useRef(null),[l,u]=D.useState([]),[[h,d]]=D.useState(()=>{const m=new Float32Array(e*16);for(let v=0;v1))]});D.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let p=0,_=0;be(()=>{if(s===1/0||p({getParent:()=>c,subscribe:m=>(u(v=>[...v,m]),()=>u(v=>v.filter(b=>b.current!==m.current)))}),[]);return D.createElement("instancedMesh",Oe({userData:{instances:l},matrixAutoUpdate:!1,ref:fo([r,c]),args:[null,null,0],raycast:()=>null},n),D.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Lc}),D.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Lc}),typeof i=="function"?D.createElement(o.Provider,{value:f},i(a)):D.createElement(au.Provider,{value:f},i))}),lu=D.createContext(null),i0=D.forwardRef((i,t)=>{D.useMemo(()=>Ra({SegmentObject:r0}),[]);const{limit:e=1e3,lineWidth:s=1,children:n,...r}=i,[o,a]=D.useState([]),[c]=D.useState(()=>new zd),[l]=D.useState(()=>new Bd),[u]=D.useState(()=>new qd),[h]=D.useState(()=>new _t(512,512)),[d]=D.useState(()=>Array(e*6).fill(0)),[p]=D.useState(()=>Array(e*6).fill(0)),_=D.useMemo(()=>({subscribe:f=>(a(m=>[...m,f]),()=>a(m=>m.filter(v=>v.current!==f.current)))}),[]);return be(()=>{for(let m=0;mi instanceof at?i:new at(...typeof i=="number"?[i,i,i]:i),o0=D.forwardRef(({color:i,start:t,end:e},s)=>{const n=D.useContext(lu);if(!n)throw"Segment must used inside Segments component.";const r=D.useRef(null);return D.useLayoutEffect(()=>n.subscribe(r),[]),D.createElement("segmentObject",{ref:fo([r,s]),color:i,start:nl(t),end:nl(e)})});function a0({all:i,scene:t,camera:e}){const s=It(({gl:o})=>o),n=It(({camera:o})=>o),r=It(({scene:o})=>o);return D.useLayoutEffect(()=>{const o=[];i&&(t||r).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(t||r,e||n);const a=new Mf(128);new Df(.01,1e5,a).update(s,t||r),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function c0({pixelated:i}){const t=It(o=>o.gl),e=It(o=>o.internal.active),s=It(o=>o.performance.current),n=It(o=>o.viewport.initialDpr),r=It(o=>o.setDpr);return D.useEffect(()=>{const o=t.domElement;return()=>{e&&r(n),i&&o&&(o.style.imageRendering="auto")}},[]),D.useEffect(()=>{r(s*n),i&&t.domElement&&(t.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function l0(){const i=It(s=>s.get),t=It(s=>s.setEvents),e=It(s=>s.performance.current);return D.useEffect(()=>{const s=i().events.enabled;return()=>t({enabled:s})},[]),D.useEffect(()=>t({enabled:e===1}),[e]),null}const uu=D.createContext(null);function u0({children:i,enabled:t=!0}){const[e,s]=D.useState([]),n=D.useMemo(()=>({selected:e,select:s,enabled:t}),[e,s,t]);return L.jsx(uu.Provider,{value:n,children:i})}function h0({enabled:i=!1,children:t,...e}){const s=D.useRef(null),n=D.useContext(uu);return D.useEffect(()=>{if(n&&i){let r=!1;const o=[];if(s.current.traverse(a=>{a.type==="Mesh"&&o.push(a),n.selected.indexOf(a)===-1&&(r=!0)}),r)return n.select(a=>[...a,...o]),()=>{n.select(a=>a.filter(c=>!o.includes(c)))}}},[i,t,n]),L.jsx("group",{ref:s,...e,children:t})}const d0={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Os=Zl(i=>({...d0,setIsUserDragging:t=>i({isUserDragging:t}),setIsUserScrolling:t=>i({isUserScrolling:t}),setUserMovedCamera:t=>i({userMovedCamera:t}),setIsUserScrollingOnHtmlPanel:t=>i({isUserScrollingOnHtmlPanel:t})})),f0=()=>{const[i,t]=D.useState(""),e=D.useRef(null),{fetchData:s,setAbortRequests:n,seedQuestions:r}=Us(g=>g),[o]=Ql(g=>[g.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=tr(g=>({setUniverseQuestionIsOpen:g.setUniverseQuestionIsOpen,setSidebarOpen:g.setSidebarOpen,setShowCollapseButton:g.setShowCollapseButton})),u=Dd(g=>g.resetAiSummaryAnswer),[h,d]=D.useState([]);D.useEffect(()=>{r&&d(b(r).slice(0,4))},[r]),D.useEffect(()=>{e.current&&e.current.focus()},[]);const p=async g=>{g&&(u(),a(),c(!0),l(!0)),await s(o,n,g)},_=!!i.trim().length,f=async g=>{g.keyCode===13&&g.shiftKey===!1&&_&&(g.preventDefault(),p(i))},m=async g=>{t(g),await p(g)},v=()=>{a(),c(!0),l(!0)},b=g=>{const y=[...g];let k=y.length-1;for(;k>0;){const T=Math.floor(Math.random()*(k+1));[y[k],y[T]]=[y[T],y[k]],k-=1}return y},w=!!i&&i.trim().length>0;return L.jsxs(_0,{children:["Ideas have shapes",L.jsxs(m0,{onKeyDown:f,py:12,tabIndex:-1,children:[L.jsx(p0,{ref:e,onChange:g=>t(g.target.value),placeholder:"What do you want to know?",value:i}),L.jsx(g0,{color:"secondary",disabled:!w,onClick:()=>p(i),variant:"contained",children:w?L.jsxs(L.Fragment,{children:["Search ",L.jsx(Nc,{})]}):L.jsx(Nc,{})})]}),h.length>0&&L.jsx(v0,{children:h.map(g=>L.jsxs(x0,{onClick:()=>m(g),children:[L.jsx(Qd,{}),g]},g))}),L.jsx(y0,{"data-testid":"explore-graph-btn",onClick:v,startIcon:L.jsx(Kd,{}),children:"Explore Graph"})]})},p0=Ut(vf).attrs({maxRows:3})` background: ${Tt.BG1}; max-width: 700px; width: 700px; @@ -38,7 +38,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a margin: 13px; overflow-y: hidden; } -`,h0=qt(ys)` +`,m0=Ut(ys)` position: relative; margin-top: 30px; background: ${Tt.BG1}; @@ -51,7 +51,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a outline: none; border-radius: 12px; box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.5); -`,d0=qt(ys)` +`,_0=Ut(ys)` background: #16161de3; position: absolute; left: 0; @@ -66,7 +66,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a font-weight: 700; line-height: 16px; font-family: 'Barlow'; -`,f0=qt(Jl)` +`,g0=Ut(Xl)` && { position: absolute; bottom: 16px; @@ -85,21 +85,21 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a width: 11px; height: 11px; } -`,p0=qt(Jl)` +`,y0=Ut(Xl)` && { position: absolute; bottom: 20px; right: 20px; border-radius: 16px; } -`,m0=qt.div` +`,v0=Ut.div` display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; max-width: 702px; width: 100%; -`,_0=qt.div` +`,x0=Ut.div` background: ${Tt.BG1}; color: ${Tt.white}; padding: 15px 12px; @@ -128,9 +128,9 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a path { fill: ${Tt.modalWhiteOverlayBg}; } -`,Ti=new at(0,0,0),sl=100,g0=600,y0=2e3,Ho={x:172.7392402058252,y:-239.04675366094037,z:-2e3},lu="14.8.49",nl=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),il=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),aa=(i,t)=>({startTime:t,type:"setValue",value:i}),uu=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),hu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),En=i=>i.type==="exponentialRampToValue",Fr=i=>i.type==="linearRampToValue",bs=i=>En(i)||Fr(i),Fa=i=>i.type==="setValue",ls=i=>i.type==="setValueCurve",Lr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:bs(n)||Fa(n)?n.value:ls(n)?n.values[n.values.length-1]:hu(e,Lr(i,t-1,n.startTime,s),n)},rl=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:bs(e)?[e.endTime,e.value]:Fa(e)?[e.startTime,e.value]:ls(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,Lr(i,t-1,e.startTime,n)],ca=i=>i.type==="cancelAndHold",la=i=>i.type==="cancelScheduledValues",Ts=i=>ca(i)||la(i)?i.cancelTime:En(i)||Fr(i)?i.endTime:i.startTime,ol=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),v0=(i,t)=>{const e=Math.floor(t),s=Math.ceil(t);return e===s?i[e]:(1-(t-e))*i[e]+(1-(s-t))*i[s]},k0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return v0(s,n)},Tr=i=>i.type==="setTarget";class x0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=Ts(t);if(ca(t)||la(t)){const s=this._automationEvents.findIndex(r=>la(t)&&ls(r)?r.startTime+r.duration>=e:Ts(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ca(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&bs(n)){if(r!==void 0&&Tr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:ls(r)?r.startTime+r.duration:Ts(r),a=r===void 0?this._defaultValue:ls(r)?r.values[r.values.length-1]:r.value,c=En(n)?ol(e,o,a,n):al(e,o,a,n),l=En(n)?nl(c,e,this._currenTime):il(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&Tr(r)&&this._automationEvents.push(aa(this.getValue(e),e)),r!==void 0&&ls(r)&&r.startTime+r.duration>e){const o=e-r.startTime,a=(r.values.length-1)/r.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=r.values.slice(0,c);if(l<1)for(let h=1;hTs(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&ls(n)&&Ts(n)+n.duration>e)return!1;const r=En(t)?nl(t.value,t.endTime,this._currenTime):Fr(t)?il(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(ls(t)&&e+t.duration>Ts(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>Ts(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];Tr(n)&&s.unshift(aa(Lr(this._automationEvents,e-2,n.startTime,this._defaultValue),n.startTime)),this._automationEvents=s}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const e=this._automationEvents.findIndex(o=>Ts(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&Tr(r)&&(s===void 0||!bs(s)||s.insertTime>t))return hu(t,Lr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&Fa(r)&&(s===void 0||!bs(s)))return r.value;if(r!==void 0&&ls(r)&&(s===void 0||!bs(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),w0=i=>({cancelTime:i,type:"cancelScheduledValues"}),b0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),C0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),S0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),E0=()=>new DOMException("","AbortError"),O0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},A0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Ln=new WeakSet,du=new WeakMap,La=new WeakMap,fu=new WeakMap,Va=new WeakMap,yo=new WeakMap,pu=new WeakMap,ua=new WeakMap,ha=new WeakMap,da=new WeakMap,mu={construct(){return mu}},D0=i=>{try{const t=new Proxy(i,mu);new t}catch{return!1}return!0},cl=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,ll=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(cl);for(;n!==null;){const r=n[1].slice(1,-1),o=n[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,t).toString());e.push(o),s=s.slice(n[0].length).replace(/^[\s]+/,""),n=s.match(cl)}return[e.join(";"),s]},ul=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},hl=i=>{if(!D0(i))throw new TypeError("The given value for processorCtor should be a constructor.");if(i.prototype===null||typeof i.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},P0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{let p=0;return(_,f,m={credentials:"omit"})=>{const v=u.get(_);if(v!==void 0&&v.has(f))return Promise.resolve();const b=l.get(_);if(b!==void 0){const y=b.get(f);if(y!==void 0)return y}const w=r(_),g=w.audioWorklet===void 0?n(f).then(([y,x])=>{const[T,k]=ll(y,x),C=`${T};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${k} -})})(window,'_AWGS')`;return e(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>y(class{},void 0,(x,T)=>{if(x.trim()==="")throw t();const k=ha.get(w);if(k!==void 0){if(k.has(x))throw t();hl(T),ul(T.parameterDescriptors),k.set(x,T)}else hl(T),ul(T.parameterDescriptors),ha.set(w,new Map([[x,T]]))},w.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,x],T])=>{const k=p+1;p=k;const[C,M]=ll(y,x),W=`${C};((AudioWorkletProcessor,registerProcessor)=>{${M} -})(${T?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${T?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${T?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${k}',class extends AudioWorkletProcessor{process(){return !1}})`,G=new Blob([W],{type:"application/javascript; charset=utf-8"}),Y=URL.createObjectURL(G);return w.audioWorklet.addModule(Y,m).then(()=>{if(a(w))return w;const j=o(w);return j.audioWorklet.addModule(Y,m).then(()=>j)}).then(j=>{if(c===null)throw new SyntaxError;try{new c(j,`__sac${k}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Y))});return b===void 0?l.set(_,new Map([[f,g]])):b.set(f,g),g.then(()=>{const y=u.get(_);y===void 0?u.set(_,new Set([f])):y.add(f)}).finally(()=>{const y=l.get(_);y!==void 0&&y.delete(f)}),g}},je=(i,t)=>{const e=i.get(t);if(e===void 0)throw new Error("A value with the given key could not be found.");return e},vo=(i,t)=>{const e=Array.from(i).filter(t);if(e.length>1)throw Error("More than one element was found.");if(e.length===0)throw Error("No element was found.");const[s]=e;return i.delete(s),s},_u=(i,t,e,s)=>{const n=je(i,t),r=vo(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},sr=i=>je(pu,i),Vn=i=>{if(Ln.has(i))throw new Error("The AudioNode is already stored.");Ln.add(i),sr(i).forEach(t=>t(!0))},gu=i=>"port"in i,nr=i=>{if(!Ln.has(i))throw new Error("The AudioNode is not stored.");Ln.delete(i),sr(i).forEach(t=>t(!1))},fa=(i,t)=>{!gu(i)&&t.every(e=>e.size===0)&&nr(i)},N0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,b)=>{const{activeInputs:w,passiveInputs:g}=r(f),{outputs:y}=r(_),x=a(_),T=k=>{const C=c(f),M=c(_);if(k){const R=_u(g,_,m,v);i(w,_,R,!1),!b&&!h(_)&&e(M,C,m,v),d(f)&&Vn(f)}else{const R=s(w,_,m,v);t(g,v,R,!1),!b&&!h(_)&&n(M,C,m,v);const P=o(f);if(P===0)u(f)&&fa(f,w);else{const U=p.get(f);U!==void 0&&clearTimeout(U),p.set(f,setTimeout(()=>{u(f)&&fa(f,w)},P*1e3))}}};return l(y,[f,m,v],k=>k[0]===f&&k[1]===m&&k[2]===v,!0)?(x.add(T),u(_)?i(w,_,[m,v,T],!0):t(g,v,[_,m,T],!0),!0):!1}},I0=i=>(t,e,[s,n,r],o)=>{const a=t.get(s);a===void 0?t.set(s,new Set([[n,e,r]])):i(a,[n,e,r],c=>c[0]===n&&c[1]===e,o)},R0=i=>(t,e)=>{const s=i(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(s).connect(t.destination);const n=()=>{e.removeEventListener("ended",n),e.disconnect(s),s.disconnect()};e.addEventListener("ended",n)},F0=i=>(t,e)=>{i(t).add(e)},L0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},V0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...L0,...c},h=s(l,u),d=r(l)?t():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},se=(i,t)=>i.context===t,U0=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Vr=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ss=()=>new DOMException("","IndexSizeError"),Ua=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ss():s}})(i.getChannelData)},z0={numberOfChannels:1},j0=(i,t,e,s,n,r,o,a)=>{let c=null;return class yu{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...z0,...u};c===null&&(c=new n(1,1,44100));const _=s!==null&&t(r,r)?new s({length:h,numberOfChannels:d,sampleRate:p}):c.createBuffer(d,h,p);if(_.numberOfChannels===0)throw e();return typeof _.copyFromChannel!="function"?(o(_),Ua(_)):t(Vr,()=>Vr(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===yu.prototype||i.has(u)}}},le=-34028234663852886e22,ne=-le,ds=i=>Ln.has(i),B0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},q0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...B0,...u},p=n(h,d),_=o(h),f=_?t():null;super(l,!1,p,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,_,p.playbackRate,ne,le)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Vn(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),ds(this)&&nr(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},W0=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=t(u,p),o!==null&&h.start(...o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},H0=i=>"playbackRate"in i,Y0=i=>"frequency"in i&&"gain"in i,G0=i=>"offset"in i,$0=i=>!("frequency"in i)&&"gain"in i,X0=i=>"detune"in i&&"frequency"in i,Z0=i=>"pan"in i,re=i=>je(du,i),ir=i=>je(fu,i),pa=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||pa(r,[...t,i])}));const s=H0(i)?[i.playbackRate]:gu(i)?Array.from(i.parameters.values()):Y0(i)?[i.Q,i.detune,i.frequency,i.gain]:G0(i)?[i.offset]:$0(i)?[i.gain]:X0(i)?[i.detune,i.frequency]:Z0(i)?[i.pan]:[];for(const n of s){const r=ir(n);r!==void 0&&r.activeInputs.forEach(([o])=>pa(o,t))}ds(i)&&nr(i)},vu=i=>{pa(i.destination,[])},Q0=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),K0=(i,t,e,s,n,r,o,a,c)=>class extends i{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(_){throw _.code===12&&_.message==="sampleRate is not in range"?e():_}if(h===null)throw s();if(!Q0(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw e();super(h,2);const{latencyHint:d}=u,{sampleRate:p}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/p:d==="interactive"||d===void 0?256/p:d==="playback"?1024/p:Math.max(2,Math.min(128,Math.round(d*p/128)))*128/p,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const _=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",_)};h.addEventListener("statechange",_)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw t()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),vu(this)}))}createMediaElementSource(u){return new n(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?t():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?t():u})}},J0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d=o(h),p=n(h,u,d),_=d?t(a):null;super(l,!1,p,_),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},tp=i=>{const t=new WeakMap,e=async(s,n)=>{const r=n.destination;return t.set(n,r),await i(s,n,r),r};return{render(s,n){const r=t.get(n);return r!==void 0?Promise.resolve(r):e(s,n)}}},ep=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),x=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),T=o(l);let k=!1,C=[0,0,-1,0,1,0],M=[0,0,0];const R=()=>{if(k)return;k=!0;const G=s(l,256,9,0);G.onaudioprocess=({inputBuffer:Y})=>{const j=[r(Y,y,0),r(Y,y,1),r(Y,y,2),r(Y,y,3),r(Y,y,4),r(Y,y,5)];j.some((X,Q)=>X!==C[Q])&&(u.setOrientation(...j),C=j);const z=[r(Y,y,6),r(Y,y,7),r(Y,y,8)];z.some((X,Q)=>X!==M[Q])&&(u.setPosition(...z),M=z)},x.connect(G)},P=G=>Y=>{Y!==C[G]&&(C[G]=Y,u.setOrientation(...C))},U=G=>Y=>{Y!==M[G]&&(M[G]=Y,u.setPosition(...M))},W=(G,Y,j)=>{const z=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y});z.connect(x,0,G),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return Y}});const X=i({context:c},T,z.offset,ne,le);return a(X,"value",Q=>()=>Q.call(X),Q=>et=>{try{Q.call(X,et)}catch(I){if(I.code!==9)throw I}R(),T&&j(et)}),X.cancelAndHoldAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.linearRampToValueAtTime),X.setTargetAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.setTargetAtTime),X.setValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.setValueAtTime),X.setValueCurveAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const I=Q.apply(X,et);return R(),I})(X.setValueCurveAtTime),X};return{forwardX:W(0,0,P(0)),forwardY:W(1,0,P(1)),forwardZ:W(2,-1,P(2)),positionX:W(6,0,U(0)),positionY:W(7,0,U(1)),positionZ:W(8,0,U(2)),upX:W(3,0,P(3)),upY:W(4,1,P(4)),upZ:W(5,0,P(5))}},{forwardX:d,forwardY:p,forwardZ:_,positionX:f,positionY:m,positionZ:v,upX:b,upY:w,upZ:g}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return p},get forwardZ(){return _},get positionX(){return f},get positionY(){return m},get positionZ(){return v},get upX(){return b},get upY(){return w},get upZ(){return g}}},Ur=i=>"context"in i,rr=i=>Ur(i[0]),fn=(i,t,e,s)=>{for(const n of i)if(e(n)){if(s)return!1;throw Error("The set contains at least one similar element.")}return i.add(t),!0},dl=(i,t,[e,s],n)=>{fn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},fl=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):fn(r,[e,s],o=>o[0]===e,n)},Xn=i=>"inputs"in i,zr=(i,t,e,s)=>{if(Xn(t)){const n=t.inputs[s];return i.connect(n,e,0),[n,e,0]}return i.connect(t,e,s),[t,e,s]},ku=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},sp=(i,t,e)=>vo(i,s=>s[0]===t&&s[1]===e),xu=(i,t)=>{if(!sr(i).delete(t))throw new Error("Missing the expected event listener.")},Tu=(i,t,e)=>{const s=je(i,t),n=vo(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},jr=(i,t,e,s)=>{Xn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>je(La,i),Ei=i=>je(Va,i),on=i=>ua.has(i),Dr=i=>!Ln.has(i),pl=(i,t)=>new Promise(e=>{if(t!==null)e(!0);else{const s=i.createScriptProcessor(256,1,1),n=i.createGain(),r=i.createBuffer(1,2,44100),o=r.getChannelData(0);o[0]=1,o[1]=1;const a=i.createBufferSource();a.buffer=r,a.loop=!0,a.connect(s).connect(i.destination),a.connect(n),a.disconnect(n),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?e(!0):e(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(i.destination)},a.start()}}),Yo=(i,t)=>{const e=new Map;for(const s of i)for(const n of s){const r=e.get(n);e.set(n,r===void 0?1:r+1)}e.forEach((s,n)=>t(n,s))},Br=i=>"context"in i,np=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=Br(s)?e(s,n,r):e(s,n),a=t.get(s);return a===void 0?t.set(s,[{input:r,output:n}]):a.every(c=>c.input!==r||c.output!==n)&&a.push({input:r,output:n}),o})(i.connect.bind(i)),i.disconnect=(e=>(s,n,r)=>{if(e.apply(i),s===void 0)t.clear();else if(typeof s=="number")for(const[o,a]of t){const c=a.filter(l=>l.output!==s);c.length===0?t.delete(o):t.set(o,c)}else if(t.has(s))if(n===void 0)t.delete(s);else{const o=t.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==n&&(c.input!==r||r===void 0));a.length===0?t.delete(s):t.set(s,a)}}for(const[o,a]of t)a.forEach(c=>{Br(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},ip=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=ir(t),{outputs:o}=re(i),a=sr(i),c=l=>{const u=Dt(i),h=Ei(t);if(l){const d=Tu(r,i,e);dl(n,i,d,!1),!s&&!on(i)&&u.connect(h,e)}else{const d=sp(n,i,e);fl(r,d,!1),!s&&!on(i)&&u.disconnect(h,e)}};return fn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),ds(i)?dl(n,i,[e,c],!0):fl(r,[i,e,c],!0),!0):!1},rp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=ku(n[s],i,e);return o===null?[_u(r,i,e,s)[2],!1]:[o[2],!0]},op=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=ir(t),r=ku(s,i,e);return r===null?[Tu(n,i,e)[1],!1]:[r[2],!0]},za=(i,t,e,s,n)=>{const[r,o]=rp(i,e,s,n);if(r!==null&&(xu(i,r),o&&!t&&!on(i)&&jr(Dt(i),Dt(e),s,n)),ds(e)){const{activeInputs:a}=re(e);fa(e,a)}},ja=(i,t,e,s)=>{const[n,r]=op(i,e,s);n!==null&&(xu(i,n),r&&!t&&!on(i)&&Dt(i).disconnect(Ei(e),s))},ap=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)rr(n)?za(i,t,...n):ja(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},cp=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(rr(r)?za(i,t,...r):ja(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},lp=(i,t,e,s,n)=>{const r=re(i);return Array.from(r.outputs).filter(o=>o[0]===e&&(s===void 0||o[1]===s)&&(n===void 0||o[2]===n)).map(o=>(rr(o)?za(i,t,...o):ja(i,t,...o),r.outputs.delete(o),o[0]))},up=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,b,w,g){super(w),this._context=v,this._nativeAudioNode=w;const y=u(v);h(y)&&e(pl,()=>pl(y,f))!==!0&&np(w),La.set(this,w),pu.set(this,new Set),v.state!=="closed"&&b&&Vn(this),i(this,g,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(v){this._nativeAudioNode.channelCount=v}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(v){this._nativeAudioNode.channelCountMode=v}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(v){this._nativeAudioNode.channelInterpretation=v}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(v,b=0,w=0){if(b<0||b>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(Ur(v)){const k=Dt(v);try{const M=zr(this._nativeAudioNode,k,b,w),R=Dr(this);(y||R)&&this._nativeAudioNode.disconnect(...M),this.context.state!=="closed"&&!R&&Dr(v)&&Vn(v)}catch(M){throw M.code===12?r():M}if(t(this,v,b,w,y)){const M=c([this],v);Yo(M,s(y))}return v}const x=Ei(v);if(x.name==="playbackRate"&&x.maxValue===1024)throw o();try{this._nativeAudioNode.connect(x,b),(y||Dr(this))&&this._nativeAudioNode.disconnect(x,b)}catch(k){throw k.code===12?r():k}if(ip(this,v,b,y)){const k=c([this],v);Yo(k,s(y))}}disconnect(v,b,w){let g;const y=u(this._context),x=_(y);if(v===void 0)g=ap(this,x);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=cp(this,x,v)}else{if(b!==void 0&&(b<0||b>=this.numberOfOutputs)||Ur(v)&&w!==void 0&&(w<0||w>=v.numberOfInputs))throw n();if(g=lp(this,x,v,b,w),g.length===0)throw r()}for(const T of g){const k=c([this],T);Yo(k,a)}}},hp=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const b=f.value,w=new x0(b),g=_?s(w):null,y={get defaultValue(){return b},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(x){f.value=x,y.setValueAtTime(x,p.context.currentTime)},cancelAndHoldAtTime(x){if(typeof f.cancelAndHoldAtTime=="function")g===null&&w.flush(p.context.currentTime),w.add(n(x)),f.cancelAndHoldAtTime(x);else{const T=Array.from(w).pop();g===null&&w.flush(p.context.currentTime),w.add(n(x));const k=Array.from(w).pop();f.cancelScheduledValues(x),T!==k&&k!==void 0&&(k.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(k.value,k.endTime):k.type==="linearRampToValue"?f.linearRampToValueAtTime(k.value,k.endTime):k.type==="setValue"?f.setValueAtTime(k.value,k.startTime):k.type==="setValueCurve"&&f.setValueCurveAtTime(k.values,k.startTime,k.duration))}return y},cancelScheduledValues(x){return g===null&&w.flush(p.context.currentTime),w.add(r(x)),f.cancelScheduledValues(x),y},exponentialRampToValueAtTime(x,T){if(x===0)throw new RangeError;if(!Number.isFinite(T)||T<0)throw new RangeError;const k=p.context.currentTime;return g===null&&w.flush(k),Array.from(w).length===0&&(w.add(l(b,k)),f.setValueAtTime(b,k)),w.add(o(x,T)),f.exponentialRampToValueAtTime(x,T),y},linearRampToValueAtTime(x,T){const k=p.context.currentTime;return g===null&&w.flush(k),Array.from(w).length===0&&(w.add(l(b,k)),f.setValueAtTime(b,k)),w.add(a(x,T)),f.linearRampToValueAtTime(x,T),y},setTargetAtTime(x,T,k){return g===null&&w.flush(p.context.currentTime),w.add(c(x,T,k)),f.setTargetAtTime(x,T,k),y},setValueAtTime(x,T){return g===null&&w.flush(p.context.currentTime),w.add(l(x,T)),f.setValueAtTime(x,T),y},setValueCurveAtTime(x,T,k){const C=x instanceof Float32Array?x:new Float32Array(x);if(h!==null&&h.name==="webkitAudioContext"){const M=T+k,R=p.context.sampleRate,P=Math.ceil(T*R),U=Math.floor(M*R),W=U-P,G=new Float32Array(W);for(let j=0;j({replay(t){for(const e of i)if(e.type==="exponentialRampToValue"){const{endTime:s,value:n}=e;t.exponentialRampToValueAtTime(n,s)}else if(e.type==="linearRampToValue"){const{endTime:s,value:n}=e;t.linearRampToValueAtTime(n,s)}else if(e.type==="setTarget"){const{startTime:s,target:n,timeConstant:r}=e;t.setTargetAtTime(n,s,r)}else if(e.type==="setValue"){const{startTime:s,value:n}=e;t.setValueAtTime(n,s)}else if(e.type==="setValueCurve"){const{duration:s,startTime:n,values:r}=e;t.setValueCurveAtTime(r,n,s)}else throw new Error("Can't apply an unknown automation.")}});class wu{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((s,n)=>t.call(e,s,n,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const fp={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},pp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var b;const w=a(f),g=c(w),y=u({...fp,...v});d(y);const x=ha.get(w),T=x==null?void 0:x.get(m),k=g||w.state!=="closed"?w:(b=o(w))!==null&&b!==void 0?b:w,C=n(k,g?null:f.baseLatency,l,m,T,y),M=g?s(m,y,T):null;super(f,!0,C,M);const R=[];C.parameters.forEach((U,W)=>{const G=e(this,g,U);R.push([W,G])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new wu(R),g&&i(w,this);const{activeInputs:P}=r(this);h(C,P)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const m=typeof f=="function"?p(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=m;const v=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=v!==null&&v===m?f:v}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function qr(i,t,e,s,n){if(typeof i.copyFromChannel=="function")t[e].byteLength===0&&(t[e]=new Float32Array(128)),i.copyFromChannel(t[e],s,n);else{const r=i.getChannelData(s);if(t[e].byteLength===0)t[e]=r.slice(n,n+128);else{const o=new Float32Array(r.buffer,n*Float32Array.BYTES_PER_ELEMENT,128);t[e].set(o)}}}const bu=(i,t,e,s,n)=>{typeof i.copyToChannel=="function"?t[e].byteLength!==0&&i.copyToChannel(t[e],s,n):t[e].byteLength!==0&&i.getChannelData(s).set(t[e],n)},Wr=(i,t)=>{const e=[];for(let s=0;s{const e=je(da,i),s=Dt(t);return je(e,s)},_p=async(i,t,e,s,n,r,o)=>{const a=t===null?Math.ceil(i.context.length/128)*128:t.length,c=s.channelCount*s.numberOfInputs,l=n.reduce((m,v)=>m+v,0),u=l===0?null:e.createBuffer(l,a,e.sampleRate);if(r===void 0)throw new Error("Missing the processor constructor.");const h=re(i),d=await mp(e,i),p=Wr(s.numberOfInputs,s.channelCount),_=Wr(s.numberOfOutputs,n),f=Array.from(i.parameters.keys()).reduce((m,v)=>({...m,[v]:new Float32Array(128)}),{});for(let m=0;m0&&t!==null)for(let v=0;v{qr(t,f,v,c+b,m)});for(let v=0;vh.activeInputs[g].size===0?[]:w),b=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let w=0,g=0;w(m,v,b)=>{const w=new WeakMap;let g=null;const y=async(x,T)=>{let k=u(x),C=null;const M=se(k,T),R=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const P=R.reduce((Y,j)=>Y+j,0),U=n(T,{channelCount:Math.max(1,P),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,P)}),W=[];for(let Y=0;Y{const et=new d(X,Math.ceil(x.context.length/128)*128,T.sampleRate),I=[],F=[];for(let H=0;H{const N=r(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:H.value});return await p(et,H,N.offset),N})),D=s(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,j+z)});for(let H=0;H_(x,et,H))),f(et)})(),T,v,R,b,l)}const P=await g,U=e(T,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[W,G,Y]=C;P!==null&&(U.buffer=P,U.start(0)),U.connect(W);for(let j=0,z=0;jclass extends _{constructor(y,x){super(y,x),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(T,k)=>i(this,T,k)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,x,T){return new e({length:x,numberOfChannels:y,sampleRate:T})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new r(this,{numberOfInputs:y})}createChannelSplitter(y=6){return new o(this,{numberOfOutputs:y})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(y=1){return new u(this,{maxDelayTime:y})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(y,x){return new p(this,{feedback:x,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,x,T={disableNormalization:!1}){return new v(this,{...T,imag:x,real:y})}createStereoPanner(){return new b(this)}createWaveShaper(){return new w(this)}decodeAudioData(y,x,T){return l(this._nativeContext,y).then(k=>(typeof x=="function"&&x(k),k),k=>{throw typeof T=="function"&&T(k),k})}},vp={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},kp=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...vp,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,le),this._detune=t(this,_,p.detune,1200*Math.log2(ne),-1200*Math.log2(ne)),this._frequency=t(this,_,p.frequency,l.sampleRate/2,0),this._gain=t(this,_,p.gain,40*Math.log10(ne),le),this._nativeBiquadFilterNode=p,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},xp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=t(c,h)}return r.set(c,l),u?(await i(c,a.Q,l.Q),await i(c,a.detune,l.detune),await i(c,a.frequency,l.frequency),await i(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},Tp=(i,t)=>(e,s)=>{const n=t.get(e);if(n!==void 0)return n;const r=i.get(e);if(r!==void 0)return r;try{const o=s();return o instanceof Promise?(i.set(e,o),o.catch(()=>!1).then(a=>(i.delete(e),t.set(e,a),a))):(t.set(e,o),o)}catch{return t.set(e,!1),!1}},wp={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},bp=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...wp,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},Cp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Sp={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},Ep=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...Sp,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},Op=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Ap=i=>(t,e,s)=>i(e,t,s),Mp=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return Br(e)?r.connect(e,0,n):r.connect(e,0)},Dp=i=>(t,e)=>{const s=i(t,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),n=t.createBuffer(1,2,44100);return s.buffer=n,s.loop=!0,s.connect(e),s.start(),()=>{s.stop(),s.disconnect(e)}},Pp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},Np=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Pp,...l},d=s(u,h),p=r(u),_=p?e():null;super(c,!1,d,_),this._constantSourceNodeRenderer=_,this._nativeConstantSourceNode=d,this._offset=t(this,p,d.offset,ne,le),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Vn(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),ds(this)&&nr(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Ip=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=t(u,p),o!==null&&h.start(o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.offset,h.offset):await s(u,l.offset,h.offset),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Rp=i=>t=>(i[0]=t,i[0]),Fp={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},Lp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...Fp,...c},h=e(l,u),p=n(l)?t():null;super(a,!1,h,p),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},Vp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Up=(i,t)=>(e,s,n)=>{if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new t(e,s,n)}catch(r){throw r.name==="SyntaxError"?i():r}},zp=()=>new DOMException("","DataCloneError"),ml=i=>{const{port1:t,port2:e}=new MessageChannel;return new Promise(s=>{const n=()=>{e.onmessage=null,t.close(),e.close(),s()};e.onmessage=()=>n();try{t.postMessage(i,[i])}catch{}finally{n()}})},jp=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=o(h)?h:r(h);if(n.has(d)){const _=e();return Promise.reject(_)}try{n.add(d)}catch{}return t(c,()=>c(p))?p.decodeAudioData(d).then(_=>(ml(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await ml(d)}catch{}},v=b=>{f(b),m()};try{p.decodeAudioData(d,b=>{typeof b.copyFromChannel!="function"&&(l(b),Ua(b)),i.add(b),m().then(()=>_(b))},b=>{v(b===null?s():b)})}catch(b){v(b)}})},Bp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=t.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=r(c.context),d=a(h);if(u===l){if(t.delete(c),!d&&o(c)){const p=s(c),{outputs:_}=e(c);for(const f of _)if(rr(f)){const m=s(f[0]);i(p,m,f[1],f[2])}else{const m=n(f[0]);p.connect(m,f[1])}}}else t.set(c,u-l)},qp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},Wp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...qp,...l},d=s(u,h),p=r(u),_=p?e(h.maxDelayTime):null;super(c,!1,d,_),this._delayTime=t(this,p,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},Hp=(i,t,e,s,n)=>r=>{const o=new WeakMap,a=async(c,l)=>{let u=e(c);const h=se(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:r};u=t(l,d)}return o.set(l,u),h?await i(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await n(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},Yp=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),Gp=i=>(t,e)=>{i(t).delete(e)},$p=i=>"delayTime"in i,Xp=(i,t,e)=>function s(n,r){const o=Ur(r)?r:e(i,r);if($p(o))return[];if(n[0]===o)return[n];if(n.includes(o))return[];const{outputs:a}=t(o);return Array.from(a).map(c=>s([...n,o],c[0])).reduce((c,l)=>c.concat(l),[])},wr=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},Zp=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?wr(i,t,e).disconnect():Br(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?wr(i,t,s).disconnect(e,0):wr(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):wr(i,t,s).disconnect(e,0),Qp={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},Kp=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...Qp,...u},p=s(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._attack=t(this,_,p.attack),this._knee=t(this,_,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=t(this,_,p.ratio),this._release=t(this,_,p.release),this._threshold=t(this,_,p.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,n()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,n()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},Jp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=t(c,h)}return r.set(c,l),u?(await i(c,a.attack,l.attack),await i(c,a.knee,l.knee),await i(c,a.ratio,l.ratio),await i(c,a.release,l.release),await i(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},tm=()=>new DOMException("","EncodingError"),em=i=>t=>new Promise((e,s)=>{if(i===null){s(new SyntaxError);return}const n=i.document.head;if(n===null)s(new SyntaxError);else{const r=i.document.createElement("script"),o=new Blob([t],{type:"application/javascript"}),a=URL.createObjectURL(o),c=i.onerror,l=()=>{i.onerror=c,URL.revokeObjectURL(a)};i.onerror=(u,h,d,p,_)=>{if(h===a||h===i.location.href&&d===1&&p===1)return l(),s(_),!1;if(c!==null)return c(u,h,d,p,_)},r.onerror=()=>{l(),s(new SyntaxError)},r.onload=()=>{l(),e()},r.src=a,r.type="module",n.appendChild(r)}}),sm=i=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,s,n){if(s!==null){let r=this._listeners.get(s);r===void 0&&(r=i(this,s),typeof s=="function"&&this._listeners.set(s,r)),this._nativeEventTarget.addEventListener(e,r,n)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,s,n){const r=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(e,r===void 0?null:r,n)}},nm=i=>(t,e,s)=>{Object.defineProperties(i,{currentFrame:{configurable:!0,get(){return Math.round(t*e)}},currentTime:{configurable:!0,get(){return t}}});try{return s()}finally{i!==null&&(delete i.currentFrame,delete i.currentTime)}},im=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},rm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},om=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...rm,...c},h=s(l,u),d=r(l),p=d?e():null;super(a,!1,h,p),this._gain=t(this,d,h.gain,ne,le)}get gain(){return this._gain}},am=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.gain,l.gain):await s(c,a.gain,l.gain),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},cm=(i,t)=>e=>t(i,e),lm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer},um=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},hm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer},dm=i=>t=>i.get(t),Xt=()=>new DOMException("","InvalidStateError"),fm=i=>t=>{const e=i.get(t);if(e===void 0)throw Xt();return e},pm=(i,t)=>e=>{let s=i.get(e);if(s!==void 0)return s;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new t(1,1,44100),i.set(e,s),s},mm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},ko=()=>new DOMException("","InvalidAccessError"),_m=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw ko();return t.call(i,e,s,n)})(i.getFrequencyResponse)},gm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},ym=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...gm,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),_m(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Cu=(i,t,e,s,n,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let p=0;p{const n=e instanceof Float64Array?e:new Float64Array(e),r=s instanceof Float64Array?s:new Float64Array(s),o=n.length,a=r.length,c=Math.min(o,a);if(n[0]!==1){for(let _=0;_(r,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,p=t(u);const _=se(p,h);if(h.createIIRFilter===void 0?d=i(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):_||(p=h.createIIRFilter(o,r)),a.set(h,d===null?p:d),d!==null){if(c===null){if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new e(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const v=await n(m);return vm(v,h,r,o)})()}const f=await c;return d.buffer=f,d.start(0),d}return await s(u,h,p),p};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},xm=(i,t,e,s,n,r)=>o=>(a,c)=>{const l=i.get(a);if(l===void 0){if(!o&&r(a)){const u=s(a),{outputs:h}=e(a);for(const d of h)if(rr(d)){const p=s(d[0]);t(u,p,d[1],d[2])}else{const p=n(d[0]);u.disconnect(p,d[1])}}i.set(a,c)}else i.set(a,l+c)},Tm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},wm=(i,t)=>e=>i.has(e)||t(e),bm=(i,t)=>e=>i.has(e)||t(e),Cm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Sm=i=>t=>i!==null&&t instanceof i,Em=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,Om=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Am=(i,t)=>e=>i(e)||t(e),Mm=i=>t=>i!==null&&t instanceof i,Dm=i=>i!==null&&i.isSecureContext,Pm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw TypeError();super(r,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},Nm={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Im=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...Nm,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},Rm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw new TypeError;super(r,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},Fm=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},Lm=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,yo.set(this,a),s(a)&&n.set(a,new Set),this._destination=new i(this,c),this._listener=t(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?r(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Oi=i=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=i.decodeAudioData(t.buffer,()=>{});return e===void 0?!1:(e.catch(()=>{}),!0)}catch{}return!1},Vm=(i,t)=>(e,s,n)=>{const r=new Set;return e.connect=(o=>(a,c=0,l=0)=>{const u=r.size===0;if(t(a))return o.call(e,a,c,l),i(r,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(e,a,c),i(r,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(e.connect),e.disconnect=(o=>(a,c,l)=>{const u=r.size>0;if(a===void 0)o.apply(e),r.clear();else if(typeof a=="number"){o.call(e,a);for(const d of r)d[1]===a&&r.delete(d)}else{t(a)?o.call(e,a,c,l):o.call(e,a,c);for(const d of r)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&r.delete(d)}const h=r.size===0;u&&h&&n()})(e.disconnect),e},Pt=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e]&&(i[e]=s)},Gt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},_l=i=>typeof i.getFloatTimeDomainData=="function",Um=i=>{i.getFloatTimeDomainData=t=>{const e=new Uint8Array(t.length);i.getByteTimeDomainData(e);const s=Math.max(e.length,i.fftSize);for(let n=0;n(e,s)=>{const n=e.createAnalyser();if(Gt(n,s),!(s.maxDecibels>s.minDecibels))throw t();return Pt(n,s,"fftSize"),Pt(n,s,"maxDecibels"),Pt(n,s,"minDecibels"),Pt(n,s,"smoothingTimeConstant"),i(_l,()=>_l(n))||Um(n),n},jm=i=>i===null?null:i.hasOwnProperty("AudioBuffer")?i.AudioBuffer:null,Ft=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e].value&&(i[e].value=s)},Bm=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Xt();t.call(i,s,n,r),e=!0}})(i.start)},Ba=i=>{i.start=(t=>(e=0,s=0,n)=>{if(typeof n=="number"&&n<0||s<0||e<0)throw new RangeError("The parameters can't be negative.");t.call(i,e,s,n)})(i.start)},qa=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},qm=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Gt(p,d),Ft(p,d,"playbackRate"),Pt(p,d,"buffer"),Pt(p,d,"loop"),Pt(p,d,"loopEnd"),Pt(p,d,"loopStart"),t(e,()=>e(h))||Bm(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||Ba(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||qa(p),i(h,p),p},Wm=i=>i===null?null:i.hasOwnProperty("AudioContext")?i.AudioContext:i.hasOwnProperty("webkitAudioContext")?i.webkitAudioContext:null,Hm=(i,t)=>(e,s,n)=>{const r=e.destination;if(r.channelCount!==s)try{r.channelCount=s}catch{}n&&r.channelCountMode!=="explicit"&&(r.channelCountMode="explicit"),r.maxChannelCount===0&&Object.defineProperty(r,"maxChannelCount",{value:s});const o=i(e,{channelCount:s,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return t(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{r.channelCount=c}catch(l){if(c>r.maxChannelCount)throw l}}),t(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelCountMode=c}),t(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o},Ym=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,Gm=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},$m=(i,t,e,s,n)=>(r,o,a,c,l,u)=>{if(a!==null)try{const h=new a(r,c,u),d=new Map;let p=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw i()}},channelCountMode:{get:()=>"explicit",set:()=>{throw i()}},onprocessorerror:{get:()=>p,set:_=>{typeof p=="function"&&h.removeEventListener("processorerror",p),p=typeof _=="function"?_:null,typeof p=="function"&&h.addEventListener("processorerror",p)}}}),h.addEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(m!==null){const v=d.get(f[1]);v!==void 0?f[1]=v:(f[1]=b=>{b.type==="error"?(Object.defineProperties(b,{type:{value:"processorerror"}}),m(b)):m(new ErrorEvent(f[0],{...b}))},d.set(m,f[1]))}}return _.call(h,"error",f[1],f[2]),_.call(h,...f)})(h.addEventListener),h.removeEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=d.get(f[1]);m!==void 0&&(d.delete(f[1]),f[1]=m)}return _.call(h,"error",f[1],f[2]),_.call(h,f[0],f[1],f[2])})(h.removeEventListener),u.numberOfOutputs!==0){const _=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(_).connect(r.destination),n(h,()=>_.disconnect(),()=>_.connect(r.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return Gm(u),t(r,o,l,u)},Su=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),Xm=i=>new Promise((t,e)=>{const{port1:s,port2:n}=new MessageChannel;s.onmessage=({data:r})=>{s.close(),n.close(),t(r)},s.onmessageerror=({data:r})=>{s.close(),n.close(),e(r)},n.postMessage(i)}),Zm=async(i,t)=>{const e=await Xm(t);return new i(e)},Qm=(i,t,e,s)=>{let n=da.get(i);n===void 0&&(n=new WeakMap,da.set(i,n));const r=Zm(e,s);return n.set(t,r),r},Km=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const v=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(v.some(B=>B<1))throw c();if(v.length!==m.numberOfOutputs)throw t();if(m.channelCountMode!=="explicit")throw c();const b=m.channelCount*m.numberOfInputs,w=v.reduce((B,O)=>B+O,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(b+g>6||w>6)throw c();const y=new MessageChannel,x=[],T=[];for(let B=0;BB===void 0?0:B},maxValue:{get:()=>O===void 0?ne:O},minValue:{get:()=>E===void 0?le:E}}),k.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,b+g)}),M=Su(_,p.sampleRate),R=a(p,M,b+g,Math.max(1,w)),P=n(p,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),U=[];for(let B=0;B{const E=k[O];return E.connect(C,0,b+O),E.start(0),[B,E.offset]}));C.connect(R);let G=m.channelInterpretation,Y=null;const j=m.numberOfOutputs===0?[R]:U,z={get bufferSize(){return M},get channelCount(){return m.channelCount},set channelCount(B){throw e()},get channelCountMode(){return m.channelCountMode},set channelCountMode(B){throw e()},get channelInterpretation(){return G},set channelInterpretation(B){for(const O of x)O.channelInterpretation=B;G=B},get context(){return R.context},get inputs(){return x},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return Y},set onprocessorerror(B){typeof Y=="function"&&z.removeEventListener("processorerror",Y),Y=typeof B=="function"?B:null,typeof Y=="function"&&z.addEventListener("processorerror",Y)},get parameters(){return W},get port(){return y.port2},addEventListener(...B){return R.addEventListener(B[0],B[1],B[2])},connect:i.bind(null,j),disconnect:l.bind(null,j),dispatchEvent(...B){return R.dispatchEvent(B[0])},removeEventListener(...B){return R.removeEventListener(B[0],B[1],B[2])}},X=new Map;y.port1.addEventListener=(B=>(...O)=>{if(O[0]==="message"){const E=typeof O[1]=="function"?O[1]:typeof O[1]=="object"&&O[1]!==null&&typeof O[1].handleEvent=="function"?O[1].handleEvent:null;if(E!==null){const Z=X.get(O[1]);Z!==void 0?O[1]=Z:(O[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},X.set(E,O[1]))}}return B.call(y.port1,O[0],O[1],O[2])})(y.port1.addEventListener),y.port1.removeEventListener=(B=>(...O)=>{if(O[0]==="message"){const E=X.get(O[1]);E!==void 0&&(X.delete(O[1]),O[1]=E)}return B.call(y.port1,O[0],O[1],O[2])})(y.port1.removeEventListener);let Q=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Q,set:B=>{typeof Q=="function"&&y.port1.removeEventListener("message",Q),Q=typeof B=="function"?B:null,typeof Q=="function"&&(y.port1.addEventListener("message",Q),y.port1.start())}}),f.prototype.port=y.port1;let et=null;Qm(p,z,f,m).then(B=>et=B);const F=Wr(m.numberOfInputs,m.channelCount),S=Wr(m.numberOfOutputs,v),D=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((B,{name:O})=>({...B,[O]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&R.disconnect(P);for(let B=0,O=0;B{if(et!==null){const E=h(z);for(let Z=0;Z{qr(B,D,tt,b+lt,Z)});for(let tt=0;tt{if(E[Yt].size>0)return V.set(Yt,M/128),vt;const ti=V.get(Yt);return ti===void 0?[]:(vt.every(Io=>Io.every(dr=>dr===0))&&(ti===1?V.delete(Yt):V.set(Yt,ti-1)),vt)});H=u(p.currentTime+Z/p.sampleRate,p.sampleRate,()=>et.process(tt,S,D));for(let vt=0,Yt=0;vtR.connect(st).connect(p.destination),J=()=>{R.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&R.connect(P);for(let B=0,O=0;B{H&&(nt(),N()),it=!1};return nt(),d(z,pt,K)},Eu=(i,t)=>{const e=i.createBiquadFilter();return Gt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},Jm=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Gt(n,s),n},t_=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Xt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Xt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Xt()}})},or=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Gt(e,t),t_(e),e},e_=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Gt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||Ba(a),t(n,()=>n(r))||qa(a),i(r,a),a},Zn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),s_=(i,t,e,s)=>(n,{offset:r,...o})=>{const a=n.createBuffer(1,2,44100),c=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=e(n,{...o,gain:r}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(_){l.channelCount=_},get channelCountMode(){return l.channelCountMode},set channelCountMode(_){l.channelCountMode=_},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(_){l.channelInterpretation=_},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(_){c.onended=_},addEventListener(..._){return c.addEventListener(_[0],_[1],_[2])},dispatchEvent(..._){return c.dispatchEvent(_[0])},removeEventListener(..._){return c.removeEventListener(_[0],_[1],_[2])},start(_=0){c.start.call(c,_)},stop(_=0){c.stop.call(c,_)}},d=()=>c.connect(l),p=()=>c.disconnect(l);return i(n,c),s(Zn(h,l),d,p)},n_=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Gt(n,s),s.disableNormalization===n.normalize&&(n.normalize=!s.disableNormalization),Pt(n,s,"buffer"),s.channelCount>2||(t(n,"channelCount",r=>()=>r.call(n),r=>o=>{if(o>2)throw i();return r.call(n,o)}),s.channelCountMode==="max"))throw i();return t(n,"channelCountMode",r=>()=>r.call(n),r=>o=>{if(o==="max")throw i();return r.call(n,o)}),n},Ou=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Gt(e,t),Ft(e,t,"delayTime"),e},i_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Gt(s,e),e.channelCount>2||e.channelCountMode==="max")throw i();return Ft(s,e,"attack"),Ft(s,e,"knee"),Ft(s,e,"ratio"),Ft(s,e,"release"),Ft(s,e,"threshold"),s},me=(i,t)=>{const e=i.createGain();return Gt(e,t),Ft(e,t,"gain"),e},r_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Gt(n,s),n};function o_(i,t){const e=t[0]*t[0]+t[1]*t[1];return[(i[0]*t[0]+i[1]*t[1])/e,(i[1]*t[0]-i[0]*t[1])/e]}function a_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function gl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=a_(e,t),e[0]+=i[s];return e}const c_=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Su(r,n.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),p=u instanceof Float64Array?u:new Float64Array(u),_=d.length,f=p.length,m=Math.min(_,f);if(_===0||_>20)throw s();if(d[0]===0)throw t();if(f===0||f>20)throw s();if(p[0]===0)throw t();if(d[0]!==1){for(let k=0;k{const C=k.inputBuffer,M=k.outputBuffer,R=C.numberOfChannels;for(let P=0;Pi.createMediaElementSource(t.mediaElement),u_=(i,t)=>{const e=i.createMediaStreamDestination();return Gt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},h_=(i,{mediaStream:t})=>{const e=t.getAudioTracks();e.sort((r,o)=>r.ido.id?1:0);const s=e.slice(0,1),n=i.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(n,"mediaStream",{value:t}),n},d_=(i,t)=>(e,{mediaStreamTrack:s})=>{if(typeof e.createMediaStreamTrackSource=="function")return e.createMediaStreamTrackSource(s);const n=new MediaStream([s]),r=e.createMediaStreamSource(n);if(s.kind!=="audio")throw i();if(t(e))throw new TypeError;return r},f_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,p_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Gt(c,a),Ft(c,a,"detune"),Ft(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Pt(c,a,"type"),t(e,()=>e(o))||Ba(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||qa(c),i(o,c),c},m_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Gt(s,e),Ft(s,e,"orientationX"),Ft(s,e,"orientationY"),Ft(s,e,"orientationZ"),Ft(s,e,"positionX"),Ft(s,e,"positionY"),Ft(s,e,"positionZ"),Pt(s,e,"coneInnerAngle"),Pt(s,e,"coneOuterAngle"),Pt(s,e,"coneOuterGain"),Pt(s,e,"distanceModel"),Pt(s,e,"maxDistance"),Pt(s,e,"panningModel"),Pt(s,e,"refDistance"),Pt(s,e,"rolloffFactor"),s)},__=(i,t,e,s,n,r,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:p,distanceModel:_,maxDistance:f,orientationX:m,orientationY:v,orientationZ:b,panningModel:w,positionX:g,positionY:y,positionZ:x,refDistance:T,rolloffFactor:k,...C})=>{const M=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Gt(M,C);const R={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},P=e(u,{...R,channelInterpretation:"speakers",numberOfInputs:6}),U=s(u,{...C,gain:1}),W=s(u,{...R,gain:1}),G=s(u,{...R,gain:0}),Y=s(u,{...R,gain:0}),j=s(u,{...R,gain:0}),z=s(u,{...R,gain:0}),X=s(u,{...R,gain:0}),Q=n(u,256,6,1),et=r(u,{...R,curve:new Float32Array([1,1]),oversample:"none"});let I=[m,v,b],F=[g,y,x];const S=new Float32Array(1);Q.onaudioprocess=({inputBuffer:V})=>{const it=[c(V,S,0),c(V,S,1),c(V,S,2)];it.some((nt,J)=>nt!==I[J])&&(M.setOrientation(...it),I=it);const st=[c(V,S,3),c(V,S,4),c(V,S,5)];st.some((nt,J)=>nt!==F[J])&&(M.setPosition(...st),F=st)},Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const D={get bufferSize(){},get channelCount(){return M.channelCount},set channelCount(V){if(V>2)throw o();U.channelCount=V,M.channelCount=V},get channelCountMode(){return M.channelCountMode},set channelCountMode(V){if(V==="max")throw o();U.channelCountMode=V,M.channelCountMode=V},get channelInterpretation(){return M.channelInterpretation},set channelInterpretation(V){U.channelInterpretation=V,M.channelInterpretation=V},get coneInnerAngle(){return M.coneInnerAngle},set coneInnerAngle(V){M.coneInnerAngle=V},get coneOuterAngle(){return M.coneOuterAngle},set coneOuterAngle(V){M.coneOuterAngle=V},get coneOuterGain(){return M.coneOuterGain},set coneOuterGain(V){if(V<0||V>1)throw t();M.coneOuterGain=V},get context(){return M.context},get distanceModel(){return M.distanceModel},set distanceModel(V){M.distanceModel=V},get inputs(){return[U]},get maxDistance(){return M.maxDistance},set maxDistance(V){if(V<0)throw new RangeError;M.maxDistance=V},get numberOfInputs(){return M.numberOfInputs},get numberOfOutputs(){return M.numberOfOutputs},get orientationX(){return W.gain},get orientationY(){return G.gain},get orientationZ(){return Y.gain},get panningModel(){return M.panningModel},set panningModel(V){M.panningModel=V},get positionX(){return j.gain},get positionY(){return z.gain},get positionZ(){return X.gain},get refDistance(){return M.refDistance},set refDistance(V){if(V<0)throw new RangeError;M.refDistance=V},get rolloffFactor(){return M.rolloffFactor},set rolloffFactor(V){if(V<0)throw new RangeError;M.rolloffFactor=V},addEventListener(...V){return U.addEventListener(V[0],V[1],V[2])},dispatchEvent(...V){return U.dispatchEvent(V[0])},removeEventListener(...V){return U.removeEventListener(V[0],V[1],V[2])}};h!==D.coneInnerAngle&&(D.coneInnerAngle=h),d!==D.coneOuterAngle&&(D.coneOuterAngle=d),p!==D.coneOuterGain&&(D.coneOuterGain=p),_!==D.distanceModel&&(D.distanceModel=_),f!==D.maxDistance&&(D.maxDistance=f),m!==D.orientationX.value&&(D.orientationX.value=m),v!==D.orientationY.value&&(D.orientationY.value=v),b!==D.orientationZ.value&&(D.orientationZ.value=b),w!==D.panningModel&&(D.panningModel=w),g!==D.positionX.value&&(D.positionX.value=g),y!==D.positionY.value&&(D.positionY.value=y),x!==D.positionZ.value&&(D.positionZ.value=x),T!==D.refDistance&&(D.refDistance=T),k!==D.rolloffFactor&&(D.rolloffFactor=k),(I[0]!==1||I[1]!==0||I[2]!==0)&&M.setOrientation(...I),(F[0]!==0||F[1]!==0||F[2]!==0)&&M.setPosition(...F);const H=()=>{U.connect(M),i(U,et,0,0),et.connect(W).connect(P,0,0),et.connect(G).connect(P,0,1),et.connect(Y).connect(P,0,2),et.connect(j).connect(P,0,3),et.connect(z).connect(P,0,4),et.connect(X).connect(P,0,5),P.connect(Q).connect(u.destination)},N=()=>{U.disconnect(M),a(U,et,0,0),et.disconnect(W),W.disconnect(P),et.disconnect(G),G.disconnect(P),et.disconnect(Y),Y.disconnect(P),et.disconnect(j),j.disconnect(P),et.disconnect(z),z.disconnect(P),et.disconnect(X),X.disconnect(P),P.disconnect(Q),Q.disconnect(u.destination)};return l(Zn(D,M),H,N)},g_=i=>(t,{disableNormalization:e,imag:s,real:n})=>{const r=s instanceof Float32Array?s:new Float32Array(s),o=n instanceof Float32Array?n:new Float32Array(n),a=t.createPeriodicWave(o,r,{disableNormalization:e});if(Array.from(s).length<2)throw i();return a},ar=(i,t,e,s)=>i.createScriptProcessor(t,e,s),y_=(i,t)=>(e,s)=>{const n=s.channelCountMode;if(n==="clamped-max")throw t();if(e.createStereoPanner===void 0)return i(e,s);const r=e.createStereoPanner();return Gt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},v_=(i,t,e,s,n,r)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const M=C/16384*c;b[C]=Math.cos(M),w[C]=Math.sin(M)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:b}),x=s(_,{...u,curve:a}),T=e(_,{...l,gain:0}),k=s(_,{...u,curve:w});return{connectGraph(){f.connect(g),f.connect(x.inputs===void 0?x:x.inputs[0]),f.connect(T),x.connect(m),m.connect(y.inputs===void 0?y:y.inputs[0]),m.connect(k.inputs===void 0?k:k.inputs[0]),y.connect(g.gain),k.connect(T.gain),g.connect(v,0,0),T.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(x.inputs===void 0?x:x.inputs[0]),f.disconnect(T),x.disconnect(m),m.disconnect(y.inputs===void 0?y:y.inputs[0]),m.disconnect(k.inputs===void 0?k:k.inputs[0]),y.disconnect(g.gain),k.disconnect(T.gain),g.disconnect(v,0,0),T.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),x=Math.floor(16385/2);for(let j=0;j<16385;j+=1)if(j>x){const z=(j-x)/(16384-x)*c;b[j]=Math.cos(z),w[j]=Math.sin(z),g[j]=0,y[j]=1}else{const z=j/(16384-x)*c;b[j]=1,w[j]=0,g[j]=Math.cos(z),y[j]=Math.sin(z)}const T=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),k=e(_,{...l,gain:0}),C=s(_,{...u,curve:b}),M=e(_,{...l,gain:0}),R=s(_,{...u,curve:w}),P=s(_,{...u,curve:a}),U=e(_,{...l,gain:0}),W=s(_,{...u,curve:g}),G=e(_,{...l,gain:0}),Y=s(_,{...u,curve:y});return{connectGraph(){f.connect(T),f.connect(P.inputs===void 0?P:P.inputs[0]),T.connect(k,0),T.connect(M,0),T.connect(U,1),T.connect(G,1),P.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(R.inputs===void 0?R:R.inputs[0]),m.connect(W.inputs===void 0?W:W.inputs[0]),m.connect(Y.inputs===void 0?Y:Y.inputs[0]),C.connect(k.gain),R.connect(M.gain),W.connect(U.gain),Y.connect(G.gain),k.connect(v,0,0),U.connect(v,0,0),M.connect(v,0,1),G.connect(v,0,1)},disconnectGraph(){f.disconnect(T),f.disconnect(P.inputs===void 0?P:P.inputs[0]),T.disconnect(k,0),T.disconnect(M,0),T.disconnect(U,1),T.disconnect(G,1),P.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(R.inputs===void 0?R:R.inputs[0]),m.disconnect(W.inputs===void 0?W:W.inputs[0]),m.disconnect(Y.inputs===void 0?Y:Y.inputs[0]),C.disconnect(k.gain),R.disconnect(M.gain),W.disconnect(U.gain),Y.disconnect(G.gain),k.disconnect(v,0,0),U.disconnect(v,0,0),M.disconnect(v,0,1),G.disconnect(v,0,1)}}},p=(_,f,m,v,b)=>{if(f===1)return h(_,m,v,b);if(f===2)return d(_,m,v,b);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...b})=>{if(m==="max")throw n();const w=i(_,{...b,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...b,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:x,disconnectGraph:T}=p(_,f,g,y,w);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const k={get bufferSize(){},get channelCount(){return g.channelCount},set channelCount(P){g.channelCount!==P&&(C&&T(),{connectGraph:x,disconnectGraph:T}=p(_,P,g,y,w),C&&x()),g.channelCount=P},get channelCountMode(){return g.channelCountMode},set channelCountMode(P){if(P==="clamped-max"||P==="max")throw n();g.channelCountMode=P},get channelInterpretation(){return g.channelInterpretation},set channelInterpretation(P){g.channelInterpretation=P},get context(){return g.context},get inputs(){return[g]},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get pan(){return y.gain},addEventListener(...P){return g.addEventListener(P[0],P[1],P[2])},dispatchEvent(...P){return g.dispatchEvent(P[0])},removeEventListener(...P){return g.removeEventListener(P[0],P[1],P[2])}};let C=!1;const M=()=>{x(),C=!0},R=()=>{T(),C=!1};return r(Zn(k,w),M,R)}},k_=(i,t,e,s,n,r,o)=>(a,c)=>{const l=a.createWaveShaper();if(r!==null&&r.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return e(a,c);Gt(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw t();Pt(l,{curve:u},"curve"),Pt(l,c,"oversample");let h=null,d=!1;return o(l,"curve",f=>()=>f.call(l),f=>m=>(f.call(l,m),d&&(s(m)&&h===null?h=i(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),n(l,()=>{d=!0,s(l.curve)&&(h=i(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},x_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Gt(l,c),Gt(u,c);const h=e(r,{...c,gain:1}),d=e(r,{...c,gain:-1}),p=e(r,{...c,gain:1}),_=e(r,{...c,gain:-1});let f=null,m=!1,v=null;const b={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,p.channelCount=y,u.channelCount=y,_.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,p.channelCountMode=y,u.channelCountMode=y,_.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,p.channelInterpretation=y,u.channelInterpretation=y,_.channelInterpretation=y},get context(){return l.context},get curve(){return v},set curve(y){if(y!==null&&y.length<2)throw t();if(y===null)l.curve=y,u.curve=y;else{const x=y.length,T=new Float32Array(x+2-x%2),k=new Float32Array(x+2-x%2);T[0]=y[0],k[0]=-y[x-1];const C=Math.ceil((x+1)/2),M=(x+1)/2-1;for(let R=1;R{h.connect(l).connect(p),h.connect(d).connect(u).connect(_).connect(p),m=!0,s(v)&&(f=i(r,h))},g=()=>{h.disconnect(l),l.disconnect(p),h.disconnect(d),d.disconnect(u),u.disconnect(_),_.disconnect(p),m=!1,f!==null&&(f(),f=null)};return n(Zn(b,p),w,g)},ae=()=>new DOMException("","NotSupportedError"),T_={numberOfChannels:1},w_=(i,t,e,s,n)=>class extends i{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...T_,...l},p=s(h,u,d);t(Oi,()=>Oi(p))||p.addEventListener("statechange",(()=>{let _=0;const f=m=>{this._state==="running"&&(_>0?(p.removeEventListener("statechange",f),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):_+=1)};return f})()),super(p,h),this._length=u,this._nativeOfflineAudioContext=p,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(e()):(this._state="running",n(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,vu(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},b_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},C_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...b_,...l},d=e(u,h),p=r(u),_=p?s():null,f=c.sampleRate/2;super(c,!1,d,_),this._detune=t(this,p,d.detune,153600,-153600),this._frequency=t(this,p,d.frequency,f,-f),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=_,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Vn(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),ds(this)&&nr(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},S_=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=e(u);const p=se(d,h);if(!p){const _={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=t(h,_),a!==null&&d.start(a),c!==null&&d.stop(c)}return r.set(h,d),p?(await i(h,u.detune,d.detune),await i(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await n(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=r.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},E_={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},O_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...E_,...l},d=e(u,h),p=r(u),_=p?s():null;super(c,!1,d,_),this._nativePannerNode=d,this._orientationX=t(this,p,d.orientationX,ne,le),this._orientationY=t(this,p,d.orientationY,ne,le),this._orientationZ=t(this,p,d.orientationZ,ne,le),this._positionX=t(this,p,d.positionX,ne,le),this._positionY=t(this,p,d.positionY,ne,le),this._positionZ=t(this,p,d.positionZ,ne,le),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},A_=(i,t,e,s,n,r,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(p,_)=>{let f=null,m=r(p);const v={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},b={...v,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},w=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!w){const g={...b,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=n(_,g)}if(u.set(_,f===null?m:f),f!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const R=new o(6,p.context.length,_.sampleRate),P=t(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});P.connect(R.destination),h=(async()=>{const U=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(W,G)=>{const Y=e(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G===0?1:0});return await a(R,W,Y.offset),Y}));for(let W=0;W<6;W+=1)U[W].connect(P,0,W),U[W].start(0);return l(R)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const x=[];for(let R=0;RW!==T[G])||U.some((W,G)=>W!==k[G])){T=P,k=U;const W=R/_.sampleRate;C.gain.setValueAtTime(0,W),C=s(_,{...v,gain:0}),M=n(_,{...b,orientationX:T[0],orientationY:T[1],orientationZ:T[2],positionX:k[0],positionY:k[1],positionZ:k[2]}),C.gain.setValueAtTime(1,W),y.connect(C).connect(M.inputs[0]),M.connect(f)}}return f}return w?(await i(_,p.orientationX,m.orientationX),await i(_,p.orientationY,m.orientationY),await i(_,p.orientationZ,m.orientationZ),await i(_,p.positionX,m.positionX),await i(_,p.positionY,m.positionY),await i(_,p.positionZ,m.positionZ)):(await a(_,p.orientationX,m.orientationX),await a(_,p.orientationY,m.orientationY),await a(_,p.orientationZ,m.orientationZ),await a(_,p.positionX,m.positionX),await a(_,p.positionY,m.positionY),await a(_,p.positionZ,m.positionZ)),Xn(m)?await c(p,_,m.inputs[0]):await c(p,_,m),m};return{render(p,_){const f=u.get(_);return f!==void 0?Promise.resolve(f):d(p,_)}}},M_={disableNormalization:!1},D_=(i,t,e,s)=>class Au{constructor(r,o){const a=t(r),c=s({...M_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Au.prototype||e.has(r)}},P_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),N_=(i,t,e)=>async(s,n,r)=>{const o=i(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await t(l).render(l,n),p=s.context.destination;!e(l)&&(s!==p||!e(s))&&d.connect(r,u,c)})).reduce((a,c)=>[...a,...c],[]))},I_=(i,t,e)=>async(s,n,r)=>{const o=t(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await i(a).render(a,n);e(a)||u.connect(r,c)}))},R_=(i,t,e,s)=>n=>i(Oi,()=>Oi(n))?Promise.resolve(i(s,s)).then(r=>{if(!r){const o=e(n,512,0,1);n.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>n.currentTime,o.connect(n.destination)}return n.startRendering()}):new Promise(r=>{const o=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.oncomplete=a=>{o.disconnect(),r(a.renderedBuffer)},o.connect(n.destination),n.startRendering()}),F_=i=>(t,e)=>{i.set(t,e)},L_=i=>(t,e)=>i.set(t,e),V_=(i,t,e,s,n,r,o,a)=>(c,l)=>e(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>e(u).render(u,l)))).then(()=>n(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Ua(u)):t(r,()=>r(u))||a(u),i.add(u),u)),U_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},z_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...U_,...c},h=e(l,u),d=r(l),p=d?s():null;super(a,!1,h,p),this._pan=t(this,d,h.pan)}get pan(){return this._pan}},j_=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.pan,l.pan):await s(c,a.pan,l.pan),Xn(l)?await n(a,c,l.inputs[0]):await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},B_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},q_=(i,t)=>async()=>{if(i===null)return!0;if(t===null)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new t(1,128,44100),n=URL.createObjectURL(e);let r=!1,o=!1;try{await s.audioWorklet.addModule(n);const a=new i(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>r=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(n)}return r&&!o},W_=(i,t)=>()=>{if(t===null)return Promise.resolve(!1);const e=new t(1,1,44100),s=i(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(n=>{e.oncomplete=()=>{s.disconnect(),n(e.currentTime!==0)},e.startRendering()})},H_=()=>new DOMException("","UnknownError"),Y_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},G_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Y_,...l},d=e(u,h),_=r(u)?s():null;super(c,!0,d,_),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw t();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},$_=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},X_=()=>typeof window>"u"?null:window,Z_=(i,t)=>e=>{e.copyFromChannel=(s,n,r=0)=>{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+ot=>{t.copyFromChannel=(e=>(s,n,r=0)=>{const o=i(r),a=i(n);if(o(s,n,r=0)=>{const o=i(r),a=i(n);if(o(t,e)=>{const s=e.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=s),i(t,"buffer",n=>()=>{const r=n.call(t);return r===s?null:r},n=>r=>n.call(t,r===null?s:r))},J_=(i,t)=>(e,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw i()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw i()}});const n=e.createBufferSource();t(s,()=>{const a=s.numberOfInputs;for(let c=0;cn.disconnect(s))},Mu=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Du=i=>{if(i===null)return!1;const t=i.length;return t%2!==0?i[Math.floor(t/2)]!==0:i[t/2-1]+i[t/2]!==0},cr=(i,t,e,s)=>{let n=i;for(;!n.hasOwnProperty(t);)n=Object.getPrototypeOf(n);const{get:r,set:o}=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,{get:e(r),set:s(o)})},tg=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),eg=i=>({...i,channelCount:i.numberOfOutputs}),sg=i=>{const{imag:t,real:e}=i;return t===void 0?e===void 0?{...i,imag:[0,0],real:[0,0]}:{...i,imag:Array.from(e,()=>0),real:e}:e===void 0?{...i,imag:t,real:Array.from(t,()=>0)}:{...i,imag:t,real:e}},Pu=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Pu(i,t,e+1e-7)}},ng=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},ig=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},rg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Wa=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Nu=i=>{const t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},Ha=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},og=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},ag=i=>{i.start=(t=>(e=0,s=0,n)=>{const r=i.buffer,o=r===null?s:Math.min(r.duration,s);r!==null&&o>r.duration-.5/i.context.sampleRate?t.call(i,e,0,0):t.call(i,e,o,n)})(i.start)},Iu=(i,t)=>{const e=t.createGain();i.connect(e);const s=(n=>()=>{n.call(i,e),i.removeEventListener("ended",s)})(i.disconnect);i.addEventListener("ended",s),Zn(i,e),i.stop=(n=>{let r=!1;return(o=0)=>{if(r)try{n.call(i,o)}catch{e.gain.setValueAtTime(0,o)}else n.call(i,o),r=!0}})(i.stop)},Qn=(i,t)=>e=>{const s={value:i};return Object.defineProperties(e,{currentTarget:s,target:s}),typeof t=="function"?t.call(i,e):t.handleEvent.call(i,e)},cg=O0(fn),lg=I0(fn),ug=Yp(vo),Ru=new WeakMap,hg=um(Ru),He=Tp(new Map,new WeakMap),ts=X_(),Fu=zm(He,ss),Ya=lm(re),Qt=N_(re,Ya,on),dg=U0(Fu,Dt,Qt),At=fm(yo),vs=f_(ts),wt=Mm(vs),Lu=new WeakMap,Vu=sm(Qn),lr=Wm(ts),Ga=Sm(lr),$a=Em(ts),Uu=Om(ts),Ai=Ym(ts),Wt=up(A0(du),N0(cg,lg,zr,ug,jr,re,hg,sr,Dt,fn,ds,on,Dr),He,xm(ua,jr,re,Dt,Ei,ds),ss,ko,ae,Bp(zr,ua,re,Dt,Ei,At,ds,wt),Xp(Lu,re,je),Vu,At,Ga,$a,Uu,wt,Ai),fg=V0(Wt,dg,ss,Fu,At,wt),Xa=new WeakSet,yl=jm(ts),zu=Rp(new Uint32Array(1)),Za=Z_(zu,ss),Qa=Q_(zu),ju=j0(Xa,He,ae,yl,vs,B_(yl),Za,Qa),xo=R0(me),Bu=I_(Ya,ir,on),ns=Ap(Bu),Kn=qm(xo,He,ng,ig,rg,Wa,Nu,Ha,ag,K_(cr),Iu),is=P_(hm(ir),Bu),pg=W0(ns,Kn,Dt,is,Qt),Ye=hp(M0(fu),Lu,Va,dp,T0,w0,b0,C0,S0,aa,uu,lr,Pu),mg=q0(Wt,pg,Ye,Xt,Kn,At,wt,Qn),_g=J0(Wt,tp,ss,Xt,Hm(me,cr),At,wt,Qt),gg=xp(ns,Eu,Dt,is,Qt),pn=L_(Ru),yg=kp(Wt,Ye,gg,ko,Eu,At,wt,pn),zs=Vm(fn,$a),vg=J_(Xt,zs),js=Jm(lr,vg),kg=Cp(js,Dt,Qt),xg=bp(Wt,kg,js,At,wt),Tg=Op(or,Dt,Qt),wg=Ep(Wt,Tg,or,At,wt,eg),bg=s_(xo,Kn,me,zs),Jn=e_(xo,He,bg,Wa,Ha),Cg=Ip(ns,Jn,Dt,is,Qt),Sg=Np(Wt,Ye,Cg,Jn,At,wt,Qn),qu=n_(ae,cr),Eg=Vp(qu,Dt,Qt),Og=Lp(Wt,Eg,qu,At,wt,pn),Ag=Hp(ns,Ou,Dt,is,Qt),Mg=Wp(Wt,Ye,Ag,Ou,At,wt,pn),Wu=i_(ae),Dg=Jp(ns,Wu,Dt,is,Qt),Pg=Kp(Wt,Ye,Dg,Wu,ae,At,wt,pn),Ng=am(ns,me,Dt,is,Qt),Ig=om(Wt,Ye,Ng,me,At,wt),Rg=c_(ko,Xt,ar,ae),To=R_(He,me,ar,W_(me,vs)),Fg=km(Kn,Dt,vs,Qt,To),Lg=r_(Rg),Vg=ym(Wt,Lg,Fg,At,wt,pn),Ug=ep(Ye,js,Jn,ar,ae,Mu,wt,cr),Hu=new WeakMap,zg=Lm(_g,Ug,Vu,wt,Hu,Qn),Yu=p_(xo,He,Wa,Nu,Ha,Iu),jg=S_(ns,Yu,Dt,is,Qt),Bg=C_(Wt,Ye,Yu,jg,At,wt,Qn),Gu=Dp(Kn),qg=x_(Gu,Xt,me,Du,zs),wo=k_(Gu,Xt,qg,Du,zs,lr,cr),Wg=__(zr,Xt,js,me,ar,wo,ae,jr,Mu,zs),$u=m_(Wg),Hg=A_(ns,js,Jn,me,$u,Dt,vs,is,Qt,To),Yg=O_(Wt,Ye,$u,Hg,At,wt,pn),Gg=g_(ss),$g=D_(Gg,At,new WeakSet,sg),Xg=v_(js,or,me,wo,ae,zs),Xu=y_(Xg,ae),Zg=j_(ns,Xu,Dt,is,Qt),Qg=z_(Wt,Ye,Xu,Zg,At,wt),Kg=$_(wo,Dt,Qt),Jg=G_(Wt,Xt,wo,Kg,At,wt,pn),Zu=Dm(ts),Ka=nm(ts),Qu=new WeakMap,ty=pm(Qu,vs),ey=Zu?P0(He,ae,em(ts),Ka,im(E0),At,ty,wt,Ai,new WeakMap,new WeakMap,q_(Ai,vs),ts):void 0,sy=Am(Ga,wt),ny=jp(Xa,He,zp,tm,new WeakSet,At,sy,Vr,Oi,Za,Qa),Ku=yp(ey,fg,ju,mg,yg,xg,wg,Sg,Og,ny,Mg,Pg,Ig,Vg,zg,Bg,Yg,$g,Qg,Jg),iy=Pm(Wt,l_,At,wt),ry=Im(Wt,u_,At,wt),oy=Rm(Wt,h_,At,wt),ay=d_(Xt,wt),cy=Fm(Wt,ay,At),ly=K0(Ku,Xt,ae,H_,iy,ry,oy,cy,lr),Ja=mm(Hu),uy=F0(Ja),Ju=Mp(ss),hy=Gp(Ja),th=Zp(ss),eh=new WeakMap,dy=cm(eh,je),fy=Km(Ju,ss,Xt,js,or,Jn,me,ar,ae,th,Ka,dy,zs),py=$m(Xt,fy,me,ae,zs),my=gp(ns,Ju,Kn,js,or,Jn,me,hy,th,Ka,Dt,Ai,vs,is,Qt,To),_y=dm(Qu),gy=F_(eh),vl=Zu?pp(uy,Wt,Ye,my,py,re,_y,At,wt,Ai,tg,gy,og,Qn):void 0,yy=Up(ae,vs),vy=V_(Xa,He,Ya,Ja,To,Vr,Za,Qa),ky=w_(Ku,He,Xt,yy,vy),xy=Tm(yo,Ga),Ty=wm(La,$a),wy=bm(Va,Uu),by=Cm(yo,wt);function xe(i){return typeof i>"u"}function dt(i){return!xe(i)}function Cy(i){return typeof i=="function"}function Ps(i){return typeof i=="number"}function Js(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function Sy(i){return typeof i=="boolean"}function ze(i){return Array.isArray(i)}function fs(i){return typeof i=="string"}function br(i){return fs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function Be(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function sh(i){!i.isOffline&&i.state!=="running"&&tc('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let nh=!1,kl=!1;function xl(i){nh=i}function Ey(i){xe(i)&&nh&&!kl&&(kl=!0,tc("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let ih=console;function Oy(...i){ih.log(...i)}function tc(...i){ih.warn(...i)}function Ay(i){return new ly(i)}function My(i,t,e){return new ky(i,t,e)}const tn=typeof self=="object"?self:null,Dy=tn&&(tn.hasOwnProperty("AudioContext")||tn.hasOwnProperty("webkitAudioContext"));function Py(i,t,e){return ut(dt(vl),"This node only works in a secure context (https or localhost)"),new vl(i,t,e)}class Ny{constructor(t,e,s,n){this._callback=t,this._type=e,this._minimumUpdateInterval=Math.max(128/(n||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const t=new Blob([` +`,wi=new at(0,0,0),il=100,k0=600,T0=2e3,Go={x:172.7392402058252,y:-239.04675366094037,z:-2e3},hu="14.8.49",rl=(i,t,e)=>({endTime:t,insertTime:e,type:"exponentialRampToValue",value:i}),ol=(i,t,e)=>({endTime:t,insertTime:e,type:"linearRampToValue",value:i}),ca=(i,t)=>({startTime:t,type:"setValue",value:i}),du=(i,t,e)=>({duration:e,startTime:t,type:"setValueCurve",values:i}),fu=(i,t,{startTime:e,target:s,timeConstant:n})=>s+(t-s)*Math.exp((e-i)/n),On=i=>i.type==="exponentialRampToValue",Lr=i=>i.type==="linearRampToValue",bs=i=>On(i)||Lr(i),La=i=>i.type==="setValue",ls=i=>i.type==="setValueCurve",Vr=(i,t,e,s)=>{const n=i[t];return n===void 0?s:bs(n)||La(n)?n.value:ls(n)?n.values[n.values.length-1]:fu(e,Vr(i,t-1,n.startTime,s),n)},al=(i,t,e,s,n)=>e===void 0?[s.insertTime,n]:bs(e)?[e.endTime,e.value]:La(e)?[e.startTime,e.value]:ls(e)?[e.startTime+e.duration,e.values[e.values.length-1]]:[e.startTime,Vr(i,t-1,e.startTime,n)],la=i=>i.type==="cancelAndHold",ua=i=>i.type==="cancelScheduledValues",Ts=i=>la(i)||ua(i)?i.cancelTime:On(i)||Lr(i)?i.endTime:i.startTime,cl=(i,t,e,{endTime:s,value:n})=>e===n?n:0e+(i-t)/(s-t)*(n-e),w0=(i,t)=>{const e=Math.floor(t),s=Math.ceil(t);return e===s?i[e]:(1-(t-e))*i[e]+(1-(s-t))*i[s]},b0=(i,{duration:t,startTime:e,values:s})=>{const n=(i-e)/t*(s.length-1);return w0(s,n)},wr=i=>i.type==="setTarget";class C0{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const e=Ts(t);if(la(t)||ua(t)){const s=this._automationEvents.findIndex(r=>ua(t)&&ls(r)?r.startTime+r.duration>=e:Ts(r)>=e),n=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),la(t)){const r=this._automationEvents[this._automationEvents.length-1];if(n!==void 0&&bs(n)){if(r!==void 0&&wr(r))throw new Error("The internal list is malformed.");const o=r===void 0?n.insertTime:ls(r)?r.startTime+r.duration:Ts(r),a=r===void 0?this._defaultValue:ls(r)?r.values[r.values.length-1]:r.value,c=On(n)?cl(e,o,a,n):ll(e,o,a,n),l=On(n)?rl(c,e,this._currenTime):ol(c,e,this._currenTime);this._automationEvents.push(l)}if(r!==void 0&&wr(r)&&this._automationEvents.push(ca(this.getValue(e),e)),r!==void 0&&ls(r)&&r.startTime+r.duration>e){const o=e-r.startTime,a=(r.values.length-1)/r.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=r.values.slice(0,c);if(l<1)for(let h=1;hTs(o)>e),n=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(n!==void 0&&ls(n)&&Ts(n)+n.duration>e)return!1;const r=On(t)?rl(t.value,t.endTime,this._currenTime):Lr(t)?ol(t.value,e,this._currenTime):t;if(s===-1)this._automationEvents.push(r);else{if(ls(t)&&e+t.duration>Ts(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,r)}}return!0}flush(t){const e=this._automationEvents.findIndex(s=>Ts(s)>t);if(e>1){const s=this._automationEvents.slice(e-1),n=s[0];wr(n)&&s.unshift(ca(Vr(this._automationEvents,e-2,n.startTime,this._defaultValue),n.startTime)),this._automationEvents=s}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const e=this._automationEvents.findIndex(o=>Ts(o)>t),s=this._automationEvents[e],n=(e===-1?this._automationEvents.length:e)-1,r=this._automationEvents[n];if(r!==void 0&&wr(r)&&(s===void 0||!bs(s)||s.insertTime>t))return fu(t,Vr(this._automationEvents,n-1,r.startTime,this._defaultValue),r);if(r!==void 0&&La(r)&&(s===void 0||!bs(s)))return r.value;if(r!==void 0&&ls(r)&&(s===void 0||!bs(s)||r.startTime+r.duration>t))return t({cancelTime:i,type:"cancelAndHold"}),E0=i=>({cancelTime:i,type:"cancelScheduledValues"}),O0=(i,t)=>({endTime:t,type:"exponentialRampToValue",value:i}),A0=(i,t)=>({endTime:t,type:"linearRampToValue",value:i}),M0=(i,t,e)=>({startTime:t,target:i,timeConstant:e,type:"setTarget"}),D0=()=>new DOMException("","AbortError"),P0=i=>(t,e,[s,n,r],o)=>{i(t[n],[e,s,r],a=>a[0]===e&&a[1]===s,o)},I0=i=>(t,e,s)=>{const n=[];for(let r=0;r(t,e)=>{i.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:e})},Vn=new WeakSet,pu=new WeakMap,Va=new WeakMap,mu=new WeakMap,Ua=new WeakMap,vo=new WeakMap,_u=new WeakMap,ha=new WeakMap,da=new WeakMap,fa=new WeakMap,gu={construct(){return gu}},R0=i=>{try{const t=new Proxy(i,gu);new t}catch{return!1}return!0},ul=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,hl=(i,t)=>{const e=[];let s=i.replace(/^[\s]+/,""),n=s.match(ul);for(;n!==null;){const r=n[1].slice(1,-1),o=n[0].replace(/([\s]+)?;?$/,"").replace(r,new URL(r,t).toString());e.push(o),s=s.slice(n[0].length).replace(/^[\s]+/,""),n=s.match(ul)}return[e.join(";"),s]},dl=i=>{if(i!==void 0&&!Array.isArray(i))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},fl=i=>{if(!R0(i))throw new TypeError("The given value for processorCtor should be a constructor.");if(i.prototype===null||typeof i.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},F0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{let p=0;return(_,f,m={credentials:"omit"})=>{const v=u.get(_);if(v!==void 0&&v.has(f))return Promise.resolve();const b=l.get(_);if(b!==void 0){const y=b.get(f);if(y!==void 0)return y}const w=r(_),g=w.audioWorklet===void 0?n(f).then(([y,k])=>{const[T,x]=hl(y,k),C=`${T};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} +})})(window,'_AWGS')`;return e(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>y(class{},void 0,(k,T)=>{if(k.trim()==="")throw t();const x=da.get(w);if(x!==void 0){if(x.has(k))throw t();fl(T),dl(T.parameterDescriptors),x.set(k,T)}else fl(T),dl(T.parameterDescriptors),da.set(w,new Map([[k,T]]))},w.sampleRate,void 0,void 0))}):Promise.all([n(f),Promise.resolve(i(h,h))]).then(([[y,k],T])=>{const x=p+1;p=x;const[C,O]=hl(y,k),W=`${C};((AudioWorkletProcessor,registerProcessor)=>{${O} +})(${T?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${T?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${T?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,Y=new Blob([W],{type:"application/javascript; charset=utf-8"}),G=URL.createObjectURL(Y);return w.audioWorklet.addModule(G,m).then(()=>{if(a(w))return w;const z=o(w);return z.audioWorklet.addModule(G,m).then(()=>z)}).then(z=>{if(c===null)throw new SyntaxError;try{new c(z,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(G))});return b===void 0?l.set(_,new Map([[f,g]])):b.set(f,g),g.then(()=>{const y=u.get(_);y===void 0?u.set(_,new Set([f])):y.add(f)}).finally(()=>{const y=l.get(_);y!==void 0&&y.delete(f)}),g}},ze=(i,t)=>{const e=i.get(t);if(e===void 0)throw new Error("A value with the given key could not be found.");return e},xo=(i,t)=>{const e=Array.from(i).filter(t);if(e.length>1)throw Error("More than one element was found.");if(e.length===0)throw Error("No element was found.");const[s]=e;return i.delete(s),s},yu=(i,t,e,s)=>{const n=ze(i,t),r=xo(n,o=>o[0]===e&&o[1]===s);return n.size===0&&i.delete(t),r},nr=i=>ze(_u,i),Un=i=>{if(Vn.has(i))throw new Error("The AudioNode is already stored.");Vn.add(i),nr(i).forEach(t=>t(!0))},vu=i=>"port"in i,ir=i=>{if(!Vn.has(i))throw new Error("The AudioNode is not stored.");Vn.delete(i),nr(i).forEach(t=>t(!1))},pa=(i,t)=>{!vu(i)&&t.every(e=>e.size===0)&&ir(i)},L0=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>{const p=new WeakMap;return(_,f,m,v,b)=>{const{activeInputs:w,passiveInputs:g}=r(f),{outputs:y}=r(_),k=a(_),T=x=>{const C=c(f),O=c(_);if(x){const I=yu(g,_,m,v);i(w,_,I,!1),!b&&!h(_)&&e(O,C,m,v),d(f)&&Un(f)}else{const I=s(w,_,m,v);t(g,v,I,!1),!b&&!h(_)&&n(O,C,m,v);const M=o(f);if(M===0)u(f)&&pa(f,w);else{const U=p.get(f);U!==void 0&&clearTimeout(U),p.set(f,setTimeout(()=>{u(f)&&pa(f,w)},M*1e3))}}};return l(y,[f,m,v],x=>x[0]===f&&x[1]===m&&x[2]===v,!0)?(k.add(T),u(_)?i(w,_,[m,v,T],!0):t(g,v,[_,m,T],!0),!0):!1}},V0=i=>(t,e,[s,n,r],o)=>{const a=t.get(s);a===void 0?t.set(s,new Set([[n,e,r]])):i(a,[n,e,r],c=>c[0]===n&&c[1]===e,o)},U0=i=>(t,e)=>{const s=i(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});e.connect(s).connect(t.destination);const n=()=>{e.removeEventListener("ended",n),e.disconnect(s),s.disconnect()};e.addEventListener("ended",n)},j0=i=>(t,e)=>{i(t).add(e)},z0={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},B0=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...z0,...c},h=s(l,u),d=r(l)?t():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,e()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,e()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},se=(i,t)=>i.context===t,q0=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Ur=i=>{try{i.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},ss=()=>new DOMException("","IndexSizeError"),ja=i=>{i.getChannelData=(t=>e=>{try{return t.call(i,e)}catch(s){throw s.code===12?ss():s}})(i.getChannelData)},W0={numberOfChannels:1},H0=(i,t,e,s,n,r,o,a)=>{let c=null;return class xu{constructor(u){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:p}={...W0,...u};c===null&&(c=new n(1,1,44100));const _=s!==null&&t(r,r)?new s({length:h,numberOfChannels:d,sampleRate:p}):c.createBuffer(d,h,p);if(_.numberOfChannels===0)throw e();return typeof _.copyFromChannel!="function"?(o(_),ja(_)):t(Ur,()=>Ur(_))||a(_),i.add(_),_}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===xu.prototype||i.has(u)}}},le=-34028234663852886e22,ne=-le,ds=i=>Vn.has(i),G0={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},Y0=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...G0,...u},p=n(h,d),_=o(h),f=_?t():null;super(l,!1,p,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=p,this._onended=null,this._playbackRate=e(this,_,p.playbackRate,ne,le)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Un(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),ds(this)&&ir(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},$0=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=t(u,p),o!==null&&h.start(...o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Z0=i=>"playbackRate"in i,X0=i=>"frequency"in i&&"gain"in i,Q0=i=>"offset"in i,K0=i=>!("frequency"in i)&&"gain"in i,J0=i=>"detune"in i&&"frequency"in i,tp=i=>"pan"in i,re=i=>ze(pu,i),rr=i=>ze(mu,i),ma=(i,t)=>{const{activeInputs:e}=re(i);e.forEach(n=>n.forEach(([r])=>{t.includes(i)||ma(r,[...t,i])}));const s=Z0(i)?[i.playbackRate]:vu(i)?Array.from(i.parameters.values()):X0(i)?[i.Q,i.detune,i.frequency,i.gain]:Q0(i)?[i.offset]:K0(i)?[i.gain]:J0(i)?[i.detune,i.frequency]:tp(i)?[i.pan]:[];for(const n of s){const r=rr(n);r!==void 0&&r.activeInputs.forEach(([o])=>ma(o,t))}ds(i)&&ir(i)},ku=i=>{ma(i.destination,[])},ep=i=>i===void 0||typeof i=="number"||typeof i=="string"&&(i==="balanced"||i==="interactive"||i==="playback"),sp=(i,t,e,s,n,r,o,a,c)=>class extends i{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(_){throw _.code===12&&_.message==="sampleRate is not in range"?e():_}if(h===null)throw s();if(!ep(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw e();super(h,2);const{latencyHint:d}=u,{sampleRate:p}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/p:d==="interactive"||d===void 0?256/p:d==="playback"?1024/p:Math.max(2,Math.min(128,Math.round(d*p/128)))*128/p,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const _=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",_)};h.addEventListener("statechange",_)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw t()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),ku(this)}))}createMediaElementSource(u){return new n(this,{mediaElement:u})}createMediaStreamDestination(){return new r(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?t():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?t():u})}},np=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d=o(h),p=n(h,u,d),_=d?t(a):null;super(l,!1,p,_),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=p}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw e();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},ip=i=>{const t=new WeakMap,e=async(s,n)=>{const r=n.destination;return t.set(n,r),await i(s,n,r),r};return{render(s,n){const r=t.get(n);return r!==void 0?Promise.resolve(r):e(s,n)}}},rp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),k=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),T=o(l);let x=!1,C=[0,0,-1,0,1,0],O=[0,0,0];const I=()=>{if(x)return;x=!0;const Y=s(l,256,9,0);Y.onaudioprocess=({inputBuffer:G})=>{const z=[r(G,y,0),r(G,y,1),r(G,y,2),r(G,y,3),r(G,y,4),r(G,y,5)];z.some((Z,Q)=>Z!==C[Q])&&(u.setOrientation(...z),C=z);const j=[r(G,y,6),r(G,y,7),r(G,y,8)];j.some((Z,Q)=>Z!==O[Q])&&(u.setPosition(...j),O=j)},k.connect(Y)},M=Y=>G=>{G!==C[Y]&&(C[Y]=G,u.setOrientation(...C))},U=Y=>G=>{G!==O[Y]&&(O[Y]=G,u.setPosition(...O))},W=(Y,G,z)=>{const j=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:G});j.connect(k,0,Y),j.start(),Object.defineProperty(j.offset,"defaultValue",{get(){return G}});const Z=i({context:c},T,j.offset,ne,le);return a(Z,"value",Q=>()=>Q.call(Z),Q=>et=>{try{Q.call(Z,et)}catch(R){if(R.code!==9)throw R}I(),T&&z(et)}),Z.cancelAndHoldAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.cancelAndHoldAtTime),Z.cancelScheduledValues=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.cancelScheduledValues),Z.exponentialRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.exponentialRampToValueAtTime),Z.linearRampToValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.linearRampToValueAtTime),Z.setTargetAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setTargetAtTime),Z.setValueAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setValueAtTime),Z.setValueCurveAtTime=(Q=>T?()=>{throw n()}:(...et)=>{const R=Q.apply(Z,et);return I(),R})(Z.setValueCurveAtTime),Z};return{forwardX:W(0,0,M(0)),forwardY:W(1,0,M(1)),forwardZ:W(2,-1,M(2)),positionX:W(6,0,U(0)),positionY:W(7,0,U(1)),positionZ:W(8,0,U(2)),upX:W(3,0,M(3)),upY:W(4,1,M(4)),upZ:W(5,0,M(5))}},{forwardX:d,forwardY:p,forwardZ:_,positionX:f,positionY:m,positionZ:v,upX:b,upY:w,upZ:g}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return p},get forwardZ(){return _},get positionX(){return f},get positionY(){return m},get positionZ(){return v},get upX(){return b},get upY(){return w},get upZ(){return g}}},jr=i=>"context"in i,or=i=>jr(i[0]),fn=(i,t,e,s)=>{for(const n of i)if(e(n)){if(s)return!1;throw Error("The set contains at least one similar element.")}return i.add(t),!0},pl=(i,t,[e,s],n)=>{fn(i,[t,e,s],r=>r[0]===t&&r[1]===e,n)},ml=(i,[t,e,s],n)=>{const r=i.get(t);r===void 0?i.set(t,new Set([[e,s]])):fn(r,[e,s],o=>o[0]===e,n)},Xn=i=>"inputs"in i,zr=(i,t,e,s)=>{if(Xn(t)){const n=t.inputs[s];return i.connect(n,e,0),[n,e,0]}return i.connect(t,e,s),[t,e,s]},Tu=(i,t,e)=>{for(const s of i)if(s[0]===t&&s[1]===e)return i.delete(s),s;return null},op=(i,t,e)=>xo(i,s=>s[0]===t&&s[1]===e),wu=(i,t)=>{if(!nr(i).delete(t))throw new Error("Missing the expected event listener.")},bu=(i,t,e)=>{const s=ze(i,t),n=xo(s,r=>r[0]===e);return s.size===0&&i.delete(t),n},Br=(i,t,e,s)=>{Xn(t)?i.disconnect(t.inputs[s],e,0):i.disconnect(t,e,s)},Dt=i=>ze(Va,i),Oi=i=>ze(Ua,i),on=i=>ha.has(i),Pr=i=>!Vn.has(i),_l=(i,t)=>new Promise(e=>{if(t!==null)e(!0);else{const s=i.createScriptProcessor(256,1,1),n=i.createGain(),r=i.createBuffer(1,2,44100),o=r.getChannelData(0);o[0]=1,o[1]=1;const a=i.createBufferSource();a.buffer=r,a.loop=!0,a.connect(s).connect(i.destination),a.connect(n),a.disconnect(n),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?e(!0):e(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(i.destination)},a.start()}}),Yo=(i,t)=>{const e=new Map;for(const s of i)for(const n of s){const r=e.get(n);e.set(n,r===void 0?1:r+1)}e.forEach((s,n)=>t(n,s))},qr=i=>"context"in i,ap=i=>{const t=new Map;i.connect=(e=>(s,n=0,r=0)=>{const o=qr(s)?e(s,n,r):e(s,n),a=t.get(s);return a===void 0?t.set(s,[{input:r,output:n}]):a.every(c=>c.input!==r||c.output!==n)&&a.push({input:r,output:n}),o})(i.connect.bind(i)),i.disconnect=(e=>(s,n,r)=>{if(e.apply(i),s===void 0)t.clear();else if(typeof s=="number")for(const[o,a]of t){const c=a.filter(l=>l.output!==s);c.length===0?t.delete(o):t.set(o,c)}else if(t.has(s))if(n===void 0)t.delete(s);else{const o=t.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==n&&(c.input!==r||r===void 0));a.length===0?t.delete(s):t.set(s,a)}}for(const[o,a]of t)a.forEach(c=>{qr(o)?i.connect(o,c.output,c.input):i.connect(o,c.output)})})(i.disconnect)},cp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=rr(t),{outputs:o}=re(i),a=nr(i),c=l=>{const u=Dt(i),h=Oi(t);if(l){const d=bu(r,i,e);pl(n,i,d,!1),!s&&!on(i)&&u.connect(h,e)}else{const d=op(n,i,e);ml(r,d,!1),!s&&!on(i)&&u.disconnect(h,e)}};return fn(o,[t,e],l=>l[0]===t&&l[1]===e,!0)?(a.add(c),ds(i)?pl(n,i,[e,c],!0):ml(r,[i,e,c],!0),!0):!1},lp=(i,t,e,s)=>{const{activeInputs:n,passiveInputs:r}=re(t),o=Tu(n[s],i,e);return o===null?[yu(r,i,e,s)[2],!1]:[o[2],!0]},up=(i,t,e)=>{const{activeInputs:s,passiveInputs:n}=rr(t),r=Tu(s,i,e);return r===null?[bu(n,i,e)[1],!1]:[r[2],!0]},za=(i,t,e,s,n)=>{const[r,o]=lp(i,e,s,n);if(r!==null&&(wu(i,r),o&&!t&&!on(i)&&Br(Dt(i),Dt(e),s,n)),ds(e)){const{activeInputs:a}=re(e);pa(e,a)}},Ba=(i,t,e,s)=>{const[n,r]=up(i,e,s);n!==null&&(wu(i,n),r&&!t&&!on(i)&&Dt(i).disconnect(Oi(e),s))},hp=(i,t)=>{const e=re(i),s=[];for(const n of e.outputs)or(n)?za(i,t,...n):Ba(i,t,...n),s.push(n[0]);return e.outputs.clear(),s},dp=(i,t,e)=>{const s=re(i),n=[];for(const r of s.outputs)r[1]===e&&(or(r)?za(i,t,...r):Ba(i,t,...r),n.push(r[0]),s.outputs.delete(r));return n},fp=(i,t,e,s,n)=>{const r=re(i);return Array.from(r.outputs).filter(o=>o[0]===e&&(s===void 0||o[1]===s)&&(n===void 0||o[2]===n)).map(o=>(or(o)?za(i,t,...o):Ba(i,t,...o),r.outputs.delete(o),o[0]))},pp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p,_,f)=>class extends l{constructor(v,b,w,g){super(w),this._context=v,this._nativeAudioNode=w;const y=u(v);h(y)&&e(_l,()=>_l(y,f))!==!0&&ap(w),Va.set(this,w),_u.set(this,new Set),v.state!=="closed"&&b&&Un(this),i(this,g,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(v){this._nativeAudioNode.channelCount=v}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(v){this._nativeAudioNode.channelCountMode=v}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(v){this._nativeAudioNode.channelInterpretation=v}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(v,b=0,w=0){if(b<0||b>=this._nativeAudioNode.numberOfOutputs)throw n();const g=u(this._context),y=_(g);if(d(v)||p(v))throw r();if(jr(v)){const x=Dt(v);try{const O=zr(this._nativeAudioNode,x,b,w),I=Pr(this);(y||I)&&this._nativeAudioNode.disconnect(...O),this.context.state!=="closed"&&!I&&Pr(v)&&Un(v)}catch(O){throw O.code===12?r():O}if(t(this,v,b,w,y)){const O=c([this],v);Yo(O,s(y))}return v}const k=Oi(v);if(k.name==="playbackRate"&&k.maxValue===1024)throw o();try{this._nativeAudioNode.connect(k,b),(y||Pr(this))&&this._nativeAudioNode.disconnect(k,b)}catch(x){throw x.code===12?r():x}if(cp(this,v,b,y)){const x=c([this],v);Yo(x,s(y))}}disconnect(v,b,w){let g;const y=u(this._context),k=_(y);if(v===void 0)g=hp(this,k);else if(typeof v=="number"){if(v<0||v>=this.numberOfOutputs)throw n();g=dp(this,k,v)}else{if(b!==void 0&&(b<0||b>=this.numberOfOutputs)||jr(v)&&w!==void 0&&(w<0||w>=v.numberOfInputs))throw n();if(g=fp(this,k,v,b,w),g.length===0)throw r()}for(const T of g){const x=c([this],T);Yo(x,a)}}},mp=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m=null,v=null)=>{const b=f.value,w=new C0(b),g=_?s(w):null,y={get defaultValue(){return b},get maxValue(){return m===null?f.maxValue:m},get minValue(){return v===null?f.minValue:v},get value(){return f.value},set value(k){f.value=k,y.setValueAtTime(k,p.context.currentTime)},cancelAndHoldAtTime(k){if(typeof f.cancelAndHoldAtTime=="function")g===null&&w.flush(p.context.currentTime),w.add(n(k)),f.cancelAndHoldAtTime(k);else{const T=Array.from(w).pop();g===null&&w.flush(p.context.currentTime),w.add(n(k));const x=Array.from(w).pop();f.cancelScheduledValues(k),T!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?f.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?f.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&f.setValueCurveAtTime(x.values,x.startTime,x.duration))}return y},cancelScheduledValues(k){return g===null&&w.flush(p.context.currentTime),w.add(r(k)),f.cancelScheduledValues(k),y},exponentialRampToValueAtTime(k,T){if(k===0)throw new RangeError;if(!Number.isFinite(T)||T<0)throw new RangeError;const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(o(k,T)),f.exponentialRampToValueAtTime(k,T),y},linearRampToValueAtTime(k,T){const x=p.context.currentTime;return g===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(b,x)),f.setValueAtTime(b,x)),w.add(a(k,T)),f.linearRampToValueAtTime(k,T),y},setTargetAtTime(k,T,x){return g===null&&w.flush(p.context.currentTime),w.add(c(k,T,x)),f.setTargetAtTime(k,T,x),y},setValueAtTime(k,T){return g===null&&w.flush(p.context.currentTime),w.add(l(k,T)),f.setValueAtTime(k,T),y},setValueCurveAtTime(k,T,x){const C=k instanceof Float32Array?k:new Float32Array(k);if(h!==null&&h.name==="webkitAudioContext"){const O=T+x,I=p.context.sampleRate,M=Math.ceil(T*I),U=Math.floor(O*I),W=U-M,Y=new Float32Array(W);for(let z=0;z({replay(t){for(const e of i)if(e.type==="exponentialRampToValue"){const{endTime:s,value:n}=e;t.exponentialRampToValueAtTime(n,s)}else if(e.type==="linearRampToValue"){const{endTime:s,value:n}=e;t.linearRampToValueAtTime(n,s)}else if(e.type==="setTarget"){const{startTime:s,target:n,timeConstant:r}=e;t.setTargetAtTime(n,s,r)}else if(e.type==="setValue"){const{startTime:s,value:n}=e;t.setValueAtTime(n,s)}else if(e.type==="setValueCurve"){const{duration:s,startTime:n,values:r}=e;t.setValueCurveAtTime(r,n,s)}else throw new Error("Can't apply an unknown automation.")}});class Cu{constructor(t){this._map=new Map(t)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,e=null){return this._map.forEach((s,n)=>t.call(e,s,n,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const gp={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},yp=(i,t,e,s,n,r,o,a,c,l,u,h,d,p)=>class extends t{constructor(f,m,v){var b;const w=a(f),g=c(w),y=u({...gp,...v});d(y);const k=da.get(w),T=k==null?void 0:k.get(m),x=g||w.state!=="closed"?w:(b=o(w))!==null&&b!==void 0?b:w,C=n(x,g?null:f.baseLatency,l,m,T,y),O=g?s(m,y,T):null;super(f,!0,C,O);const I=[];C.parameters.forEach((U,W)=>{const Y=e(this,g,U);I.push([W,Y])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new Cu(I),g&&i(w,this);const{activeInputs:M}=r(this);h(C,M)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const m=typeof f=="function"?p(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=m;const v=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=v!==null&&v===m?f:v}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Wr(i,t,e,s,n){if(typeof i.copyFromChannel=="function")t[e].byteLength===0&&(t[e]=new Float32Array(128)),i.copyFromChannel(t[e],s,n);else{const r=i.getChannelData(s);if(t[e].byteLength===0)t[e]=r.slice(n,n+128);else{const o=new Float32Array(r.buffer,n*Float32Array.BYTES_PER_ELEMENT,128);t[e].set(o)}}}const Su=(i,t,e,s,n)=>{typeof i.copyToChannel=="function"?t[e].byteLength!==0&&i.copyToChannel(t[e],s,n):t[e].byteLength!==0&&i.getChannelData(s).set(t[e],n)},Hr=(i,t)=>{const e=[];for(let s=0;s{const e=ze(fa,i),s=Dt(t);return ze(e,s)},xp=async(i,t,e,s,n,r,o)=>{const a=t===null?Math.ceil(i.context.length/128)*128:t.length,c=s.channelCount*s.numberOfInputs,l=n.reduce((m,v)=>m+v,0),u=l===0?null:e.createBuffer(l,a,e.sampleRate);if(r===void 0)throw new Error("Missing the processor constructor.");const h=re(i),d=await vp(e,i),p=Hr(s.numberOfInputs,s.channelCount),_=Hr(s.numberOfOutputs,n),f=Array.from(i.parameters.keys()).reduce((m,v)=>({...m,[v]:new Float32Array(128)}),{});for(let m=0;m0&&t!==null)for(let v=0;v{Wr(t,f,v,c+b,m)});for(let v=0;vh.activeInputs[g].size===0?[]:w),b=o(m/e.sampleRate,e.sampleRate,()=>d.process(v,_,f));if(u!==null)for(let w=0,g=0;w(m,v,b)=>{const w=new WeakMap;let g=null;const y=async(k,T)=>{let x=u(k),C=null;const O=se(x,T),I=Array.isArray(v.outputChannelCount)?v.outputChannelCount:Array.from(v.outputChannelCount);if(h===null){const M=I.reduce((G,z)=>G+z,0),U=n(T,{channelCount:Math.max(1,M),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,M)}),W=[];for(let G=0;G{const et=new d(Z,Math.ceil(k.context.length/128)*128,T.sampleRate),R=[],F=[];for(let H=0;H{const N=r(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:H.value});return await p(et,H,N.offset),N})),P=s(et,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,z+j)});for(let H=0;H_(k,et,H))),f(et)})(),T,v,I,b,l)}const M=await g,U=e(T,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[W,Y,G]=C;M!==null&&(U.buffer=M,U.start(0)),U.connect(W);for(let z=0,j=0;zclass extends _{constructor(y,k){super(y,k),this._nativeContext=y,this._audioWorklet=i===void 0?void 0:{addModule:(T,x)=>i(this,T,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new t(this)}createBiquadFilter(){return new n(this)}createBuffer(y,k,T){return new e({length:k,numberOfChannels:y,sampleRate:T})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new r(this,{numberOfInputs:y})}createChannelSplitter(y=6){return new o(this,{numberOfOutputs:y})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(y=1){return new u(this,{maxDelayTime:y})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(y,k){return new p(this,{feedback:k,feedforward:y})}createOscillator(){return new f(this)}createPanner(){return new m(this)}createPeriodicWave(y,k,T={disableNormalization:!1}){return new v(this,{...T,imag:k,real:y})}createStereoPanner(){return new b(this)}createWaveShaper(){return new w(this)}decodeAudioData(y,k,T){return l(this._nativeContext,y).then(x=>(typeof k=="function"&&k(x),x),x=>{throw typeof T=="function"&&T(x),x})}},wp={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},bp=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...wp,...u},p=n(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._Q=t(this,_,p.Q,ne,le),this._detune=t(this,_,p.detune,1200*Math.log2(ne),-1200*Math.log2(ne)),this._frequency=t(this,_,p.frequency,l.sampleRate/2,0),this._gain=t(this,_,p.gain,40*Math.log10(ne),le),this._nativeBiquadFilterNode=p,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},Cp=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=t(c,h)}return r.set(c,l),u?(await i(c,a.Q,l.Q),await i(c,a.detune,l.detune),await i(c,a.frequency,l.frequency),await i(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},Sp=(i,t)=>(e,s)=>{const n=t.get(e);if(n!==void 0)return n;const r=i.get(e);if(r!==void 0)return r;try{const o=s();return o instanceof Promise?(i.set(e,o),o.catch(()=>!1).then(a=>(i.delete(e),t.set(e,a),a))):(t.set(e,o),o)}catch{return t.set(e,!1),!1}},Ep={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},Op=(i,t,e,s,n)=>class extends i{constructor(o,a){const c=s(o),l={...Ep,...a},u=e(c,l),h=n(c)?t():null;super(o,!1,u,h)}},Ap=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Mp={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},Dp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=r({...Mp,...c}),h=e(l,u),d=n(l)?t():null;super(a,!1,h,d)}},Pp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=i(o,l)}return s.set(o,a),await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},Ip=i=>(t,e,s)=>i(e,t,s),Np=i=>(t,e,s=0,n=0)=>{const r=t[s];if(r===void 0)throw i();return qr(e)?r.connect(e,0,n):r.connect(e,0)},Rp=i=>(t,e)=>{const s=i(t,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),n=t.createBuffer(1,2,44100);return s.buffer=n,s.loop=!0,s.connect(e),s.start(),()=>{s.stop(),s.disconnect(e)}},Fp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},Lp=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Fp,...l},d=s(u,h),p=r(u),_=p?e():null;super(c,!1,d,_),this._constantSourceNodeRenderer=_,this._nativeConstantSourceNode=d,this._offset=t(this,p,d.offset,ne,le),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Un(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),ds(this)&&ir(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},Vp=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=e(l);const d=se(h,u);if(!d){const p={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=t(u,p),o!==null&&h.start(o),a!==null&&h.stop(a)}return r.set(u,h),d?await i(u,l.offset,h.offset):await s(u,l.offset,h.offset),await n(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=r.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},Up=i=>t=>(i[0]=t,i[0]),jp={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},zp=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u={...jp,...c},h=e(l,u),p=n(l)?t():null;super(a,!1,h,p),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&r(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,r(this,0)}else this._isBufferNullified=!1,r(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},Bp=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},qp=(i,t)=>(e,s,n)=>{if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new t(e,s,n)}catch(r){throw r.name==="SyntaxError"?i():r}},Wp=()=>new DOMException("","DataCloneError"),gl=i=>{const{port1:t,port2:e}=new MessageChannel;return new Promise(s=>{const n=()=>{e.onmessage=null,t.close(),e.close(),s()};e.onmessage=()=>n();try{t.postMessage(i,[i])}catch{}finally{n()}})},Hp=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=o(h)?h:r(h);if(n.has(d)){const _=e();return Promise.reject(_)}try{n.add(d)}catch{}return t(c,()=>c(p))?p.decodeAudioData(d).then(_=>(gl(d).catch(()=>{}),t(a,()=>a(_))||u(_),i.add(_),_)):new Promise((_,f)=>{const m=async()=>{try{await gl(d)}catch{}},v=b=>{f(b),m()};try{p.decodeAudioData(d,b=>{typeof b.copyFromChannel!="function"&&(l(b),ja(b)),i.add(b),m().then(()=>_(b))},b=>{v(b===null?s():b)})}catch(b){v(b)}})},Gp=(i,t,e,s,n,r,o,a)=>(c,l)=>{const u=t.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=r(c.context),d=a(h);if(u===l){if(t.delete(c),!d&&o(c)){const p=s(c),{outputs:_}=e(c);for(const f of _)if(or(f)){const m=s(f[0]);i(p,m,f[1],f[2])}else{const m=n(f[0]);p.connect(m,f[1])}}}else t.set(c,u-l)},Yp={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},$p=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...Yp,...l},d=s(u,h),p=r(u),_=p?e(h.maxDelayTime):null;super(c,!1,d,_),this._delayTime=t(this,p,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},Zp=(i,t,e,s,n)=>r=>{const o=new WeakMap,a=async(c,l)=>{let u=e(c);const h=se(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:r};u=t(l,d)}return o.set(l,u),h?await i(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await n(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},Xp=i=>(t,e,s,n)=>i(t[n],r=>r[0]===e&&r[1]===s),Qp=i=>(t,e)=>{i(t).delete(e)},Kp=i=>"delayTime"in i,Jp=(i,t,e)=>function s(n,r){const o=jr(r)?r:e(i,r);if(Kp(o))return[];if(n[0]===o)return[n];if(n.includes(o))return[];const{outputs:a}=t(o);return Array.from(a).map(c=>s([...n,o],c[0])).reduce((c,l)=>c.concat(l),[])},br=(i,t,e)=>{const s=t[e];if(s===void 0)throw i();return s},tm=i=>(t,e=void 0,s=void 0,n=0)=>e===void 0?t.forEach(r=>r.disconnect()):typeof e=="number"?br(i,t,e).disconnect():qr(e)?s===void 0?t.forEach(r=>r.disconnect(e)):n===void 0?br(i,t,s).disconnect(e,0):br(i,t,s).disconnect(e,0,n):s===void 0?t.forEach(r=>r.disconnect(e)):br(i,t,s).disconnect(e,0),em={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},sm=(i,t,e,s,n,r,o,a)=>class extends i{constructor(l,u){const h=r(l),d={...em,...u},p=s(h,d),_=o(h),f=_?e():null;super(l,!1,p,f),this._attack=t(this,_,p.attack),this._knee=t(this,_,p.knee),this._nativeDynamicsCompressorNode=p,this._ratio=t(this,_,p.ratio),this._release=t(this,_,p.release),this._threshold=t(this,_,p.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,n()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,n()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},nm=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=t(c,h)}return r.set(c,l),u?(await i(c,a.attack,l.attack),await i(c,a.knee,l.knee),await i(c,a.ratio,l.ratio),await i(c,a.release,l.release),await i(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},im=()=>new DOMException("","EncodingError"),rm=i=>t=>new Promise((e,s)=>{if(i===null){s(new SyntaxError);return}const n=i.document.head;if(n===null)s(new SyntaxError);else{const r=i.document.createElement("script"),o=new Blob([t],{type:"application/javascript"}),a=URL.createObjectURL(o),c=i.onerror,l=()=>{i.onerror=c,URL.revokeObjectURL(a)};i.onerror=(u,h,d,p,_)=>{if(h===a||h===i.location.href&&d===1&&p===1)return l(),s(_),!1;if(c!==null)return c(u,h,d,p,_)},r.onerror=()=>{l(),s(new SyntaxError)},r.onload=()=>{l(),e()},r.src=a,r.type="module",n.appendChild(r)}}),om=i=>class{constructor(e){this._nativeEventTarget=e,this._listeners=new WeakMap}addEventListener(e,s,n){if(s!==null){let r=this._listeners.get(s);r===void 0&&(r=i(this,s),typeof s=="function"&&this._listeners.set(s,r)),this._nativeEventTarget.addEventListener(e,r,n)}}dispatchEvent(e){return this._nativeEventTarget.dispatchEvent(e)}removeEventListener(e,s,n){const r=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(e,r===void 0?null:r,n)}},am=i=>(t,e,s)=>{Object.defineProperties(i,{currentFrame:{configurable:!0,get(){return Math.round(t*e)}},currentTime:{configurable:!0,get(){return t}}});try{return s()}finally{i!==null&&(delete i.currentFrame,delete i.currentTime)}},cm=i=>async t=>{try{const e=await fetch(t);if(e.ok)return[await e.text(),e.url]}catch{}throw i()},lm={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},um=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...lm,...c},h=s(l,u),d=r(l),p=d?e():null;super(a,!1,h,p),this._gain=t(this,d,h.gain,ne,le)}get gain(){return this._gain}},hm=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.gain,l.gain):await s(c,a.gain,l.gain),await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},dm=(i,t)=>e=>t(i,e),fm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return e.renderer},pm=i=>t=>{var e;return(e=i.get(t))!==null&&e!==void 0?e:0},mm=i=>t=>{const e=i(t);if(e.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return e.renderer},_m=i=>t=>i.get(t),Zt=()=>new DOMException("","InvalidStateError"),gm=i=>t=>{const e=i.get(t);if(e===void 0)throw Zt();return e},ym=(i,t)=>e=>{let s=i.get(e);if(s!==void 0)return s;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new t(1,1,44100),i.set(e,s),s},vm=i=>t=>{const e=i.get(t);if(e===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return e},ko=()=>new DOMException("","InvalidAccessError"),xm=i=>{i.getFrequencyResponse=(t=>(e,s,n)=>{if(e.length!==s.length||s.length!==n.length)throw ko();return t.call(i,e,s,n)})(i.getFrequencyResponse)},km={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},Tm=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=s(a),u=n(l),h={...km,...c},d=t(l,u?null:a.baseLatency,h),p=u?e(h.feedback,h.feedforward):null;super(a,!1,d,p),xm(d),this._nativeIIRFilterNode=d,r(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Eu=(i,t,e,s,n,r,o,a,c,l,u)=>{const h=l.length;let d=a;for(let p=0;p{const n=e instanceof Float64Array?e:new Float64Array(e),r=s instanceof Float64Array?s:new Float64Array(s),o=n.length,a=r.length,c=Math.min(o,a);if(n[0]!==1){for(let _=0;_(r,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,p=t(u);const _=se(p,h);if(h.createIIRFilter===void 0?d=i(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):_||(p=h.createIIRFilter(o,r)),a.set(h,d===null?p:d),d!==null){if(c===null){if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new e(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const v=await n(m);return wm(v,h,r,o)})()}const f=await c;return d.buffer=f,d.start(0),d}return await s(u,h,p),p};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},Cm=(i,t,e,s,n,r)=>o=>(a,c)=>{const l=i.get(a);if(l===void 0){if(!o&&r(a)){const u=s(a),{outputs:h}=e(a);for(const d of h)if(or(d)){const p=s(d[0]);t(u,p,d[1],d[2])}else{const p=n(d[0]);u.disconnect(p,d[1])}}i.set(a,c)}else i.set(a,l+c)},Sm=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Em=(i,t)=>e=>i.has(e)||t(e),Om=(i,t)=>e=>i.has(e)||t(e),Am=(i,t)=>e=>{const s=i.get(e);return t(s)||t(e)},Mm=i=>t=>i!==null&&t instanceof i,Dm=i=>t=>i!==null&&typeof i.AudioNode=="function"&&t instanceof i.AudioNode,Pm=i=>t=>i!==null&&typeof i.AudioParam=="function"&&t instanceof i.AudioParam,Im=(i,t)=>e=>i(e)||t(e),Nm=i=>t=>i!==null&&t instanceof i,Rm=i=>i!==null&&i.isSecureContext,Fm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw TypeError();super(r,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},Lm={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},Vm=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r);if(s(a))throw new TypeError;const c={...Lm,...o},l=t(a,c);super(r,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},Um=(i,t,e,s)=>class extends i{constructor(r,o){const a=e(r),c=t(a,o);if(s(a))throw new TypeError;super(r,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},jm=(i,t,e)=>class extends i{constructor(n,r){const o=e(n),a=t(o,r);super(n,!0,a,null)}},zm=(i,t,e,s,n,r)=>class extends e{constructor(a,c){super(a),this._nativeContext=a,vo.set(this,a),s(a)&&n.set(a,new Set),this._destination=new i(this,c),this._listener=t(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?r(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Ai=i=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const e=i.decodeAudioData(t.buffer,()=>{});return e===void 0?!1:(e.catch(()=>{}),!0)}catch{}return!1},Bm=(i,t)=>(e,s,n)=>{const r=new Set;return e.connect=(o=>(a,c=0,l=0)=>{const u=r.size===0;if(t(a))return o.call(e,a,c,l),i(r,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(e,a,c),i(r,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(e.connect),e.disconnect=(o=>(a,c,l)=>{const u=r.size>0;if(a===void 0)o.apply(e),r.clear();else if(typeof a=="number"){o.call(e,a);for(const d of r)d[1]===a&&r.delete(d)}else{t(a)?o.call(e,a,c,l):o.call(e,a,c);for(const d of r)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&r.delete(d)}const h=r.size===0;u&&h&&n()})(e.disconnect),e},Pt=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e]&&(i[e]=s)},Yt=(i,t)=>{Pt(i,t,"channelCount"),Pt(i,t,"channelCountMode"),Pt(i,t,"channelInterpretation")},yl=i=>typeof i.getFloatTimeDomainData=="function",qm=i=>{i.getFloatTimeDomainData=t=>{const e=new Uint8Array(t.length);i.getByteTimeDomainData(e);const s=Math.max(e.length,i.fftSize);for(let n=0;n(e,s)=>{const n=e.createAnalyser();if(Yt(n,s),!(s.maxDecibels>s.minDecibels))throw t();return Pt(n,s,"fftSize"),Pt(n,s,"maxDecibels"),Pt(n,s,"minDecibels"),Pt(n,s,"smoothingTimeConstant"),i(yl,()=>yl(n))||qm(n),n},Hm=i=>i===null?null:i.hasOwnProperty("AudioBuffer")?i.AudioBuffer:null,Ft=(i,t,e)=>{const s=t[e];s!==void 0&&s!==i[e].value&&(i[e].value=s)},Gm=i=>{i.start=(t=>{let e=!1;return(s=0,n=0,r)=>{if(e)throw Zt();t.call(i,s,n,r),e=!0}})(i.start)},qa=i=>{i.start=(t=>(e=0,s=0,n)=>{if(typeof n=="number"&&n<0||s<0||e<0)throw new RangeError("The parameters can't be negative.");t.call(i,e,s,n)})(i.start)},Wa=i=>{i.stop=(t=>(e=0)=>{if(e<0)throw new RangeError("The parameter can't be negative.");t.call(i,e)})(i.stop)},Ym=(i,t,e,s,n,r,o,a,c,l,u)=>(h,d)=>{const p=h.createBufferSource();return Yt(p,d),Ft(p,d,"playbackRate"),Pt(p,d,"buffer"),Pt(p,d,"loop"),Pt(p,d,"loopEnd"),Pt(p,d,"loopStart"),t(e,()=>e(h))||Gm(p),t(s,()=>s(h))||c(p),t(n,()=>n(h))||l(p,h),t(r,()=>r(h))||qa(p),t(o,()=>o(h))||u(p,h),t(a,()=>a(h))||Wa(p),i(h,p),p},$m=i=>i===null?null:i.hasOwnProperty("AudioContext")?i.AudioContext:i.hasOwnProperty("webkitAudioContext")?i.webkitAudioContext:null,Zm=(i,t)=>(e,s,n)=>{const r=e.destination;if(r.channelCount!==s)try{r.channelCount=s}catch{}n&&r.channelCountMode!=="explicit"&&(r.channelCountMode="explicit"),r.maxChannelCount===0&&Object.defineProperty(r,"maxChannelCount",{value:s});const o=i(e,{channelCount:s,channelCountMode:r.channelCountMode,channelInterpretation:r.channelInterpretation,gain:1});return t(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{r.channelCount=c}catch(l){if(c>r.maxChannelCount)throw l}}),t(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelCountMode=c}),t(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),r.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>r.maxChannelCount}),o.connect(r),o},Xm=i=>i===null?null:i.hasOwnProperty("AudioWorkletNode")?i.AudioWorkletNode:null,Qm=i=>{const{port1:t}=new MessageChannel;try{t.postMessage(i)}finally{t.close()}},Km=(i,t,e,s,n)=>(r,o,a,c,l,u)=>{if(a!==null)try{const h=new a(r,c,u),d=new Map;let p=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw i()}},channelCountMode:{get:()=>"explicit",set:()=>{throw i()}},onprocessorerror:{get:()=>p,set:_=>{typeof p=="function"&&h.removeEventListener("processorerror",p),p=typeof _=="function"?_:null,typeof p=="function"&&h.addEventListener("processorerror",p)}}}),h.addEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(m!==null){const v=d.get(f[1]);v!==void 0?f[1]=v:(f[1]=b=>{b.type==="error"?(Object.defineProperties(b,{type:{value:"processorerror"}}),m(b)):m(new ErrorEvent(f[0],{...b}))},d.set(m,f[1]))}}return _.call(h,"error",f[1],f[2]),_.call(h,...f)})(h.addEventListener),h.removeEventListener=(_=>(...f)=>{if(f[0]==="processorerror"){const m=d.get(f[1]);m!==void 0&&(d.delete(f[1]),f[1]=m)}return _.call(h,"error",f[1],f[2]),_.call(h,f[0],f[1],f[2])})(h.removeEventListener),u.numberOfOutputs!==0){const _=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(_).connect(r.destination),n(h,()=>_.disconnect(),()=>_.connect(r.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return Qm(u),t(r,o,l,u)},Ou=(i,t)=>i===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(i*t))))),Jm=i=>new Promise((t,e)=>{const{port1:s,port2:n}=new MessageChannel;s.onmessage=({data:r})=>{s.close(),n.close(),t(r)},s.onmessageerror=({data:r})=>{s.close(),n.close(),e(r)},n.postMessage(i)}),t_=async(i,t)=>{const e=await Jm(t);return new i(e)},e_=(i,t,e,s)=>{let n=fa.get(i);n===void 0&&(n=new WeakMap,fa.set(i,n));const r=t_(e,s);return n.set(t,r),r},s_=(i,t,e,s,n,r,o,a,c,l,u,h,d)=>(p,_,f,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const v=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(v.some(B=>B<1))throw c();if(v.length!==m.numberOfOutputs)throw t();if(m.channelCountMode!=="explicit")throw c();const b=m.channelCount*m.numberOfInputs,w=v.reduce((B,A)=>B+A,0),g=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(b+g>6||w>6)throw c();const y=new MessageChannel,k=[],T=[];for(let B=0;BB===void 0?0:B},maxValue:{get:()=>A===void 0?ne:A},minValue:{get:()=>E===void 0?le:E}}),x.push(tt)}const C=s(p,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,b+g)}),O=Ou(_,p.sampleRate),I=a(p,O,b+g,Math.max(1,w)),M=n(p,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),U=[];for(let B=0;B{const E=x[A];return E.connect(C,0,b+A),E.start(0),[B,E.offset]}));C.connect(I);let Y=m.channelInterpretation,G=null;const z=m.numberOfOutputs===0?[I]:U,j={get bufferSize(){return O},get channelCount(){return m.channelCount},set channelCount(B){throw e()},get channelCountMode(){return m.channelCountMode},set channelCountMode(B){throw e()},get channelInterpretation(){return Y},set channelInterpretation(B){for(const A of k)A.channelInterpretation=B;Y=B},get context(){return I.context},get inputs(){return k},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return G},set onprocessorerror(B){typeof G=="function"&&j.removeEventListener("processorerror",G),G=typeof B=="function"?B:null,typeof G=="function"&&j.addEventListener("processorerror",G)},get parameters(){return W},get port(){return y.port2},addEventListener(...B){return I.addEventListener(B[0],B[1],B[2])},connect:i.bind(null,z),disconnect:l.bind(null,z),dispatchEvent(...B){return I.dispatchEvent(B[0])},removeEventListener(...B){return I.removeEventListener(B[0],B[1],B[2])}},Z=new Map;y.port1.addEventListener=(B=>(...A)=>{if(A[0]==="message"){const E=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(E!==null){const X=Z.get(A[1]);X!==void 0?A[1]=X:(A[1]=tt=>{u(p.currentTime,p.sampleRate,()=>E(tt))},Z.set(E,A[1]))}}return B.call(y.port1,A[0],A[1],A[2])})(y.port1.addEventListener),y.port1.removeEventListener=(B=>(...A)=>{if(A[0]==="message"){const E=Z.get(A[1]);E!==void 0&&(Z.delete(A[1]),A[1]=E)}return B.call(y.port1,A[0],A[1],A[2])})(y.port1.removeEventListener);let Q=null;Object.defineProperty(y.port1,"onmessage",{get:()=>Q,set:B=>{typeof Q=="function"&&y.port1.removeEventListener("message",Q),Q=typeof B=="function"?B:null,typeof Q=="function"&&(y.port1.addEventListener("message",Q),y.port1.start())}}),f.prototype.port=y.port1;let et=null;e_(p,j,f,m).then(B=>et=B);const F=Hr(m.numberOfInputs,m.channelCount),S=Hr(m.numberOfOutputs,v),P=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((B,{name:A})=>({...B,[A]:new Float32Array(128)}),{});let H=!0;const N=()=>{m.numberOfOutputs>0&&I.disconnect(M);for(let B=0,A=0;B{if(et!==null){const E=h(j);for(let X=0;X{Wr(B,P,tt,b+lt,X)});for(let tt=0;tt{if(E[Gt].size>0)return V.set(Gt,O/128),vt;const ei=V.get(Gt);return ei===void 0?[]:(vt.every(Ro=>Ro.every(fr=>fr===0))&&(ei===1?V.delete(Gt):V.set(Gt,ei-1)),vt)});H=u(p.currentTime+X/p.sampleRate,p.sampleRate,()=>et.process(tt,S,P));for(let vt=0,Gt=0;vtI.connect(st).connect(p.destination),J=()=>{I.disconnect(st),st.disconnect()},pt=()=>{if(H){J(),m.numberOfOutputs>0&&I.connect(M);for(let B=0,A=0;B{H&&(nt(),N()),it=!1};return nt(),d(j,pt,K)},Au=(i,t)=>{const e=i.createBiquadFilter();return Yt(e,t),Ft(e,t,"Q"),Ft(e,t,"detune"),Ft(e,t,"frequency"),Ft(e,t,"gain"),Pt(e,t,"type"),e},n_=(i,t)=>(e,s)=>{const n=e.createChannelMerger(s.numberOfInputs);return i!==null&&i.name==="webkitAudioContext"&&t(e,n),Yt(n,s),n},i_=i=>{const t=i.numberOfOutputs;Object.defineProperty(i,"channelCount",{get:()=>t,set:e=>{if(e!==t)throw Zt()}}),Object.defineProperty(i,"channelCountMode",{get:()=>"explicit",set:e=>{if(e!=="explicit")throw Zt()}}),Object.defineProperty(i,"channelInterpretation",{get:()=>"discrete",set:e=>{if(e!=="discrete")throw Zt()}})},ar=(i,t)=>{const e=i.createChannelSplitter(t.numberOfOutputs);return Yt(e,t),i_(e),e},r_=(i,t,e,s,n)=>(r,o)=>{if(r.createConstantSource===void 0)return e(r,o);const a=r.createConstantSource();return Yt(a,o),Ft(a,o,"offset"),t(s,()=>s(r))||qa(a),t(n,()=>n(r))||Wa(a),i(r,a),a},Qn=(i,t)=>(i.connect=t.connect.bind(t),i.disconnect=t.disconnect.bind(t),i),o_=(i,t,e,s)=>(n,{offset:r,...o})=>{const a=n.createBuffer(1,2,44100),c=t(n,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=e(n,{...o,gain:r}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(_){l.channelCount=_},get channelCountMode(){return l.channelCountMode},set channelCountMode(_){l.channelCountMode=_},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(_){l.channelInterpretation=_},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(_){c.onended=_},addEventListener(..._){return c.addEventListener(_[0],_[1],_[2])},dispatchEvent(..._){return c.dispatchEvent(_[0])},removeEventListener(..._){return c.removeEventListener(_[0],_[1],_[2])},start(_=0){c.start.call(c,_)},stop(_=0){c.stop.call(c,_)}},d=()=>c.connect(l),p=()=>c.disconnect(l);return i(n,c),s(Qn(h,l),d,p)},a_=(i,t)=>(e,s)=>{const n=e.createConvolver();if(Yt(n,s),s.disableNormalization===n.normalize&&(n.normalize=!s.disableNormalization),Pt(n,s,"buffer"),s.channelCount>2||(t(n,"channelCount",r=>()=>r.call(n),r=>o=>{if(o>2)throw i();return r.call(n,o)}),s.channelCountMode==="max"))throw i();return t(n,"channelCountMode",r=>()=>r.call(n),r=>o=>{if(o==="max")throw i();return r.call(n,o)}),n},Mu=(i,t)=>{const e=i.createDelay(t.maxDelayTime);return Yt(e,t),Ft(e,t,"delayTime"),e},c_=i=>(t,e)=>{const s=t.createDynamicsCompressor();if(Yt(s,e),e.channelCount>2||e.channelCountMode==="max")throw i();return Ft(s,e,"attack"),Ft(s,e,"knee"),Ft(s,e,"ratio"),Ft(s,e,"release"),Ft(s,e,"threshold"),s},me=(i,t)=>{const e=i.createGain();return Yt(e,t),Ft(e,t,"gain"),e},l_=i=>(t,e,s)=>{if(t.createIIRFilter===void 0)return i(t,e,s);const n=t.createIIRFilter(s.feedforward,s.feedback);return Yt(n,s),n};function u_(i,t){const e=t[0]*t[0]+t[1]*t[1];return[(i[0]*t[0]+i[1]*t[1])/e,(i[1]*t[0]-i[0]*t[1])/e]}function h_(i,t){return[i[0]*t[0]-i[1]*t[1],i[0]*t[1]+i[1]*t[0]]}function vl(i,t){let e=[0,0];for(let s=i.length-1;s>=0;s-=1)e=h_(e,t),e[0]+=i[s];return e}const d_=(i,t,e,s)=>(n,r,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Ou(r,n.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),p=u instanceof Float64Array?u:new Float64Array(u),_=d.length,f=p.length,m=Math.min(_,f);if(_===0||_>20)throw s();if(d[0]===0)throw t();if(f===0||f>20)throw s();if(p[0]===0)throw t();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,O=x.outputBuffer,I=C.numberOfChannels;for(let M=0;Mi.createMediaElementSource(t.mediaElement),p_=(i,t)=>{const e=i.createMediaStreamDestination();return Yt(e,t),e.numberOfOutputs===1&&Object.defineProperty(e,"numberOfOutputs",{get:()=>0}),e},m_=(i,{mediaStream:t})=>{const e=t.getAudioTracks();e.sort((r,o)=>r.ido.id?1:0);const s=e.slice(0,1),n=i.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(n,"mediaStream",{value:t}),n},__=(i,t)=>(e,{mediaStreamTrack:s})=>{if(typeof e.createMediaStreamTrackSource=="function")return e.createMediaStreamTrackSource(s);const n=new MediaStream([s]),r=e.createMediaStreamSource(n);if(s.kind!=="audio")throw i();if(t(e))throw new TypeError;return r},g_=i=>i===null?null:i.hasOwnProperty("OfflineAudioContext")?i.OfflineAudioContext:i.hasOwnProperty("webkitOfflineAudioContext")?i.webkitOfflineAudioContext:null,y_=(i,t,e,s,n,r)=>(o,a)=>{const c=o.createOscillator();return Yt(c,a),Ft(c,a,"detune"),Ft(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):Pt(c,a,"type"),t(e,()=>e(o))||qa(c),t(s,()=>s(o))||r(c,o),t(n,()=>n(o))||Wa(c),i(o,c),c},v_=i=>(t,e)=>{const s=t.createPanner();return s.orientationX===void 0?i(t,e):(Yt(s,e),Ft(s,e,"orientationX"),Ft(s,e,"orientationY"),Ft(s,e,"orientationZ"),Ft(s,e,"positionX"),Ft(s,e,"positionY"),Ft(s,e,"positionZ"),Pt(s,e,"coneInnerAngle"),Pt(s,e,"coneOuterAngle"),Pt(s,e,"coneOuterGain"),Pt(s,e,"distanceModel"),Pt(s,e,"maxDistance"),Pt(s,e,"panningModel"),Pt(s,e,"refDistance"),Pt(s,e,"rolloffFactor"),s)},x_=(i,t,e,s,n,r,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:p,distanceModel:_,maxDistance:f,orientationX:m,orientationY:v,orientationZ:b,panningModel:w,positionX:g,positionY:y,positionZ:k,refDistance:T,rolloffFactor:x,...C})=>{const O=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();Yt(O,C);const I={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},M=e(u,{...I,channelInterpretation:"speakers",numberOfInputs:6}),U=s(u,{...C,gain:1}),W=s(u,{...I,gain:1}),Y=s(u,{...I,gain:0}),G=s(u,{...I,gain:0}),z=s(u,{...I,gain:0}),j=s(u,{...I,gain:0}),Z=s(u,{...I,gain:0}),Q=n(u,256,6,1),et=r(u,{...I,curve:new Float32Array([1,1]),oversample:"none"});let R=[m,v,b],F=[g,y,k];const S=new Float32Array(1);Q.onaudioprocess=({inputBuffer:V})=>{const it=[c(V,S,0),c(V,S,1),c(V,S,2)];it.some((nt,J)=>nt!==R[J])&&(O.setOrientation(...it),R=it);const st=[c(V,S,3),c(V,S,4),c(V,S,5)];st.some((nt,J)=>nt!==F[J])&&(O.setPosition(...st),F=st)},Object.defineProperty(Y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(G.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(j.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Z.gain,"defaultValue",{get:()=>0});const P={get bufferSize(){},get channelCount(){return O.channelCount},set channelCount(V){if(V>2)throw o();U.channelCount=V,O.channelCount=V},get channelCountMode(){return O.channelCountMode},set channelCountMode(V){if(V==="max")throw o();U.channelCountMode=V,O.channelCountMode=V},get channelInterpretation(){return O.channelInterpretation},set channelInterpretation(V){U.channelInterpretation=V,O.channelInterpretation=V},get coneInnerAngle(){return O.coneInnerAngle},set coneInnerAngle(V){O.coneInnerAngle=V},get coneOuterAngle(){return O.coneOuterAngle},set coneOuterAngle(V){O.coneOuterAngle=V},get coneOuterGain(){return O.coneOuterGain},set coneOuterGain(V){if(V<0||V>1)throw t();O.coneOuterGain=V},get context(){return O.context},get distanceModel(){return O.distanceModel},set distanceModel(V){O.distanceModel=V},get inputs(){return[U]},get maxDistance(){return O.maxDistance},set maxDistance(V){if(V<0)throw new RangeError;O.maxDistance=V},get numberOfInputs(){return O.numberOfInputs},get numberOfOutputs(){return O.numberOfOutputs},get orientationX(){return W.gain},get orientationY(){return Y.gain},get orientationZ(){return G.gain},get panningModel(){return O.panningModel},set panningModel(V){O.panningModel=V},get positionX(){return z.gain},get positionY(){return j.gain},get positionZ(){return Z.gain},get refDistance(){return O.refDistance},set refDistance(V){if(V<0)throw new RangeError;O.refDistance=V},get rolloffFactor(){return O.rolloffFactor},set rolloffFactor(V){if(V<0)throw new RangeError;O.rolloffFactor=V},addEventListener(...V){return U.addEventListener(V[0],V[1],V[2])},dispatchEvent(...V){return U.dispatchEvent(V[0])},removeEventListener(...V){return U.removeEventListener(V[0],V[1],V[2])}};h!==P.coneInnerAngle&&(P.coneInnerAngle=h),d!==P.coneOuterAngle&&(P.coneOuterAngle=d),p!==P.coneOuterGain&&(P.coneOuterGain=p),_!==P.distanceModel&&(P.distanceModel=_),f!==P.maxDistance&&(P.maxDistance=f),m!==P.orientationX.value&&(P.orientationX.value=m),v!==P.orientationY.value&&(P.orientationY.value=v),b!==P.orientationZ.value&&(P.orientationZ.value=b),w!==P.panningModel&&(P.panningModel=w),g!==P.positionX.value&&(P.positionX.value=g),y!==P.positionY.value&&(P.positionY.value=y),k!==P.positionZ.value&&(P.positionZ.value=k),T!==P.refDistance&&(P.refDistance=T),x!==P.rolloffFactor&&(P.rolloffFactor=x),(R[0]!==1||R[1]!==0||R[2]!==0)&&O.setOrientation(...R),(F[0]!==0||F[1]!==0||F[2]!==0)&&O.setPosition(...F);const H=()=>{U.connect(O),i(U,et,0,0),et.connect(W).connect(M,0,0),et.connect(Y).connect(M,0,1),et.connect(G).connect(M,0,2),et.connect(z).connect(M,0,3),et.connect(j).connect(M,0,4),et.connect(Z).connect(M,0,5),M.connect(Q).connect(u.destination)},N=()=>{U.disconnect(O),a(U,et,0,0),et.disconnect(W),W.disconnect(M),et.disconnect(Y),Y.disconnect(M),et.disconnect(G),G.disconnect(M),et.disconnect(z),z.disconnect(M),et.disconnect(j),j.disconnect(M),et.disconnect(Z),Z.disconnect(M),M.disconnect(Q),Q.disconnect(u.destination)};return l(Qn(P,O),H,N)},k_=i=>(t,{disableNormalization:e,imag:s,real:n})=>{const r=s instanceof Float32Array?s:new Float32Array(s),o=n instanceof Float32Array?n:new Float32Array(n),a=t.createPeriodicWave(o,r,{disableNormalization:e});if(Array.from(s).length<2)throw i();return a},cr=(i,t,e,s)=>i.createScriptProcessor(t,e,s),T_=(i,t)=>(e,s)=>{const n=s.channelCountMode;if(n==="clamped-max")throw t();if(e.createStereoPanner===void 0)return i(e,s);const r=e.createStereoPanner();return Yt(r,s),Ft(r,s,"pan"),Object.defineProperty(r,"channelCountMode",{get:()=>n,set:o=>{if(o!==n)throw t()}}),r},w_=(i,t,e,s,n,r)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const O=C/16384*c;b[C]=Math.cos(O),w[C]=Math.sin(O)}const g=e(_,{...l,gain:0}),y=s(_,{...u,curve:b}),k=s(_,{...u,curve:a}),T=e(_,{...l,gain:0}),x=s(_,{...u,curve:w});return{connectGraph(){f.connect(g),f.connect(k.inputs===void 0?k:k.inputs[0]),f.connect(T),k.connect(m),m.connect(y.inputs===void 0?y:y.inputs[0]),m.connect(x.inputs===void 0?x:x.inputs[0]),y.connect(g.gain),x.connect(T.gain),g.connect(v,0,0),T.connect(v,0,1)},disconnectGraph(){f.disconnect(g),f.disconnect(k.inputs===void 0?k:k.inputs[0]),f.disconnect(T),k.disconnect(m),m.disconnect(y.inputs===void 0?y:y.inputs[0]),m.disconnect(x.inputs===void 0?x:x.inputs[0]),y.disconnect(g.gain),x.disconnect(T.gain),g.disconnect(v,0,0),T.disconnect(v,0,1)}}},d=(_,f,m,v)=>{const b=new Float32Array(16385),w=new Float32Array(16385),g=new Float32Array(16385),y=new Float32Array(16385),k=Math.floor(16385/2);for(let z=0;z<16385;z+=1)if(z>k){const j=(z-k)/(16384-k)*c;b[z]=Math.cos(j),w[z]=Math.sin(j),g[z]=0,y[z]=1}else{const j=z/(16384-k)*c;b[z]=1,w[z]=0,g[z]=Math.cos(j),y[z]=Math.sin(j)}const T=t(_,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=e(_,{...l,gain:0}),C=s(_,{...u,curve:b}),O=e(_,{...l,gain:0}),I=s(_,{...u,curve:w}),M=s(_,{...u,curve:a}),U=e(_,{...l,gain:0}),W=s(_,{...u,curve:g}),Y=e(_,{...l,gain:0}),G=s(_,{...u,curve:y});return{connectGraph(){f.connect(T),f.connect(M.inputs===void 0?M:M.inputs[0]),T.connect(x,0),T.connect(O,0),T.connect(U,1),T.connect(Y,1),M.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(I.inputs===void 0?I:I.inputs[0]),m.connect(W.inputs===void 0?W:W.inputs[0]),m.connect(G.inputs===void 0?G:G.inputs[0]),C.connect(x.gain),I.connect(O.gain),W.connect(U.gain),G.connect(Y.gain),x.connect(v,0,0),U.connect(v,0,0),O.connect(v,0,1),Y.connect(v,0,1)},disconnectGraph(){f.disconnect(T),f.disconnect(M.inputs===void 0?M:M.inputs[0]),T.disconnect(x,0),T.disconnect(O,0),T.disconnect(U,1),T.disconnect(Y,1),M.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(I.inputs===void 0?I:I.inputs[0]),m.disconnect(W.inputs===void 0?W:W.inputs[0]),m.disconnect(G.inputs===void 0?G:G.inputs[0]),C.disconnect(x.gain),I.disconnect(O.gain),W.disconnect(U.gain),G.disconnect(Y.gain),x.disconnect(v,0,0),U.disconnect(v,0,0),O.disconnect(v,0,1),Y.disconnect(v,0,1)}}},p=(_,f,m,v,b)=>{if(f===1)return h(_,m,v,b);if(f===2)return d(_,m,v,b);throw n()};return(_,{channelCount:f,channelCountMode:m,pan:v,...b})=>{if(m==="max")throw n();const w=i(_,{...b,channelCount:1,channelCountMode:m,numberOfInputs:2}),g=e(_,{...b,channelCount:f,channelCountMode:m,gain:1}),y=e(_,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:v});let{connectGraph:k,disconnectGraph:T}=p(_,f,g,y,w);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return g.channelCount},set channelCount(M){g.channelCount!==M&&(C&&T(),{connectGraph:k,disconnectGraph:T}=p(_,M,g,y,w),C&&k()),g.channelCount=M},get channelCountMode(){return g.channelCountMode},set channelCountMode(M){if(M==="clamped-max"||M==="max")throw n();g.channelCountMode=M},get channelInterpretation(){return g.channelInterpretation},set channelInterpretation(M){g.channelInterpretation=M},get context(){return g.context},get inputs(){return[g]},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get pan(){return y.gain},addEventListener(...M){return g.addEventListener(M[0],M[1],M[2])},dispatchEvent(...M){return g.dispatchEvent(M[0])},removeEventListener(...M){return g.removeEventListener(M[0],M[1],M[2])}};let C=!1;const O=()=>{k(),C=!0},I=()=>{T(),C=!1};return r(Qn(x,w),O,I)}},b_=(i,t,e,s,n,r,o)=>(a,c)=>{const l=a.createWaveShaper();if(r!==null&&r.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return e(a,c);Yt(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw t();Pt(l,{curve:u},"curve"),Pt(l,c,"oversample");let h=null,d=!1;return o(l,"curve",f=>()=>f.call(l),f=>m=>(f.call(l,m),d&&(s(m)&&h===null?h=i(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),n(l,()=>{d=!0,s(l.curve)&&(h=i(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},C_=(i,t,e,s,n)=>(r,{curve:o,oversample:a,...c})=>{const l=r.createWaveShaper(),u=r.createWaveShaper();Yt(l,c),Yt(u,c);const h=e(r,{...c,gain:1}),d=e(r,{...c,gain:-1}),p=e(r,{...c,gain:1}),_=e(r,{...c,gain:-1});let f=null,m=!1,v=null;const b={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,p.channelCount=y,u.channelCount=y,_.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,p.channelCountMode=y,u.channelCountMode=y,_.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,p.channelInterpretation=y,u.channelInterpretation=y,_.channelInterpretation=y},get context(){return l.context},get curve(){return v},set curve(y){if(y!==null&&y.length<2)throw t();if(y===null)l.curve=y,u.curve=y;else{const k=y.length,T=new Float32Array(k+2-k%2),x=new Float32Array(k+2-k%2);T[0]=y[0],x[0]=-y[k-1];const C=Math.ceil((k+1)/2),O=(k+1)/2-1;for(let I=1;I{h.connect(l).connect(p),h.connect(d).connect(u).connect(_).connect(p),m=!0,s(v)&&(f=i(r,h))},g=()=>{h.disconnect(l),l.disconnect(p),h.disconnect(d),d.disconnect(u),u.disconnect(_),_.disconnect(p),m=!1,f!==null&&(f(),f=null)};return n(Qn(b,p),w,g)},ae=()=>new DOMException("","NotSupportedError"),S_={numberOfChannels:1},E_=(i,t,e,s,n)=>class extends i{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...S_,...l},p=s(h,u,d);t(Ai,()=>Ai(p))||p.addEventListener("statechange",(()=>{let _=0;const f=m=>{this._state==="running"&&(_>0?(p.removeEventListener("statechange",f),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):_+=1)};return f})()),super(p,h),this._length=u,this._nativeOfflineAudioContext=p,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(e()):(this._state="running",n(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,ku(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},O_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},A_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...O_,...l},d=e(u,h),p=r(u),_=p?s():null,f=c.sampleRate/2;super(c,!1,d,_),this._detune=t(this,p,d.detune,153600,-153600),this._frequency=t(this,p,d.frequency,f,-f),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=_,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Un(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),ds(this)&&ir(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},M_=(i,t,e,s,n)=>()=>{const r=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=e(u);const p=se(d,h);if(!p){const _={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=t(h,_),a!==null&&d.start(a),c!==null&&d.stop(c)}return r.set(h,d),p?(await i(h,u.detune,d.detune),await i(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await n(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=r.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},D_={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},P_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...D_,...l},d=e(u,h),p=r(u),_=p?s():null;super(c,!1,d,_),this._nativePannerNode=d,this._orientationX=t(this,p,d.orientationX,ne,le),this._orientationY=t(this,p,d.orientationY,ne,le),this._orientationZ=t(this,p,d.orientationZ,ne,le),this._positionX=t(this,p,d.positionX,ne,le),this._positionY=t(this,p,d.positionY,ne,le),this._positionZ=t(this,p,d.positionZ,ne,le),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},I_=(i,t,e,s,n,r,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(p,_)=>{let f=null,m=r(p);const v={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},b={...v,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},w=se(m,_);if("bufferSize"in m)f=s(_,{...v,gain:1});else if(!w){const g={...b,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=n(_,g)}if(u.set(_,f===null?m:f),f!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const I=new o(6,p.context.length,_.sampleRate),M=t(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});M.connect(I.destination),h=(async()=>{const U=await Promise.all([p.orientationX,p.orientationY,p.orientationZ,p.positionX,p.positionY,p.positionZ].map(async(W,Y)=>{const G=e(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y===0?1:0});return await a(I,W,G.offset),G}));for(let W=0;W<6;W+=1)U[W].connect(M,0,W),U[W].start(0);return l(I)})()}const g=await h,y=s(_,{...v,gain:1});await c(p,_,y);const k=[];for(let I=0;IW!==T[Y])||U.some((W,Y)=>W!==x[Y])){T=M,x=U;const W=I/_.sampleRate;C.gain.setValueAtTime(0,W),C=s(_,{...v,gain:0}),O=n(_,{...b,orientationX:T[0],orientationY:T[1],orientationZ:T[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,W),y.connect(C).connect(O.inputs[0]),O.connect(f)}}return f}return w?(await i(_,p.orientationX,m.orientationX),await i(_,p.orientationY,m.orientationY),await i(_,p.orientationZ,m.orientationZ),await i(_,p.positionX,m.positionX),await i(_,p.positionY,m.positionY),await i(_,p.positionZ,m.positionZ)):(await a(_,p.orientationX,m.orientationX),await a(_,p.orientationY,m.orientationY),await a(_,p.orientationZ,m.orientationZ),await a(_,p.positionX,m.positionX),await a(_,p.positionY,m.positionY),await a(_,p.positionZ,m.positionZ)),Xn(m)?await c(p,_,m.inputs[0]):await c(p,_,m),m};return{render(p,_){const f=u.get(_);return f!==void 0?Promise.resolve(f):d(p,_)}}},N_={disableNormalization:!1},R_=(i,t,e,s)=>class Du{constructor(r,o){const a=t(r),c=s({...N_,...o}),l=i(a,c);return e.add(l),l}static[Symbol.hasInstance](r){return r!==null&&typeof r=="object"&&Object.getPrototypeOf(r)===Du.prototype||e.has(r)}},F_=(i,t)=>(e,s,n)=>(i(s).replay(n),t(s,e,n)),L_=(i,t,e)=>async(s,n,r)=>{const o=i(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await t(l).render(l,n),p=s.context.destination;!e(l)&&(s!==p||!e(s))&&d.connect(r,u,c)})).reduce((a,c)=>[...a,...c],[]))},V_=(i,t,e)=>async(s,n,r)=>{const o=t(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await i(a).render(a,n);e(a)||u.connect(r,c)}))},U_=(i,t,e,s)=>n=>i(Ai,()=>Ai(n))?Promise.resolve(i(s,s)).then(r=>{if(!r){const o=e(n,512,0,1);n.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>n.currentTime,o.connect(n.destination)}return n.startRendering()}):new Promise(r=>{const o=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.oncomplete=a=>{o.disconnect(),r(a.renderedBuffer)},o.connect(n.destination),n.startRendering()}),j_=i=>(t,e)=>{i.set(t,e)},z_=i=>(t,e)=>i.set(t,e),B_=(i,t,e,s,n,r,o,a)=>(c,l)=>e(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>e(u).render(u,l)))).then(()=>n(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),ja(u)):t(r,()=>r(u))||a(u),i.add(u),u)),q_={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},W_=(i,t,e,s,n,r)=>class extends i{constructor(a,c){const l=n(a),u={...q_,...c},h=e(l,u),d=r(l),p=d?s():null;super(a,!1,h,p),this._pan=t(this,d,h.pan)}get pan(){return this._pan}},H_=(i,t,e,s,n)=>()=>{const r=new WeakMap,o=async(a,c)=>{let l=e(a);const u=se(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=t(c,h)}return r.set(c,l),u?await i(c,a.pan,l.pan):await s(c,a.pan,l.pan),Xn(l)?await n(a,c,l.inputs[0]):await n(a,c,l),l};return{render(a,c){const l=r.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},G_=i=>()=>{if(i===null)return!1;try{new i({length:1,sampleRate:44100})}catch{return!1}return!0},Y_=(i,t)=>async()=>{if(i===null)return!0;if(t===null)return!1;const e=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new t(1,128,44100),n=URL.createObjectURL(e);let r=!1,o=!1;try{await s.audioWorklet.addModule(n);const a=new i(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>r=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(n)}return r&&!o},$_=(i,t)=>()=>{if(t===null)return Promise.resolve(!1);const e=new t(1,1,44100),s=i(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(n=>{e.oncomplete=()=>{s.disconnect(),n(e.currentTime!==0)},e.startRendering()})},Z_=()=>new DOMException("","UnknownError"),X_={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},Q_=(i,t,e,s,n,r,o)=>class extends i{constructor(c,l){const u=n(c),h={...X_,...l},d=e(u,h),_=r(u)?s():null;super(c,!0,d,_),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw t();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},K_=(i,t,e)=>()=>{const s=new WeakMap,n=async(r,o)=>{let a=t(r);if(!se(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=i(o,l)}return s.set(o,a),Xn(a)?await e(r,o,a.inputs[0]):await e(r,o,a),a};return{render(r,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):n(r,o)}}},J_=()=>typeof window>"u"?null:window,tg=(i,t)=>e=>{e.copyFromChannel=(s,n,r=0)=>{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=i(r),a=i(n);if(a>=e.numberOfChannels)throw t();const c=e.length,l=e.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+ot=>{t.copyFromChannel=(e=>(s,n,r=0)=>{const o=i(r),a=i(n);if(o(s,n,r=0)=>{const o=i(r),a=i(n);if(o(t,e)=>{const s=e.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=s),i(t,"buffer",n=>()=>{const r=n.call(t);return r===s?null:r},n=>r=>n.call(t,r===null?s:r))},ng=(i,t)=>(e,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw i()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw i()}});const n=e.createBufferSource();t(s,()=>{const a=s.numberOfInputs;for(let c=0;cn.disconnect(s))},Pu=(i,t,e)=>i.copyFromChannel===void 0?i.getChannelData(e)[0]:(i.copyFromChannel(t,e),t[0]),Iu=i=>{if(i===null)return!1;const t=i.length;return t%2!==0?i[Math.floor(t/2)]!==0:i[t/2-1]+i[t/2]!==0},lr=(i,t,e,s)=>{let n=i;for(;!n.hasOwnProperty(t);)n=Object.getPrototypeOf(n);const{get:r,set:o}=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(i,t,{get:e(r),set:s(o)})},ig=i=>({...i,outputChannelCount:i.outputChannelCount!==void 0?i.outputChannelCount:i.numberOfInputs===1&&i.numberOfOutputs===1?[i.channelCount]:Array.from({length:i.numberOfOutputs},()=>1)}),rg=i=>({...i,channelCount:i.numberOfOutputs}),og=i=>{const{imag:t,real:e}=i;return t===void 0?e===void 0?{...i,imag:[0,0],real:[0,0]}:{...i,imag:Array.from(e,()=>0),real:e}:e===void 0?{...i,imag:t,real:Array.from(t,()=>0)}:{...i,imag:t,real:e}},Nu=(i,t,e)=>{try{i.setValueAtTime(t,e)}catch(s){if(s.code!==9)throw s;Nu(i,t,e+1e-7)}},ag=i=>{const t=i.createBufferSource();t.start();try{t.start()}catch{return!0}return!1},cg=i=>{const t=i.createBufferSource(),e=i.createBuffer(1,1,44100);t.buffer=e;try{t.start(0,1)}catch{return!1}return!0},lg=i=>{const t=i.createBufferSource();t.start();try{t.stop()}catch{return!1}return!0},Ha=i=>{const t=i.createOscillator();try{t.start(-1)}catch(e){return e instanceof RangeError}return!1},Ru=i=>{const t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.start(),e.stop();try{return e.stop(),!0}catch{return!1}},Ga=i=>{const t=i.createOscillator();try{t.stop(-1)}catch(e){return e instanceof RangeError}return!1},ug=i=>{const{port1:t,port2:e}=new MessageChannel;try{t.postMessage(i)}finally{t.close(),e.close()}},hg=i=>{i.start=(t=>(e=0,s=0,n)=>{const r=i.buffer,o=r===null?s:Math.min(r.duration,s);r!==null&&o>r.duration-.5/i.context.sampleRate?t.call(i,e,0,0):t.call(i,e,o,n)})(i.start)},Fu=(i,t)=>{const e=t.createGain();i.connect(e);const s=(n=>()=>{n.call(i,e),i.removeEventListener("ended",s)})(i.disconnect);i.addEventListener("ended",s),Qn(i,e),i.stop=(n=>{let r=!1;return(o=0)=>{if(r)try{n.call(i,o)}catch{e.gain.setValueAtTime(0,o)}else n.call(i,o),r=!0}})(i.stop)},Kn=(i,t)=>e=>{const s={value:i};return Object.defineProperties(e,{currentTarget:s,target:s}),typeof t=="function"?t.call(i,e):t.handleEvent.call(i,e)},dg=P0(fn),fg=V0(fn),pg=Xp(xo),Lu=new WeakMap,mg=pm(Lu),He=Sp(new Map,new WeakMap),ts=J_(),Vu=Wm(He,ss),Ya=fm(re),Qt=L_(re,Ya,on),_g=q0(Vu,Dt,Qt),At=gm(vo),vs=g_(ts),wt=Nm(vs),Uu=new WeakMap,ju=om(Kn),ur=$m(ts),$a=Mm(ur),Za=Dm(ts),zu=Pm(ts),Mi=Xm(ts),Wt=pp(I0(pu),L0(dg,fg,zr,pg,Br,re,mg,nr,Dt,fn,ds,on,Pr),He,Cm(ha,Br,re,Dt,Oi,ds),ss,ko,ae,Gp(zr,ha,re,Dt,Oi,At,ds,wt),Jp(Uu,re,ze),ju,At,$a,Za,zu,wt,Mi),gg=B0(Wt,_g,ss,Vu,At,wt),Xa=new WeakSet,xl=Hm(ts),Bu=Up(new Uint32Array(1)),Qa=tg(Bu,ss),Ka=eg(Bu),qu=H0(Xa,He,ae,xl,vs,G_(xl),Qa,Ka),To=U0(me),Wu=V_(Ya,rr,on),ns=Ip(Wu),Jn=Ym(To,He,ag,cg,lg,Ha,Ru,Ga,hg,sg(lr),Fu),is=F_(mm(rr),Wu),yg=$0(ns,Jn,Dt,is,Qt),Ge=mp(N0(mu),Uu,Ua,_p,S0,E0,O0,A0,M0,ca,du,ur,Nu),vg=Y0(Wt,yg,Ge,Zt,Jn,At,wt,Kn),xg=np(Wt,ip,ss,Zt,Zm(me,lr),At,wt,Qt),kg=Cp(ns,Au,Dt,is,Qt),pn=z_(Lu),Tg=bp(Wt,Ge,kg,ko,Au,At,wt,pn),js=Bm(fn,Za),wg=ng(Zt,js),zs=n_(ur,wg),bg=Ap(zs,Dt,Qt),Cg=Op(Wt,bg,zs,At,wt),Sg=Pp(ar,Dt,Qt),Eg=Dp(Wt,Sg,ar,At,wt,rg),Og=o_(To,Jn,me,js),ti=r_(To,He,Og,Ha,Ga),Ag=Vp(ns,ti,Dt,is,Qt),Mg=Lp(Wt,Ge,Ag,ti,At,wt,Kn),Hu=a_(ae,lr),Dg=Bp(Hu,Dt,Qt),Pg=zp(Wt,Dg,Hu,At,wt,pn),Ig=Zp(ns,Mu,Dt,is,Qt),Ng=$p(Wt,Ge,Ig,Mu,At,wt,pn),Gu=c_(ae),Rg=nm(ns,Gu,Dt,is,Qt),Fg=sm(Wt,Ge,Rg,Gu,ae,At,wt,pn),Lg=hm(ns,me,Dt,is,Qt),Vg=um(Wt,Ge,Lg,me,At,wt),Ug=d_(ko,Zt,cr,ae),wo=U_(He,me,cr,$_(me,vs)),jg=bm(Jn,Dt,vs,Qt,wo),zg=l_(Ug),Bg=Tm(Wt,zg,jg,At,wt,pn),qg=rp(Ge,zs,ti,cr,ae,Pu,wt,lr),Yu=new WeakMap,Wg=zm(xg,qg,ju,wt,Yu,Kn),$u=y_(To,He,Ha,Ru,Ga,Fu),Hg=M_(ns,$u,Dt,is,Qt),Gg=A_(Wt,Ge,$u,Hg,At,wt,Kn),Zu=Rp(Jn),Yg=C_(Zu,Zt,me,Iu,js),bo=b_(Zu,Zt,Yg,Iu,js,ur,lr),$g=x_(zr,Zt,zs,me,cr,bo,ae,Br,Pu,js),Xu=v_($g),Zg=I_(ns,zs,ti,me,Xu,Dt,vs,is,Qt,wo),Xg=P_(Wt,Ge,Xu,Zg,At,wt,pn),Qg=k_(ss),Kg=R_(Qg,At,new WeakSet,og),Jg=w_(zs,ar,me,bo,ae,js),Qu=T_(Jg,ae),ty=H_(ns,Qu,Dt,is,Qt),ey=W_(Wt,Ge,Qu,ty,At,wt),sy=K_(bo,Dt,Qt),ny=Q_(Wt,Zt,bo,sy,At,wt,pn),Ku=Rm(ts),Ja=am(ts),Ju=new WeakMap,iy=ym(Ju,vs),ry=Ku?F0(He,ae,rm(ts),Ja,cm(D0),At,iy,wt,Mi,new WeakMap,new WeakMap,Y_(Mi,vs),ts):void 0,oy=Im($a,wt),ay=Hp(Xa,He,Wp,im,new WeakSet,At,oy,Ur,Ai,Qa,Ka),th=Tp(ry,gg,qu,vg,Tg,Cg,Eg,Mg,Pg,ay,Ng,Fg,Vg,Bg,Wg,Gg,Xg,Kg,ey,ny),cy=Fm(Wt,f_,At,wt),ly=Vm(Wt,p_,At,wt),uy=Um(Wt,m_,At,wt),hy=__(Zt,wt),dy=jm(Wt,hy,At),fy=sp(th,Zt,ae,Z_,cy,ly,uy,dy,ur),tc=vm(Yu),py=j0(tc),eh=Np(ss),my=Qp(tc),sh=tm(ss),nh=new WeakMap,_y=dm(nh,ze),gy=s_(eh,ss,Zt,zs,ar,ti,me,cr,ae,sh,Ja,_y,js),yy=Km(Zt,gy,me,ae,js),vy=kp(ns,eh,Jn,zs,ar,ti,me,my,sh,Ja,Dt,Mi,vs,is,Qt,wo),xy=_m(Ju),ky=j_(nh),kl=Ku?yp(py,Wt,Ge,vy,yy,re,xy,At,wt,Mi,ig,ky,ug,Kn):void 0,Ty=qp(ae,vs),wy=B_(Xa,He,Ya,tc,wo,Ur,Qa,Ka),by=E_(th,He,Zt,Ty,wy),Cy=Sm(vo,$a),Sy=Em(Va,Za),Ey=Om(Ua,zu),Oy=Am(vo,wt);function ke(i){return typeof i>"u"}function dt(i){return!ke(i)}function Ay(i){return typeof i=="function"}function Ps(i){return typeof i=="number"}function Js(i){return Object.prototype.toString.call(i)==="[object Object]"&&i.constructor===Object}function My(i){return typeof i=="boolean"}function je(i){return Array.isArray(i)}function fs(i){return typeof i=="string"}function Cr(i){return fs(i)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(i)}function ut(i,t){if(!i)throw new Error(t)}function Be(i,t,e=1/0){if(!(t<=i&&i<=e))throw new RangeError(`Value must be within [${t}, ${e}], got: ${i}`)}function ih(i){!i.isOffline&&i.state!=="running"&&ec('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let rh=!1,Tl=!1;function wl(i){rh=i}function Dy(i){ke(i)&&rh&&!Tl&&(Tl=!0,ec("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let oh=console;function Py(...i){oh.log(...i)}function ec(...i){oh.warn(...i)}function Iy(i){return new fy(i)}function Ny(i,t,e){return new by(i,t,e)}const tn=typeof self=="object"?self:null,Ry=tn&&(tn.hasOwnProperty("AudioContext")||tn.hasOwnProperty("webkitAudioContext"));function Fy(i,t,e){return ut(dt(kl),"This node only works in a secure context (https or localhost)"),new kl(i,t,e)}class Ly{constructor(t,e,s,n){this._callback=t,this._type=e,this._minimumUpdateInterval=Math.max(128/(n||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const t=new Blob([` // the initial timeout time let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; // onmessage callback @@ -145,12 +145,12 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a } // call tick initially tick(); - `],{type:"text/javascript"}),e=URL.createObjectURL(t),s=new Worker(e);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(t){var e;this._updateInterval=Math.max(t,this._minimumUpdateInterval),this._type==="worker"&&((e=this._worker)===null||e===void 0||e.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function an(i){return wy(i)}function As(i){return Ty(i)}function Pr(i){return by(i)}function Sn(i){return xy(i)}function Iy(i){return i instanceof ju}function Ry(i,t){return i==="value"||an(t)||As(t)||Iy(t)}function Pn(i,...t){if(!t.length)return i;const e=t.shift();if(Js(i)&&Js(e))for(const s in e)Ry(s,e[s])?i[s]=e[s]:Js(e[s])?(i[s]||Object.assign(i,{[s]:{}}),Pn(i[s],e[s])):Object.assign(i,{[s]:e[s]});return Pn(i,...t)}function Fy(i,t){return i.length===t.length&&i.every((e,s)=>t[s]===e)}function $(i,t,e=[],s){const n={},r=Array.from(t);if(Js(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(Pn(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Js(r[0]))Pn(n,r[0]);else for(let o=0;o{Reflect.has(i,e)&&delete i[e]}),i}/** + `],{type:"text/javascript"}),e=URL.createObjectURL(t),s=new Worker(e);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(t){var e;this._updateInterval=Math.max(t,this._minimumUpdateInterval),this._type==="worker"&&((e=this._worker)===null||e===void 0||e.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(t){this._disposeClock(),this._type=t,this._createClock()}dispose(){this._disposeClock()}}function an(i){return Ey(i)}function As(i){return Sy(i)}function Ir(i){return Oy(i)}function En(i){return Cy(i)}function Vy(i){return i instanceof qu}function Uy(i,t){return i==="value"||an(t)||As(t)||Vy(t)}function In(i,...t){if(!t.length)return i;const e=t.shift();if(Js(i)&&Js(e))for(const s in e)Uy(s,e[s])?i[s]=e[s]:Js(e[s])?(i[s]||Object.assign(i,{[s]:{}}),In(i[s],e[s])):Object.assign(i,{[s]:e[s]});return In(i,...t)}function jy(i,t){return i.length===t.length&&i.every((e,s)=>t[s]===e)}function $(i,t,e=[],s){const n={},r=Array.from(t);if(Js(r[0])&&s&&!Reflect.has(r[0],s)&&(Object.keys(r[0]).some(a=>Reflect.has(i,a))||(In(n,{[s]:r[0]}),e.splice(e.indexOf(s),1),r.shift())),r.length===1&&Js(r[0]))In(n,r[0]);else for(let o=0;o{Reflect.has(i,e)&&delete i[e]}),i}/** * Tone.js * @author Yotam Mann * @license http://opensource.org/licenses/MIT MIT License * @copyright 2014-2019 Yotam Mann - */class ks{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||tn&&this.toString()===tn.TONE_DEBUG_CLASS)&&Oy(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}ks.version=lu;const ec=1e-6;function Un(i,t){return i>t+ec}function ma(i,t){return Un(i,t)||Le(i,t)}function Hr(i,t){return i+ecthis.memory){const e=this.length-this.memory;this._timeline.splice(0,e)}return this}remove(t){const e=this._timeline.indexOf(t);return e!==-1&&this._timeline.splice(e,1),this}get(t,e="time"){const s=this._search(t,e);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const s=this._search(t,e);return s+10&&this._timeline[e-1].time=0?this._timeline[s-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(Le(this._timeline[e].time,t)){for(let s=e;s>=0&&Le(this._timeline[s].time,t);s--)e=s;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else this._timeline.length===1&&ma(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(this._timeline.length===0)return-1;let s=0;const n=this._timeline.length;let r=n;if(n>0&&this._timeline[n-1][e]<=t)return n-1;for(;s=0&&this._timeline[s].time>=t;)s--;return this._iterate(e,s+1),this}forEachAtTime(t,e){const s=this._search(t);if(s!==-1&&Le(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Le(this._timeline[r].time,t);r--)n=r;this._iterate(r=>{e(r)},n,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const oh=[];function bo(i){oh.push(i)}function Uy(i){oh.forEach(t=>t(i))}const ah=[];function Co(i){ah.push(i)}function zy(i){ah.forEach(t=>t(i))}class ur extends ks{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}),this}once(t,e){const s=(...n)=>{e(...n),this.off(t,s)};return this.on(t,s),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(xe(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(xe(e))this._events[n]=[];else{const r=this._events[n];for(let o=r.length-1;o>=0;o--)r[o]===e&&r.splice(o,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const s=this._events[t].slice(0);for(let n=0,r=s.length;n{const s=Object.getOwnPropertyDescriptor(ur.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class ch extends ur{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let sc=class lh extends ch{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Ke,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(lh.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Ay({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new Ny(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((e=arguments[0])===null||e===void 0)&&e.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(Uy(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(t,e,s){return this._context.createBuffer(t,e,s)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,s){return this._context.createPeriodicWave(t,e,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(Sn(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(t){ut(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){ut(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){ut(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){ut(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return Py(this.rawContext,t,e)}addAudioWorkletModule(t){return Bt(this,void 0,void 0,function*(){ut(dt(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(t)),yield this._workletPromise})}workletsAreReady(){return Bt(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get lookAhead(){return this._lookAhead}set lookAhead(t){this._lookAhead=t,this.updateInterval=t?t/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return Sn(this._context)?this._context.resume():Promise.resolve()}close(){return Bt(this,void 0,void 0,function*(){Sn(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&zy(this)})}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),s=e.getChannelData(0);for(let r=0;rthis._constants[t].disconnect()),this.close(),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:s+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const s=++this._timeoutIds,n=()=>{const r=this.now();this._timeouts.add({callback:()=>{t(),n()},id:s,time:r+e})};return n(),s}};class jy extends ch{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,s){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaElementSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t){return Bt(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}}function Mt(i,t){ze(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function nc(i,t){ze(t)?t.forEach(e=>nc(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class kt extends ks{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(kt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,fs(t.url)?this.load(t.url).catch(t.onerror):t.url&&this.set(t.url)}static getDefaults(){return{onerror:yt,onload:yt,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Ve().sampleRate}set(t){return t instanceof kt?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return Bt(this,void 0,void 0,function*(){const e=kt.load(t).then(s=>{this.set(s),this.onload(this)});kt.downloads.push(e);try{yield e}finally{const s=kt.downloads.indexOf(e);kt.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=ze(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Ve(),o=r.createBuffer(s,n,r.sampleRate),a=!e&&s===1?[t]:t;for(let c=0;cn/s),this.fromArray(e)}return this}toArray(t){if(Ps(t))return this.getChannelData(t);if(this.numberOfChannels===1)return this.toArray(0);{const e=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return new kt().fromArray(t)}static fromUrl(t){return Bt(this,void 0,void 0,function*(){return yield new kt().load(t)})}static load(t){return Bt(this,void 0,void 0,function*(){const e=t.match(/\[([^\]\[]+\|.+)\]$/);if(e){const c=e[1].split("|");let l=c[0];for(const u of c)if(kt.supportsType(u)){l=u;break}t=t.replace(e[0],l)}const s=kt.baseUrl===""||kt.baseUrl.endsWith("/")?kt.baseUrl:kt.baseUrl+"/",n=document.createElement("a");n.href=s+t,n.pathname=(n.pathname+n.hash).split("/").map(encodeURIComponent).join("/");const r=yield fetch(n.href);if(!r.ok)throw new Error(`could not load url: ${t}`);const o=yield r.arrayBuffer();return yield Ve().decodeAudioData(o)})}static supportsType(t){const e=t.split("."),s=e[e.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return Bt(this,void 0,void 0,function*(){for(yield Promise.resolve();kt.downloads.length;)yield kt.downloads[0]})}}kt.baseUrl="";kt.downloads=[];class So extends sc{constructor(){super({clockSource:"offline",context:Pr(arguments[0])?arguments[0]:My(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Pr(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Pr(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return Bt(this,void 0,void 0,function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const s=Math.floor(this.sampleRate/128);t&&e%s===0&&(yield new Promise(n=>setTimeout(n,1)))}})}render(t=!0){return Bt(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new kt(e)})}close(){return Promise.resolve()}}const uh=new jy;let Zs=uh;function Ve(){return Zs===uh&&Dy&&By(new sc),Zs}function By(i,t=!1){t&&Zs.dispose(),Sn(i)?Zs=new sc(i):Pr(i)?Zs=new So(i):Zs=i}function qy(){return Zs.resume()}if(tn&&!tn.TONE_SILENCE_LOGGING){const t=` * Tone.js v${lu} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function Wy(i){return Math.pow(10,i/20)}function Hy(i){return 20*(Math.log(i)/Math.LN10)}function hh(i){return Math.pow(2,i/12)}let Eo=440;function Yy(){return Eo}function Gy(i){Eo=i}function _a(i){return Math.round(dh(i))}function dh(i){return 69+12*Math.log2(i/Eo)}function $y(i){return Eo*Math.pow(2,(i-69)/12)}class ic extends ks{constructor(t,e,s){super(),this.defaultUnits="s",this._val=e,this._units=s,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const s=parseInt(t,10),n=e==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*n:this._beatsToUnits(4/s)*n},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(Math.floor(e)*3))},regexp:/^(\d+)t$/i},tr:{method:(t,e,s)=>{let n=0;return t&&t!=="0"&&(n+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n+=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n+=this._beatsToUnits(parseFloat(s)/4)),n},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof ic&&this.fromType(this._val),xe(this._val))return this._noArg();if(fs(this._val)&&xe(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Js(this._val)){let t=0;for(const e in this._val)if(dt(this._val[e])){const s=this._val[e],n=new this.constructor(this.context,e).valueOf()*s;t+=n}return t}if(dt(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}else return fs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Ue extends ic{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new Ue(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const s=new this.constructor(this.context,t).valueOf(),n=this.valueOf(),a=Math.round(n/s)*s-n;return n+a*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let r=1;r<9;r++){const o=Math.pow(2,r);e.push(o+"n."),e.push(o+"n"),e.push(o+"t")}e.push("0");let s=e[0],n=new Ue(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ue(this.context,r).toSeconds();Math.abs(o-t)3&&(n=parseFloat(parseFloat(r).toFixed(3))),[s,e,n].join(":")}toTicks(){const t=this._beatsToUnits(1);return this.valueOf()/t*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return _a(this.toFrequency())}_now(){return this.context.now()}}class Ae extends Ue{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return Yy()}static set A4(t){Gy(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ae.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=Xy[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ae.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,s){let n=1;return t&&t!=="0"&&(n*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n*=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n*=this._beatsToUnits(parseFloat(s)/4)),n}}})}transpose(t){return new Ae(this.context,this.valueOf()*hh(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return _a(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ae.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),Zy[s%12]+n.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(t*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return $y(t)}static ftom(t){return _a(t)}}const Xy={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},Zy=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class wi extends Ue{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class ue extends ks{constructor(){super();const t=$(ue.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Ve()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(t){return Ey(t),new Ue(this.context,t).toSeconds()}toFrequency(t){return new Ae(this.context,t).toFrequency()}toTicks(t){return new wi(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{xe(t[s])&&delete e[s]}),e}get(){const t=Ly(this);return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const s=this[e];dt(s)&&dt(s.value)&&dt(s.setValueAtTime)?t[e]=s.value:s instanceof ue?t[e]=s._getPartialProperties(t[e]):ze(s)||Ps(s)||fs(s)||Sy(s)?t[e]=s:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&dt(this[e])&&(this[e]&&dt(this[e].value)&&dt(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof ue?this[e].set(t[e]):this[e]=t[e])}),this}}class rc extends Ke{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return e!==null?e.state:this._initial}setStateAtTime(t,e,s){return Be(e,0),this.add(Object.assign({},s,{state:t,time:e})),this}getLastState(t,e){const s=this._search(e);for(let n=s;n>=0;n--){const r=this._timeline[n];if(r.state===t)return r}}getNextState(t,e){const s=this._search(e);if(s!==-1)for(let n=s;n0,"timeConstant must be a number greater than 0");const r=this.toSeconds(e);return this._assertRange(n),ut(isFinite(n)&&isFinite(r),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:s,time:r,type:"setTargetAtTime",value:n}),this.log(this.units,"setTargetAtTime",t,r,s),this._param.setTargetAtTime(n,r,s),this}setValueCurveAtTime(t,e,s,n=1){s=this.toSeconds(s),e=this.toSeconds(e);const r=this._fromType(t[0])*n;this.setValueAtTime(this._toType(r),e);const o=s/(t.length-1);for(let a=1;a{n.type==="cancelScheduledValues"?t.cancelScheduledValues(n.time):n.type==="setTargetAtTime"?t.setTargetAtTime(n.value,n.time,n.constant):t[n.type](n.value,n.time)}),this}setParam(t){ut(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,s,n,r){return s+(e-s)*Math.exp(-(r-t)/n)}_linearInterpolate(t,e,s,n,r){return e+(n-e)*((r-t)/(s-t))}_exponentialInterpolate(t,e,s,n,r){return e*Math.pow(n/e,(r-t)/(s-t))}}class rt extends ue{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?an(this.input)||this.input instanceof xt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return dt(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return dt(t)&&(t instanceof rt||As(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(s=>{s.channelCount=t.channelCount,s.channelCountMode=t.channelCountMode,s.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();ut(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,s=0){return Ns(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return tc("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return Qy(this,t,e,s),this}chain(...t){return Mi(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof rt?this.input.dispose():As(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof rt?this.output.dispose():As(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Mi(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof rt?e.connect(s):As(e)&&Ns(e,s),s),t)}function Ns(i,t,e=0,s=0){for(ut(dt(i),"Cannot connect from undefined node"),ut(dt(t),"Cannot connect to undefined node"),(t instanceof rt||As(t))&&ut(t.numberOfInputs>0,"Cannot connect to node with no inputs"),ut(i.numberOfOutputs>0,"Cannot connect from node with no outputs");t instanceof rt||t instanceof xt;)dt(t.input)&&(t=t.input);for(;i instanceof rt;)dt(i.output)&&(i=i.output);an(t)?i.connect(t,e):i.connect(t,e,s)}function Qy(i,t,e=0,s=0){if(dt(t))for(;t instanceof rt;)t=t.input;for(;!As(i);)dt(i.output)&&(i=i.output);an(t)?i.disconnect(t,e):As(t)?i.disconnect(t,e,s):i.disconnect()}class St extends rt{constructor(){super($(St.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=$(St.getDefaults(),arguments,["gain","units"]);this.gain=new xt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),Mt(this,"gain")}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends rt{constructor(t){super(t),this.onended=yt,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new St({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(e){const s=this.toSeconds(e);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(rt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:yt})}_startGain(t,e=1){ut(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=t+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,t),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(e,t+s):this._gainNode.gain.exponentialApproachValueAtTime(e,t,s)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){ut(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.now()),e>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?e*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==yt&&(this.onended(this),this.onended=yt,!this.context.isOffline)){const t=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),ut(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=yt,this}}class Yr extends zn{constructor(){super($(Yr.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=$(Yr.getDefaults(),arguments,["offset"]);Ns(this._source,this._gainNode),this.offset=new xt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(zn.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Ot extends rt{constructor(){super($(Ot.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=$(Ot.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Yr({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return oc(this,t,e,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,s){return this._param.exponentialRampTo(t,e,s),this}linearRampTo(t,e,s){return this._param.linearRampTo(t,e,s),this}targetRampTo(t,e,s){return this._param.targetRampTo(t,e,s),this}exponentialApproachValueAtTime(t,e,s){return this._param.exponentialApproachValueAtTime(t,e,s),this}setTargetAtTime(t,e,s){return this._param.setTargetAtTime(t,e,s),this}setValueCurveAtTime(t,e,s,n){return this._param.setValueCurveAtTime(t,e,s,n),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,s){return this._param.rampTo(t,e,s),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function oc(i,t,e,s){(t instanceof xt||an(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Ns(i,t,e,s)}class Gr extends xt{constructor(){super($(Gr.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ke(1/0),this._multiplier=1;const t=$(Gr.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(xt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,s){e=this.toSeconds(e),this.setRampPoint(e);const n=this._fromType(t),r=this._events.get(e),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+e,l=this._exponentialApproach(r.time,r.value,n,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(t,e){const s=this.toSeconds(e);super.setValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const s=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const s=this._fromType(t),n=this._events.get(e),r=Math.round(Math.max((e-n.time)*10,1)),o=(e-n.time)/r;for(let a=0;a<=r;a++){const c=o*a+n.time,l=this._exponentialInterpolate(n.time,n.value,e,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(t,e){if(t===null)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(xe(t.ticks)){const o=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(o,t.time)}const s=this._fromType(this.getValueAtTime(t.time));let n=this._fromType(this.getValueAtTime(e));const r=this._events.get(e);return r&&r.time===e&&r.type==="setValueAtTime"&&(n=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(s+n)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),s=this._events.get(e);return Math.max(this._getTicksUntilEvent(s,e),0)}getDurationOfTicks(t,e){const s=this.toSeconds(e),n=this.getTicksAtTime(e);return this.getTimeOfTick(n+t)-s}getTimeOfTick(t){const e=this._events.get(t,"ticks"),s=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&s&&s.type==="linearRampToValueAtTime"&&e.value!==s.value){const n=this._fromType(this.getValueAtTime(e.time)),o=(this._fromType(this.getValueAtTime(s.time))-n)/(s.time-e.time),a=Math.sqrt(Math.pow(n,2)-2*o*(e.ticks-t)),c=(-n+a)/o,l=(-n-a)/o;return(c>0?c:l)+e.time}else return e?e.value===0?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const s=this.toSeconds(e),n=this.toSeconds(t),r=this.getTicksAtTime(s);return this.getTicksAtTime(s+n)-r}_fromType(t){return this.units==="bpm"&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return this.units==="bpm"&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class $r extends Ot{constructor(){super($($r.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$($r.getDefaults(),arguments,["value"]);this.input=this._param=new Gr({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(Ot.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class Xr extends ue{constructor(){super($(Xr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new rc,this._tickOffset=new Ke,this._ticksAtTime=new Ke,this._secondsAtTime=new Ke;const t=$(Xr.getDefaults(),arguments,["frequency"]);this.frequency=new $r({context:this.context,units:t.units,value:t.frequency}),Mt(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},ue.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const s=this.toSeconds(t);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),dt(e)&&this.setTicksAtTime(e,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(t){const e=this.toSeconds(t);if(this._state.getValueAtTime(e)==="stopped"){const s=this._state.get(e);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}pause(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)==="started"&&(this._state.setStateAtTime("paused",e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e)),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),s=this._state.getLastState("stopped",e),n=this._ticksAtTime.get(e),r={state:"paused",time:e};this._state.add(r);let o=n||s,a=n?n.ticks:0,c=null;return this._state.forEachBetween(o.time,e+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=r.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(r),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),s=this.frequency.timeToTicks(t,e);this.setTicksAtTime(s,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),s={state:"paused",time:t};this._state.add(s);const n=this._secondsAtTime.get(t);let r=n||e,o=n?n.seconds:0,a=null;return this._state.forEachBetween(r.time,t+this.sampleTime,c=>{let l=r.time;const u=this._tickOffset.get(c.time);u&&u.time>=r.time&&(o=u.seconds,l=u.time),r.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),r=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const s=this._tickOffset.get(e),n=this._state.get(e),r=Math.max(s.time,n.time),o=this.frequency.getTicksAtTime(r)+t-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,s){let n=this._state.get(t);this._state.forEachBetween(t,e,o=>{n&&n.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(n.time,t),o.time-this.sampleTime,s),n=o});let r=null;if(n&&n.state==="started"){const o=Math.max(n.time,t),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(n.time),l=a-c;let u=Math.ceil(l)-l;u=Le(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const n=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,n);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(t,e,(s,n)=>{this.callback(s,n)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}ur.mixin(Di);class ac extends ks{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(ac.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const s=t.urls[e];this.add(e,s,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:yt,onload:yt,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return ut(this.has(t),`ToneAudioBuffers has no buffer named: ${t}`),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,this._loadingCount===0&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,s=yt,n=yt){return fs(e)?(this.baseUrl&&e.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(t.toString(),new kt(this.baseUrl+e,s,n))):this._buffers.set(t.toString(),new kt(e,s,n)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class An extends wi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class Ky extends ue{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ke,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}bo(i=>{i.draw=new Ky({context:i})});Co(i=>{i.draw.dispose()});class Jy extends ks{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){ut(dt(t.time),"Events must have a time property"),ut(dt(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new t1(t.time,t.time+t.duration,t);for(this._root===null?this._root=e:this._root.insert(e),this._length++;e!==null;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(this._root!==null){const e=[];this._root.search(t.time,e);for(const s of e)if(s.event===t){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,e=>this.remove(e)),this}_setRoot(t){this._root=t,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(t,e){t.parent!==null?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(t.left===null&&t.right===null)this._replaceNodeInParent(t,null);else if(t.right===null)this._replaceNodeInParent(t,t.left);else if(t.left===null)this._replaceNodeInParent(t,t.right);else{const e=t.getBalance();let s,n=null;if(e>0)if(t.left.right===null)s=t.left,s.right=t.right,n=s;else{for(s=t.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,n=s.parent,s.left=t.left,s.right=t.right)}else if(t.right.left===null)s=t.right,s.left=t.left,n=s;else{for(s=t.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,n=s.parent,s.left=t.left,s.right=t.right)}t.parent!==null?t.isLeftChild()?t.parent.left=s:t.parent.right=s:this._setRoot(s),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,s=t.isLeftChild(),n=t.right;n&&(t.right=n.left,n.left=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rotateRight(t){const e=t.parent,s=t.isLeftChild(),n=t.left;n&&(t.left=n.right,n.right=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(this._root!==null){const e=[];if(this._root.search(t,e),e.length>0){let s=e[0];for(let n=1;ns.low&&(s=e[n]);return s.event}}return null}forEach(t){if(this._root!==null){const e=[];this._root.traverse(s=>e.push(s)),e.forEach(s=>{s.event&&t(s.event)})}return this}forEachAtTime(t,e){if(this._root!==null){const s=[];this._root.search(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}forEachFrom(t,e){if(this._root!==null){const s=[];this._root.searchAfter(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class t1{constructor(t,e,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?this.left===null?this.left=t:this.left.insert(t):this.right===null?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(this.left!==null&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),!(this.low>t)&&this.right!==null&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),this.left!==null&&this.left.searchAfter(t,e)),this.right!==null&&this.right.searchAfter(t,e)}traverse(t){t(this),this.left!==null&&this.left.traverse(t),this.right!==null&&this.right.traverse(t)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let t=0;return this.left!==null&&this.right!==null?t=this.left.height-this.right.height:this.left!==null?t=this.left.height+1:this.right!==null&&(t=-(this.right.height+1)),t}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Is extends rt{constructor(){super($(Is.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Is.getDefaults(),arguments,["volume"]);this.input=this.output=new St({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,Mt(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let e1=class ga extends rt{constructor(){super($(ga.getDefaults(),arguments)),this.name="Destination",this.input=new Is({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(ga.getDefaults(),arguments);Mi(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),Mi(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};bo(i=>{i.destination=new e1({context:i})});Co(i=>{i.destination.dispose()});class s1 extends ks{constructor(t){super(),this.name="TimelineValue",this._timeline=new Ke({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class ps extends rt{constructor(){super(Object.assign($(ps.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return oc(this,t,e,s),this}}class cn extends ps{constructor(){super(Object.assign($(cn.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(cn.getDefaults(),arguments,["mapping","length"]);ze(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):Cy(t.mapping)&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(Ot.getDefaults(),{length:1024})}setMap(t,e=1024){const s=new Float32Array(e);for(let n=0,r=e;ns.includes(t));ut(e,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Pi extends ps{constructor(){super(Object.assign($(Pi.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Pi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new cn({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ps.getDefaults(),{value:1})}_expFunc(t){return e=>Math.pow(Math.abs(e),t)}get value(){return this._exponent}set value(t){this._exponent=t,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Rs{constructor(t,e){this.id=Rs._eventId++,this._remainderTime=0;const s=Object.assign(Rs.getDefaults(),e);this.transport=t,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:yt,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(t){if(this.callback){const e=this.transport.bpm.getDurationOfTicks(1,t);this.callback(t+this._remainderTime*e),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Rs._eventId=0;class cc extends Rs{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(cc.getDefaults(),e);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Rs.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Hr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Hr(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new An(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const e=this.transport.getTicksAtTime(t);Un(e,this.time)&&(this._nextTick=this.floatTime+Math.ceil((e-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Ni extends ue{constructor(){super($(Ni.getDefaults(),arguments)),this.name="Transport",this._loop=new s1(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ke,this._repeatedEvents=new Jy,this._syncedSignals=[],this._swingAmount=0;const t=$(Ni.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Di({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),Mt(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(ue.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._swingAmount>0&&e%this._ppq!==0&&e%(this._swingTicks*2)!==0){const s=e%(this._swingTicks*2)/(this._swingTicks*2),n=Math.sin(s*Math.PI)*this._swingAmount;t+=new An(this.context,this._swingTicks*2/3).toSeconds()*n}xl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),xl(!1)}schedule(t,e){const s=new Rs(this,{callback:t,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new cc(this,{callback:t,duration:new Ue(this.context,n).toTicks(),interval:new Ue(this.context,e).toTicks(),time:new wi(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Rs(this,{callback:t,once:!0,time:new wi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(e,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new An(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){this.context.resume();let s;return dt(e)&&(s=this.toTicks(e)),this._clock.start(t,s),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),this._clock.getStateAtTime(t)!=="started"?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){ze(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ue(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ue(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new An(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new An(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),s=this._clock.frequency.timeToTicks(t,e);this.ticks=s}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(e),n=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,e),r=e+n;this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this.emit("ticks",e),this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return this._clock.getTicksAtTime(t)}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),this.state!=="started")return 0;{const e=this.now(),s=this.getTicksAtTime(e),n=t-s%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){const s=this.now();let n=this.bpm,r=1/(60/n.getValueAtTime(s)/this.PPQ),o=[];if(t.units==="time"){const c=.015625/r,l=new St(c),u=new Pi(-1),h=new St(c);n.chain(l,u,h),n=h,r=1/r,o=[l,u,h]}e||(t.getValueAtTime(s)!==0?e=t.getValueAtTime(s)/r:e=0);const a=new St(e);return n.connect(a),a.connect(t._param),o.push(a),this._syncedSignals.push({initial:t.value,nodes:o,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const s=this._syncedSignals[e];s.signal===t&&(s.nodes.forEach(n=>n.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),nc(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}ur.mixin(Ni);bo(i=>{i.transport=new Ni({context:i})});Co(i=>{i.transport.dispose()});class ee extends rt{constructor(t){super(t),this.input=void 0,this._state=new rc("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=yt,this._syncedStop=yt,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Is({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,onstop:yt,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,s){let n=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(Un(n,this._state.get(n).time),"Start time must be strictly greater than previous start time"),this._state.cancel(n),this._state.setStateAtTime("started",n),this.log("restart",n),this.restart(n,e,s);else if(this.log("start",n),this._state.setStateAtTime("started",n),this._synced){const r=this._state.get(n);r&&(r.offset=this.toSeconds(Nn(e,0)),r.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,e,s)},n);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>n&&this._syncedStart(this.now(),this.context.transport.seconds)}else sh(this.context),this._start(n,e,s);return this}stop(t){let e=xe(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),this._state.getValueAtTime(e)==="started"||dt(this._state.getNextState("started",e))){if(this.log("stop",e),!this._synced)this._stop(e);else{const s=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(s)}this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,s){return t=this.toSeconds(t),this._state.getValueAtTime(t)==="started"&&(this._state.cancel(t),this._restart(t,e,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(Un(e,0)){const s=this._state.get(e);if(s&&s.state==="started"&&s.time!==e){const n=e-this.toSeconds(s.time);let r;s.duration&&(r=this.toSeconds(s.duration)-n),this._start(t,this.toSeconds(s.offset)+n,r)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));this._state.getValueAtTime(e)==="started"&&this._stop(t)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=yt,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class jn extends zn{constructor(){super($(jn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(jn.getDefaults(),arguments,["url","onload"]);Ns(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new xt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new kt(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zn.getDefaults(),{url:new kt,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,s,n=1){ut(this.buffer.loaded,"buffer is either not set or not loaded");const r=this.toSeconds(t);this._startGain(r,n),this.loop?e=Nn(e,this.loopStart):e=Nn(e,0);let o=Math.max(this.toSeconds(e),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;ma(o,a)&&(o=(o-c)%l+c),Le(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Hr(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(r,o)),dt(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(r+a)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Ii extends ee{constructor(){super($(Ii.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Ii.getDefaults(),arguments,["type"]);this._playbackRate=t.playbackRate,this.type=t.type,this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(t){if(ut(t in Tl,"Noise: invalid type: "+t),this._type!==t&&(this._type=t,this.state==="started")){const e=this.now();this._stop(e),this._start(e)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._source&&(this._source.playbackRate.value=t)}_start(t){const e=Tl[this._type];this._source=new jn({url:e,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(t),Math.random()*(e.duration-.001))}_stop(t){this._source&&(this._source.stop(this.toSeconds(t)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(t){this._stop(t),this._start(t)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const wn=44100*5,Go=2,cs={brown:null,pink:null,white:null},Tl={get brown(){if(!cs.brown){const i=[];for(let t=0;tthis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return jt._periodicWaveCache.find(e=>e.phase===this._phase&&Fy(e.partials,this._partials));{const t=jt._periodicWaveCache.find(e=>e.type===this._type&&e.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=["sine","square","sawtooth","triangle"].indexOf(t)!==-1;if(this._phase===0&&e)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=t);else{const s=this._getCachedPeriodicWave();if(dt(s)){const{partials:n,wave:r}=s;this._wave=r,this._partials=n,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[n,r]=this._getRealImaginary(t,this._phase),o=this.context.createPeriodicWave(n,r);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),jt._periodicWaveCache.push({imag:r,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:n,type:this._type,wave:this._wave}),jt._periodicWaveCache.length>100&&jt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&this._type!=="custom"&&t!=="custom"?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){Be(t,0);let e=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(e=s[1]),this._type!=="custom")t===0?this.type=e:this.type=e+t.toString();else{const n=new Float32Array(t);this._partials.forEach((r,o)=>n[o]=r),this._partials=Array.from(n),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),o=new Float32Array(n);let a=1;if(t==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,n=a,this._partials.length===0)return[r,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),t=c[1],a=Math.max(a,2),n=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+t)}u!==0?(r[c]=-u*Math.sin(e*c),o[c]=u*Math.cos(e*c)):(r[c]=0,o[c]=0)}return[r,o]}_inverseFFT(t,e,s){let n=0;const r=t.length;for(let o=0;o(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Fs extends Ot{constructor(){super(Object.assign($(Fs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Fs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new St({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Ri extends ee{constructor(){super($(Ri.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new n1({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Ri.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new jt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new jt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Mt(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(jt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return Bt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Fi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new jt({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new jt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Fs({context:this.context,units:"positive",value:t.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Mt(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(jt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return Bt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Bn extends ee{constructor(){super($(Bn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new cn({context:this.context,mapping:e=>e<=0?-1:1});const t=$(Bn.getDefaults(),arguments,["frequency","width"]);this.width=new Ot({context:this.context,units:"audioRange",value:t.width}),this._triangle=new jt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Mt(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return Bt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Li.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,Mt(this,["frequency","detune"])}static getDefaults(){return Object.assign(jt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;ee.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,s=t/(this._oscillators.length-1);this._forEach((n,r)=>n.detune.value=e+s*r)}}get count(){return this._oscillators.length}set count(t){if(Be(t,1),this._oscillators.length!==t){this._forEach(e=>e.dispose()),this._oscillators=[];for(let e=0;ethis.onstop(this):yt});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[e]=s}this.spread=this._spread,this.state==="started"&&this._forEach(e=>e.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach((e,s)=>e.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return Bt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Fs({context:this.context,value:2});const t=$(Vi.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Bn({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new jt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Mt(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return Bt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const wl={am:Ri,fat:Li,fm:Fi,oscillator:jt,pulse:Bn,pwm:Vi};class ln extends ee{constructor(){super($(ln.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(ln.getDefaults(),arguments,["frequency","type"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),Mt(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(jt.getDefaults(),Fi.getDefaults(),Ri.getDefaults(),Li.getDefaults(),Bn.getDefaults(),Vi.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(e=>this._sourceType===e)&&(t=this._sourceType),t+this._oscillator.type}set type(t){t.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):t==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):t==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=wl[t],s=this.now();if(this._oscillator){const n=this._oscillator;n.stop(s),this.context.setTimeout(()=>n.dispose(),this.blockTime)}this._oscillator=new e({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(e=this._oscillator.type),t==="fm"?this.type="fm"+e:t==="am"?this.type="am"+e:t==="fat"?this.type="fat"+e:t==="oscillator"?this.type=e:t==="pulse"?this.type="pulse":t==="pwm"&&(this.type="pwm")}_getOscType(t,e){return t instanceof wl[e]}get baseType(){return this._oscillator.baseType}set baseType(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&t!=="pulse"&&t!=="pwm"&&(this._oscillator.baseType=t)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.count=t)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.spread=t)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&fs(t)&&(this._oscillator.modulationType=t)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(t=1024){return Bt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class lc extends Ot{constructor(){super(Object.assign($(lc.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new St({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Mi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Qr extends ps{constructor(){super(Object.assign($(Qr.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(Qr.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Fs({context:this.context,value:t.max-t.min}),this._add=this.output=new lc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ps.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(t){this._min=t,this._setRange()}get max(){return this._max}set max(t){this._max=t,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function fh(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(r,i,t),e.set(this,r)}})}}function xs(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(this.toSeconds(r),i,t),e.set(this,r)}})}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(Ui.getDefaults(),arguments,["url","onload"]);this._buffer=new kt({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1,reverse:!1})}load(t){return Bt(this,void 0,void 0,function*(){return yield this._buffer.load(t),this._onload(),this})}_onload(t=yt){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(t,e,s){return super.start(t,e,s),this}_start(t,e,s){this._loop?e=Nn(e,this._loopStart):e=Nn(e,0);const n=this.toSeconds(e),r=s;s=Nn(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new jn({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&xe(r)?a.start(t,n):a.start(t,n,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(s=>s.stop(e))}restart(t,e,s){return super.restart(t,e,s),this}_restart(t,e,s){var n;(n=[...this._activeSources].pop())===null||n===void 0||n.stop(t),this._start(t,e,s)}seek(t,e){const s=this.toSeconds(e);if(this._state.getValueAtTime(s)==="started"){const n=this.toSeconds(t);this._stop(s),this._start(s,n)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const e=this._state.getNextState("stopped",this.now());e&&this._state.cancel(e.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),s=this._state.getNextState("stopped",e);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(n=>n.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}qe([xs(0)],Ui.prototype,"fadeIn",void 0);qe([xs(0)],Ui.prototype,"fadeOut",void 0);class i1 extends ps{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new cn({context:this.context,mapping:t=>Math.abs(t)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Pe extends rt{constructor(){super($(Pe.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Ot({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=$(Pe.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(rt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(fs(t))return t;{let s;for(s in Cr)if(Cr[s][e]===t)return s;return t}}_setCurve(t,e,s){if(fs(s)&&Reflect.has(Cr,s)){const n=Cr[s];Js(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(ze(s)&&t!=="_decayCurve")this[t]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(t){this._setCurve("_decayCurve","Out",t)}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),o=this.getValueAtTime(t);if(o>0){const a=1/n;n=(1-o)/a}if(n0){const s=this.toSeconds(this.release);s{let t,e;const s=[];for(t=0;t<128;t++)s[t]=Math.sin(t/(128-1)*(Math.PI/2));const n=[],r=6.4;for(t=0;t<128-1;t++){e=t/(128-1);const d=Math.sin(e*(Math.PI*2)*r-Math.PI/2)+1;n[t]=d/10+e*.83}n[128-1]=1;const o=[],a=5;for(t=0;t<128;t++)o[t]=Math.ceil(t/(128-1)*a)/a;const c=[];for(t=0;t<128;t++)e=t/(128-1),c[t]=.5*(1-Math.cos(Math.PI*e));const l=[];for(t=0;t<128;t++){e=t/(128-1);const d=Math.pow(e,3)*4+.2,p=Math.cos(d*Math.PI*2*e);l[t]=Math.abs(p*(1-e))}function u(d){const p=new Array(d.length);for(let _=0;_this._original_triggerRelease(e);const t=$(un.getDefaults(),arguments);this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(rt.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let t=!1;return this._synced||(this._synced=!0,t=!0),t}_syncMethod(t,e){const s=this["_original_"+t]=this[t];this[t]=(...n)=>{const r=n[e],o=this.context.transport.schedule(a=>{n[e]=a,s.apply(this,n)},r);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(t,e,s,n){const r=this.toSeconds(s),o=this.toSeconds(e);return this.triggerAttack(t,r,n),this.triggerRelease(r+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class ms extends un{constructor(){super($(ms.getDefaults(),arguments));const t=$(ms.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(un.getDefaults(),{detune:0,onsilence:yt,portamento:0})}triggerAttack(t,e,s=1){this.log("triggerAttack",t,e,s);const n=this.toSeconds(e);return this._triggerEnvelopeAttack(n,s),this.setNote(t,n),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const s=this.toSeconds(e),n=t instanceof Ae?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const r=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(n,r,s)}else this.frequency.setValueAtTime(n,s);return this}}qe([xs(0)],ms.prototype,"portamento",void 0);class Oo extends Pe{constructor(){super($(Oo.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new St({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class zi extends ms{constructor(){super($(zi.getDefaults(),arguments)),this.name="Synth";const t=$(zi.getDefaults(),arguments);this.oscillator=new ln(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Oo(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),Mt(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(On(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(On(ln.getDefaults(),[...Object.keys(ee.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class ji extends rt{constructor(){super($(ji.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(ji.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new xt({context:this.context,units:"number",value:t.Q,param:this._filter.Q}),this.frequency=new xt({context:this.context,units:"frequency",value:t.frequency,param:this._filter.frequency}),this.detune=new xt({context:this.context,units:"cents",value:t.detune,param:this._filter.detune}),this.gain=new xt({context:this.context,units:"decibels",convert:!1,value:t.gain,param:this._filter.gain}),this.type=t.type}static getDefaults(){return Object.assign(rt.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(t){ut(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(t)!==-1,`Invalid filter type: ${t}`),this._filter.type=t}getFrequencyResponse(t=128){const e=new Float32Array(t);for(let o=0;os.type=t)}get rolloff(){return this._rolloff}set rolloff(t){const e=Ps(t)?t:parseInt(t,10),s=[-12,-24,-48,-96];let n=s.indexOf(e);ut(n!==-1,`rolloff can only be ${s.join(", ")}`),n+=1,this._rolloff=e,this.input.disconnect(),this._filters.forEach(r=>r.disconnect()),this._filters=new Array(n);for(let r=0;r1);return this._filters.forEach(()=>{e.getFrequencyResponse(t).forEach((r,o)=>s[o]*=r)}),e.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(t=>{t.dispose()}),nc(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class Bi extends Pe{constructor(){super($(Bi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(Bi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Pi({context:this.context,value:t.exponent}),this._scale=this.output=new Qr({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Pe.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);Be(e,0),this._baseFrequency=e,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(t){this._octaves=t,this._scale.max=this._baseFrequency*Math.pow(2,t)}get exponent(){return this._exponent.value}set exponent(t){this._exponent.value=t}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class qi extends ms{constructor(){super($(qi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(qi.getDefaults(),arguments);this.oscillator=new ln(Object.assign(t.oscillator,{context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new qn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new Bi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Oo(Object.assign(t.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Mt(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(On(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(On(qn.getDefaults(),Object.keys(rt.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(On(Bi.getDefaults(),Object.keys(rt.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(On(ln.getDefaults(),Object.keys(ee.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(t,e=1){if(this.envelope.triggerAttack(t,e),this.filterEnvelope.triggerAttack(t),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.filterEnvelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class Wi extends zi{constructor(){super($(Wi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Wi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return Pn(ms.getDefaults(),zi.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const s=this.toSeconds(e),n=this.toFrequency(t instanceof Ae?t.toFrequency():t),r=n*this.octaves;return this.oscillator.frequency.setValueAtTime(r,s),this.oscillator.frequency.exponentialRampToValueAtTime(n,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}qe([fh(0)],Wi.prototype,"octaves",void 0);qe([xs(0)],Wi.prototype,"pitchDecay",void 0);const ph=new Set;function uc(i){ph.add(i)}function mh(i,t){const e=`registerProcessor("${i}", ${t})`;ph.add(e)}const r1=` + */class xs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...t){(this.debug||tn&&this.toString()===tn.TONE_DEBUG_CLASS)&&Py(this,...t)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}xs.version=hu;const sc=1e-6;function jn(i,t){return i>t+sc}function _a(i,t){return jn(i,t)||Le(i,t)}function Gr(i,t){return i+scthis.memory){const e=this.length-this.memory;this._timeline.splice(0,e)}return this}remove(t){const e=this._timeline.indexOf(t);return e!==-1&&this._timeline.splice(e,1),this}get(t,e="time"){const s=this._search(t,e);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(t,e="time"){const s=this._search(t,e);return s+10&&this._timeline[e-1].time=0?this._timeline[s-1]:null}cancel(t){if(this._timeline.length>1){let e=this._search(t);if(e>=0)if(Le(this._timeline[e].time,t)){for(let s=e;s>=0&&Le(this._timeline[s].time,t);s--)e=s;this._timeline=this._timeline.slice(0,e)}else this._timeline=this._timeline.slice(0,e+1);else this._timeline=[]}else this._timeline.length===1&&_a(this._timeline[0].time,t)&&(this._timeline=[]);return this}cancelBefore(t){const e=this._search(t);return e>=0&&(this._timeline=this._timeline.slice(e+1)),this}previousEvent(t){const e=this._timeline.indexOf(t);return e>0?this._timeline[e-1]:null}_search(t,e="time"){if(this._timeline.length===0)return-1;let s=0;const n=this._timeline.length;let r=n;if(n>0&&this._timeline[n-1][e]<=t)return n-1;for(;s=0&&this._timeline[s].time>=t;)s--;return this._iterate(e,s+1),this}forEachAtTime(t,e){const s=this._search(t);if(s!==-1&&Le(this._timeline[s].time,t)){let n=s;for(let r=s;r>=0&&Le(this._timeline[r].time,t);r--)n=r;this._iterate(r=>{e(r)},n,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const ch=[];function Co(i){ch.push(i)}function qy(i){ch.forEach(t=>t(i))}const lh=[];function So(i){lh.push(i)}function Wy(i){lh.forEach(t=>t(i))}class hr extends xs{constructor(){super(...arguments),this.name="Emitter"}on(t,e){return t.split(/\W+/).forEach(n=>{ke(this._events)&&(this._events={}),this._events.hasOwnProperty(n)||(this._events[n]=[]),this._events[n].push(e)}),this}once(t,e){const s=(...n)=>{e(...n),this.off(t,s)};return this.on(t,s),this}off(t,e){return t.split(/\W+/).forEach(n=>{if(ke(this._events)&&(this._events={}),this._events.hasOwnProperty(n))if(ke(e))this._events[n]=[];else{const r=this._events[n];for(let o=r.length-1;o>=0;o--)r[o]===e&&r.splice(o,1)}}),this}emit(t,...e){if(this._events&&this._events.hasOwnProperty(t)){const s=this._events[t].slice(0);for(let n=0,r=s.length;n{const s=Object.getOwnPropertyDescriptor(hr.prototype,e);Object.defineProperty(t.prototype,e,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class uh extends hr{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let nc=class hh extends uh{constructor(){var t,e;super(),this.name="Context",this._constants=new Map,this._timeouts=new Ke,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=$(hh.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((t=arguments[0])===null||t===void 0?void 0:t.latencyHint)||""):(this._context=Iy({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new Ly(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((e=arguments[0])===null||e===void 0)&&e.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(qy(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(t,e,s){return this._context.createBuffer(t,e,s)}createChannelMerger(t){return this._context.createChannelMerger(t)}createChannelSplitter(t){return this._context.createChannelSplitter(t)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(t){return this._context.createDelay(t)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(t,e){return this._context.createIIRFilter(t,e)}createPanner(){return this._context.createPanner()}createPeriodicWave(t,e,s){return this._context.createPeriodicWave(t,e,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(t){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(t)}createMediaElementSource(t){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(t)}createMediaStreamDestination(){return ut(En(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(t){return this._context.decodeAudioData(t)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(t){ut(!this._initialized,"The listener cannot be set after initialization."),this._listener=t}get transport(){return this.initialize(),this._transport}set transport(t){ut(!this._initialized,"The transport cannot be set after initialization."),this._transport=t}get draw(){return this.initialize(),this._draw}set draw(t){ut(!this._initialized,"Draw cannot be set after initialization."),this._draw=t}get destination(){return this.initialize(),this._destination}set destination(t){ut(!this._initialized,"The destination cannot be set after initialization."),this._destination=t}createAudioWorkletNode(t,e){return Fy(this.rawContext,t,e)}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){ut(dt(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(t)),yield this._workletPromise})}workletsAreReady(){return qt(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(t){this._ticker.updateInterval=t}get clockSource(){return this._ticker.type}set clockSource(t){this._ticker.type=t}get lookAhead(){return this._lookAhead}set lookAhead(t){this._lookAhead=t,this.updateInterval=t?t/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return En(this._context)?this._context.resume():Promise.resolve()}close(){return qt(this,void 0,void 0,function*(){En(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&Wy(this)})}getConstant(t){if(this._constants.has(t))return this._constants.get(t);{const e=this._context.createBuffer(1,128,this._context.sampleRate),s=e.getChannelData(0);for(let r=0;rthis._constants[t].disconnect()),this.close(),this}_timeoutLoop(){const t=this.now();let e=this._timeouts.peek();for(;this._timeouts.length&&e&&e.time<=t;)e.callback(),this._timeouts.shift(),e=this._timeouts.peek()}setTimeout(t,e){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:t,id:this._timeoutIds,time:s+e}),this._timeoutIds}clearTimeout(t){return this._timeouts.forEach(e=>{e.id===t&&this._timeouts.remove(e)}),this}clearInterval(t){return this.clearTimeout(t)}setInterval(t,e){const s=++this._timeoutIds,n=()=>{const r=this.now();this._timeouts.add({callback:()=>{t(),n()},id:s,time:r+e})};return n(),s}};class Hy extends uh{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(t,e,s){return{}}createChannelMerger(t){return{}}createChannelSplitter(t){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(t){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(t,e){return{}}createPanner(){return{}}createPeriodicWave(t,e,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(t){return{}}createMediaElementSource(t){return{}}createMediaStreamDestination(){return{}}decodeAudioData(t){return Promise.resolve({})}createAudioWorkletNode(t,e){return{}}get rawContext(){return{}}addAudioWorkletModule(t){return qt(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(t,e){return 0}clearTimeout(t){return this}setInterval(t,e){return 0}clearInterval(t){return this}getConstant(t){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(t){}get destination(){return{}}set destination(t){}now(){return 0}immediate(){return 0}}function Mt(i,t){je(t)?t.forEach(e=>Mt(i,e)):Object.defineProperty(i,t,{enumerable:!0,writable:!1})}function ic(i,t){je(t)?t.forEach(e=>ic(i,e)):Object.defineProperty(i,t,{writable:!0})}const yt=()=>{};class xt extends xs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=yt;const t=$(xt.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=t.reverse,this.onload=t.onload,fs(t.url)?this.load(t.url).catch(t.onerror):t.url&&this.set(t.url)}static getDefaults(){return{onerror:yt,onload:yt,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Ve().sampleRate}set(t){return t instanceof xt?t.loaded?this._buffer=t.get():t.onload=()=>{this.set(t),this.onload(this)}:this._buffer=t,this._reversed&&this._reverse(),this}get(){return this._buffer}load(t){return qt(this,void 0,void 0,function*(){const e=xt.load(t).then(s=>{this.set(s),this.onload(this)});xt.downloads.push(e);try{yield e}finally{const s=xt.downloads.indexOf(e);xt.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(t){const e=je(t)&&t[0].length>0,s=e?t.length:1,n=e?t[0].length:t.length,r=Ve(),o=r.createBuffer(s,n,r.sampleRate),a=!e&&s===1?[t]:t;for(let c=0;cn/s),this.fromArray(e)}return this}toArray(t){if(Ps(t))return this.getChannelData(t);if(this.numberOfChannels===1)return this.toArray(0);{const e=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(t){this._reversed!==t&&(this._reversed=t,this._reverse())}static fromArray(t){return new xt().fromArray(t)}static fromUrl(t){return qt(this,void 0,void 0,function*(){return yield new xt().load(t)})}static load(t){return qt(this,void 0,void 0,function*(){const e=t.match(/\[([^\]\[]+\|.+)\]$/);if(e){const c=e[1].split("|");let l=c[0];for(const u of c)if(xt.supportsType(u)){l=u;break}t=t.replace(e[0],l)}const s=xt.baseUrl===""||xt.baseUrl.endsWith("/")?xt.baseUrl:xt.baseUrl+"/",n=document.createElement("a");n.href=s+t,n.pathname=(n.pathname+n.hash).split("/").map(encodeURIComponent).join("/");const r=yield fetch(n.href);if(!r.ok)throw new Error(`could not load url: ${t}`);const o=yield r.arrayBuffer();return yield Ve().decodeAudioData(o)})}static supportsType(t){const e=t.split("."),s=e[e.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return qt(this,void 0,void 0,function*(){for(yield Promise.resolve();xt.downloads.length;)yield xt.downloads[0]})}}xt.baseUrl="";xt.downloads=[];class Eo extends nc{constructor(){super({clockSource:"offline",context:Ir(arguments[0])?arguments[0]:Ny(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:Ir(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=Ir(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(t){return qt(this,void 0,void 0,function*(){let e=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,e++;const s=Math.floor(this.sampleRate/128);t&&e%s===0&&(yield new Promise(n=>setTimeout(n,1)))}})}render(t=!0){return qt(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(t);const e=yield this._context.startRendering();return new xt(e)})}close(){return Promise.resolve()}}const dh=new Hy;let Xs=dh;function Ve(){return Xs===dh&&Ry&&Gy(new nc),Xs}function Gy(i,t=!1){t&&Xs.dispose(),En(i)?Xs=new nc(i):Ir(i)?Xs=new Eo(i):Xs=i}function Yy(){return Xs.resume()}if(tn&&!tn.TONE_SILENCE_LOGGING){const t=` * Tone.js v${hu} * `;console.log(`%c${t}`,"background: #000; color: #fff")}function $y(i){return Math.pow(10,i/20)}function Zy(i){return 20*(Math.log(i)/Math.LN10)}function fh(i){return Math.pow(2,i/12)}let Oo=440;function Xy(){return Oo}function Qy(i){Oo=i}function ga(i){return Math.round(ph(i))}function ph(i){return 69+12*Math.log2(i/Oo)}function Ky(i){return Oo*Math.pow(2,(i-69)/12)}class rc extends xs{constructor(t,e,s){super(),this.defaultUnits="s",this._val=e,this._units=s,this.context=t,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:t=>this._frequencyToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:t=>this._ticksToUnits(parseInt(t,10)),regexp:/^(\d+)i$/i},m:{method:t=>this._beatsToUnits(parseInt(t,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(t,e)=>{const s=parseInt(t,10),n=e==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*n:this._beatsToUnits(4/s)*n},regexp:/^(\d+)n(\.?)$/i},number:{method:t=>this._expressions[this.defaultUnits].method.call(this,t),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:t=>this._secondsToUnits(parseFloat(t)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:t=>parseInt(t,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:t=>{const e=parseInt(t,10);return this._beatsToUnits(8/(Math.floor(e)*3))},regexp:/^(\d+)t$/i},tr:{method:(t,e,s)=>{let n=0;return t&&t!=="0"&&(n+=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n+=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n+=this._beatsToUnits(parseFloat(s)/4)),n},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof rc&&this.fromType(this._val),ke(this._val))return this._noArg();if(fs(this._val)&&ke(this._units)){for(const t in this._expressions)if(this._expressions[t].regexp.test(this._val.trim())){this._units=t;break}}else if(Js(this._val)){let t=0;for(const e in this._val)if(dt(this._val[e])){const s=this._val[e],n=new this.constructor(this.context,e).valueOf()*s;t+=n}return t}if(dt(this._units)){const t=this._expressions[this._units],e=this._val.toString().trim().match(t.regexp);return e?t.method.apply(this,e.slice(1)):t.method.call(this,this._val)}else return fs(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(t){return 1/t}_beatsToUnits(t){return 60/this._getBpm()*t}_secondsToUnits(t){return t}_ticksToUnits(t){return t*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(t){switch(this._units=void 0,this.defaultUnits){case"s":this._val=t.toSeconds();break;case"i":this._val=t.toTicks();break;case"hz":this._val=t.toFrequency();break;case"midi":this._val=t.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class Ue extends rc{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:t=>this._now()+new this.constructor(this.context,t).valueOf(),regexp:/^\+(.+)/},quantize:{method:t=>{const e=new Ue(this.context,t).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(e))},regexp:/^@(.+)/}})}quantize(t,e=1){const s=new this.constructor(this.context,t).valueOf(),n=this.valueOf(),a=Math.round(n/s)*s-n;return n+a*e}toNotation(){const t=this.toSeconds(),e=["1m"];for(let r=1;r<9;r++){const o=Math.pow(2,r);e.push(o+"n."),e.push(o+"n"),e.push(o+"t")}e.push("0");let s=e[0],n=new Ue(this.context,e[0]).toSeconds();return e.forEach(r=>{const o=new Ue(this.context,r).toSeconds();Math.abs(o-t)3&&(n=parseFloat(parseFloat(r).toFixed(3))),[s,e,n].join(":")}toTicks(){const t=this._beatsToUnits(1);return this.valueOf()/t*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return ga(this.toFrequency())}_now(){return this.context.now()}}class Ae extends Ue{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return Xy()}static set A4(t){Qy(t)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(t){return this.defaultUnits==="midi"?t:Ae.mtof(t)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(t,e){const n=Jy[t.toLowerCase()]+(parseInt(e,10)+1)*12;return this.defaultUnits==="midi"?n:Ae.mtof(n)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(t,e,s){let n=1;return t&&t!=="0"&&(n*=this._beatsToUnits(this._getTimeSignature()*parseFloat(t))),e&&e!=="0"&&(n*=this._beatsToUnits(parseFloat(e))),s&&s!=="0"&&(n*=this._beatsToUnits(parseFloat(s)/4)),n}}})}transpose(t){return new Ae(this.context,this.valueOf()*fh(t))}harmonize(t){return t.map(e=>this.transpose(e))}toMidi(){return ga(this.valueOf())}toNote(){const t=this.toFrequency(),e=Math.log2(t/Ae.A4);let s=Math.round(12*e)+57;const n=Math.floor(s/12);return n<0&&(s+=-12*n),t1[s%12]+n.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const t=this._beatsToUnits(1),e=this.valueOf()/t;return Math.floor(e*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(t){return t}_ticksToUnits(t){return 1/(t*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(t){return 1/super._beatsToUnits(t)}_secondsToUnits(t){return 1/t}static mtof(t){return Ky(t)}static ftom(t){return ga(t)}}const Jy={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},t1=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class bi extends Ue{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class ue extends xs{constructor(){super();const t=$(ue.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=t.context}static getDefaults(){return{context:Ve()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(t){return Dy(t),new Ue(this.context,t).toSeconds()}toFrequency(t){return new Ae(this.context,t).toFrequency()}toTicks(t){return new bi(this.context,t).toTicks()}_getPartialProperties(t){const e=this.get();return Object.keys(e).forEach(s=>{ke(t[s])&&delete e[s]}),e}get(){const t=zy(this);return Object.keys(t).forEach(e=>{if(Reflect.has(this,e)){const s=this[e];dt(s)&&dt(s.value)&&dt(s.setValueAtTime)?t[e]=s.value:s instanceof ue?t[e]=s._getPartialProperties(t[e]):je(s)||Ps(s)||fs(s)||My(s)?t[e]=s:delete t[e]}}),t}set(t){return Object.keys(t).forEach(e=>{Reflect.has(this,e)&&dt(this[e])&&(this[e]&&dt(this[e].value)&&dt(this[e].setValueAtTime)?this[e].value!==t[e]&&(this[e].value=t[e]):this[e]instanceof ue?this[e].set(t[e]):this[e]=t[e])}),this}}class oc extends Ke{constructor(t="stopped"){super(),this.name="StateTimeline",this._initial=t,this.setStateAtTime(this._initial,0)}getValueAtTime(t){const e=this.get(t);return e!==null?e.state:this._initial}setStateAtTime(t,e,s){return Be(e,0),this.add(Object.assign({},s,{state:t,time:e})),this}getLastState(t,e){const s=this._search(e);for(let n=s;n>=0;n--){const r=this._timeline[n];if(r.state===t)return r}}getNextState(t,e){const s=this._search(e);if(s!==-1)for(let n=s;n0,"timeConstant must be a number greater than 0");const r=this.toSeconds(e);return this._assertRange(n),ut(isFinite(n)&&isFinite(r),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(t)}, ${JSON.stringify(e)}`),this._events.add({constant:s,time:r,type:"setTargetAtTime",value:n}),this.log(this.units,"setTargetAtTime",t,r,s),this._param.setTargetAtTime(n,r,s),this}setValueCurveAtTime(t,e,s,n=1){s=this.toSeconds(s),e=this.toSeconds(e);const r=this._fromType(t[0])*n;this.setValueAtTime(this._toType(r),e);const o=s/(t.length-1);for(let a=1;a{n.type==="cancelScheduledValues"?t.cancelScheduledValues(n.time):n.type==="setTargetAtTime"?t.setTargetAtTime(n.value,n.time,n.constant):t[n.type](n.value,n.time)}),this}setParam(t){ut(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const e=this.input;return e.disconnect(this._param),this.apply(t),this._param=t,e.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(t,e,s,n,r){return s+(e-s)*Math.exp(-(r-t)/n)}_linearInterpolate(t,e,s,n,r){return e+(n-e)*((r-t)/(s-t))}_exponentialInterpolate(t,e,s,n,r){return e*Math.pow(n/e,(r-t)/(s-t))}}class rt extends ue{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return dt(this.input)?an(this.input)||this.input instanceof kt?1:this.input.numberOfInputs:0}get numberOfOutputs(){return dt(this.output)?this.output.numberOfOutputs:0}_isAudioNode(t){return dt(t)&&(t instanceof rt||As(t))}_getInternalNodes(){const t=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&t.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&t.push(this.output),t}_setChannelProperties(t){this._getInternalNodes().forEach(s=>{s.channelCount=t.channelCount,s.channelCountMode=t.channelCountMode,s.channelInterpretation=t.channelInterpretation})}_getChannelProperties(){const t=this._getInternalNodes();ut(t.length>0,"ToneAudioNode does not have any internal nodes");const e=t[0];return{channelCount:e.channelCount,channelCountMode:e.channelCountMode,channelInterpretation:e.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCount:t}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelCountMode:t}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(t){const e=this._getChannelProperties();this._setChannelProperties(Object.assign(e,{channelInterpretation:t}))}connect(t,e=0,s=0){return Is(this,t,e,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return ec("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(t,e=0,s=0){return e1(this,t,e,s),this}chain(...t){return Di(this,...t),this}fan(...t){return t.forEach(e=>this.connect(e)),this}dispose(){return super.dispose(),dt(this.input)&&(this.input instanceof rt?this.input.dispose():As(this.input)&&this.input.disconnect()),dt(this.output)&&(this.output instanceof rt?this.output.dispose():As(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Di(...i){const t=i.shift();i.reduce((e,s)=>(e instanceof rt?e.connect(s):As(e)&&Is(e,s),s),t)}function Is(i,t,e=0,s=0){for(ut(dt(i),"Cannot connect from undefined node"),ut(dt(t),"Cannot connect to undefined node"),(t instanceof rt||As(t))&&ut(t.numberOfInputs>0,"Cannot connect to node with no inputs"),ut(i.numberOfOutputs>0,"Cannot connect from node with no outputs");t instanceof rt||t instanceof kt;)dt(t.input)&&(t=t.input);for(;i instanceof rt;)dt(i.output)&&(i=i.output);an(t)?i.connect(t,e):i.connect(t,e,s)}function e1(i,t,e=0,s=0){if(dt(t))for(;t instanceof rt;)t=t.input;for(;!As(i);)dt(i.output)&&(i=i.output);an(t)?i.disconnect(t,e):As(t)?i.disconnect(t,e,s):i.disconnect()}class St extends rt{constructor(){super($(St.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const t=$(St.getDefaults(),arguments,["gain","units"]);this.gain=new kt({context:this.context,convert:t.convert,param:this._gainNode.gain,units:t.units,value:t.gain,minValue:t.minValue,maxValue:t.maxValue}),Mt(this,"gain")}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class zn extends rt{constructor(t){super(t),this.onended=yt,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new St({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(e){const s=this.toSeconds(e);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut,this._curve=t.curve,this.onended=t.onended}static getDefaults(){return Object.assign(rt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:yt})}_startGain(t,e=1){ut(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=t+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,t),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(e,t+s):this._gainNode.gain.exponentialApproachValueAtTime(e,t,s)):this._gainNode.gain.setValueAtTime(e,t),this}stop(t){return this.log("stop",t),this._stopGain(this.toSeconds(t)),this}_stopGain(t){ut(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const e=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(t)+e,this._stopTime=Math.max(this._stopTime,this.now()),e>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,e,t):this._gainNode.gain.targetRampTo(0,e,t):(this._gainNode.gain.cancelAndHoldAtTime(t),this._gainNode.gain.setValueAtTime(0,t)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?e*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==yt&&(this.onended(this),this.onended=yt,!this.context.isOffline)){const t=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(t):setTimeout(t,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),ut(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=yt,this}}class Yr extends zn{constructor(){super($(Yr.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const t=$(Yr.getDefaults(),arguments,["offset"]);Is(this._source,this._gainNode),this.offset=new kt({context:this.context,convert:t.convert,param:this._source.offset,units:t.units,value:t.offset,minValue:t.minValue,maxValue:t.maxValue})}static getDefaults(){return Object.assign(zn.getDefaults(),{convert:!0,offset:1,units:"number"})}start(t){const e=this.toSeconds(t);return this.log("start",e),this._startGain(e),this._source.start(e),this}_stopSource(t){this._source.stop(t)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class Ot extends rt{constructor(){super($(Ot.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const t=$(Ot.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Yr({context:this.context,convert:t.convert,offset:t.value,units:t.units,minValue:t.minValue,maxValue:t.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(rt.getDefaults(),{convert:!0,units:"number",value:0})}connect(t,e=0,s=0){return ac(this,t,e,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(t,e){return this._param.setValueAtTime(t,e),this}getValueAtTime(t){return this._param.getValueAtTime(t)}setRampPoint(t){return this._param.setRampPoint(t),this}linearRampToValueAtTime(t,e){return this._param.linearRampToValueAtTime(t,e),this}exponentialRampToValueAtTime(t,e){return this._param.exponentialRampToValueAtTime(t,e),this}exponentialRampTo(t,e,s){return this._param.exponentialRampTo(t,e,s),this}linearRampTo(t,e,s){return this._param.linearRampTo(t,e,s),this}targetRampTo(t,e,s){return this._param.targetRampTo(t,e,s),this}exponentialApproachValueAtTime(t,e,s){return this._param.exponentialApproachValueAtTime(t,e,s),this}setTargetAtTime(t,e,s){return this._param.setTargetAtTime(t,e,s),this}setValueCurveAtTime(t,e,s,n){return this._param.setValueCurveAtTime(t,e,s,n),this}cancelScheduledValues(t){return this._param.cancelScheduledValues(t),this}cancelAndHoldAtTime(t){return this._param.cancelAndHoldAtTime(t),this}rampTo(t,e,s){return this._param.rampTo(t,e,s),this}get value(){return this._param.value}set value(t){this._param.value=t}get convert(){return this._param.convert}set convert(t){this._param.convert=t}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(t){this._param.overridden=t}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(t){return this._param.apply(t),this}}function ac(i,t,e,s){(t instanceof kt||an(t)||t instanceof Ot&&t.override)&&(t.cancelScheduledValues(0),t.setValueAtTime(0,0),t instanceof Ot&&(t.overridden=!0)),Is(i,t,e,s)}class $r extends kt{constructor(){super($($r.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ke(1/0),this._multiplier=1;const t=$($r.getDefaults(),arguments,["value"]);this._multiplier=t.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(t.value)}),this.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(kt.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(t,e,s){e=this.toSeconds(e),this.setRampPoint(e);const n=this._fromType(t),r=this._events.get(e),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+e,l=this._exponentialApproach(r.time,r.value,n,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(t,e){const s=this.toSeconds(e);super.setValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}linearRampToValueAtTime(t,e){const s=this.toSeconds(e);super.linearRampToValueAtTime(t,e);const n=this._events.get(s),r=this._events.previousEvent(n),o=this._getTicksUntilEvent(r,s);return n.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(t,e){e=this.toSeconds(e);const s=this._fromType(t),n=this._events.get(e),r=Math.round(Math.max((e-n.time)*10,1)),o=(e-n.time)/r;for(let a=0;a<=r;a++){const c=o*a+n.time,l=this._exponentialInterpolate(n.time,n.value,e,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(t,e){if(t===null)t={ticks:0,time:0,type:"setValueAtTime",value:0};else if(ke(t.ticks)){const o=this._events.previousEvent(t);t.ticks=this._getTicksUntilEvent(o,t.time)}const s=this._fromType(this.getValueAtTime(t.time));let n=this._fromType(this.getValueAtTime(e));const r=this._events.get(e);return r&&r.time===e&&r.type==="setValueAtTime"&&(n=this._fromType(this.getValueAtTime(e-this.sampleTime))),.5*(e-t.time)*(s+n)+t.ticks}getTicksAtTime(t){const e=this.toSeconds(t),s=this._events.get(e);return Math.max(this._getTicksUntilEvent(s,e),0)}getDurationOfTicks(t,e){const s=this.toSeconds(e),n=this.getTicksAtTime(e);return this.getTimeOfTick(n+t)-s}getTimeOfTick(t){const e=this._events.get(t,"ticks"),s=this._events.getAfter(t,"ticks");if(e&&e.ticks===t)return e.time;if(e&&s&&s.type==="linearRampToValueAtTime"&&e.value!==s.value){const n=this._fromType(this.getValueAtTime(e.time)),o=(this._fromType(this.getValueAtTime(s.time))-n)/(s.time-e.time),a=Math.sqrt(Math.pow(n,2)-2*o*(e.ticks-t)),c=(-n+a)/o,l=(-n-a)/o;return(c>0?c:l)+e.time}else return e?e.value===0?1/0:e.time+(t-e.ticks)/e.value:t/this._initialValue}ticksToTime(t,e){return this.getDurationOfTicks(t,e)}timeToTicks(t,e){const s=this.toSeconds(e),n=this.toSeconds(t),r=this.getTicksAtTime(s);return this.getTicksAtTime(s+n)-r}_fromType(t){return this.units==="bpm"&&this.multiplier?1/(60/t/this.multiplier):super._fromType(t)}_toType(t){return this.units==="bpm"&&this.multiplier?t/this.multiplier*60:super._toType(t)}get multiplier(){return this._multiplier}set multiplier(t){const e=this.value;this._multiplier=t,this.cancelScheduledValues(0),this.setValueAtTime(e,0)}}class Zr extends Ot{constructor(){super($(Zr.getDefaults(),arguments,["value"])),this.name="TickSignal";const t=$(Zr.getDefaults(),arguments,["value"]);this.input=this._param=new $r({context:this.context,convert:t.convert,multiplier:t.multiplier,param:this._constantSource.offset,units:t.units,value:t.value})}static getDefaults(){return Object.assign(Ot.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(t,e){return this._param.ticksToTime(t,e)}timeToTicks(t,e){return this._param.timeToTicks(t,e)}getTimeOfTick(t){return this._param.getTimeOfTick(t)}getDurationOfTicks(t,e){return this._param.getDurationOfTicks(t,e)}getTicksAtTime(t){return this._param.getTicksAtTime(t)}get multiplier(){return this._param.multiplier}set multiplier(t){this._param.multiplier=t}dispose(){return super.dispose(),this._param.dispose(),this}}class Xr extends ue{constructor(){super($(Xr.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new oc,this._tickOffset=new Ke,this._ticksAtTime=new Ke,this._secondsAtTime=new Ke;const t=$(Xr.getDefaults(),arguments,["frequency"]);this.frequency=new Zr({context:this.context,units:t.units,value:t.frequency}),Mt(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},ue.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(t,e){const s=this.toSeconds(t);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),dt(e)&&this.setTicksAtTime(e,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(t){const e=this.toSeconds(t);if(this._state.getValueAtTime(e)==="stopped"){const s=this._state.get(e);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(e),this._state.setStateAtTime("stopped",e),this.setTicksAtTime(0,e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}pause(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)==="started"&&(this._state.setStateAtTime("paused",e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e)),this}cancel(t){return t=this.toSeconds(t),this._state.cancel(t),this._tickOffset.cancel(t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getTicksAtTime(t){const e=this.toSeconds(t),s=this._state.getLastState("stopped",e),n=this._ticksAtTime.get(e),r={state:"paused",time:e};this._state.add(r);let o=n||s,a=n?n.ticks:0,c=null;return this._state.forEachBetween(o.time,e+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=r.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(r),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(t){this.setTicksAtTime(t,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(t){const e=this.now(),s=this.frequency.timeToTicks(t,e);this.setTicksAtTime(s,e)}getSecondsAtTime(t){t=this.toSeconds(t);const e=this._state.getLastState("stopped",t),s={state:"paused",time:t};this._state.add(s);const n=this._secondsAtTime.get(t);let r=n||e,o=n?n.seconds:0,a=null;return this._state.forEachBetween(r.time,t+this.sampleTime,c=>{let l=r.time;const u=this._tickOffset.get(c.time);u&&u.time>=r.time&&(o=u.seconds,l=u.time),r.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),r=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(t,e){return e=this.toSeconds(e),this._tickOffset.cancel(e),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(t,e),ticks:t,time:e}),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getStateAtTime(t){return t=this.toSeconds(t),this._state.getValueAtTime(t)}getTimeOfTick(t,e=this.now()){const s=this._tickOffset.get(e),n=this._state.get(e),r=Math.max(s.time,n.time),o=this.frequency.getTicksAtTime(r)+t-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(t,e,s){let n=this._state.get(t);this._state.forEachBetween(t,e,o=>{n&&n.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(n.time,t),o.time-this.sampleTime,s),n=o});let r=null;if(n&&n.state==="started"){const o=Math.max(n.time,t),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(n.time),l=a-c;let u=Math.ceil(l)-l;u=Le(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const n=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,n);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(t,e,(s,n)=>{this.callback(s,n)}))}getStateAtTime(t){const e=this.toSeconds(t);return this._state.getValueAtTime(e)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}hr.mixin(Pi);class cc extends xs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const t=$(cc.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=t.baseUrl,Object.keys(t.urls).forEach(e=>{this._loadingCount++;const s=t.urls[e];this.add(e,s,this._bufferLoaded.bind(this,t.onload),t.onerror)})}static getDefaults(){return{baseUrl:"",onerror:yt,onload:yt,urls:{}}}has(t){return this._buffers.has(t.toString())}get(t){return ut(this.has(t),`ToneAudioBuffers has no buffer named: ${t}`),this._buffers.get(t.toString())}_bufferLoaded(t){this._loadingCount--,this._loadingCount===0&&t&&t()}get loaded(){return Array.from(this._buffers).every(([t,e])=>e.loaded)}add(t,e,s=yt,n=yt){return fs(e)?(this.baseUrl&&e.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(t.toString(),new xt(this.baseUrl+e,s,n))):this._buffers.set(t.toString(),new xt(e,s,n)),this}dispose(){return super.dispose(),this._buffers.forEach(t=>t.dispose()),this._buffers.clear(),this}}class Mn extends bi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(t){return this._getPPQ()*t}_secondsToUnits(t){return Math.floor(t/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(t){return t}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class s1 extends ue{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ke,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(t,e){return this._events.add({callback:t,time:this.toSeconds(e)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(t){return this._events.cancel(this.toSeconds(t)),this}_drawLoop(){const t=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=t;){const e=this._events.shift();e&&t-e.time<=this.expiration&&e.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}Co(i=>{i.draw=new s1({context:i})});So(i=>{i.draw.dispose()});class n1 extends xs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(t){ut(dt(t.time),"Events must have a time property"),ut(dt(t.duration),"Events must have a duration parameter"),t.time=t.time.valueOf();let e=new i1(t.time,t.time+t.duration,t);for(this._root===null?this._root=e:this._root.insert(e),this._length++;e!==null;)e.updateHeight(),e.updateMax(),this._rebalance(e),e=e.parent;return this}remove(t){if(this._root!==null){const e=[];this._root.search(t.time,e);for(const s of e)if(s.event===t){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(t){return this.forEachFrom(t,e=>this.remove(e)),this}_setRoot(t){this._root=t,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(t,e){t.parent!==null?(t.isLeftChild()?t.parent.left=e:t.parent.right=e,this._rebalance(t.parent)):this._setRoot(e)}_removeNode(t){if(t.left===null&&t.right===null)this._replaceNodeInParent(t,null);else if(t.right===null)this._replaceNodeInParent(t,t.left);else if(t.left===null)this._replaceNodeInParent(t,t.right);else{const e=t.getBalance();let s,n=null;if(e>0)if(t.left.right===null)s=t.left,s.right=t.right,n=s;else{for(s=t.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,n=s.parent,s.left=t.left,s.right=t.right)}else if(t.right.left===null)s=t.right,s.left=t.left,n=s;else{for(s=t.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,n=s.parent,s.left=t.left,s.right=t.right)}t.parent!==null?t.isLeftChild()?t.parent.left=s:t.parent.right=s:this._setRoot(s),n&&this._rebalance(n)}t.dispose()}_rotateLeft(t){const e=t.parent,s=t.isLeftChild(),n=t.right;n&&(t.right=n.left,n.left=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rotateRight(t){const e=t.parent,s=t.isLeftChild(),n=t.left;n&&(t.left=n.right,n.right=t),e!==null?s?e.left=n:e.right=n:this._setRoot(n)}_rebalance(t){const e=t.getBalance();e>1&&t.left?t.left.getBalance()<0?this._rotateLeft(t.left):this._rotateRight(t):e<-1&&t.right&&(t.right.getBalance()>0?this._rotateRight(t.right):this._rotateLeft(t))}get(t){if(this._root!==null){const e=[];if(this._root.search(t,e),e.length>0){let s=e[0];for(let n=1;ns.low&&(s=e[n]);return s.event}}return null}forEach(t){if(this._root!==null){const e=[];this._root.traverse(s=>e.push(s)),e.forEach(s=>{s.event&&t(s.event)})}return this}forEachAtTime(t,e){if(this._root!==null){const s=[];this._root.search(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}forEachFrom(t,e){if(this._root!==null){const s=[];this._root.searchAfter(t,s),s.forEach(n=>{n.event&&e(n.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(t=>t.dispose()),this._root=null,this}}class i1{constructor(t,e,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=t,this.high=e,this.max=this.high}insert(t){t.low<=this.low?this.left===null?this.left=t:this.left.insert(t):this.right===null?this.right=t:this.right.insert(t)}search(t,e){t>this.max||(this.left!==null&&this.left.search(t,e),this.low<=t&&this.high>t&&e.push(this),!(this.low>t)&&this.right!==null&&this.right.search(t,e))}searchAfter(t,e){this.low>=t&&(e.push(this),this.left!==null&&this.left.searchAfter(t,e)),this.right!==null&&this.right.searchAfter(t,e)}traverse(t){t(this),this.left!==null&&this.left.traverse(t),this.right!==null&&this.right.traverse(t)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let t=0;return this.left!==null&&this.right!==null?t=this.left.height-this.right.height:this.left!==null?t=this.left.height+1:this.right!==null&&(t=-(this.right.height+1)),t}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(t){this._left=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(t){this._right=t,t!==null&&(t.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Ns extends rt{constructor(){super($(Ns.getDefaults(),arguments,["volume"])),this.name="Volume";const t=$(Ns.getDefaults(),arguments,["volume"]);this.input=this.output=new St({context:this.context,gain:t.volume,units:"decibels"}),this.volume=this.output.gain,Mt(this,"volume"),this._unmutedVolume=t.volume,this.mute=t.mute}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(t){!this.mute&&t?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!t&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let r1=class ya extends rt{constructor(){super($(ya.getDefaults(),arguments)),this.name="Destination",this.input=new Ns({context:this.context}),this.output=new St({context:this.context}),this.volume=this.input.volume;const t=$(ya.getDefaults(),arguments);Di(this.input,this.output,this.context.rawContext.destination),this.mute=t.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(t){this.input.mute=t}chain(...t){return this.input.disconnect(),t.unshift(this.input),t.push(this.output),Di(...t),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};Co(i=>{i.destination=new r1({context:i})});So(i=>{i.destination.dispose()});class o1 extends xs{constructor(t){super(),this.name="TimelineValue",this._timeline=new Ke({memory:10}),this._initialValue=t}set(t,e){return this._timeline.add({value:t,time:e}),this}get(t){const e=this._timeline.get(t);return e?e.value:this._initialValue}}class ps extends rt{constructor(){super(Object.assign($(ps.getDefaults(),arguments,["context"])))}connect(t,e=0,s=0){return ac(this,t,e,s),this}}class cn extends ps{constructor(){super(Object.assign($(cn.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const t=$(cn.getDefaults(),arguments,["mapping","length"]);je(t.mapping)||t.mapping instanceof Float32Array?this.curve=Float32Array.from(t.mapping):Ay(t.mapping)&&this.setMap(t.mapping,t.length)}static getDefaults(){return Object.assign(Ot.getDefaults(),{length:1024})}setMap(t,e=1024){const s=new Float32Array(e);for(let n=0,r=e;ns.includes(t));ut(e,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=t}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Ii extends ps{constructor(){super(Object.assign($(Ii.getDefaults(),arguments,["value"]))),this.name="Pow";const t=$(Ii.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new cn({context:this.context,mapping:this._expFunc(t.value),length:8192}),this._exponent=t.value}static getDefaults(){return Object.assign(ps.getDefaults(),{value:1})}_expFunc(t){return e=>Math.pow(Math.abs(e),t)}get value(){return this._exponent}set value(t){this._exponent=t,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Rs{constructor(t,e){this.id=Rs._eventId++,this._remainderTime=0;const s=Object.assign(Rs.getDefaults(),e);this.transport=t,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:yt,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(t){if(this.callback){const e=this.transport.bpm.getDurationOfTicks(1,t);this.callback(t+this._remainderTime*e),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Rs._eventId=0;class lc extends Rs{constructor(t,e){super(t,e),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(lc.getDefaults(),e);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Rs.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(t){this._createEvents(t),super.invoke(t)}_createEvent(){return Gr(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Mn(this.context,this._nextTick).toSeconds()):-1}_createEvents(t){Gr(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new Mn(this.context,this._nextTick).toSeconds()))}_restart(t){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const e=this.transport.getTicksAtTime(t);jn(e,this.time)&&(this._nextTick=this.floatTime+Math.ceil((e-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Ni extends ue{constructor(){super($(Ni.getDefaults(),arguments)),this.name="Transport",this._loop=new o1(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ke,this._repeatedEvents=new n1,this._syncedSignals=[],this._swingAmount=0;const t=$(Ni.getDefaults(),arguments);this._ppq=t.ppq,this._clock=new Pi({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=t.ppq,this.bpm.setValueAtTime(t.bpm,0),Mt(this,"bpm"),this._timeSignature=t.timeSignature,this._swingTicks=t.ppq/2}static getDefaults(){return Object.assign(ue.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(t,e){if(this._loop.get(t)&&e>=this._loopEnd&&(this.emit("loopEnd",t),this._clock.setTicksAtTime(this._loopStart,t),e=this._loopStart,this.emit("loopStart",t,this._clock.getSecondsAtTime(t)),this.emit("loop",t)),this._swingAmount>0&&e%this._ppq!==0&&e%(this._swingTicks*2)!==0){const s=e%(this._swingTicks*2)/(this._swingTicks*2),n=Math.sin(s*Math.PI)*this._swingAmount;t+=new Mn(this.context,this._swingTicks*2/3).toSeconds()*n}wl(!0),this._timeline.forEachAtTime(e,s=>s.invoke(t)),wl(!1)}schedule(t,e){const s=new Rs(this,{callback:t,time:new bi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(t,e,s,n=1/0){const r=new lc(this,{callback:t,duration:new Ue(this.context,n).toTicks(),interval:new Ue(this.context,e).toTicks(),time:new bi(this.context,s).toTicks()});return this._addEvent(r,this._repeatedEvents)}scheduleOnce(t,e){const s=new Rs(this,{callback:t,once:!0,time:new bi(this.context,e).toTicks()});return this._addEvent(s,this._timeline)}clear(t){if(this._scheduledEvents.hasOwnProperty(t)){const e=this._scheduledEvents[t.toString()];e.timeline.remove(e.event),e.event.dispose(),delete this._scheduledEvents[t.toString()]}return this}_addEvent(t,e){return this._scheduledEvents[t.id.toString()]={event:t,timeline:e},e.add(t),t.id}cancel(t=0){const e=this.toTicks(t);return this._timeline.forEachFrom(e,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(e,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(t,e)=>{e=new Mn(this.context,e).toSeconds(),this.emit("start",t,e)}),this._clock.on("stop",t=>{this.emit("stop",t)}),this._clock.on("pause",t=>{this.emit("pause",t)})}get state(){return this._clock.getStateAtTime(this.now())}start(t,e){this.context.resume();let s;return dt(e)&&(s=this.toTicks(e)),this._clock.start(t,s),this}stop(t){return this._clock.stop(t),this}pause(t){return this._clock.pause(t),this}toggle(t){return t=this.toSeconds(t),this._clock.getStateAtTime(t)!=="started"?this.start(t):this.stop(t),this}get timeSignature(){return this._timeSignature}set timeSignature(t){je(t)&&(t=t[0]/t[1]*4),this._timeSignature=t}get loopStart(){return new Ue(this.context,this._loopStart,"i").toSeconds()}set loopStart(t){this._loopStart=this.toTicks(t)}get loopEnd(){return new Ue(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(t){this._loopEnd=this.toTicks(t)}get loop(){return this._loop.get(this.now())}set loop(t){this._loop.set(t,this.now())}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get swing(){return this._swingAmount}set swing(t){this._swingAmount=t}get swingSubdivision(){return new Mn(this.context,this._swingTicks).toNotation()}set swingSubdivision(t){this._swingTicks=this.toTicks(t)}get position(){const t=this.now(),e=this._clock.getTicksAtTime(t);return new Mn(this.context,e).toBarsBeatsSixteenths()}set position(t){const e=this.toTicks(t);this.ticks=e}get seconds(){return this._clock.seconds}set seconds(t){const e=this.now(),s=this._clock.frequency.timeToTicks(t,e);this.ticks=s}get progress(){if(this.loop){const t=this.now();return(this._clock.getTicksAtTime(t)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(t){if(this._clock.ticks!==t){const e=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(e),n=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,e),r=e+n;this.emit("stop",r),this._clock.setTicksAtTime(t,r),this.emit("start",r,this._clock.getSecondsAtTime(r))}else this.emit("ticks",e),this._clock.setTicksAtTime(t,e)}}getTicksAtTime(t){return this._clock.getTicksAtTime(t)}getSecondsAtTime(t){return this._clock.getSecondsAtTime(t)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(t){this._clock.frequency.multiplier=t}nextSubdivision(t){if(t=this.toTicks(t),this.state!=="started")return 0;{const e=this.now(),s=this.getTicksAtTime(e),n=t-s%t;return this._clock.nextTickTime(n,e)}}syncSignal(t,e){const s=this.now();let n=this.bpm,r=1/(60/n.getValueAtTime(s)/this.PPQ),o=[];if(t.units==="time"){const c=.015625/r,l=new St(c),u=new Ii(-1),h=new St(c);n.chain(l,u,h),n=h,r=1/r,o=[l,u,h]}e||(t.getValueAtTime(s)!==0?e=t.getValueAtTime(s)/r:e=0);const a=new St(e);return n.connect(a),a.connect(t._param),o.push(a),this._syncedSignals.push({initial:t.value,nodes:o,signal:t}),t.value=0,this}unsyncSignal(t){for(let e=this._syncedSignals.length-1;e>=0;e--){const s=this._syncedSignals[e];s.signal===t&&(s.nodes.forEach(n=>n.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(e,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),ic(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}hr.mixin(Ni);Co(i=>{i.transport=new Ni({context:i})});So(i=>{i.transport.dispose()});class ee extends rt{constructor(t){super(t),this.input=void 0,this._state=new oc("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=yt,this._syncedStop=yt,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Ns({context:this.context,mute:t.mute,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume"),this.onstop=t.onstop}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,onstop:yt,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}_clampToCurrentTime(t){return this._synced?t:Math.max(t,this.context.currentTime)}start(t,e,s){let n=ke(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(n=this._clampToCurrentTime(n),!this._synced&&this._state.getValueAtTime(n)==="started")ut(jn(n,this._state.get(n).time),"Start time must be strictly greater than previous start time"),this._state.cancel(n),this._state.setStateAtTime("started",n),this.log("restart",n),this.restart(n,e,s);else if(this.log("start",n),this._state.setStateAtTime("started",n),this._synced){const r=this._state.get(n);r&&(r.offset=this.toSeconds(Nn(e,0)),r.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,e,s)},n);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>n&&this._syncedStart(this.now(),this.context.transport.seconds)}else ih(this.context),this._start(n,e,s);return this}stop(t){let e=ke(t)&&this._synced?this.context.transport.seconds:this.toSeconds(t);if(e=this._clampToCurrentTime(e),this._state.getValueAtTime(e)==="started"||dt(this._state.getNextState("started",e))){if(this.log("stop",e),!this._synced)this._stop(e);else{const s=this.context.transport.schedule(this._stop.bind(this),e);this._scheduled.push(s)}this._state.cancel(e),this._state.setStateAtTime("stopped",e)}return this}restart(t,e,s){return t=this.toSeconds(t),this._state.getValueAtTime(t)==="started"&&(this._state.cancel(t),this._restart(t,e,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(t,e)=>{if(jn(e,0)){const s=this._state.get(e);if(s&&s.state==="started"&&s.time!==e){const n=e-this.toSeconds(s.time);let r;s.duration&&(r=this.toSeconds(s.duration)-n),this._start(t,this.toSeconds(s.offset)+n,r)}}},this._syncedStop=t=>{const e=this.context.transport.getSecondsAtTime(Math.max(t-this.sampleTime,0));this._state.getValueAtTime(e)==="started"&&this._stop(t)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(t=>this.context.transport.clear(t)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=yt,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class Bn extends zn{constructor(){super($(Bn.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const t=$(Bn.getDefaults(),arguments,["url","onload"]);Is(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new kt({context:this.context,param:this._source.playbackRate,units:"positive",value:t.playbackRate}),this.loop=t.loop,this.loopStart=t.loopStart,this.loopEnd=t.loopEnd,this._buffer=new xt(t.url,t.onload,t.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(zn.getDefaults(),{url:new xt,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t}get curve(){return this._curve}set curve(t){this._curve=t}start(t,e,s,n=1){ut(this.buffer.loaded,"buffer is either not set or not loaded");const r=this.toSeconds(t);this._startGain(r,n),this.loop?e=Nn(e,this.loopStart):e=Nn(e,0);let o=Math.max(this.toSeconds(e),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;_a(o,a)&&(o=(o-c)%l+c),Le(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Gr(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(r,o)),dt(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(r+a)}return this}_stopSource(t){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(t)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(t){this._source.loopStart=this.toSeconds(t)}get loopEnd(){return this._source.loopEnd}set loopEnd(t){this._source.loopEnd=this.toSeconds(t)}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._source.loop}set loop(t){this._source.loop=t,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class Ri extends ee{constructor(){super($(Ri.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const t=$(Ri.getDefaults(),arguments,["type"]);this._playbackRate=t.playbackRate,this.type=t.type,this._fadeIn=t.fadeIn,this._fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(t){if(ut(t in bl,"Noise: invalid type: "+t),this._type!==t&&(this._type=t,this.state==="started")){const e=this.now();this._stop(e),this._start(e)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this._source&&(this._source.playbackRate.value=t)}_start(t){const e=bl[this._type];this._source=new Bn({url:e,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(t),Math.random()*(e.duration-.001))}_stop(t){this._source&&(this._source.stop(this.toSeconds(t)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(t){this._fadeIn=t,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(t){this._fadeOut=t,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(t){this._stop(t),this._start(t)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const wn=44100*5,$o=2,cs={brown:null,pink:null,white:null},bl={get brown(){if(!cs.brown){const i=[];for(let t=0;t<$o;t++){const e=new Float32Array(wn);i[t]=e;let s=0;for(let n=0;nthis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(e)}_stop(t){const e=this.toSeconds(t);this._oscillator&&this._oscillator.stop(e)}_restart(t){const e=this.toSeconds(t);return this.log("restart",e),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(e),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return Bt._periodicWaveCache.find(e=>e.phase===this._phase&&jy(e.partials,this._partials));{const t=Bt._periodicWaveCache.find(e=>e.type===this._type&&e.phase===this._phase);return this._partialCount=t?t.partialCount:this._partialCount,t}}get type(){return this._type}set type(t){this._type=t;const e=["sine","square","sawtooth","triangle"].indexOf(t)!==-1;if(this._phase===0&&e)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=t);else{const s=this._getCachedPeriodicWave();if(dt(s)){const{partials:n,wave:r}=s;this._wave=r,this._partials=n,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[n,r]=this._getRealImaginary(t,this._phase),o=this.context.createPeriodicWave(n,r);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Bt._periodicWaveCache.push({imag:r,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:n,type:this._type,wave:this._wave}),Bt._periodicWaveCache.length>100&&Bt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(t){this.partialCount&&this._type!=="custom"&&t!=="custom"?this.type=t+this.partialCount:this.type=t}get partialCount(){return this._partialCount}set partialCount(t){Be(t,0);let e=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(e=s[1]),this._type!=="custom")t===0?this.type=e:this.type=e+t.toString();else{const n=new Float32Array(t);this._partials.forEach((r,o)=>n[o]=r),this._partials=Array.from(n),this.type=this._type}}_getRealImaginary(t,e){let n=2048;const r=new Float32Array(n),o=new Float32Array(n);let a=1;if(t==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,n=a,this._partials.length===0)return[r,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(t);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),t=c[1],a=Math.max(a,2),n=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+t)}u!==0?(r[c]=-u*Math.sin(e*c),o[c]=u*Math.cos(e*c)):(r[c]=0,o[c]=0)}return[r,o]}_inverseFFT(t,e,s){let n=0;const r=t.length;for(let o=0;o(t+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Fs extends Ot{constructor(){super(Object.assign($(Fs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const t=$(Fs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new St({context:this.context,minValue:t.minValue,maxValue:t.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(t.value,0)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class Fi extends ee{constructor(){super($(Fi.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new a1({context:this.context}),this._modulationNode=new St({context:this.context});const t=$(Fi.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Mt(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){this._modulator.restart(t),this._carrier.restart(t)}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class Li extends ee{constructor(){super($(Li.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new St({context:this.context,gain:0});const t=$(Li.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Bt({context:this.context,detune:t.detune,frequency:0,onstop:()=>this.onstop(this),phase:t.phase,type:t.type}),this.detune=this._carrier.detune,this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this._modulator=new Bt({context:this.context,phase:t.phase,type:t.modulationType}),this.harmonicity=new Fs({context:this.context,units:"positive",value:t.harmonicity}),this.modulationIndex=new Fs({context:this.context,units:"positive",value:t.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Mt(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(t){this._modulator.start(t),this._carrier.start(t)}_stop(t){this._modulator.stop(t),this._carrier.stop(t)}_restart(t){return this._modulator.restart(t),this._carrier.restart(t),this}get type(){return this._carrier.type}set type(t){this._carrier.type=t}get baseType(){return this._carrier.baseType}set baseType(t){this._carrier.baseType=t}get partialCount(){return this._carrier.partialCount}set partialCount(t){this._carrier.partialCount=t}get modulationType(){return this._modulator.type}set modulationType(t){this._modulator.type=t}get phase(){return this._carrier.phase}set phase(t){this._carrier.phase=t,this._modulator.phase=t}get partials(){return this._carrier.partials}set partials(t){this._carrier.partials=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class qn extends ee{constructor(){super($(qn.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new St({context:this.context,gain:0}),this._thresh=new cn({context:this.context,mapping:e=>e<=0?-1:1});const t=$(qn.getDefaults(),arguments,["frequency","width"]);this.width=new Ot({context:this.context,units:"audioRange",value:t.width}),this._triangle=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Mt(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(t){t=this.toSeconds(t),this._triangle.start(t),this._widthGate.gain.setValueAtTime(1,t)}_stop(t){t=this.toSeconds(t),this._triangle.stop(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(0,t)}_restart(t){this._triangle.restart(t),this._widthGate.gain.cancelScheduledValues(t),this._widthGate.gain.setValueAtTime(1,t)}get phase(){return this._triangle.phase}set phase(t){this._triangle.phase=t}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(t){this._triangle.type=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Vi extends ee{constructor(){super($(Vi.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const t=$(Vi.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),this._spread=t.spread,this._type=t.type,this._phase=t.phase,this._partials=t.partials,this._partialCount=t.partialCount,this.count=t.count,Mt(this,["frequency","detune"])}static getDefaults(){return Object.assign(Bt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(t){t=this.toSeconds(t),this._forEach(e=>e.start(t))}_stop(t){t=this.toSeconds(t),this._forEach(e=>e.stop(t))}_restart(t){this._forEach(e=>e.restart(t))}_forEach(t){for(let e=0;ee.type=t)}get spread(){return this._spread}set spread(t){if(this._spread=t,this._oscillators.length>1){const e=-t/2,s=t/(this._oscillators.length-1);this._forEach((n,r)=>n.detune.value=e+s*r)}}get count(){return this._oscillators.length}set count(t){if(Be(t,1),this._oscillators.length!==t){this._forEach(e=>e.dispose()),this._oscillators=[];for(let e=0;ethis.onstop(this):yt});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[e]=s}this.spread=this._spread,this.state==="started"&&this._forEach(e=>e.start())}}get phase(){return this._phase}set phase(t){this._phase=t,this._forEach((e,s)=>e.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(t){this._forEach(e=>e.baseType=t),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(t){this._partials=t,this._partialCount=this._partials.length,t.length&&(this._type="custom",this._forEach(e=>e.partials=t))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(t){this._partialCount=t,this._forEach(e=>e.partialCount=t),this._type=this._oscillators[0].type}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(t=>t.dispose()),this}}class Ui extends ee{constructor(){super($(Ui.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Fs({context:this.context,value:2});const t=$(Ui.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new qn({context:this.context,frequency:t.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Bt({context:this.context,detune:t.detune,frequency:t.frequency,onstop:()=>this.onstop(this),phase:t.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Mt(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(ee.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(t){t=this.toSeconds(t),this._modulator.start(t),this._pulse.start(t)}_stop(t){t=this.toSeconds(t),this._modulator.stop(t),this._pulse.stop(t)}_restart(t){this._modulator.restart(t),this._pulse.restart(t)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(t){this._modulator.phase=t}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Cl={am:Fi,fat:Vi,fm:Li,oscillator:Bt,pulse:qn,pwm:Ui};class ln extends ee{constructor(){super($(ln.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const t=$(ln.getDefaults(),arguments,["frequency","type"]);this.frequency=new Ot({context:this.context,units:"frequency",value:t.frequency}),this.detune=new Ot({context:this.context,units:"cents",value:t.detune}),Mt(this,["frequency","detune"]),this.set(t)}static getDefaults(){return Object.assign(Bt.getDefaults(),Li.getDefaults(),Fi.getDefaults(),Vi.getDefaults(),qn.getDefaults(),Ui.getDefaults())}_start(t){this._oscillator.start(t)}_stop(t){this._oscillator.stop(t)}_restart(t){return this._oscillator.restart(t),this}get type(){let t="";return["am","fm","fat"].some(e=>this._sourceType===e)&&(t=this._sourceType),t+this._oscillator.type}set type(t){t.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(2)):t.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=t.substr(3)):t==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):t==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=t)}get partials(){return this._oscillator.partials}set partials(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=t)}get partialCount(){return this._oscillator.partialCount}set partialCount(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=t)}set(t){return Reflect.has(t,"type")&&t.type&&(this.type=t.type),super.set(t),this}_createNewOscillator(t){if(t!==this._sourceType){this._sourceType=t;const e=Cl[t],s=this.now();if(this._oscillator){const n=this._oscillator;n.stop(s),this.context.setTimeout(()=>n.dispose(),this.blockTime)}this._oscillator=new e({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(t){this._oscillator.phase=t}get sourceType(){return this._sourceType}set sourceType(t){let e="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(e=this._oscillator.type),t==="fm"?this.type="fm"+e:t==="am"?this.type="am"+e:t==="fat"?this.type="fat"+e:t==="oscillator"?this.type=e:t==="pulse"?this.type="pulse":t==="pwm"&&(this.type="pwm")}_getOscType(t,e){return t instanceof Cl[e]}get baseType(){return this._oscillator.baseType}set baseType(t){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&t!=="pulse"&&t!=="pwm"&&(this._oscillator.baseType=t)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.count=t)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(t){this._getOscType(this._oscillator,"fat")&&Ps(t)&&(this._oscillator.spread=t)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(t){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&fs(t)&&(this._oscillator.modulationType=t)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(t=1024){return qt(this,void 0,void 0,function*(){return mn(this,t)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class uc extends Ot{constructor(){super(Object.assign($(uc.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new St({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Di(this._constantSource,this._sum)}static getDefaults(){return Object.assign(Ot.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Kr extends ps{constructor(){super(Object.assign($(Kr.getDefaults(),arguments,["min","max"]))),this.name="Scale";const t=$(Kr.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Fs({context:this.context,value:t.max-t.min}),this._add=this.output=new uc({context:this.context,value:t.min}),this._min=t.min,this._max=t.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(ps.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(t){this._min=t,this._setRange()}get max(){return this._max}set max(t){this._max=t,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function mh(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(r,i,t),e.set(this,r)}})}}function ks(i,t=1/0){const e=new WeakMap;return function(s,n){Reflect.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){return e.get(this)},set:function(r){Be(this.toSeconds(r),i,t),e.set(this,r)}})}}class ji extends ee{constructor(){super($(ji.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const t=$(ji.getDefaults(),arguments,["url","onload"]);this._buffer=new xt({onload:this._onload.bind(this,t.onload),onerror:t.onerror,reverse:t.reverse,url:t.url}),this.autostart=t.autostart,this._loop=t.loop,this._loopStart=t.loopStart,this._loopEnd=t.loopEnd,this._playbackRate=t.playbackRate,this.fadeIn=t.fadeIn,this.fadeOut=t.fadeOut}static getDefaults(){return Object.assign(ee.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:yt,onerror:yt,playbackRate:1,reverse:!1})}load(t){return qt(this,void 0,void 0,function*(){return yield this._buffer.load(t),this._onload(),this})}_onload(t=yt){t(),this.autostart&&this.start()}_onSourceEnd(t){this.onstop(this),this._activeSources.delete(t),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(t,e,s){return super.start(t,e,s),this}_start(t,e,s){this._loop?e=Nn(e,this._loopStart):e=Nn(e,0);const n=this.toSeconds(e),r=s;s=Nn(s,Math.max(this._buffer.duration-n,0));let o=this.toSeconds(s);o=o/this._playbackRate,t=this.toSeconds(t);const a=new Bn({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(t+o),this._state.setStateAtTime("stopped",t+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&ke(r)?a.start(t,n):a.start(t,n,o-this.toSeconds(this.fadeOut))}_stop(t){const e=this.toSeconds(t);this._activeSources.forEach(s=>s.stop(e))}restart(t,e,s){return super.restart(t,e,s),this}_restart(t,e,s){var n;(n=[...this._activeSources].pop())===null||n===void 0||n.stop(t),this._start(t,e,s)}seek(t,e){const s=this.toSeconds(e);if(this._state.getValueAtTime(s)==="started"){const n=this.toSeconds(t);this._stop(s),this._start(s,n)}return this}setLoopPoints(t,e){return this.loopStart=t,this.loopEnd=e,this}get loopStart(){return this._loopStart}set loopStart(t){this._loopStart=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopStart=t})}get loopEnd(){return this._loopEnd}set loopEnd(t){this._loopEnd=t,this.buffer.loaded&&Be(this.toSeconds(t),0,this.buffer.duration),this._activeSources.forEach(e=>{e.loopEnd=t})}get buffer(){return this._buffer}set buffer(t){this._buffer.set(t)}get loop(){return this._loop}set loop(t){if(this._loop!==t&&(this._loop=t,this._activeSources.forEach(e=>{e.loop=t}),t)){const e=this._state.getNextState("stopped",this.now());e&&this._state.cancel(e.time)}}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t;const e=this.now(),s=this._state.getNextState("stopped",e);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(n=>n.cancelStop())),this._activeSources.forEach(n=>{n.playbackRate.setValueAtTime(t,e)})}get reverse(){return this._buffer.reverse}set reverse(t){this._buffer.reverse=t}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(t=>t.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}qe([ks(0)],ji.prototype,"fadeIn",void 0);qe([ks(0)],ji.prototype,"fadeOut",void 0);class c1 extends ps{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new cn({context:this.context,mapping:t=>Math.abs(t)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Pe extends rt{constructor(){super($(Pe.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new Ot({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const t=$(Pe.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=t.attack,this.decay=t.decay,this.sustain=t.sustain,this.release=t.release,this.attackCurve=t.attackCurve,this.releaseCurve=t.releaseCurve,this.decayCurve=t.decayCurve}static getDefaults(){return Object.assign(rt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(t,e){if(fs(t))return t;{let s;for(s in Sr)if(Sr[s][e]===t)return s;return t}}_setCurve(t,e,s){if(fs(s)&&Reflect.has(Sr,s)){const n=Sr[s];Js(n)?t!=="_decayCurve"&&(this[t]=n[e]):this[t]=n}else if(je(s)&&t!=="_decayCurve")this[t]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(t){this._setCurve("_attackCurve","In",t)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(t){this._setCurve("_releaseCurve","Out",t)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(t){this._setCurve("_decayCurve","Out",t)}triggerAttack(t,e=1){this.log("triggerAttack",t,e),t=this.toSeconds(t);let n=this.toSeconds(this.attack);const r=this.toSeconds(this.decay),o=this.getValueAtTime(t);if(o>0){const a=1/n;n=(1-o)/a}if(n0){const s=this.toSeconds(this.release);s{let t,e;const s=[];for(t=0;t<128;t++)s[t]=Math.sin(t/(128-1)*(Math.PI/2));const n=[],r=6.4;for(t=0;t<128-1;t++){e=t/(128-1);const d=Math.sin(e*(Math.PI*2)*r-Math.PI/2)+1;n[t]=d/10+e*.83}n[128-1]=1;const o=[],a=5;for(t=0;t<128;t++)o[t]=Math.ceil(t/(128-1)*a)/a;const c=[];for(t=0;t<128;t++)e=t/(128-1),c[t]=.5*(1-Math.cos(Math.PI*e));const l=[];for(t=0;t<128;t++){e=t/(128-1);const d=Math.pow(e,3)*4+.2,p=Math.cos(d*Math.PI*2*e);l[t]=Math.abs(p*(1-e))}function u(d){const p=new Array(d.length);for(let _=0;_this._original_triggerRelease(e);const t=$(un.getDefaults(),arguments);this._volume=this.output=new Ns({context:this.context,volume:t.volume}),this.volume=this._volume.volume,Mt(this,"volume")}static getDefaults(){return Object.assign(rt.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let t=!1;return this._synced||(this._synced=!0,t=!0),t}_syncMethod(t,e){const s=this["_original_"+t]=this[t];this[t]=(...n)=>{const r=n[e],o=this.context.transport.schedule(a=>{n[e]=a,s.apply(this,n)},r);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(t=>this.context.transport.clear(t)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(t,e,s,n){const r=this.toSeconds(s),o=this.toSeconds(e);return this.triggerAttack(t,r,n),this.triggerRelease(r+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class ms extends un{constructor(){super($(ms.getDefaults(),arguments));const t=$(ms.getDefaults(),arguments);this.portamento=t.portamento,this.onsilence=t.onsilence}static getDefaults(){return Object.assign(un.getDefaults(),{detune:0,onsilence:yt,portamento:0})}triggerAttack(t,e,s=1){this.log("triggerAttack",t,e,s);const n=this.toSeconds(e);return this._triggerEnvelopeAttack(n,s),this.setNote(t,n),this}triggerRelease(t){this.log("triggerRelease",t);const e=this.toSeconds(t);return this._triggerEnvelopeRelease(e),this}setNote(t,e){const s=this.toSeconds(e),n=t instanceof Ae?t.toFrequency():t;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const r=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(n,r,s)}else this.frequency.setValueAtTime(n,s);return this}}qe([ks(0)],ms.prototype,"portamento",void 0);class Ao extends Pe{constructor(){super($(Ao.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new St({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class zi extends ms{constructor(){super($(zi.getDefaults(),arguments)),this.name="Synth";const t=$(zi.getDefaults(),arguments);this.oscillator=new ln(Object.assign({context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)},t.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Ao(Object.assign({context:this.context},t.envelope)),this.oscillator.chain(this.envelope,this.output),Mt(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(An(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(An(ln.getDefaults(),[...Object.keys(ee.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(t,e){if(this.envelope.triggerAttack(t,e),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class Bi extends rt{constructor(){super($(Bi.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const t=$(Bi.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new kt({context:this.context,units:"number",value:t.Q,param:this._filter.Q}),this.frequency=new kt({context:this.context,units:"frequency",value:t.frequency,param:this._filter.frequency}),this.detune=new kt({context:this.context,units:"cents",value:t.detune,param:this._filter.detune}),this.gain=new kt({context:this.context,units:"decibels",convert:!1,value:t.gain,param:this._filter.gain}),this.type=t.type}static getDefaults(){return Object.assign(rt.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(t){ut(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(t)!==-1,`Invalid filter type: ${t}`),this._filter.type=t}getFrequencyResponse(t=128){const e=new Float32Array(t);for(let o=0;os.type=t)}get rolloff(){return this._rolloff}set rolloff(t){const e=Ps(t)?t:parseInt(t,10),s=[-12,-24,-48,-96];let n=s.indexOf(e);ut(n!==-1,`rolloff can only be ${s.join(", ")}`),n+=1,this._rolloff=e,this.input.disconnect(),this._filters.forEach(r=>r.disconnect()),this._filters=new Array(n);for(let r=0;r1);return this._filters.forEach(()=>{e.getFrequencyResponse(t).forEach((r,o)=>s[o]*=r)}),e.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(t=>{t.dispose()}),ic(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class qi extends Pe{constructor(){super($(qi.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const t=$(qi.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=t.octaves,this._baseFrequency=this.toFrequency(t.baseFrequency),this._exponent=this.input=new Ii({context:this.context,value:t.exponent}),this._scale=this.output=new Kr({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(Pe.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(t){const e=this.toFrequency(t);Be(e,0),this._baseFrequency=e,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(t){this._octaves=t,this._scale.max=this._baseFrequency*Math.pow(2,t)}get exponent(){return this._exponent.value}set exponent(t){this._exponent.value=t}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class Wi extends ms{constructor(){super($(Wi.getDefaults(),arguments)),this.name="MonoSynth";const t=$(Wi.getDefaults(),arguments);this.oscillator=new ln(Object.assign(t.oscillator,{context:this.context,detune:t.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new Wn(Object.assign(t.filter,{context:this.context})),this.filterEnvelope=new qi(Object.assign(t.filterEnvelope,{context:this.context})),this.envelope=new Ao(Object.assign(t.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Mt(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(ms.getDefaults(),{envelope:Object.assign(An(Pe.getDefaults(),Object.keys(rt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(An(Wn.getDefaults(),Object.keys(rt.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(An(qi.getDefaults(),Object.keys(rt.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(An(ln.getDefaults(),Object.keys(ee.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(t,e=1){if(this.envelope.triggerAttack(t,e),this.filterEnvelope.triggerAttack(t),this.oscillator.start(t),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),n=this.toSeconds(this.envelope.decay);this.oscillator.stop(t+s+n)}}_triggerEnvelopeRelease(t){this.envelope.triggerRelease(t),this.filterEnvelope.triggerRelease(t),this.oscillator.stop(t+this.toSeconds(this.envelope.release))}getLevelAtTime(t){return t=this.toSeconds(t),this.envelope.getValueAtTime(t)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class Hi extends zi{constructor(){super($(Hi.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const t=$(Hi.getDefaults(),arguments);this.pitchDecay=t.pitchDecay,this.octaves=t.octaves,Mt(this,["oscillator","envelope"])}static getDefaults(){return In(ms.getDefaults(),zi.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(t,e){const s=this.toSeconds(e),n=this.toFrequency(t instanceof Ae?t.toFrequency():t),r=n*this.octaves;return this.oscillator.frequency.setValueAtTime(r,s),this.oscillator.frequency.exponentialRampToValueAtTime(n,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}qe([mh(0)],Hi.prototype,"octaves",void 0);qe([ks(0)],Hi.prototype,"pitchDecay",void 0);const _h=new Set;function hc(i){_h.add(i)}function gh(i,t){const e=`registerProcessor("${i}", ${t})`;_h.add(e)}const l1=` /** * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. */ @@ -180,7 +180,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a }; } } -`;uc(r1);const o1=` +`;hc(l1);const u1=` /** * Abstract class for a single input/output processor. * has a 'generate' function which processes one sample at a time @@ -247,7 +247,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a return !this.disposed; } }; -`;uc(o1);const a1=` +`;hc(u1);const h1=` /** * A multichannel buffer for use within an AudioWorkletProcessor as a delay line */ @@ -291,7 +291,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a return this.buffer[channel][readHead]; } } -`;uc(a1);const c1="feedback-comb-filter",l1=` +`;hc(h1);const d1="feedback-comb-filter",f1=` class FeedbackCombFilterWorklet extends SingleIOProcessor { constructor(options) { @@ -321,7 +321,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a return delayedSample; } } -`;mh(c1,l1);class Hi extends un{constructor(){super($(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Hi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(br(s)||Ps(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),br(s)){const r=new Ae(this.context,s).toMidi();e[r]=t.urls[s]}else Ps(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new ac({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(un.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:yt,onerror:yt,release:.1,urls:{}})}_findClosest(t){let s=0;for(;s<96;){if(this._buffers.has(t+s))return-s;if(this._buffers.has(t-s))return s;s++}throw new Error(`No available buffers for note: ${t}`)}triggerAttack(t,e,s=1){return this.log("triggerAttack",t,e,s),Array.isArray(t)||(t=[t]),t.forEach(n=>{const r=dh(new Ae(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=hh(c+a),d=new jn({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(e,0,u.duration/h,s),ze(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const p=this._activeSources.get(o),_=p.indexOf(d);_!==-1&&p.splice(_,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(s=>{const n=new Ae(this.context,s).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const r=this._activeSources.get(n);e=this.toSeconds(e),r.forEach(o=>{o.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(e)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(t,e,s,n=1){const r=this.toSeconds(s);return this.triggerAttack(t,r,n),ze(e)?(ut(ze(t),"notes must be an array when duration is array"),t.forEach((o,a)=>{const c=e[Math.min(a,e.length-1)];this.triggerRelease(o,r+this.toSeconds(c))})):this.triggerRelease(t,r+this.toSeconds(e)),this}add(t,e,s){if(ut(br(t)||isFinite(t),`note must be a pitch or midi: ${t}`),br(t)){const n=new Ae(this.context,t).toMidi();this._buffers.add(n,e,s)}else this._buffers.add(t,e,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(e=>e.dispose())}),this._activeSources.clear(),this}}qe([xs(0)],Hi.prototype,"attack",void 0);qe([xs(0)],Hi.prototype,"release",void 0);class Kr extends rt{constructor(){super(Object.assign($(Kr.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new i1({context:this.context}),this.a=new St({context:this.context,gain:0}),this.b=new St({context:this.context,gain:0}),this.output=new St({context:this.context}),this._internalChannels=[this.a,this.b];const t=$(Kr.getDefaults(),arguments,["fade"]);this.fade=new Ot({context:this.context,units:"normalRange",value:t.fade}),Mt(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",Ns(this._split,this.a.gain,0),Ns(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(rt.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class bl extends rt{constructor(t){super(t),this.name="Effect",this._dryWet=new Kr({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new St({context:this.context}),this.effectReturn=new St({context:this.context}),this.input=new St({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(t.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Mt(this,"wet")}static getDefaults(){return Object.assign(rt.getDefaults(),{wet:1})}connectEffect(t){return this._internalChannels.push(t),this.effectSend.chain(t,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class Jr extends rt{constructor(){super(Object.assign($(Jr.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(Jr.getDefaults(),arguments,["pan"]);this.pan=new xt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",Mt(this,"pan")}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const u1="bit-crusher",h1=` +`;gh(d1,f1);class Gi extends un{constructor(){super($(Gi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const t=$(Gi.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),e={};Object.keys(t.urls).forEach(s=>{const n=parseInt(s,10);if(ut(Cr(s)||Ps(n)&&isFinite(n),`url key is neither a note or midi pitch: ${s}`),Cr(s)){const r=new Ae(this.context,s).toMidi();e[r]=t.urls[s]}else Ps(n)&&isFinite(n)&&(e[n]=t.urls[n])}),this._buffers=new cc({urls:e,onload:t.onload,baseUrl:t.baseUrl,onerror:t.onerror}),this.attack=t.attack,this.release=t.release,this.curve=t.curve,this._buffers.loaded&&Promise.resolve().then(t.onload)}static getDefaults(){return Object.assign(un.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:yt,onerror:yt,release:.1,urls:{}})}_findClosest(t){let s=0;for(;s<96;){if(this._buffers.has(t+s))return-s;if(this._buffers.has(t-s))return s;s++}throw new Error(`No available buffers for note: ${t}`)}triggerAttack(t,e,s=1){return this.log("triggerAttack",t,e,s),Array.isArray(t)||(t=[t]),t.forEach(n=>{const r=ph(new Ae(this.context,n).toFrequency()),o=Math.round(r),a=r-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=fh(c+a),d=new Bn({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(e,0,u.duration/h,s),je(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const p=this._activeSources.get(o),_=p.indexOf(d);_!==-1&&p.splice(_,1)}}}),this}triggerRelease(t,e){return this.log("triggerRelease",t,e),Array.isArray(t)||(t=[t]),t.forEach(s=>{const n=new Ae(this.context,s).toMidi();if(this._activeSources.has(n)&&this._activeSources.get(n).length){const r=this._activeSources.get(n);e=this.toSeconds(e),r.forEach(o=>{o.stop(e)}),this._activeSources.set(n,[])}}),this}releaseAll(t){const e=this.toSeconds(t);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(e)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(t,e,s,n=1){const r=this.toSeconds(s);return this.triggerAttack(t,r,n),je(e)?(ut(je(t),"notes must be an array when duration is array"),t.forEach((o,a)=>{const c=e[Math.min(a,e.length-1)];this.triggerRelease(o,r+this.toSeconds(c))})):this.triggerRelease(t,r+this.toSeconds(e)),this}add(t,e,s){if(ut(Cr(t)||isFinite(t),`note must be a pitch or midi: ${t}`),Cr(t)){const n=new Ae(this.context,t).toMidi();this._buffers.add(n,e,s)}else this._buffers.add(t,e,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(t=>{t.forEach(e=>e.dispose())}),this._activeSources.clear(),this}}qe([ks(0)],Gi.prototype,"attack",void 0);qe([ks(0)],Gi.prototype,"release",void 0);class Jr extends rt{constructor(){super(Object.assign($(Jr.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new c1({context:this.context}),this.a=new St({context:this.context,gain:0}),this.b=new St({context:this.context,gain:0}),this.output=new St({context:this.context}),this._internalChannels=[this.a,this.b];const t=$(Jr.getDefaults(),arguments,["fade"]);this.fade=new Ot({context:this.context,units:"normalRange",value:t.fade}),Mt(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",Is(this._split,this.a.gain,0),Is(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(rt.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class Sl extends rt{constructor(t){super(t),this.name="Effect",this._dryWet=new Jr({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new St({context:this.context}),this.effectReturn=new St({context:this.context}),this.input=new St({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(t.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Mt(this,"wet")}static getDefaults(){return Object.assign(rt.getDefaults(),{wet:1})}connectEffect(t){return this._internalChannels.push(t),this.effectSend.chain(t,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class to extends rt{constructor(){super(Object.assign($(to.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const t=$(to.getDefaults(),arguments,["pan"]);this.pan=new kt({context:this.context,param:this._panner.pan,value:t.pan,minValue:-1,maxValue:1}),this._panner.channelCount=t.channelCount,this._panner.channelCountMode="explicit",Mt(this,"pan")}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const p1="bit-crusher",m1=` class BitCrusherWorklet extends SingleIOProcessor { static get parameterDescriptors() { @@ -340,7 +340,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a return val; } } -`;mh(u1,h1);class to extends rt{constructor(){super($(to.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(to.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(rt.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class eo extends bl{constructor(){super($(eo.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(eo.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(bl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),Be(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),Be(t,0),this._preDelay=t,this.generate()}generate(){return Bt(this,void 0,void 0,function*(){const t=this.ready,e=new So(2,this._decay+this._preDelay,this.context.sampleRate),s=new Ii({context:e}),n=new Ii({context:e}),r=new to({context:e});s.connect(r,0,0),n.connect(r,0,1);const o=new St({context:e}).toDestination();r.connect(o),s.start(0),n.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=e.render();return this.ready=a.then(yt),yield t,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class Ut extends rt{constructor(){super($(Ut.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(Ut.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),Ut._allSolos.has(this.context)||Ut._allSolos.set(this.context,new Set),Ut._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(rt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),Ut._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){Ut._soloed.has(this.context)||Ut._soloed.set(this.context,new Set),Ut._soloed.get(this.context).add(this)}_removeSolo(){Ut._soloed.has(this.context)&&Ut._soloed.get(this.context).delete(this)}_isSoloed(){return Ut._soloed.has(this.context)&&Ut._soloed.get(this.context).has(this)}_noSolos(){return!Ut._soloed.has(this.context)||Ut._soloed.has(this.context)&&Ut._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),Ut._allSolos.get(this.context).delete(this),this._removeSolo(),this}}Ut._allSolos=new Map;Ut._soloed=new Map;class so extends rt{constructor(){super($(so.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(so.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Jr({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Is({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Xs extends rt{constructor(){super($(Xs.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$(Xs.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new Ut({solo:t.solo,context:this.context}),this._panVol=this.output=new so({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return Xs.buses.has(t)||Xs.buses.set(t,new St({context:this.context})),Xs.buses.get(t)}send(t,e=0){const s=this._getBus(t),n=new St({context:this.context,units:"decibels",gain:e});return this.connect(n),n.connect(s),n}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Xs.buses=new Map;class d1 extends rt{constructor(){super(...arguments),this.name="Listener",this.positionX=new xt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new xt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new xt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new xt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new xt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new xt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new xt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new xt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new xt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(rt.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}bo(i=>{i.listener=new d1({context:i})});Co(i=>{i.listener.dispose()});Ve().transport;const hc=Ve().destination;Ve().destination;Ve().listener;Ve().draw;Ve();const dc=new qn(900,"highpass"),_h=new Is(-6);_h.chain(dc,hc);const f1=new eo(3).connect(_h),Ao=new qi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Ao.oscillator.type="triangle2";Ao.volume.value=-6;Ao.chain(dc,hc);const Mo=new qi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(f1);Mo.oscillator.type="triangle";Mo.volume.value=-6;Mo.chain(dc,hc);function p1(){return Math.floor((Math.random()-.5)*20)}let Cl=!1;const m1=async(i=0)=>{Cl||(await qy(),Cl=!0);try{if(i>2e3)Mo.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=p1(),Ao.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Sr=1800,_1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),g1=(i,t,e,s,n)=>{const r=new tu,o=1e-5;r.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),r.absarc(o,t-s*2,o,Math.PI,Math.PI/2,!0),r.absarc(i-s*2,t-s*2,o,Math.PI/2,0,!0),r.absarc(i-s*2,o,o,0,-Math.PI/2,!0);const a=new Ef(r,{depth:e-s*2,bevelEnabled:!0,bevelSegments:n,steps:2,bevelSize:s,bevelThickness:s,curveSegments:n});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(_=p.x/i+.5,f=1-(p.z/e+.5)):Math.abs(d.x)>.9?(_=-p.z/e+.5,f=1-(-p.y/t+.5)):Math.abs(d.z)>.9&&(_=p.x/i+.5,f=1-(-p.y/t+.5)),c.push(_,f)}return a.setAttribute("uv",new Mr(c,2)),a};g1(10,10,10,2,10);const Sl=new Sf(10,10,10),y1=500,v1=800,k1=new at(0,0,0),x1=16777215,T1=20,w1=(i,t)=>{var r,o;if(!(i!=null&&i.ref_id)||!(t!=null&&t.ref_id))return!1;let e=!1;const s=i.guests,n=t.guests;return((r=i.children)!=null&&r.includes(t.ref_id)||(o=t.children)!=null&&o.includes(i.ref_id))&&(e=!0),(s!=null&&s.find(a=>a.ref_id===t.ref_id)||n!=null&&n.find(a=>a.ref_id===i.ref_id))&&(e=!0),e};let mi=null;const b1=500,gh=(i,t)=>{if(mi)return null;mi=setTimeout(()=>{mi&&(clearTimeout(mi),mi=null)},b1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(k1.set(n.x,n.y,n.z));rn.distance-r.distance).slice(0,y1).map(n=>n.id)};let bn,_i;const C1=1e3,S1=2e3,E1=i=>{const t=We(),e=Os(k=>k.isUserDragging),s=Os(k=>k.isUserScrolling),n=Os(k=>k.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=oe(k=>k),{camera:h}=Nt(),[d,p]=A.useState(!1),[_,f]=A.useState(!1),[m,v]=A.useState(sl),b=A.useMemo(()=>{if(a)return new at(0,0,0);const k=r==null?void 0:r.nodes.find(R=>R.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let M=new at(0,0,C);if(k&&r){const R=r==null?void 0:r.nodes.filter(Y=>{var j;return(j=k.children)==null?void 0:j.find(z=>z===Y.id)}),P=new at(k.x,k.y,k.z);let U=new at(0,0,0);R.map(Y=>(U=U.add(new at(Y.x,Y.y,Y.z).normalize()),Y));const W=k.scale?1-1/(k.scale+10):1,G=P.sub(U).multiplyScalar(.8*W);M=P.add(G)}return M},[a,t,r,u]),w=A.useMemo(()=>{if(a)return new at(0,0,0);const k=r==null?void 0:r.nodes.find(C=>C.ref_id===(t==null?void 0:t.ref_id));return new at((k==null?void 0:k.x)||0,(k==null?void 0:k.y)||0,(k==null?void 0:k.z)||0)},[a,t,r]);A.useEffect(()=>{var k;a&&((k=i.current)==null||k.setLookAt(Ho.x,Ho.y,Ho.z,0,0,0,!1)),g()},[a]),A.useEffect(()=>{a?v(y0):(t==null?void 0:t.node_type)==="topic"?v(g0):v(sl)},[t,v,a]),A.useEffect(()=>{y()},[l]),A.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),A.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const k=i.current.camera.position.distanceTo(new at),C=_1(w,-k/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else bn&&clearTimeout(bn),bn=setTimeout(()=>{f(!0),clearTimeout(bn)},S1),g();return()=>{bn&&clearTimeout(bn),_i&&clearTimeout(_i)}},[t]),be(k=>{i.current&&(d||x(b,k.camera),_||T(w,k.camera))});const g=()=>{if(t){const k=h.position.distanceTo(b);m1(k)}y()},y=()=>{p(!1),f(!1),n(!1),_i&&clearTimeout(_i),_i=setTimeout(()=>{p(!0),f(!0)},C1)},x=(k,C)=>{if(C.position.distanceTo(k){var M;(M=i==null?void 0:i.current)==null||M.setLookAt(C.position.x,C.position.y,C.position.z,k.x,k.y,k.z,!0)};return null},O1=1;let Er=null;const A1=(i,{enabled:t})=>{const e=We();E1(i);const s=Os(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=oe(a=>a);return A.useEffect(()=>{t||(Er==null||Er.kill(),Er=null)},[t]),A.useEffect(()=>{i.current&&r&&(n==="sphere"?(i.current.maxDistance=8e3,i.current.minDistance=200,i.current.setTarget(0,0,500,!0)):(i.current.maxDistance=i.current.getDistanceToFitSphere(r+200),i.current.minDistance=100))},[r,n,i]),A.useEffect(()=>{!e&&i.current&&i.current.setLookAt(Ti.x,Ti.y,r,0,0,0,!0)},[e,r]),be((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=O1*c*Of.DEG2RAD),i.current.update(c))}),null},M1=({disableAnimations:i})=>{const t=A.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=oe(h=>h),[r]=A.useState(.8),{camera:o}=Nt(),[a,c,l,u]=Os(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return A1(t,{enabled:!i&&!l&&!a}),A.useEffect(()=>{if(!a){const h=gh((e==null?void 0:e.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,e==null?void 0:e.nodes,s,a]),A.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(Zf,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function us(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function yh(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! +`;gh(p1,m1);class eo extends rt{constructor(){super($(eo.getDefaults(),arguments,["channels"])),this.name="Merge";const t=$(eo.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(t.channels)}static getDefaults(){return Object.assign(rt.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class so extends Sl{constructor(){super($(so.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const t=$(so.getDefaults(),arguments,["decay"]);this._decay=t.decay,this._preDelay=t.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Sl.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(t){t=this.toSeconds(t),Be(t,.001),this._decay=t,this.generate()}get preDelay(){return this._preDelay}set preDelay(t){t=this.toSeconds(t),Be(t,0),this._preDelay=t,this.generate()}generate(){return qt(this,void 0,void 0,function*(){const t=this.ready,e=new Eo(2,this._decay+this._preDelay,this.context.sampleRate),s=new Ri({context:e}),n=new Ri({context:e}),r=new eo({context:e});s.connect(r,0,0),n.connect(r,0,1);const o=new St({context:e}).toDestination();r.connect(o),s.start(0),n.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=e.render();return this.ready=a.then(yt),yield t,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class jt extends rt{constructor(){super($(jt.getDefaults(),arguments,["solo"])),this.name="Solo";const t=$(jt.getDefaults(),arguments,["solo"]);this.input=this.output=new St({context:this.context}),jt._allSolos.has(this.context)||jt._allSolos.set(this.context,new Set),jt._allSolos.get(this.context).add(this),this.solo=t.solo}static getDefaults(){return Object.assign(rt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(t){t?this._addSolo():this._removeSolo(),jt._allSolos.get(this.context).forEach(e=>e._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){jt._soloed.has(this.context)||jt._soloed.set(this.context,new Set),jt._soloed.get(this.context).add(this)}_removeSolo(){jt._soloed.has(this.context)&&jt._soloed.get(this.context).delete(this)}_isSoloed(){return jt._soloed.has(this.context)&&jt._soloed.get(this.context).has(this)}_noSolos(){return!jt._soloed.has(this.context)||jt._soloed.has(this.context)&&jt._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),jt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}jt._allSolos=new Map;jt._soloed=new Map;class no extends rt{constructor(){super($(no.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const t=$(no.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new to({context:this.context,pan:t.pan,channelCount:t.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Ns({context:this.context,volume:t.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=t.mute,Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(t){this._volume.mute=t}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Zs extends rt{constructor(){super($(Zs.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const t=$(Zs.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new jt({solo:t.solo,context:this.context}),this._panVol=this.output=new no({context:this.context,pan:t.pan,volume:t.volume,mute:t.mute,channelCount:t.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Mt(this,["pan","volume"])}static getDefaults(){return Object.assign(rt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(t){this._solo.solo=t}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(t){this._panVol.mute=t}_getBus(t){return Zs.buses.has(t)||Zs.buses.set(t,new St({context:this.context})),Zs.buses.get(t)}send(t,e=0){const s=this._getBus(t),n=new St({context:this.context,units:"decibels",gain:e});return this.connect(n),n.connect(s),n}receive(t){return this._getBus(t).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Zs.buses=new Map;class _1 extends rt{constructor(){super(...arguments),this.name="Listener",this.positionX=new kt({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new kt({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new kt({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new kt({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new kt({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new kt({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new kt({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new kt({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new kt({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(rt.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}Co(i=>{i.listener=new _1({context:i})});So(i=>{i.listener.dispose()});Ve().transport;const dc=Ve().destination;Ve().destination;Ve().listener;Ve().draw;Ve();const fc=new Wn(900,"highpass"),yh=new Ns(-6);yh.chain(fc,dc);const g1=new so(3).connect(yh),Mo=new Wi({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Mo.oscillator.type="triangle2";Mo.volume.value=-6;Mo.chain(fc,dc);const Do=new Wi({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(g1);Do.oscillator.type="triangle";Do.volume.value=-6;Do.chain(fc,dc);function y1(){return Math.floor((Math.random()-.5)*20)}let El=!1;const v1=async(i=0)=>{El||(await Yy(),El=!0);try{if(i>2e3)Do.triggerAttackRelease(60,.3);else if(i>1e3){let t=310;t+=y1(),Mo.triggerAttackRelease(t,.001)}}catch(t){console.warn(t)}},Er=1800,x1=(i,t)=>i.clone().normalize().clone().negate().normalize().multiplyScalar(t).add(i),k1=(i,t,e,s,n)=>{const r=new su,o=1e-5;r.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),r.absarc(o,t-s*2,o,Math.PI,Math.PI/2,!0),r.absarc(i-s*2,t-s*2,o,Math.PI/2,0,!0),r.absarc(i-s*2,o,o,0,-Math.PI/2,!0);const a=new If(r,{depth:e-s*2,bevelEnabled:!0,bevelSegments:n,steps:2,bevelSize:s,bevelThickness:s,curveSegments:n});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(_=p.x/i+.5,f=1-(p.z/e+.5)):Math.abs(d.x)>.9?(_=-p.z/e+.5,f=1-(-p.y/t+.5)):Math.abs(d.z)>.9&&(_=p.x/i+.5,f=1-(-p.y/t+.5)),c.push(_,f)}return a.setAttribute("uv",new Dr(c,2)),a};k1(10,10,10,2,10);const Ol=new Pf(10,10,10),T1=500,w1=800,b1=new at(0,0,0),C1=16777215,S1=20,E1=(i,t)=>{var r,o;if(!(i!=null&&i.ref_id)||!(t!=null&&t.ref_id))return!1;let e=!1;const s=i.guests,n=t.guests;return((r=i.children)!=null&&r.includes(t.ref_id)||(o=t.children)!=null&&o.includes(i.ref_id))&&(e=!0),(s!=null&&s.find(a=>a.ref_id===t.ref_id)||n!=null&&n.find(a=>a.ref_id===i.ref_id))&&(e=!0),e};let _i=null;const O1=500,vh=(i,t)=>{if(_i)return null;_i=setTimeout(()=>{_i&&(clearTimeout(_i),_i=null)},O1);const e=[];return i.forEach(n=>{const r=t.position.distanceTo(b1.set(n.x,n.y,n.z));rn.distance-r.distance).slice(0,T1).map(n=>n.id)};let bn,gi;const A1=1e3,M1=2e3,D1=i=>{const t=We(),e=Os(x=>x.isUserDragging),s=Os(x=>x.isUserScrolling),n=Os(x=>x.setUserMovedCamera),{data:r,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=oe(x=>x),{camera:h}=It(),[d,p]=D.useState(!1),[_,f]=D.useState(!1),[m,v]=D.useState(il),b=D.useMemo(()=>{if(a)return new at(0,0,0);const x=r==null?void 0:r.nodes.find(I=>I.ref_id===(t==null?void 0:t.ref_id)),C=u+300;let O=new at(0,0,C);if(x&&r){const I=r==null?void 0:r.nodes.filter(G=>{var z;return(z=x.children)==null?void 0:z.find(j=>j===G.id)}),M=new at(x.x,x.y,x.z);let U=new at(0,0,0);I.map(G=>(U=U.add(new at(G.x,G.y,G.z).normalize()),G));const W=x.scale?1-1/(x.scale+10):1,Y=M.sub(U).multiplyScalar(.8*W);O=M.add(Y)}return O},[a,t,r,u]),w=D.useMemo(()=>{if(a)return new at(0,0,0);const x=r==null?void 0:r.nodes.find(C=>C.ref_id===(t==null?void 0:t.ref_id));return new at((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,t,r]);D.useEffect(()=>{var x;a&&((x=i.current)==null||x.setLookAt(Go.x,Go.y,Go.z,0,0,0,!1)),g()},[a]),D.useEffect(()=>{a?v(T0):(t==null?void 0:t.node_type)==="topic"?v(k0):v(il)},[t,v,a]),D.useEffect(()=>{y()},[l]),D.useEffect(()=>{(e||s)&&(p(!0),f(!0))},[e,s,p,f]),D.useEffect(()=>{if(t)if(!a&&o==="earth"&&(i!=null&&i.current)){const x=i.current.camera.position.distanceTo(new at),C=x1(w,-x/2);i.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else bn&&clearTimeout(bn),bn=setTimeout(()=>{f(!0),clearTimeout(bn)},M1),g();return()=>{bn&&clearTimeout(bn),gi&&clearTimeout(gi)}},[t]),be(x=>{i.current&&(d||k(b,x.camera),_||T(w,x.camera))});const g=()=>{if(t){const x=h.position.distanceTo(b);v1(x)}y()},y=()=>{p(!1),f(!1),n(!1),gi&&clearTimeout(gi),gi=setTimeout(()=>{p(!0),f(!0)},A1)},k=(x,C)=>{if(C.position.distanceTo(x){var O;(O=i==null?void 0:i.current)==null||O.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null},P1=1;let Or=null;const I1=(i,{enabled:t})=>{const e=We();D1(i);const s=Os(a=>a.isUserDragging),{graphStyle:n,graphRadius:r,disableCameraRotation:o}=oe(a=>a);return D.useEffect(()=>{t||(Or==null||Or.kill(),Or=null)},[t]),D.useEffect(()=>{i.current&&r&&(n==="sphere"?(i.current.maxDistance=8e3,i.current.minDistance=200,i.current.setTarget(0,0,500,!0)):(i.current.maxDistance=i.current.getDistanceToFitSphere(r+200),i.current.minDistance=100))},[r,n,i]),D.useEffect(()=>{!e&&i.current&&i.current.setLookAt(wi.x,wi.y,r,0,0,0,!0)},[e,r]),be((a,c)=>{i.current&&(!o&&!s&&(i.current.azimuthAngle+=P1*c*Nf.DEG2RAD),i.current.update(c))}),null},N1=({disableAnimations:i})=>{const t=D.useRef(null),{data:e,setNearbyNodeIds:s,setDisableCameraRotation:n}=oe(h=>h),[r]=D.useState(.8),{camera:o}=It(),[a,c,l,u]=Os(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return I1(t,{enabled:!i&&!l&&!a}),D.useEffect(()=>{if(!a){const h=vh((e==null?void 0:e.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,e==null?void 0:e.nodes,s,a]),D.useEffect(()=>{a&&n(!0)},[a,n]),L.jsx(t0,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:r})};function us(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function xh(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t}/*! * GSAP 3.12.4 * https://gsap.com * @@ -348,7 +348,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Te={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Wn={duration:.5,overwrite:!1,delay:0},fc,Jt,Lt,Me=1e8,Ct=1/Me,ya=Math.PI*2,D1=ya/4,P1=0,vh=Math.sqrt,N1=Math.cos,I1=Math.sin,Zt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},_s=function(t){return typeof t=="number"},pc=function(t){return typeof t>"u"},es=function(t){return typeof t=="object"},he=function(t){return t!==!1},mc=function(){return typeof window<"u"},Or=function(t){return Vt(t)||Zt(t)},kh=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,va=/(?:-?\.?\d|\.)+/gi,xh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Mn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$o=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Th=/[+-]=-?[.\d]+/,wh=/[^,'"\[\]\s]+/gi,R1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,It,Ee,ka,_c,we={},no={},bh,Ch=function(t){return(no=hn(t,we))&&_e},gc=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Yi=function(t,e){return!e&&console.warn(t)},Sh=function(t,e){return t&&(we[t]=e)&&no&&(no[t]=e)||we},Gi=function(){return 0},F1={suppressEvents:!0,isStart:!0,kill:!1},Nr={suppressEvents:!0,kill:!1},L1={suppressEvents:!0},yc={},Ms=[],xa={},Eh,ye={},Xo={},El=30,Ir=[],vc="",kc=function(t){var e=t[0],s,n;if(es(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Ir.length;n--&&!Ir[n].targetTest(e););s=Ir[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Qh(t[n],s)))||t.splice(n,1);return t},en=function(t){return t._gsap||kc(De(t))[0]._gsap},Oh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():pc(s)&&t.getAttribute&&t.getAttribute(e)||s},de=function(t,e){return(t=t.split(",")).forEach(e)||t},zt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},In=function(t,e){var s=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),s==="+"?t+n:s==="-"?t-n:s==="*"?t*n:t/n},V1=function(t,e){for(var s=e.length,n=0;t.indexOf(e[n])<0&&++na;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[s],t[s]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Do=function(t,e,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[s]===e&&(t[s]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Ls=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},sn=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},j1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ta=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Nr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},B1=function i(t){return!t||t._ts&&i(t.parent)},Al=function(t){return t._repeat?Hn(t._tTime,t=t.duration()+t._rDelay)*t:0},Hn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},oo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Po=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},No=function(t,e){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=$t(s._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Po(t),s._dirty||sn(s,t)),t},Nh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),sn(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ct}},Ze=function(t,e,s,n){return e.parent&&Ls(e),e._start=$t((_s(s)?s:s||t!==It?Se(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ph(t,e,"_first","_last",t._sort?"_start":0),wa(e)||(t._recent=e),n||Nh(t,e),t._ts<0&&No(t,t._tTime),t},Ih=function(t,e){return(we.ScrollTrigger||gc("scrollTrigger",e))&&we.ScrollTrigger.create(e,t)},Rh=function(t,e,s,n,r){if(Tc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Eh!==ve.frame)return Ms.push(t),t._lazy=[r,n],1},q1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},wa=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},W1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&q1(t)&&!(!t._initted&&wa(t))||(t._ts<0||t._dp._ts<0)&&!wa(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=hr(0,t._tDur,e),u=Hn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Hn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||Jt||n||t._zTime===Ct||!e&&t._zTime){if(!t._initted&&Rh(t,e,n,s,c))return;for(h=t._zTime,t._zTime=e||(s?Ct:0),s||(s=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&Ta(t,e,s,!0),t._onUpdate&&!s&&ke(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&ke(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Ls(t,1),!s&&!Jt&&(ke(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},H1=function(t,e,s){var n;if(s>e)for(n=t._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start0&&!n&&No(t,t._tTime=t._tDur*a),t.parent&&Po(t),s||sn(t.parent,t),t},Ml=function(t){return t instanceof ie?sn(t):Yn(t,t._dur)},Y1={_start:0,endTime:Gi,totalDuration:Gi},Se=function i(t,e,s){var n=t.labels,r=t._recent||Y1,o=t.duration()>=Me?r.endTime(!1):t._dur,a,c,l;return Zt(e)&&(isNaN(e)||e in n)?(c=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),c==="<"||c===">"?(a>=0&&(e=e.replace(/=/,"")),(c==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:s).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(c=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&s&&(c=c/100*(te(s)?s[0]:s).totalDuration()),a>1?i(t,e.substr(0,a-1),s)+c:o+c)):e==null?o:+e},Ci=function(t,e,s){var n=_s(e[1]),r=(n?2:1)+(t<2?0:1),o=e[r],a,c;if(n&&(o.duration=e[1]),o.parent=s,t){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=he(c.vars.inherit)&&c.parent;o.immediateRender=he(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},Bs=function(t,e){return t||t===0?e(t):e},hr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Zt(t)||!(e=R1.exec(t))?"":e[1]},G1=function(t,e,s){return Bs(s,function(n){return hr(t,e,n)})},ba=[].slice,Fh=function(t,e){return t&&es(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&es(t[0]))&&!t.nodeType&&t!==Ee},$1=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Zt(n)&&!e||Fh(n,1)?(r=s).push.apply(r,De(n)):s.push(n)})||s},De=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Zt(t)&&!s&&(ka||!Gn())?ba.call((e||_c).querySelectorAll(t),0):te(t)?$1(t,s):Fh(t)?ba.call(t,0):t?[t]:[]},Ca=function(t){return t=De(t)[0]||Yi("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return De(e,s.querySelectorAll?s:s===t?Yi("Invalid scope")||_c.createElement("div"):t)}},Lh=function(t){return t.sort(function(){return .5-Math.random()})},Vh=function(t){if(Vt(t))return t;var e=es(t)?t:{each:t},s=nn(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},a=n>0&&n<1,c=isNaN(n)||a,l=e.axis,u=n,h=n;return Zt(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!a&&c&&(u=n[0],h=n[1]),function(d,p,_){var f=(_||e).length,m=o[f],v,b,w,g,y,x,T,k,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Me])[1],!C){for(T=-Me;T<(T=_[C++].getBoundingClientRect().left)&&CT&&(T=y),yf?f-1:l?l==="y"?f/C:C:Math.max(C,f/C))||0)*(n==="edges"?-1:1),m.b=f<0?r-f:r,m.u=Kt(e.amount||e.each)||0,s=s&&f<0?$h(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},Sa=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var n=$t(Math.round(parseFloat(s)/t)*t*e);return(n-n%1)/e+(_s(s)?0:Kt(s))}},Uh=function(t,e){var s=te(t),n,r;return!s&&es(t)&&(n=s=t.radius||Me,t.values?(t=De(t.values),(r=!_s(t[0]))&&(n*=n)):t=Sa(t.increment)),Bs(e,s?Vt(t)?function(o){return r=t(o),Math.abs(r-o)<=n?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Me,u=0,h=t.length,d,p;h--;)r?(d=t[h].x-a,p=t[h].y-c,d=d*d+p*p):d=Math.abs(t[h]-a),dn?r-o:o)})},$i=function(t){for(var e=0,s="",n,r,o,a;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),a=t.charAt(n+7)==="[",r=t.substr(n+7,o-n-7).match(a?wh:va),s+=t.substr(e,n-e)+zh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},Bh=function(t,e,s,n,r){var o=e-t,a=n-s;return Bs(r,function(c){return s+((c-t)/o*a||0)})},tv=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Zt(t),a={},c,l,u,h,d;if(s===!0&&(n=1)&&(s=null),o)t={p:t},e={p:e};else if(te(t)&&!te(e)){for(u=[],h=t.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},ke=function(t,e,s){var n=t.vars,r=n[e],o=Lt,a=t._ctx,c,l,u;if(r)return c=n[e+"Params"],l=n.callbackScope||t,s&&Ms.length&&io(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},vi=function(t){return Ls(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&ke(t,"onInterrupt"),t},Dn,qh=[],Wh=function(t){if(mc()&&t){t=!t.name&&t.default||t;var e=t.name,s=Vt(t),n=e&&!s&&t.init?function(){this._props=[]}:t,r={init:Gi,render:Cc,add:xc,kill:_v,modifier:mv,rawVars:0},o={targetTest:0,get:0,getSetter:bc,aliases:{},register:0};if(Gn(),t!==n){if(ye[e])return;Ne(n,Ne(ro(t,r),o)),hn(n.prototype,hn(r,ro(t,o))),ye[n.prop=e]=n,t.targetTest&&(Ir.push(n),yc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Sh(e,n),t.register&&t.register(_e,n,fe)}else t&&qh.push(t)},bt=255,ki={aqua:[0,bt,bt],lime:[0,bt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bt],navy:[0,0,128],white:[bt,bt,bt],olive:[128,128,0],yellow:[bt,bt,0],orange:[bt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bt,0,0],pink:[bt,192,203],cyan:[0,bt,bt],transparent:[bt,bt,bt,0]},Zo=function(t,e,s){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(s-e)*t*6:t<.5?s:t*3<2?e+(s-e)*(2/3-t)*6:e)*bt+.5|0},Hh=function(t,e,s){var n=t?_s(t)?[t>>16,t>>8&bt,t&bt]:0:ki.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ki[t])n=ki[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&bt,n&bt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&bt,t&bt]}else if(t.substr(0,3)==="hsl"){if(n=_=t.match(va),!e)c=+n[0]%360/360,l=+n[1]/100,u=+n[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,n.length>3&&(n[3]*=1),n[0]=Zo(c+1/3,r,o),n[1]=Zo(c,r,o),n[2]=Zo(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(xh),s&&n.length<4&&(n[3]=1),n}else n=t.match(va)||ki.transparent;n=n.map(Number)}return e&&!_&&(r=n[0]/bt,o=n[1]/bt,a=n[2]/bt,h=Math.max(r,o,a),d=Math.min(r,o,a),u=(h+d)/2,h===d?c=l=0:(p=h-d,l=u>.5?p/(2-h-d):p/(h+d),c=h===r?(o-a)/p+(ot&&(s+=v-e),n+=v,y=n-s,w=y-o,(w>0||b)&&(x=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=w+(w>=r?4:r-w),g=1),b||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),Gn=function(){return!Xi&&ve.wake()},ft={},sv=/^[\d.\-M][\d.\-,\s]/,nv=/["']/g,iv=function(t){for(var e={},s=t.substr(1,t.length-3).split(":"),n=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~t.indexOf("{")?[iv(e[1])]:rv(t).split(",").map(Mh)):ft._CE&&sv.test(t)?ft._CE("",t):s},$h=function(t){return function(e){return 1-t(1-e)}},Xh=function i(t,e){for(var s=t._first,n;s;)s instanceof ie?i(s,e):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==e&&(s.timeline?i(s.timeline,e):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=e)),s=s._next},nn=function(t,e){return t&&(Vt(t)?t:ft[t]||ov(t))||e},_n=function(t,e,s,n){s===void 0&&(s=function(c){return 1-e(1-c)}),n===void 0&&(n=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var r={easeIn:e,easeOut:s,easeInOut:n},o;return de(t,function(a){ft[a]=we[a]=r,ft[o=a.toLowerCase()]=s;for(var c in r)ft[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ft[a+"."+c]=r[c]}),r},Zh=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Qo=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/ya*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*I1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Zh(a);return r=ya/r,c.config=function(l,u){return i(t,l,u)},c},Ko=function i(t,e){e===void 0&&(e=1.70158);var s=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?s:t==="in"?function(r){return 1-s(1-r)}:Zh(s);return n.config=function(r){return i(t,r)},n};de("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;_n(i+",Power"+(e-1),t?function(s){return Math.pow(s,e)}:function(s){return s},function(s){return 1-Math.pow(1-s,e)},function(s){return s<.5?Math.pow(s*2,e)/2:1-Math.pow((1-s)*2,e)/2})});ft.Linear.easeNone=ft.none=ft.Linear.easeIn;_n("Elastic",Qo("in"),Qo("out"),Qo());(function(i,t){var e=1/t,s=2*e,n=2.5*e,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Yn(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,n){if(Gn(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(No(this,s),!r._dp||r.parent||Nh(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&Ze(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ct||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Ah(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Al(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},t.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Al(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?Hn(this._tTime,r)+1:1},t.timeScale=function(s,n){if(!arguments.length)return this._rts===-Ct?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?oo(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(hr(-Math.abs(this._delay),this._tDur,r),n!==!1),Po(this),j1(this)},t.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Gn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ct&&(this._tTime-=Ct)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Ze(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(he(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?oo(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=L1);var n=Jt;return Jt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Jt=n,this},t.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Ml(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Ml(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,n){return this.totalTime(Se(this,s),he(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,he(n))},t.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},t.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ct,this},t.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r1?(n?(o[s]=n,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete o[s],this):o[s]},t.then=function(s){var n=this;return new Promise(function(r){var o=Vt(s)?s:Dh,a=function(){var l=n.then;n.then=null,Vt(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),r(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},t.kill=function(){vi(this)},i}();Ne(Zi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ct,_prom:0,_ps:!1,_rts:1});var ie=function(i){yh(t,i);function t(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=he(s.sortChildren),It&&Ze(s.parent||It,us(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Ih(us(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Ci(0,arguments,this),this},e.from=function(n,r,o){return Ci(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Ci(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,bi(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,Se(this,o),1),this},e.call=function(n,r,o){return Ze(this,Ht.delayedCall(0,n,r),o)},e.staggerTo=function(n,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Ht(n,o,Se(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,bi(o).immediateRender=he(o.immediateRender),this.staggerTo(n,r,o,a,c,l,u)},e.staggerFromTo=function(n,r,o,a,c,l,u,h){return a.startAt=o,bi(a).immediateRender=he(a.immediateRender),this.staggerTo(n,r,a,c,l,u,h)},e.render=function(n,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=n<=0?0:$t(n),h=this._zTime<0!=n<0&&(this._initted||!l),d,p,_,f,m,v,b,w,g,y,x,T;if(this!==It&&u>c&&n>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,n+=this._time-a),d=u,g=this._start,w=this._ts,v=!w,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(x=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,o);if(d=$t(u%m),u===c?(f=this._repeat,d=l):(f=~~(u/m),f&&f===u/m&&(d=l,f--),d>l&&(d=l)),y=Hn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),x&&f&1&&(d=l-d,T=1),f!==y&&!this._lock){var k=x&&y&1,C=k===(x&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,r,o),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=-Ct);break}}p=_}else{p=this._last;for(var M=n<0?n:d;p;){if(_=p._prev,(p._act||M<=p._end)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(M-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(M-p._start)*p._ts,r,o||Jt&&(p._initted||p._startAt)),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=M?-Ct:Ct);break}}p=_}}if(b&&!r&&(this.pause(),b.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,Po(this),this.render(n,r,o);this._onUpdate&&!r&&ke(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ls(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(ke(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(_s(r)||(r=Se(this,r,n)),!(n instanceof Zi)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Zt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?Ze(this,n,r):this},e.getChildren=function(n,r,o,a){n===void 0&&(n=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Me);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Ht?r&&c.push(l):(o&&c.push(l),n&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},e.getById=function(n){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===n)return r[o]},e.remove=function(n){return Zt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Do(this,n),n===this._recent&&(this._recent=this._last),sn(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ve.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},e.addLabel=function(n,r){return this.labels[n]=Se(this,r),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,r,o){var a=Ht.delayedCall(0,r||Gi,o);return a.data="isPause",this._hasPause=1,Ze(this,a,Se(this,n))},e.removePause=function(n){var r=this._first;for(n=Se(this,n);r;)r._start===n&&r.data==="isPause"&&Ls(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)Cs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=De(n),c=this._first,l=_s(r),u;c;)c instanceof Ht?V1(c._targets,a)&&(l?(!Cs||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},e.tweenTo=function(n,r){r=r||{};var o=this,a=Se(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,Ne({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ct,onStart:function(){if(o.pause(),!p){var m=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());_._dur!==m&&Yn(_,m,0,1).render(_._time,!0,!0),p=1}u&&u.apply(_,h||[])}},r));return d?_.render(0):_},e.tweenFromTo=function(n,r,o){return this.tweenTo(r,Ne({startAt:{time:Se(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Dl(this,Se(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Dl(this,Se(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ct)},e.shiftChildren=function(n,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=n);return sn(this)},e.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),sn(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Me,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ze(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>r&&a._ts&&(r=a._end),a=l;Yn(o,o===It&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(It._ts&&(Ah(It,oo(n,It)),Eh=ve.frame),ve.frame>=El){El+=Te.autoSleep||120;var r=It._first;if((!r||!r._ts)&&Te.autoSleep&&ve._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ve.sleep()}}},t}(Zi);Ne(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var av=function(t,e,s,n,r,o,a){var c=new fe(this._pt,t,e,0,1,nd,null,r),l=0,u=0,h,d,p,_,f,m,v,b;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=$i(n)),o&&(b=[s,n],o(b,t,e),s=b[0],n=b[1]),d=s.match($o)||[];h=$o.exec(n);)_=h[0],f=n.substring(l,h.index),p?p=(p+1)%5:f.substr(-5)==="rgba("&&(p=1),_!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:f||u===1?f:",",s:m,c:_.charAt(1)==="="?In(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=$o.lastIndex);return c.c=l")}),g.duration();else{x={};for(k in _)k==="ease"||k==="easeEach"||hv(k,_[k],x,_.easeEach);for(k in x)for(U=x[k].sort(function(Y,j){return Y.t-j.t}),P=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Hn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(w&&this._yEase&&Xh(w,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render($t(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Rh(this,u?n:d,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(l!==this._dur)return this.render(n,r,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(g||this._ease)(d/l),this._from&&(this.ratio=b=1-b),d&&!a&&!r&&!_&&(ke(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(b,p.d),p=p._next;w&&w.render(n<0?n:!d&&v?-Ct:w._dur*w._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&Ta(this,n,r,o),ke(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&ke(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&Ta(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ls(this,1),!r&&!(u&&!a)&&(h||a||v)&&(ke(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},e.resetTo=function(n,r,o,a,c){Xi||ve.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Tc(this,l),u=this._ease(l/this._dur),lv(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(No(this,0),this.parent||Ph(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?vi(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,Cs&&Cs.vars.overwrite!==!0)._first||vi(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?De(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&z1(a,c))return r==="all"&&(this._pt=0),vi(this);for(h=this._op=this._op||[],r!=="all"&&(Zt(r)&&(f={},de(r,function(b){return f[b]=1}),r=f),r=uv(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){d=l[v],r==="all"?(h[v]=r,_=d,p={}):(p=h[v]=h[v]||{},_=r);for(f in _)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&Do(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&vi(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Ci(1,arguments)},t.delayedCall=function(n,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(n,r,o){return Ci(2,arguments)},t.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(n,r)},t.killTweensOf=function(n,r,o){return It.killTweensOf(n,r,o)},t}(Zi);Ne(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});de("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=ba.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var wc=function(t,e,s){return t[e]=s},ed=function(t,e,s){return t[e](s)},dv=function(t,e,s,n){return t[e](n.fp,s)},fv=function(t,e,s){return t.setAttribute(e,s)},bc=function(t,e){return Vt(t[e])?ed:pc(t[e])&&t.setAttribute?fv:wc},sd=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},pv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},nd=function(t,e){var s=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+n,s=s._next;n+=e.c}e.set(e.t,e.p,n,e)},Cc=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},mv=function(t,e,s,n){for(var r=this._pt,o;r;)o=r._next,r.p===n&&r.modifier(t,e,s),r=o},_v=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Do(this,e,"_pt"):e.dep||(s=1),e=n;return!s},gv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},id=function(t){for(var e=t._pt,s,n,r,o;e;){for(s=e._next,n=r;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:r=e,(e._next=n)?n._prev=e:o=e,e=s}t._pt=r},fe=function(){function i(e,s,n,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=n,this.r=a||sd,this.d=c||this,this.set=l||wc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=i.prototype;return t.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=gv,this.m=s,this.mt=r,this.tween=n},i}();de(vc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return yc[i]=1});we.TweenMax=we.TweenLite=Ht;we.TimelineLite=we.TimelineMax=ie;It=new ie({sortChildren:!1,defaults:Wn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Te.stringFilter=Gh;var rn=[],Rr={},yv=[],Nl=0,vv=0,Jo=function(t){return(Rr[t]||yv).map(function(e){return e()})},Oa=function(){var t=Date.now(),e=[];t-Nl>2&&(Jo("matchMediaInit"),rn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ee.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),Jo("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Nl=t,Jo("matchMedia"))},rd=function(){function i(e,s){this.selector=s&&Ca(s),this.data=[],this._r=[],this.isReverted=!1,this.id=vv++,e&&this.add(e)}var t=i.prototype;return t.add=function(s,n,r){Vt(s)&&(r=n,n=s,s=Vt);var o=this,a=function(){var l=Lt,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Ca(r)),Lt=o,h=n.apply(o,arguments),Vt(h)&&o._r.push(h),Lt=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Vt?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},t.ignore=function(s){var n=Lt;Lt=null,s(this),Lt=n},t.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof Ht&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,n){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=r.data.length;c--;)l=r.data[c],l instanceof ie?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ht)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=rn.length;o--;)rn[o].id===this.id&&rn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),kv=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){es(s)||(s={matches:s});var o=new rd(0,r||this.scope),a=o.conditions={},c,l,u;Lt&&!o.selector&&(o.selector=Lt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=s;for(l in s)l==="all"?u=1:(c=Ee.matchMedia(s[l]),c&&(rn.indexOf(o)<0&&rn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Oa):c.addEventListener("change",Oa)));return u&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(s){this.kill(s||{})},t.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),ao={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),s=0;s1){var n=t.map(function(u){return _e.quickSetter(u,e,s)}),r=n.length;return function(u){for(var h=r;h--;)n[h](u)}}t=t[0]||{};var o=ye[e],a=en(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Dn._pt=0,h.init(t,s?u+s:u,Dn,0,[t]),h.render(1,h),Dn._pt&&Cc(1,Dn)}:a.set(t,c);return o?l:function(u){return l(t,c,s?u+s:u,a,1)}},quickTo:function(t,e,s){var n,r=_e.to(t,hn((n={},n[e]="+=0.1",n.paused=!0,n),s||{})),o=function(c,l,u){return r.resetTo(e,c,l,u)};return o.tween=r,o},isTweening:function(t){return It.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=nn(t.ease,Wn.ease)),Ol(Wn,t||{})},config:function(t){return Ol(Te,t||{})},registerEffect:function(t){var e=t.name,s=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!ye[a]&&!we[a]&&Yi(e+" effect requires "+a+" plugin.")}),Xo[e]=function(a,c,l){return s(De(a),Ne(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Xo[e](a,es(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=nn(e)},parseEase:function(t,e){return arguments.length?nn(t,e):ft},getById:function(t){return It.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var s=new ie(t),n,r;for(s.smoothChildTiming=he(t.smoothChildTiming),It.remove(s),s._dp=0,s._time=s._tTime=It._time,n=It._first;n;)r=n._next,(e||!(!n._dur&&n instanceof Ht&&n.vars.onComplete===n._targets[0]))&&Ze(s,n,n._start-n._delay),n=r;return Ze(It,s,0),s},context:function(t,e){return t?new rd(t,e):Lt},matchMedia:function(t){return new kv(t)},matchMediaRefresh:function(){return rn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Oa()},addEventListener:function(t,e){var s=Rr[t]||(Rr[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Rr[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:K1,wrapYoyo:J1,distribute:Vh,random:zh,snap:Uh,normalize:Q1,getUnit:Kt,clamp:G1,splitColor:Hh,toArray:De,selector:Ca,mapRange:Bh,pipe:X1,unitize:Z1,interpolate:tv,shuffle:Lh},install:Ch,effects:Xo,ticker:ve,updateRoot:ie.updateRoot,plugins:ye,globalTimeline:It,core:{PropTween:fe,globals:Sh,Tween:Ht,Timeline:ie,Animation:Zi,getCache:en,_removeLinkedListItem:Do,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return fc=t}}};de("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return ao[i]=Ht[i]});ve.add(ie.updateRoot);Dn=ao.to({},{duration:0});var xv=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},Tv=function(t,e){var s=t._targets,n,r,o;for(n in e)for(r=s.length;r--;)o=t._ptLookup[r][n],o&&(o=o.d)&&(o._pt&&(o=xv(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},ta=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Zt(r)&&(c={},de(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}Tv(a,r)}}}},_e=ao.registerPlugin({name:"attr",init:function(t,e,s,n,r){var o,a,c;this.tween=s;for(o in e)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",e[o],n,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,e){for(var s=e._pt;s;)Jt?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,e){for(var s=e.length;s--;)this.add(t,s,t[s]||0,e[s],0,0,0,0,0,1)}},ta("roundProps",Sa),ta("modifiers"),ta("snap",Uh))||ao;Ht.version=ie.version=_e.version="3.12.4";bh=1;mc()&&Gn();ft.Power0;ft.Power1;ft.Power2;ft.Power3;ft.Power4;ft.Linear;ft.Quad;ft.Cubic;ft.Quart;ft.Quint;ft.Strong;ft.Elastic;ft.Back;ft.SteppedEase;ft.Bounce;ft.Sine;ft.Expo;ft.Circ;/*! +*/var Te={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hn={duration:.5,overwrite:!1,delay:0},pc,Jt,Lt,Me=1e8,Ct=1/Me,va=Math.PI*2,R1=va/4,F1=0,kh=Math.sqrt,L1=Math.cos,V1=Math.sin,Xt=function(t){return typeof t=="string"},Vt=function(t){return typeof t=="function"},_s=function(t){return typeof t=="number"},mc=function(t){return typeof t>"u"},es=function(t){return typeof t=="object"},he=function(t){return t!==!1},_c=function(){return typeof window<"u"},Ar=function(t){return Vt(t)||Xt(t)},Th=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},te=Array.isArray,xa=/(?:-?\.?\d|\.)+/gi,wh=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Dn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Zo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,bh=/[+-]=-?[.\d]+/,Ch=/[^,'"\[\]\s]+/gi,U1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Ee,ka,gc,we={},io={},Sh,Eh=function(t){return(io=hn(t,we))&&_e},yc=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Yi=function(t,e){return!e&&console.warn(t)},Oh=function(t,e){return t&&(we[t]=e)&&io&&(io[t]=e)||we},$i=function(){return 0},j1={suppressEvents:!0,isStart:!0,kill:!1},Nr={suppressEvents:!0,kill:!1},z1={suppressEvents:!0},vc={},Ms=[],Ta={},Ah,ye={},Xo={},Al=30,Rr=[],xc="",kc=function(t){var e=t[0],s,n;if(es(e)||Vt(e)||(t=[t]),!(s=(e._gsap||{}).harness)){for(n=Rr.length;n--&&!Rr[n].targetTest(e););s=Rr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Jh(t[n],s)))||t.splice(n,1);return t},en=function(t){return t._gsap||kc(De(t))[0]._gsap},Mh=function(t,e,s){return(s=t[e])&&Vt(s)?t[e]():mc(s)&&t.getAttribute&&t.getAttribute(e)||s},de=function(t,e){return(t=t.split(",")).forEach(e)||t},zt=function(t){return Math.round(t*1e5)/1e5||0},$t=function(t){return Math.round(t*1e7)/1e7||0},Rn=function(t,e){var s=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),s==="+"?t+n:s==="-"?t-n:s==="*"?t*n:t/n},B1=function(t,e){for(var s=e.length,n=0;t.indexOf(e[n])<0&&++na;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[s],t[s]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Po=function(t,e,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=e._prev,o=e._next;r?r._next=o:t[s]===e&&(t[s]=o),o?o._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},Ls=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},sn=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var s=t;s;)s._dirty=1,s=s.parent;return t},H1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},wa=function(t,e,s,n){return t._startAt&&(Jt?t._startAt.revert(Nr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},G1=function i(t){return!t||t._ts&&i(t.parent)},Dl=function(t){return t._repeat?Gn(t._tTime,t=t.duration()+t._rDelay)*t:0},Gn=function(t,e){var s=Math.floor(t/=e);return t&&s===t?s-1:s},ao=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Io=function(t){return t._end=$t(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ct)||0))},No=function(t,e){var s=t._dp;return s&&s.smoothChildTiming&&t._ts&&(t._start=$t(s._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Io(t),s._dirty||sn(s,t)),t},Rh=function(t,e){var s;if((e._time||!e._dur&&e._initted||e._startCt)&&e.render(s,!0)),sn(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&s.totalTime(s._tTime),s=s._dp;t._zTime=-Ct}},Xe=function(t,e,s,n){return e.parent&&Ls(e),e._start=$t((_s(s)?s:s||t!==Nt?Se(t,s,e):t._time)+e._delay),e._end=$t(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Nh(t,e,"_first","_last",t._sort?"_start":0),ba(e)||(t._recent=e),n||Rh(t,e),t._ts<0&&No(t,t._tTime),t},Fh=function(t,e){return(we.ScrollTrigger||yc("scrollTrigger",e))&&we.ScrollTrigger.create(e,t)},Lh=function(t,e,s,n,r){if(wc(t,e,r),!t._initted)return 1;if(!s&&t._pt&&!Jt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Ah!==ve.frame)return Ms.push(t),t._lazy=[r,n],1},Y1=function i(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||i(e))},ba=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},$1=function(t,e,s,n){var r=t.ratio,o=e<0||!e&&(!t._start&&Y1(t)&&!(!t._initted&&ba(t))||(t._ts<0||t._dp._ts<0)&&!ba(t))?0:1,a=t._rDelay,c=0,l,u,h;if(a&&t._repeat&&(c=dr(0,t._tDur,e),u=Gn(c,a),t._yoyo&&u&1&&(o=1-o),u!==Gn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||Jt||n||t._zTime===Ct||!e&&t._zTime){if(!t._initted&&Lh(t,e,n,s,c))return;for(h=t._zTime,t._zTime=e||(s?Ct:0),s||(s=e&&!h),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&wa(t,e,s,!0),t._onUpdate&&!s&&xe(t,"onUpdate"),c&&t._repeat&&!s&&t.parent&&xe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&Ls(t,1),!s&&!Jt&&(xe(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Z1=function(t,e,s){var n;if(s>e)for(n=t._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start0&&!n&&No(t,t._tTime=t._tDur*a),t.parent&&Io(t),s||sn(t.parent,t),t},Pl=function(t){return t instanceof ie?sn(t):Yn(t,t._dur)},X1={_start:0,endTime:$i,totalDuration:$i},Se=function i(t,e,s){var n=t.labels,r=t._recent||X1,o=t.duration()>=Me?r.endTime(!1):t._dur,a,c,l;return Xt(e)&&(isNaN(e)||e in n)?(c=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),c==="<"||c===">"?(a>=0&&(e=e.replace(/=/,"")),(c==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:s).totalDuration()/100:1)):a<0?(e in n||(n[e]=o),n[e]):(c=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&s&&(c=c/100*(te(s)?s[0]:s).totalDuration()),a>1?i(t,e.substr(0,a-1),s)+c:o+c)):e==null?o:+e},Si=function(t,e,s){var n=_s(e[1]),r=(n?2:1)+(t<2?0:1),o=e[r],a,c;if(n&&(o.duration=e[1]),o.parent=s,t){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=he(c.vars.inherit)&&c.parent;o.immediateRender=he(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new Ht(e[0],o,e[r+1])},Bs=function(t,e){return t||t===0?e(t):e},dr=function(t,e,s){return se?e:s},Kt=function(t,e){return!Xt(t)||!(e=U1.exec(t))?"":e[1]},Q1=function(t,e,s){return Bs(s,function(n){return dr(t,e,n)})},Ca=[].slice,Vh=function(t,e){return t&&es(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&es(t[0]))&&!t.nodeType&&t!==Ee},K1=function(t,e,s){return s===void 0&&(s=[]),t.forEach(function(n){var r;return Xt(n)&&!e||Vh(n,1)?(r=s).push.apply(r,De(n)):s.push(n)})||s},De=function(t,e,s){return Lt&&!e&&Lt.selector?Lt.selector(t):Xt(t)&&!s&&(ka||!$n())?Ca.call((e||gc).querySelectorAll(t),0):te(t)?K1(t,s):Vh(t)?Ca.call(t,0):t?[t]:[]},Sa=function(t){return t=De(t)[0]||Yi("Invalid scope")||{},function(e){var s=t.current||t.nativeElement||t;return De(e,s.querySelectorAll?s:s===t?Yi("Invalid scope")||gc.createElement("div"):t)}},Uh=function(t){return t.sort(function(){return .5-Math.random()})},jh=function(t){if(Vt(t))return t;var e=es(t)?t:{each:t},s=nn(e.ease),n=e.from||0,r=parseFloat(e.base)||0,o={},a=n>0&&n<1,c=isNaN(n)||a,l=e.axis,u=n,h=n;return Xt(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!a&&c&&(u=n[0],h=n[1]),function(d,p,_){var f=(_||e).length,m=o[f],v,b,w,g,y,k,T,x,C;if(!m){if(C=e.grid==="auto"?0:(e.grid||[1,Me])[1],!C){for(T=-Me;T<(T=_[C++].getBoundingClientRect().left)&&CT&&(T=y),yf?f-1:l?l==="y"?f/C:C:Math.max(C,f/C))||0)*(n==="edges"?-1:1),m.b=f<0?r-f:r,m.u=Kt(e.amount||e.each)||0,s=s&&f<0?Xh(s):s}return f=(m[d]-m.min)/m.max||0,$t(m.b+(s?s(f):f)*m.v)+m.u}},Ea=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(s){var n=$t(Math.round(parseFloat(s)/t)*t*e);return(n-n%1)/e+(_s(s)?0:Kt(s))}},zh=function(t,e){var s=te(t),n,r;return!s&&es(t)&&(n=s=t.radius||Me,t.values?(t=De(t.values),(r=!_s(t[0]))&&(n*=n)):t=Ea(t.increment)),Bs(e,s?Vt(t)?function(o){return r=t(o),Math.abs(r-o)<=n?r:o}:function(o){for(var a=parseFloat(r?o.x:o),c=parseFloat(r?o.y:0),l=Me,u=0,h=t.length,d,p;h--;)r?(d=t[h].x-a,p=t[h].y-c,d=d*d+p*p):d=Math.abs(t[h]-a),dn?r-o:o)})},Zi=function(t){for(var e=0,s="",n,r,o,a;~(n=t.indexOf("random(",e));)o=t.indexOf(")",n),a=t.charAt(n+7)==="[",r=t.substr(n+7,o-n-7).match(a?Ch:xa),s+=t.substr(e,n-e)+Bh(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),e=o+1;return s+t.substr(e,t.length-e)},Wh=function(t,e,s,n,r){var o=e-t,a=n-s;return Bs(r,function(c){return s+((c-t)/o*a||0)})},iv=function i(t,e,s,n){var r=isNaN(t+e)?0:function(p){return(1-p)*t+p*e};if(!r){var o=Xt(t),a={},c,l,u,h,d;if(s===!0&&(n=1)&&(s=null),o)t={p:t},e={p:e};else if(te(t)&&!te(e)){for(u=[],h=t.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,r=a);return c},xe=function(t,e,s){var n=t.vars,r=n[e],o=Lt,a=t._ctx,c,l,u;if(r)return c=n[e+"Params"],l=n.callbackScope||t,s&&Ms.length&&ro(),a&&(Lt=a),u=c?r.apply(l,c):r.call(l),Lt=o,u},xi=function(t){return Ls(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jt),t.progress()<1&&xe(t,"onInterrupt"),t},Pn,Hh=[],Gh=function(t){if(_c()&&t){t=!t.name&&t.default||t;var e=t.name,s=Vt(t),n=e&&!s&&t.init?function(){this._props=[]}:t,r={init:$i,render:Sc,add:Tc,kill:xv,modifier:vv,rawVars:0},o={targetTest:0,get:0,getSetter:Cc,aliases:{},register:0};if($n(),t!==n){if(ye[e])return;Ie(n,Ie(oo(t,r),o)),hn(n.prototype,hn(r,oo(t,o))),ye[n.prop=e]=n,t.targetTest&&(Rr.push(n),vc[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Oh(e,n),t.register&&t.register(_e,n,fe)}else t&&Hh.push(t)},bt=255,ki={aqua:[0,bt,bt],lime:[0,bt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,bt],navy:[0,0,128],white:[bt,bt,bt],olive:[128,128,0],yellow:[bt,bt,0],orange:[bt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[bt,0,0],pink:[bt,192,203],cyan:[0,bt,bt],transparent:[bt,bt,bt,0]},Qo=function(t,e,s){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(s-e)*t*6:t<.5?s:t*3<2?e+(s-e)*(2/3-t)*6:e)*bt+.5|0},Yh=function(t,e,s){var n=t?_s(t)?[t>>16,t>>8&bt,t&bt]:0:ki.black,r,o,a,c,l,u,h,d,p,_;if(!n){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ki[t])n=ki[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return n=parseInt(t.substr(1,6),16),[n>>16,n>>8&bt,n&bt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),n=[t>>16,t>>8&bt,t&bt]}else if(t.substr(0,3)==="hsl"){if(n=_=t.match(xa),!e)c=+n[0]%360/360,l=+n[1]/100,u=+n[2]/100,o=u<=.5?u*(l+1):u+l-u*l,r=u*2-o,n.length>3&&(n[3]*=1),n[0]=Qo(c+1/3,r,o),n[1]=Qo(c,r,o),n[2]=Qo(c-1/3,r,o);else if(~t.indexOf("="))return n=t.match(wh),s&&n.length<4&&(n[3]=1),n}else n=t.match(xa)||ki.transparent;n=n.map(Number)}return e&&!_&&(r=n[0]/bt,o=n[1]/bt,a=n[2]/bt,h=Math.max(r,o,a),d=Math.min(r,o,a),u=(h+d)/2,h===d?c=l=0:(p=h-d,l=u>.5?p/(2-h-d):p/(h+d),c=h===r?(o-a)/p+(ot&&(s+=v-e),n+=v,y=n-s,w=y-o,(w>0||b)&&(k=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=w+(w>=r?4:r-w),g=1),b||(c=l(f)),g)for(p=0;p=v&&p--},_listeners:a},h}(),$n=function(){return!Xi&&ve.wake()},ft={},ov=/^[\d.\-M][\d.\-,\s]/,av=/["']/g,cv=function(t){for(var e={},s=t.substr(1,t.length-3).split(":"),n=s[0],r=1,o=s.length,a,c,l;r1&&s.config?s.config.apply(null,~t.indexOf("{")?[cv(e[1])]:lv(t).split(",").map(Ph)):ft._CE&&ov.test(t)?ft._CE("",t):s},Xh=function(t){return function(e){return 1-t(1-e)}},Qh=function i(t,e){for(var s=t._first,n;s;)s instanceof ie?i(s,e):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==e&&(s.timeline?i(s.timeline,e):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=e)),s=s._next},nn=function(t,e){return t&&(Vt(t)?t:ft[t]||uv(t))||e},_n=function(t,e,s,n){s===void 0&&(s=function(c){return 1-e(1-c)}),n===void 0&&(n=function(c){return c<.5?e(c*2)/2:1-e((1-c)*2)/2});var r={easeIn:e,easeOut:s,easeInOut:n},o;return de(t,function(a){ft[a]=we[a]=r,ft[o=a.toLowerCase()]=s;for(var c in r)ft[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=ft[a+"."+c]=r[c]}),r},Kh=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Ko=function i(t,e,s){var n=e>=1?e:1,r=(s||(t?.3:.45))/(e<1?e:1),o=r/va*(Math.asin(1/n)||0),a=function(u){return u===1?1:n*Math.pow(2,-10*u)*V1((u-o)*r)+1},c=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Kh(a);return r=va/r,c.config=function(l,u){return i(t,l,u)},c},Jo=function i(t,e){e===void 0&&(e=1.70158);var s=function(o){return o?--o*o*((e+1)*o+e)+1:0},n=t==="out"?s:t==="in"?function(r){return 1-s(1-r)}:Kh(s);return n.config=function(r){return i(t,r)},n};de("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,t){var e=t<5?t+1:t;_n(i+",Power"+(e-1),t?function(s){return Math.pow(s,e)}:function(s){return s},function(s){return 1-Math.pow(1-s,e)},function(s){return s<.5?Math.pow(s*2,e)/2:1-Math.pow((1-s)*2,e)/2})});ft.Linear.easeNone=ft.none=ft.Linear.easeIn;_n("Elastic",Ko("in"),Ko("out"),Ko());(function(i,t){var e=1/t,s=2*e,n=2.5*e,r=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},t.totalDuration=function(s){return arguments.length?(this._dirty=0,Yn(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(s,n){if($n(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(No(this,s),!r._dp||r.parent||Rh(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&Xe(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===Ct||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Dh(this,s,n)),this},t.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Dl(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},t.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Dl(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?Gn(this._tTime,r)+1:1},t.timeScale=function(s,n){if(!arguments.length)return this._rts===-Ct?0:this._rts;if(this._rts===s)return this;var r=this.parent&&this._ts?ao(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ct?0:this._rts,this.totalTime(dr(-Math.abs(this._delay),this._tDur,r),n!==!1),Io(this),H1(this)},t.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):($n(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ct&&(this._tTime-=Ct)))),this):this._ps},t.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Xe(n,this,s-this._delay),this}return this._start},t.endTime=function(s){return this._start+(he(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ao(n.rawTime(s),this):this._tTime:this._tTime},t.revert=function(s){s===void 0&&(s=z1);var n=Jt;return Jt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Jt=n,this},t.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(s):r},t.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Pl(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,Pl(this),n?this.time(n):this}return this._rDelay},t.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},t.seek=function(s,n){return this.totalTime(Se(this,s),he(n))},t.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,he(n))},t.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},t.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},t.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ct,this},t.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r1?(n?(o[s]=n,r&&(o[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete o[s],this):o[s]},t.then=function(s){var n=this;return new Promise(function(r){var o=Vt(s)?s:Ih,a=function(){var l=n.then;n.then=null,Vt(o)&&(o=o(n))&&(o.then||o===n)&&(n.then=l),r(o),n.then=l};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?a():n._prom=a})},t.kill=function(){xi(this)},i}();Ie(Qi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ct,_prom:0,_ps:!1,_rts:1});var ie=function(i){xh(t,i);function t(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=he(s.sortChildren),Nt&&Xe(s.parent||Nt,us(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&Fh(us(r),s.scrollTrigger),r}var e=t.prototype;return e.to=function(n,r,o){return Si(0,arguments,this),this},e.from=function(n,r,o){return Si(1,arguments,this),this},e.fromTo=function(n,r,o,a){return Si(2,arguments,this),this},e.set=function(n,r,o){return r.duration=0,r.parent=this,Ci(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ht(n,r,Se(this,o),1),this},e.call=function(n,r,o){return Xe(this,Ht.delayedCall(0,n,r),o)},e.staggerTo=function(n,r,o,a,c,l,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new Ht(n,o,Se(this,c)),this},e.staggerFrom=function(n,r,o,a,c,l,u){return o.runBackwards=1,Ci(o).immediateRender=he(o.immediateRender),this.staggerTo(n,r,o,a,c,l,u)},e.staggerFromTo=function(n,r,o,a,c,l,u,h){return a.startAt=o,Ci(a).immediateRender=he(a.immediateRender),this.staggerTo(n,r,a,c,l,u,h)},e.render=function(n,r,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=n<=0?0:$t(n),h=this._zTime<0!=n<0&&(this._initted||!l),d,p,_,f,m,v,b,w,g,y,k,T;if(this!==Nt&&u>c&&n>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,n+=this._time-a),d=u,g=this._start,w=this._ts,v=!w,h&&(l||(a=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(k=this._yoyo,m=l+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(m*100+n,r,o);if(d=$t(u%m),u===c?(f=this._repeat,d=l):(f=~~(u/m),f&&f===u/m&&(d=l,f--),d>l&&(d=l)),y=Gn(this._tTime,m),!a&&this._tTime&&y!==f&&this._tTime-y*m-this._dur<=0&&(y=f),k&&f&1&&(d=l-d,T=1),f!==y&&!this._lock){var x=k&&y&1,C=x===(k&&f&1);if(f=a&&n>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,r,o),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=-Ct);break}}p=_}else{p=this._last;for(var O=n<0?n:d;p;){if(_=p._prev,(p._act||O<=p._end)&&p._ts&&b!==p){if(p.parent!==this)return this.render(n,r,o);if(p.render(p._ts>0?(O-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(O-p._start)*p._ts,r,o||Jt&&(p._initted||p._startAt)),d!==this._time||!this._ts&&!v){b=0,_&&(u+=this._zTime=O?-Ct:Ct);break}}p=_}}if(b&&!r&&(this.pause(),b.render(d>=a?0:-Ct)._zTime=d>=a?1:-1,this._ts))return this._start=g,Io(this),this.render(n,r,o);this._onUpdate&&!r&&xe(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(g===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((n||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ls(this,1),!r&&!(n<0&&!a)&&(u||a||!c)&&(xe(this,u===c&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},e.add=function(n,r){var o=this;if(_s(r)||(r=Se(this,r,n)),!(n instanceof Qi)){if(te(n))return n.forEach(function(a){return o.add(a,r)}),this;if(Xt(n))return this.addLabel(n,r);if(Vt(n))n=Ht.delayedCall(0,n);else return this}return this!==n?Xe(this,n,r):this},e.getChildren=function(n,r,o,a){n===void 0&&(n=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Me);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof Ht?r&&c.push(l):(o&&c.push(l),n&&c.push.apply(c,l.getChildren(!0,r,o)))),l=l._next;return c},e.getById=function(n){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===n)return r[o]},e.remove=function(n){return Xt(n)?this.removeLabel(n):Vt(n)?this.killTweensOf(n):(Po(this,n),n===this._recent&&(this._recent=this._last),sn(this))},e.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=$t(ve.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},e.addLabel=function(n,r){return this.labels[n]=Se(this,r),this},e.removeLabel=function(n){return delete this.labels[n],this},e.addPause=function(n,r,o){var a=Ht.delayedCall(0,r||$i,o);return a.data="isPause",this._hasPause=1,Xe(this,a,Se(this,n))},e.removePause=function(n){var r=this._first;for(n=Se(this,n);r;)r._start===n&&r.data==="isPause"&&Ls(r),r=r._next},e.killTweensOf=function(n,r,o){for(var a=this.getTweensOf(n,o),c=a.length;c--;)Cs!==a[c]&&a[c].kill(n,r);return this},e.getTweensOf=function(n,r){for(var o=[],a=De(n),c=this._first,l=_s(r),u;c;)c instanceof Ht?B1(c._targets,a)&&(l?(!Cs||c._initted&&c._ts)&&c.globalTime(0)<=r&&c.globalTime(c.totalDuration())>r:!r||c.isActive())&&o.push(c):(u=c.getTweensOf(a,r)).length&&o.push.apply(o,u),c=c._next;return o},e.tweenTo=function(n,r){r=r||{};var o=this,a=Se(o,n),c=r,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,p,_=Ht.to(o,Ie({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ct,onStart:function(){if(o.pause(),!p){var m=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());_._dur!==m&&Yn(_,m,0,1).render(_._time,!0,!0),p=1}u&&u.apply(_,h||[])}},r));return d?_.render(0):_},e.tweenFromTo=function(n,r,o){return this.tweenTo(r,Ie({startAt:{time:Se(this,n)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(n){return n===void 0&&(n=this._time),Il(this,Se(this,n))},e.previousLabel=function(n){return n===void 0&&(n=this._time),Il(this,Se(this,n),1)},e.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+Ct)},e.shiftChildren=function(n,r,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=n,a._end+=n),a=a._next;if(r)for(l in c)c[l]>=o&&(c[l]+=n);return sn(this)},e.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},e.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),sn(this)},e.totalDuration=function(n){var r=0,o=this,a=o._last,c=Me,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-n:n));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,Xe(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(r-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>r&&a._ts&&(r=a._end),a=l;Yn(o,o===Nt&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(n){if(Nt._ts&&(Dh(Nt,ao(n,Nt)),Ah=ve.frame),ve.frame>=Al){Al+=Te.autoSleep||120;var r=Nt._first;if((!r||!r._ts)&&Te.autoSleep&&ve._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||ve.sleep()}}},t}(Qi);Ie(ie.prototype,{_lock:0,_hasPause:0,_forcing:0});var hv=function(t,e,s,n,r,o,a){var c=new fe(this._pt,t,e,0,1,rd,null,r),l=0,u=0,h,d,p,_,f,m,v,b;for(c.b=s,c.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=Zi(n)),o&&(b=[s,n],o(b,t,e),s=b[0],n=b[1]),d=s.match(Zo)||[];h=Zo.exec(n);)_=h[0],f=n.substring(l,h.index),p?p=(p+1)%5:f.substr(-5)==="rgba("&&(p=1),_!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:f||u===1?f:",",s:m,c:_.charAt(1)==="="?Rn(m,_)-m:parseFloat(_)-m,m:p&&p<4?Math.round:0},l=Zo.lastIndex);return c.c=l")}),g.duration();else{k={};for(x in _)x==="ease"||x==="easeEach"||mv(x,_[x],k,_.easeEach);for(x in k)for(U=k[x].sort(function(G,z){return G.t-z.t}),M=0,y=0;yc-Ct&&!u?c:nl&&(d=l)),v=this._yoyo&&_&1,v&&(g=this._yEase,d=l-d),m=Gn(this._tTime,f),d===a&&!o&&this._initted&&_===m)return this._tTime=h,this;_!==m&&(w&&this._yEase&&Qh(w,v),this.vars.repeatRefresh&&!v&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render($t(f*_),!0).invalidate()._lock=0))}if(!this._initted){if(Lh(this,u?n:d,o,r,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==m))return this;if(l!==this._dur)return this.render(n,r,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(g||this._ease)(d/l),this._from&&(this.ratio=b=1-b),d&&!a&&!r&&!_&&(xe(this,"onStart"),this._tTime!==h))return this;for(p=this._pt;p;)p.r(b,p.d),p=p._next;w&&w.render(n<0?n:!d&&v?-Ct:w._dur*w._ease(d/this._dur),r,o)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(u&&wa(this,n,r,o),xe(this,"onUpdate")),this._repeat&&_!==m&&this.vars.onRepeat&&!r&&this.parent&&xe(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&wa(this,n,!0,!0),(n||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ls(this,1),!r&&!(u&&!a)&&(h||a||v)&&(xe(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},e.resetTo=function(n,r,o,a,c){Xi||ve.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||wc(this,l),u=this._ease(l/this._dur),fv(this,n,r,o,a,u,l,c)?this.resetTo(n,r,o,a,1):(No(this,0),this.parent||Nh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?xi(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,Cs&&Cs.vars.overwrite!==!0)._first||xi(this),this.parent&&o!==this.timeline.totalDuration()&&Yn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=n?De(n):a,l=this._ptLookup,u=this._pt,h,d,p,_,f,m,v;if((!r||r==="all")&&W1(a,c))return r==="all"&&(this._pt=0),xi(this);for(h=this._op=this._op||[],r!=="all"&&(Xt(r)&&(f={},de(r,function(b){return f[b]=1}),r=f),r=pv(a,r)),v=a.length;v--;)if(~c.indexOf(a[v])){d=l[v],r==="all"?(h[v]=r,_=d,p={}):(p=h[v]=h[v]||{},_=r);for(f in _)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&Po(this,m,"_pt"),delete d[f]),p!=="all"&&(p[f]=1)}return this._initted&&!this._pt&&u&&xi(this),this},t.to=function(n,r){return new t(n,r,arguments[2])},t.from=function(n,r){return Si(1,arguments)},t.delayedCall=function(n,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(n,r,o){return Si(2,arguments)},t.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(n,r)},t.killTweensOf=function(n,r,o){return Nt.killTweensOf(n,r,o)},t}(Qi);Ie(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});de("staggerTo,staggerFrom,staggerFromTo",function(i){Ht[i]=function(){var t=new ie,e=Ca.call(arguments,0);return e.splice(i==="staggerFromTo"?5:4,0,0),t[i].apply(t,e)}});var bc=function(t,e,s){return t[e]=s},nd=function(t,e,s){return t[e](s)},_v=function(t,e,s,n){return t[e](n.fp,s)},gv=function(t,e,s){return t.setAttribute(e,s)},Cc=function(t,e){return Vt(t[e])?nd:mc(t[e])&&t.setAttribute?gv:bc},id=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},yv=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},rd=function(t,e){var s=e._pt,n="";if(!t&&e.b)n=e.b;else if(t===1&&e.e)n=e.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*t):Math.round((s.s+s.c*t)*1e4)/1e4)+n,s=s._next;n+=e.c}e.set(e.t,e.p,n,e)},Sc=function(t,e){for(var s=e._pt;s;)s.r(t,s.d),s=s._next},vv=function(t,e,s,n){for(var r=this._pt,o;r;)o=r._next,r.p===n&&r.modifier(t,e,s),r=o},xv=function(t){for(var e=this._pt,s,n;e;)n=e._next,e.p===t&&!e.op||e.op===t?Po(this,e,"_pt"):e.dep||(s=1),e=n;return!s},kv=function(t,e,s,n){n.mSet(t,e,n.m.call(n.tween,s,n.mt),n)},od=function(t){for(var e=t._pt,s,n,r,o;e;){for(s=e._next,n=r;n&&n.pr>e.pr;)n=n._next;(e._prev=n?n._prev:o)?e._prev._next=e:r=e,(e._next=n)?n._prev=e:o=e,e=s}t._pt=r},fe=function(){function i(e,s,n,r,o,a,c,l,u){this.t=s,this.s=r,this.c=o,this.p=n,this.r=a||id,this.d=c||this,this.set=l||bc,this.pr=u||0,this._next=e,e&&(e._prev=this)}var t=i.prototype;return t.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=kv,this.m=s,this.mt=r,this.tween=n},i}();de(xc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return vc[i]=1});we.TweenMax=we.TweenLite=Ht;we.TimelineLite=we.TimelineMax=ie;Nt=new ie({sortChildren:!1,defaults:Hn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Te.stringFilter=Zh;var rn=[],Fr={},Tv=[],Rl=0,wv=0,ta=function(t){return(Fr[t]||Tv).map(function(e){return e()})},Aa=function(){var t=Date.now(),e=[];t-Rl>2&&(ta("matchMediaInit"),rn.forEach(function(s){var n=s.queries,r=s.conditions,o,a,c,l;for(a in n)o=Ee.matchMedia(n[a]).matches,o&&(c=1),o!==r[a]&&(r[a]=o,l=1);l&&(s.revert(),c&&e.push(s))}),ta("matchMediaRevert"),e.forEach(function(s){return s.onMatch(s,function(n){return s.add(null,n)})}),Rl=t,ta("matchMedia"))},ad=function(){function i(e,s){this.selector=s&&Sa(s),this.data=[],this._r=[],this.isReverted=!1,this.id=wv++,e&&this.add(e)}var t=i.prototype;return t.add=function(s,n,r){Vt(s)&&(r=n,n=s,s=Vt);var o=this,a=function(){var l=Lt,u=o.selector,h;return l&&l!==o&&l.data.push(o),r&&(o.selector=Sa(r)),Lt=o,h=n.apply(o,arguments),Vt(h)&&o._r.push(h),Lt=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Vt?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},t.ignore=function(s){var n=Lt;Lt=null,s(this),Lt=n},t.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof Ht&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(s,n){var r=this;if(s?function(){for(var a=r.getTweens(),c=r.data.length,l;c--;)l=r.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=r.data.length;c--;)l=r.data[c],l instanceof ie?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Ht)&&l.revert&&l.revert(s);r._r.forEach(function(u){return u(s,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),n)for(var o=rn.length;o--;)rn[o].id===this.id&&rn.splice(o,1)},t.revert=function(s){this.kill(s||{})},i}(),bv=function(){function i(e){this.contexts=[],this.scope=e}var t=i.prototype;return t.add=function(s,n,r){es(s)||(s={matches:s});var o=new ad(0,r||this.scope),a=o.conditions={},c,l,u;Lt&&!o.selector&&(o.selector=Lt.selector),this.contexts.push(o),n=o.add("onMatch",n),o.queries=s;for(l in s)l==="all"?u=1:(c=Ee.matchMedia(s[l]),c&&(rn.indexOf(o)<0&&rn.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(Aa):c.addEventListener("change",Aa)));return u&&n(o,function(h){return o.add(null,h)}),this},t.revert=function(s){this.kill(s||{})},t.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),co={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),s=0;s1){var n=t.map(function(u){return _e.quickSetter(u,e,s)}),r=n.length;return function(u){for(var h=r;h--;)n[h](u)}}t=t[0]||{};var o=ye[e],a=en(t),c=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(u){var h=new o;Pn._pt=0,h.init(t,s?u+s:u,Pn,0,[t]),h.render(1,h),Pn._pt&&Sc(1,Pn)}:a.set(t,c);return o?l:function(u){return l(t,c,s?u+s:u,a,1)}},quickTo:function(t,e,s){var n,r=_e.to(t,hn((n={},n[e]="+=0.1",n.paused=!0,n),s||{})),o=function(c,l,u){return r.resetTo(e,c,l,u)};return o.tween=r,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=nn(t.ease,Hn.ease)),Ml(Hn,t||{})},config:function(t){return Ml(Te,t||{})},registerEffect:function(t){var e=t.name,s=t.effect,n=t.plugins,r=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach(function(a){return a&&!ye[a]&&!we[a]&&Yi(e+" effect requires "+a+" plugin.")}),Xo[e]=function(a,c,l){return s(De(a),Ie(c||{},r),l)},o&&(ie.prototype[e]=function(a,c,l){return this.add(Xo[e](a,es(c)?c:(l=c)&&{},this),l)})},registerEase:function(t,e){ft[t]=nn(e)},parseEase:function(t,e){return arguments.length?nn(t,e):ft},getById:function(t){return Nt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var s=new ie(t),n,r;for(s.smoothChildTiming=he(t.smoothChildTiming),Nt.remove(s),s._dp=0,s._time=s._tTime=Nt._time,n=Nt._first;n;)r=n._next,(e||!(!n._dur&&n instanceof Ht&&n.vars.onComplete===n._targets[0]))&&Xe(s,n,n._start-n._delay),n=r;return Xe(Nt,s,0),s},context:function(t,e){return t?new ad(t,e):Lt},matchMedia:function(t){return new bv(t)},matchMediaRefresh:function(){return rn.forEach(function(t){var e=t.conditions,s,n;for(n in e)e[n]&&(e[n]=!1,s=1);s&&t.revert()})||Aa()},addEventListener:function(t,e){var s=Fr[t]||(Fr[t]=[]);~s.indexOf(e)||s.push(e)},removeEventListener:function(t,e){var s=Fr[t],n=s&&s.indexOf(e);n>=0&&s.splice(n,1)},utils:{wrap:sv,wrapYoyo:nv,distribute:jh,random:Bh,snap:zh,normalize:ev,getUnit:Kt,clamp:Q1,splitColor:Yh,toArray:De,selector:Sa,mapRange:Wh,pipe:J1,unitize:tv,interpolate:iv,shuffle:Uh},install:Eh,effects:Xo,ticker:ve,updateRoot:ie.updateRoot,plugins:ye,globalTimeline:Nt,core:{PropTween:fe,globals:Oh,Tween:Ht,Timeline:ie,Animation:Qi,getCache:en,_removeLinkedListItem:Po,reverting:function(){return Jt},context:function(t){return t&&Lt&&(Lt.data.push(t),t._ctx=Lt),Lt},suppressOverwrites:function(t){return pc=t}}};de("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return co[i]=Ht[i]});ve.add(ie.updateRoot);Pn=co.to({},{duration:0});var Cv=function(t,e){for(var s=t._pt;s&&s.p!==e&&s.op!==e&&s.fp!==e;)s=s._next;return s},Sv=function(t,e){var s=t._targets,n,r,o;for(n in e)for(r=s.length;r--;)o=t._ptLookup[r][n],o&&(o=o.d)&&(o._pt&&(o=Cv(o,n)),o&&o.modifier&&o.modifier(e[n],t,s[r],n))},ea=function(t,e){return{name:t,rawVars:1,init:function(n,r,o){o._onInit=function(a){var c,l;if(Xt(r)&&(c={},de(r,function(u){return c[u]=1}),r=c),e){c={};for(l in r)c[l]=e(r[l]);r=c}Sv(a,r)}}}},_e=co.registerPlugin({name:"attr",init:function(t,e,s,n,r){var o,a,c;this.tween=s;for(o in e)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",e[o],n,r,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,e){for(var s=e._pt;s;)Jt?s.set(s.t,s.p,s.b,s):s.r(t,s.d),s=s._next}},{name:"endArray",init:function(t,e){for(var s=e.length;s--;)this.add(t,s,t[s]||0,e[s],0,0,0,0,0,1)}},ea("roundProps",Ea),ea("modifiers"),ea("snap",zh))||co;Ht.version=ie.version=_e.version="3.12.4";Sh=1;_c()&&$n();ft.Power0;ft.Power1;ft.Power2;ft.Power3;ft.Power4;ft.Linear;ft.Quad;ft.Cubic;ft.Quart;ft.Quint;ft.Strong;ft.Elastic;ft.Back;ft.SteppedEase;ft.Bounce;ft.Sine;ft.Expo;ft.Circ;/*! * CSSPlugin 3.12.4 * https://gsap.com * @@ -356,7 +356,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Il,Ss,Rn,Sc,Qs,Rl,Ec,wv=function(){return typeof window<"u"},gs={},$s=180/Math.PI,Fn=Math.PI/180,Cn=Math.atan2,Fl=1e8,Oc=/([A-Z])/g,bv=/(left|right|width|margin|padding|x)/i,Cv=/[\s,\(]\S/,Qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Aa=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Sv=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ev=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Ov=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},od=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ad=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Av=function(t,e,s){return t.style[e]=s},Mv=function(t,e,s){return t.style.setProperty(e,s)},Dv=function(t,e,s){return t._gsap[e]=s},Pv=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Nv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Iv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",pe=Rt+"Origin",Rv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in gs&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Qe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=hs(n,a)}):this.tfm[t]=o.x?o[t]:hs(n,t),t===pe&&(this.tfm.zOrigin=o.zOrigin);else return Qe.transform.split(",").forEach(function(a){return i.call(s,a,e)});if(this.props.indexOf(Rt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(pe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},cd=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Fv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Ll[o]:"")+t},Da=function(){wv()&&window.document&&(Il=window,Ss=Il.document,Rn=Ss.documentElement,Qs=Ma("div")||{style:{}},Ma("div"),Rt=$n(Rt),pe=Rt+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ud=!!$n("perspective"),Ec=_e.core.reverting,Sc=1)},ea=function i(t){var e=Ma("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,o;if(Rn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Rn.removeChild(e),this.style.cssText=r,o},Vl=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},hd=function(t){var e;try{e=t.getBBox()}catch{e=ea.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ea||(e=ea.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Vl(t,["x","cx","x1"])||0,y:+Vl(t,["y","cy","y1"])||0,width:0,height:0}:e},dd=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&hd(t))},dn=function(t,e){if(e){var s=t.style,n;e in gs&&e!==pe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Oc,"-$1").toLowerCase())):s.removeAttribute(e)}},Es=function(t,e,s,n,r,o){var a=new fe(t._pt,e,s,0,1,o?ad:od);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},Ul={deg:1,rad:1,turn:1},Lv={grid:1,flex:1},Vs=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Qs.style,c=bv.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=n==="px",p=n==="%",_,f,m,v;if(n===o||!r||Ul[n]||Ul[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&dd(t),(p||o==="%")&&(gs[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],zt(p?r/_*h:r/100*_);if(a[c?"width":"height"]=h+(d?o:n),f=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===Ss||!f.appendChild)&&(f=Ss.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ve.time&&!m.uncache)return zt(r/m.width*h);if(p&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=h+n,_=t[u],b?t.style[e]=b:dn(t,e)}else(p||o==="%")&&!Lv[Je(f,"display")]&&(a.position=Je(t,"position")),f===t&&(a.position="static"),f.appendChild(Qs),_=Qs[u],f.removeChild(Qs),a.position="absolute";return c&&p&&(m=en(f),m.time=ve.time,m.width=f[u]),zt(d?_*r/h:_&&r?h/_*r:0)},hs=function(t,e,s,n){var r;return Sc||Da(),e in Qe&&e!=="transform"&&(e=Qe[e],~e.indexOf(",")&&(e=e.split(",")[0])),gs[e]&&e!=="transform"?(r=Ki(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:lo(Je(t,pe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=co[e]&&co[e](t,e,s)||Je(t,e)||Oh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Vs(t,e,r,s)+s:r},Vv=function(t,e,s,n){if(!s||s==="none"){var r=$n(e,t,1),o=r&&Je(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Je(t,"borderTopColor"))}var a=new fe(this._pt,t.style,e,0,1,nd),c=0,l=0,u,h,d,p,_,f,m,v,b,w,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Je(t,e)||n,f?t.style[e]=f:dn(t,e)),u=[s,n],Gh(u),s=u[0],n=u[1],d=s.match(Mn)||[],y=n.match(Mn)||[],y.length){for(;h=Mn.exec(n);)m=h[0],b=n.substring(c,h.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=In(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Mn.lastIndex-w.length,w||(w=w||Te.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Vs(t,e,f,w)||0),a._pt={_next:a._pt,p:b||l===1?b:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],gs[a]&&(c=1,a=a==="transformOrigin"?pe:Rt),dn(s,a);c&&(dn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ki(s,1),o.uncache=1,cd(n)))}},co={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new fe(t._pt,e,s,0,0,zv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Qi=[1,0,0,1,0,0],fd={},pd=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},jl=function(t){var e=Je(t,Rt);return pd(e)?Qi:e.substr(7).match(xh).map(zt)},Ac=function(t,e){var s=t._gsap||en(t),n=t.style,r=jl(t),o,a,c,l;return s.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?Qi:r):(r===Qi&&!t.offsetParent&&t!==Rn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Rn.appendChild(t)),r=jl(t),c?n.display=c:dn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Rn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Pa=function(t,e,s,n,r,o){var a=t._gsap,c=r||Ac(t,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],f=c[2],m=c[3],v=c[4],b=c[5],w=e.split(" "),g=parseFloat(w[0])||0,y=parseFloat(w[1])||0,x,T,k,C;s?c!==Qi&&(T=p*m-_*f)&&(k=g*(m/T)+y*(-f/T)+(f*b-m*v)/T,C=g*(-_/T)+y*(p/T)-(p*b-_*v)/T,g=k,y=C):(x=hd(t),g=x.x+(~w[0].indexOf("%")?g/100*x.width:g),y=x.y+(~(w[1]||w[0]).indexOf("%")?y/100*x.height:y)),n||n!==!1&&a.smooth?(v=g-l,b=y-u,a.xOffset=h+(v*p+b*f)-v,a.yOffset=d+(v*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[pe]="0px 0px",o&&(Es(o,a,"xOrigin",l,g),Es(o,a,"yOrigin",u,y),Es(o,a,"xOffset",h,a.xOffset),Es(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ki=function(t,e){var s=t._gsap||new Qh(t);if("x"in s&&!e&&!s.uncache)return s;var n=t.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(t),l=Je(t,pe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,x,T,k,C,M,R,P,U,W,G,Y,j,z,X,Q,et,I,F,S,D;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&dd(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(n[Rt]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Rt]!=="none"?c[Rt]:"")),n.scale=n.rotate=n.translate="none"),T=Ac(t,s.svg),s.svg&&(s.uncache?(z=t.getBBox(),l=s.xOrigin-z.x+"px "+(s.yOrigin-z.y)+"px",j=""):j=!e&&t.getAttribute("data-svg-origin"),Pa(t,j||l,!!j||s.originIsAbsolute,s.smooth!==!1,T)),y=s.xOrigin||0,x=s.yOrigin||0,T!==Qi&&(R=T[0],P=T[1],U=T[2],W=T[3],u=G=T[4],h=Y=T[5],T.length===6?(p=Math.sqrt(R*R+P*P),_=Math.sqrt(W*W+U*U),f=R||P?Cn(P,R)*$s:0,b=U||W?Cn(U,W)*$s+f:0,b&&(_*=Math.abs(Math.cos(b*Fn))),s.svg&&(u-=y-(y*R+x*U),h-=x-(y*P+x*W))):(D=T[6],F=T[7],Q=T[8],et=T[9],I=T[10],S=T[11],u=T[12],h=T[13],d=T[14],k=Cn(D,I),m=k*$s,k&&(C=Math.cos(-k),M=Math.sin(-k),j=G*C+Q*M,z=Y*C+et*M,X=D*C+I*M,Q=G*-M+Q*C,et=Y*-M+et*C,I=D*-M+I*C,S=F*-M+S*C,G=j,Y=z,D=X),k=Cn(-U,I),v=k*$s,k&&(C=Math.cos(-k),M=Math.sin(-k),j=R*C-Q*M,z=P*C-et*M,X=U*C-I*M,S=W*M+S*C,R=j,P=z,U=X),k=Cn(P,R),f=k*$s,k&&(C=Math.cos(k),M=Math.sin(k),j=R*C+P*M,z=G*C+Y*M,P=P*C-R*M,Y=Y*C-G*M,R=j,G=z),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=zt(Math.sqrt(R*R+P*P+U*U)),_=zt(Math.sqrt(Y*Y+D*D)),k=Cn(G,Y),b=Math.abs(k)>2e-4?k*$s:0,g=S?1/(S<0?-S:S):0),s.svg&&(j=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!pd(Je(t,Rt)),j&&t.setAttribute("transform",j))),Math.abs(b)>90&&Math.abs(b)<270&&(r?(p*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||s.uncache,s.x=u-((s.xPercent=u&&(!e&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!e&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=zt(p),s.scaleY=zt(_),s.rotation=zt(f)+a,s.rotationX=zt(m)+a,s.rotationY=zt(v)+a,s.skewX=b+a,s.skewY=w+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[pe]=lo(l)),s.xOffset=s.yOffset=0,s.force3D=Te.force3D,s.renderTransform=s.svg?Bv:ud?md:jv,s.uncache=0,s},lo=function(t){return(t=t.split(" "))[0]+" "+t[1]},sa=function(t,e,s){var n=Kt(e);return zt(parseFloat(e)+parseFloat(Vs(t,"x",s+"px",n)))+n},jv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,md(t,e)},Ys="0deg",gi="0px",Gs=") ",md=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,p=s.skewY,_=s.scaleX,f=s.scaleY,m=s.transformPerspective,v=s.force3D,b=s.target,w=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(w&&(h!==Ys||u!==Ys)){var x=parseFloat(u)*Fn,T=Math.sin(x),k=Math.cos(x),C;x=parseFloat(h)*Fn,C=Math.cos(x),o=sa(b,o,T*C*-w),a=sa(b,a,-Math.sin(x)*-w),c=sa(b,c,k*C*-w+w)}m!==gi&&(g+="perspective("+m+Gs),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==gi||a!==gi||c!==gi)&&(g+=c!==gi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Gs),l!==Ys&&(g+="rotate("+l+Gs),u!==Ys&&(g+="rotateY("+u+Gs),h!==Ys&&(g+="rotateX("+h+Gs),(d!==Ys||p!==Ys)&&(g+="skew("+d+", "+p+Gs),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Gs),b.style[Rt]=g||"translate(0, 0)"},Bv=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,p=s.target,_=s.xOrigin,f=s.yOrigin,m=s.xOffset,v=s.yOffset,b=s.forceCSS,w=parseFloat(o),g=parseFloat(a),y,x,T,k,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Fn,l*=Fn,y=Math.cos(c)*h,x=Math.sin(c)*h,T=Math.sin(c-l)*-d,k=Math.cos(c-l)*d,l&&(u*=Fn,C=Math.tan(l-u),C=Math.sqrt(1+C*C),T*=C,k*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,x*=C)),y=zt(y),x=zt(x),T=zt(T),k=zt(k)):(y=h,k=d,x=T=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Vs(p,"x",o,"px"),g=Vs(p,"y",a,"px")),(_||f||m||v)&&(w=zt(w+_-(_*y+f*T)+m),g=zt(g+f-(_*x+f*k)+v)),(n||r)&&(C=p.getBBox(),w=zt(w+n/100*C.width),g=zt(g+r/100*C.height)),C="matrix("+y+","+x+","+T+","+k+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},qv=function(t,e,s,n,r){var o=360,a=Zt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?$s:1),l=c-n,u=n+l+"deg",h,d;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Fl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Fl)%o-~~(l/o)*o)),t._pt=d=new fe(t._pt,e,s,n,l,Sv),d.e=u,d.u="deg",t._props.push(s),d},Bl=function(t,e){for(var s in e)t[s]=e[s];return t},Wv=function(t,e,s){var n=Bl({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,p,_;n.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Rt]=e,a=Ki(s,1),dn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ki(s,1),o[Rt]=l);for(c in gs)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Vs(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new fe(t._pt,a,c,h,d-h,Aa),t._pt.u=_||0,t._props.push(c));Bl(a,n)};de("padding,margin,Width,Radius",function(i,t){var e="Top",s="Right",n="Bottom",r="Left",o=(t<3?[e,s,n,r]:[e+r,e+s,n+s,n+r]).map(function(a){return t<2?i+a:"border"+a+i});co[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return hs(a,_,l)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(u+"").split(" "),p={},o.forEach(function(_,f){return p[_]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(c,p,h)}});var _d={name:"css",register:Da,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,s,n,r){var o=this._props,a=t.style,c=s.vars.startAt,l,u,h,d,p,_,f,m,v,b,w,g,y,x,T,k;Sc||Da(),this.styles=this.styles||ld(t),k=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ye[f]&&Kh(f,e,s,n,t,r)))){if(p=typeof u,_=co[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=$i(u)),_)_(this,t,f,u,s)&&(T=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ds.lastIndex=0,Ds.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Vs(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),k.push(f,0,a[f]);else if(p!=="undefined"){if(c&&f in c?(l=typeof c[f]=="function"?c[f].call(s,n,t,r):c[f],Zt(l)&&~l.indexOf("random(")&&(l=$i(l)),Kt(l+"")||l==="auto"||(l+=Te.units[f]||Kt(hs(t,f))||""),(l+"").charAt(1)==="="&&(l=hs(t,f))):l=hs(t,f),d=parseFloat(l),b=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),h=parseFloat(u),f in Qe&&(f==="autoAlpha"&&(d===1&&hs(t,"visibility")==="hidden"&&h&&(d=0),k.push("visibility",0,a.visibility),Es(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Qe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in gs,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ki(t,e.parseTransform),x=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new fe(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new fe(this._pt,y,"scaleY",y.scaleY,(b?In(y.scaleY,b+h):h)-y.scaleY||0,Aa),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){k.push(pe,0,a[pe]),u=Uv(u),y.svg?Pa(t,u,0,x,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Es(this,y,"zOrigin",y.zOrigin,v),Es(this,a,f,lo(l),lo(u)));continue}else if(f==="svgOrigin"){Pa(t,u,1,x,0,this);continue}else if(f in fd){qv(this,y,f,d,b?In(d,b+u):u);continue}else if(f==="smoothOrigin"){Es(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){Wv(this,u,t);continue}}else f in a||(f=$n(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Cv.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in Te.units?Te.units[f]:m),m!==v&&(d=Vs(t,f,l,v)),this._pt=new fe(this._pt,w?y:a,f,d,(b?In(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Ov:Aa),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=Ev);else if(f in a)Vv.call(this,t,f,l,b?b+u:u);else if(f in t)this.add(t,f,l||t[f],b?b+u:u,n,r);else if(f!=="parseTransform"){gc(f,u);continue}w||(f in a?k.push(f,0,a[f]):k.push(f,1,l||t[f])),o.push(f)}}T&&id(this)},render:function(t,e){if(e.tween._time||!Ec())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:hs,aliases:Qe,getSetter:function(t,e,s){var n=Qe[e];return n&&n.indexOf(",")<0&&(e=n),e in gs&&e!==pe&&(t._gsap.x||hs(t,"x"))?s&&Rl===s?e==="scale"?Pv:Dv:(Rl=s||{})&&(e==="scale"?Nv:Iv):t.style&&!pc(t.style[e])?Av:~e.indexOf("-")?Mv:bc(t,e)},core:{_removeProperty:dn,_getMatrix:Ac}};_e.utils.checkPrefix=$n;_e.core.getStyleSaver=ld;(function(i,t,e,s){var n=de(i+","+t+","+e,function(r){gs[r]=1});de(t,function(r){Te.units[r]="deg",fd[r]=1}),Qe[n[13]]=i+","+t,de(s,function(r){var o=r.split(":");Qe[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");de("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Te.units[i]="px"});_e.registerPlugin(_d);var gd=_e.registerPlugin(_d)||_e;gd.core.Tween;const ql=new at(0,0,0),yd=i=>{const{isSelected:t,lineWidth:e,visible:s}=i,n=A.useRef(null);A.useEffect(()=>{const o=n.current;o&&gd.fromTo(o.material,{linewidth:5},{linewidth:t?2:e,duration:1})},[t,e,n]);const r=new _o(16711680);return L.jsx(zd,{ref:n,color:r,isLine2:!0,lineWidth:2,opacity:.5,points:[ql,ql],visible:s})};yd.displayName="LineComponent";const Hv=A.memo(yd),vd=A.memo(()=>{const i=Us(s=>s.dataInitial),{showSelectionGraph:t}=oe(s=>s),e=We();return console.log("connection"),L.jsx("group",{name:"simulation-3d-group__connections",children:i==null?void 0:i.links.map(s=>{const n=(e==null?void 0:e.ref_id)===s.source||(e==null?void 0:e.ref_id)===s.target,r=e?0:1;return L.jsx(Hv,{isSelected:n,lineWidth:r,visible:!t},s.ref_id)})})});vd.displayName="Connections";const Yv=({color:i,scale:t})=>L.jsx(L.Fragment,{children:L.jsx(su,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(ou,{color:i,scale:t})})}),Gv=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],$v=()=>{const i=We(),t=Us(r=>r.dataInitial),{normalizedSchemasByType:e}=Na(r=>r),s=Xl(),n=A.useMemo(()=>new Af(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(Jf,{geometry:n,limit:1e3,range:1e3,visible:!i,children:[L.jsx("meshBasicMaterial",{}),t==null?void 0:t.nodes.map(r=>{var c;const a=((c=e[r.node_type])==null?void 0:c.primary_color)??(Gv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(Yv,{color:a,scale:r.scale||1},r.ref_id)})]})})},Xv=A.memo($v),Zv=qt(ys)` +*/var Fl,Ss,Fn,Ec,Qs,Ll,Oc,Ev=function(){return typeof window<"u"},gs={},$s=180/Math.PI,Ln=Math.PI/180,Cn=Math.atan2,Vl=1e8,Ac=/([A-Z])/g,Ov=/(left|right|width|margin|padding|x)/i,Av=/[\s,\(]\S/,Qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ma=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Mv=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Dv=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Pv=function(t,e){var s=e.s+e.c*t;e.set(e.t,e.p,~~(s+(s<0?-.5:.5))+e.u,e)},cd=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ld=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Iv=function(t,e,s){return t.style[e]=s},Nv=function(t,e,s){return t.style.setProperty(e,s)},Rv=function(t,e,s){return t._gsap[e]=s},Fv=function(t,e,s){return t._gsap.scaleX=t._gsap.scaleY=s},Lv=function(t,e,s,n,r){var o=t._gsap;o.scaleX=o.scaleY=s,o.renderTransform(r,o)},Vv=function(t,e,s,n,r){var o=t._gsap;o[e]=s,o.renderTransform(r,o)},Rt="transform",pe=Rt+"Origin",Uv=function i(t,e){var s=this,n=this.target,r=n.style,o=n._gsap;if(t in gs&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Qe[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return s.tfm[a]=hs(n,a)}):this.tfm[t]=o.x?o[t]:hs(n,t),t===pe&&(this.tfm.zOrigin=o.zOrigin);else return Qe.transform.split(",").forEach(function(a){return i.call(s,a,e)});if(this.props.indexOf(Rt)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(pe,e,"")),t=Rt}(r||e)&&this.props.push(t,e,r[t])},ud=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},jv=function(){var t=this.props,e=this.target,s=e.style,n=e._gsap,r,o;for(r=0;r=0?Ul[o]:"")+t},Pa=function(){Ev()&&window.document&&(Fl=window,Ss=Fl.document,Fn=Ss.documentElement,Qs=Da("div")||{style:{}},Da("div"),Rt=Zn(Rt),pe=Rt+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",dd=!!Zn("perspective"),Oc=_e.core.reverting,Ec=1)},sa=function i(t){var e=Da("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,o;if(Fn.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Fn.removeChild(e),this.style.cssText=r,o},jl=function(t,e){for(var s=e.length;s--;)if(t.hasAttribute(e[s]))return t.getAttribute(e[s])},fd=function(t){var e;try{e=t.getBBox()}catch{e=sa.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===sa||(e=sa.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+jl(t,["x","cx","x1"])||0,y:+jl(t,["y","cy","y1"])||0,width:0,height:0}:e},pd=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&fd(t))},dn=function(t,e){if(e){var s=t.style,n;e in gs&&e!==pe&&(e=Rt),s.removeProperty?(n=e.substr(0,2),(n==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),s.removeProperty(n==="--"?e:e.replace(Ac,"-$1").toLowerCase())):s.removeAttribute(e)}},Es=function(t,e,s,n,r,o){var a=new fe(t._pt,e,s,0,1,o?ld:cd);return t._pt=a,a.b=n,a.e=r,t._props.push(s),a},zl={deg:1,rad:1,turn:1},zv={grid:1,flex:1},Vs=function i(t,e,s,n){var r=parseFloat(s)||0,o=(s+"").trim().substr((r+"").length)||"px",a=Qs.style,c=Ov.test(e),l=t.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=n==="px",p=n==="%",_,f,m,v;if(n===o||!r||zl[n]||zl[o])return r;if(o!=="px"&&!d&&(r=i(t,e,s,"px")),v=t.getCTM&&pd(t),(p||o==="%")&&(gs[e]||~e.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[u],zt(p?r/_*h:r/100*_);if(a[c?"width":"height"]=h+(d?o:n),f=~e.indexOf("adius")||n==="em"&&t.appendChild&&!l?t:t.parentNode,v&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===Ss||!f.appendChild)&&(f=Ss.body),m=f._gsap,m&&p&&m.width&&c&&m.time===ve.time&&!m.uncache)return zt(r/m.width*h);if(p&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=h+n,_=t[u],b?t.style[e]=b:dn(t,e)}else(p||o==="%")&&!zv[Je(f,"display")]&&(a.position=Je(t,"position")),f===t&&(a.position="static"),f.appendChild(Qs),_=Qs[u],f.removeChild(Qs),a.position="absolute";return c&&p&&(m=en(f),m.time=ve.time,m.width=f[u]),zt(d?_*r/h:_&&r?h/_*r:0)},hs=function(t,e,s,n){var r;return Ec||Pa(),e in Qe&&e!=="transform"&&(e=Qe[e],~e.indexOf(",")&&(e=e.split(",")[0])),gs[e]&&e!=="transform"?(r=Ji(t,n),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:uo(Je(t,pe))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=lo[e]&&lo[e](t,e,s)||Je(t,e)||Mh(t,e)||(e==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?Vs(t,e,r,s)+s:r},Bv=function(t,e,s,n){if(!s||s==="none"){var r=Zn(e,t,1),o=r&&Je(t,r,1);o&&o!==s?(e=r,s=o):e==="borderColor"&&(s=Je(t,"borderTopColor"))}var a=new fe(this._pt,t.style,e,0,1,rd),c=0,l=0,u,h,d,p,_,f,m,v,b,w,g,y;if(a.b=s,a.e=n,s+="",n+="",n==="auto"&&(f=t.style[e],t.style[e]=n,n=Je(t,e)||n,f?t.style[e]=f:dn(t,e)),u=[s,n],Zh(u),s=u[0],n=u[1],d=s.match(Dn)||[],y=n.match(Dn)||[],y.length){for(;h=Dn.exec(n);)m=h[0],b=n.substring(c,h.index),_?_=(_+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(_=1),m!==(f=d[l++]||"")&&(p=parseFloat(f)||0,g=f.substr((p+"").length),m.charAt(1)==="="&&(m=Rn(p,m)+g),v=parseFloat(m),w=m.substr((v+"").length),c=Dn.lastIndex-w.length,w||(w=w||Te.units[e]||g,c===n.length&&(n+=w,a.e+=w)),g!==w&&(p=Vs(t,e,f,w)||0),a._pt={_next:a._pt,p:b||l===1?b:",",s:p,c:v-p,m:_&&_<4||e==="zIndex"?Math.round:0});a.c=c-1;)a=r[l],gs[a]&&(c=1,a=a==="transformOrigin"?pe:Rt),dn(s,a);c&&(dn(s,Rt),o&&(o.svg&&s.removeAttribute("transform"),Ji(s,1),o.uncache=1,ud(n)))}},lo={clearProps:function(t,e,s,n,r){if(r.data!=="isFromStart"){var o=t._pt=new fe(t._pt,e,s,0,0,Wv);return o.u=n,o.pr=-10,o.tween=r,t._props.push(s),1}}},Ki=[1,0,0,1,0,0],md={},_d=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ql=function(t){var e=Je(t,Rt);return _d(e)?Ki:e.substr(7).match(wh).map(zt)},Mc=function(t,e){var s=t._gsap||en(t),n=t.style,r=ql(t),o,a,c,l;return s.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,r=[c.a,c.b,c.c,c.d,c.e,c.f],r.join(",")==="1,0,0,1,0,0"?Ki:r):(r===Ki&&!t.offsetParent&&t!==Fn&&!s.svg&&(c=n.display,n.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(l=1,a=t.nextElementSibling,Fn.appendChild(t)),r=ql(t),c?n.display=c:dn(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):Fn.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Ia=function(t,e,s,n,r,o){var a=t._gsap,c=r||Mc(t,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],f=c[2],m=c[3],v=c[4],b=c[5],w=e.split(" "),g=parseFloat(w[0])||0,y=parseFloat(w[1])||0,k,T,x,C;s?c!==Ki&&(T=p*m-_*f)&&(x=g*(m/T)+y*(-f/T)+(f*b-m*v)/T,C=g*(-_/T)+y*(p/T)-(p*b-_*v)/T,g=x,y=C):(k=fd(t),g=k.x+(~w[0].indexOf("%")?g/100*k.width:g),y=k.y+(~(w[1]||w[0]).indexOf("%")?y/100*k.height:y)),n||n!==!1&&a.smooth?(v=g-l,b=y-u,a.xOffset=h+(v*p+b*f)-v,a.yOffset=d+(v*_+b*m)-b):a.xOffset=a.yOffset=0,a.xOrigin=g,a.yOrigin=y,a.smooth=!!n,a.origin=e,a.originIsAbsolute=!!s,t.style[pe]="0px 0px",o&&(Es(o,a,"xOrigin",l,g),Es(o,a,"yOrigin",u,y),Es(o,a,"xOffset",h,a.xOffset),Es(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",g+" "+y)},Ji=function(t,e){var s=t._gsap||new Jh(t);if("x"in s&&!e&&!s.uncache)return s;var n=t.style,r=s.scaleX<0,o="px",a="deg",c=getComputedStyle(t),l=Je(t,pe)||"0",u,h,d,p,_,f,m,v,b,w,g,y,k,T,x,C,O,I,M,U,W,Y,G,z,j,Z,Q,et,R,F,S,P;return u=h=d=f=m=v=b=w=g=0,p=_=1,s.svg=!!(t.getCTM&&pd(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(n[Rt]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Rt]!=="none"?c[Rt]:"")),n.scale=n.rotate=n.translate="none"),T=Mc(t,s.svg),s.svg&&(s.uncache?(j=t.getBBox(),l=s.xOrigin-j.x+"px "+(s.yOrigin-j.y)+"px",z=""):z=!e&&t.getAttribute("data-svg-origin"),Ia(t,z||l,!!z||s.originIsAbsolute,s.smooth!==!1,T)),y=s.xOrigin||0,k=s.yOrigin||0,T!==Ki&&(I=T[0],M=T[1],U=T[2],W=T[3],u=Y=T[4],h=G=T[5],T.length===6?(p=Math.sqrt(I*I+M*M),_=Math.sqrt(W*W+U*U),f=I||M?Cn(M,I)*$s:0,b=U||W?Cn(U,W)*$s+f:0,b&&(_*=Math.abs(Math.cos(b*Ln))),s.svg&&(u-=y-(y*I+k*U),h-=k-(y*M+k*W))):(P=T[6],F=T[7],Q=T[8],et=T[9],R=T[10],S=T[11],u=T[12],h=T[13],d=T[14],x=Cn(P,R),m=x*$s,x&&(C=Math.cos(-x),O=Math.sin(-x),z=Y*C+Q*O,j=G*C+et*O,Z=P*C+R*O,Q=Y*-O+Q*C,et=G*-O+et*C,R=P*-O+R*C,S=F*-O+S*C,Y=z,G=j,P=Z),x=Cn(-U,R),v=x*$s,x&&(C=Math.cos(-x),O=Math.sin(-x),z=I*C-Q*O,j=M*C-et*O,Z=U*C-R*O,S=W*O+S*C,I=z,M=j,U=Z),x=Cn(M,I),f=x*$s,x&&(C=Math.cos(x),O=Math.sin(x),z=I*C+M*O,j=Y*C+G*O,M=M*C-I*O,G=G*C-Y*O,I=z,Y=j),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,v=180-v),p=zt(Math.sqrt(I*I+M*M+U*U)),_=zt(Math.sqrt(G*G+P*P)),x=Cn(Y,G),b=Math.abs(x)>2e-4?x*$s:0,g=S?1/(S<0?-S:S):0),s.svg&&(z=t.getAttribute("transform"),s.forceCSS=t.setAttribute("transform","")||!_d(Je(t,Rt)),z&&t.setAttribute("transform",z))),Math.abs(b)>90&&Math.abs(b)<270&&(r?(p*=-1,b+=f<=0?180:-180,f+=f<=0?180:-180):(_*=-1,b+=b<=0?180:-180)),e=e||s.uncache,s.x=u-((s.xPercent=u&&(!e&&s.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!e&&s.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=zt(p),s.scaleY=zt(_),s.rotation=zt(f)+a,s.rotationX=zt(m)+a,s.rotationY=zt(v)+a,s.skewX=b+a,s.skewY=w+a,s.transformPerspective=g+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!e&&s.zOrigin||0)&&(n[pe]=uo(l)),s.xOffset=s.yOffset=0,s.force3D=Te.force3D,s.renderTransform=s.svg?Gv:dd?gd:Hv,s.uncache=0,s},uo=function(t){return(t=t.split(" "))[0]+" "+t[1]},na=function(t,e,s){var n=Kt(e);return zt(parseFloat(e)+parseFloat(Vs(t,"x",s+"px",n)))+n},Hv=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,gd(t,e)},Gs="0deg",yi="0px",Ys=") ",gd=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,p=s.skewY,_=s.scaleX,f=s.scaleY,m=s.transformPerspective,v=s.force3D,b=s.target,w=s.zOrigin,g="",y=v==="auto"&&t&&t!==1||v===!0;if(w&&(h!==Gs||u!==Gs)){var k=parseFloat(u)*Ln,T=Math.sin(k),x=Math.cos(k),C;k=parseFloat(h)*Ln,C=Math.cos(k),o=na(b,o,T*C*-w),a=na(b,a,-Math.sin(k)*-w),c=na(b,c,x*C*-w+w)}m!==yi&&(g+="perspective("+m+Ys),(n||r)&&(g+="translate("+n+"%, "+r+"%) "),(y||o!==yi||a!==yi||c!==yi)&&(g+=c!==yi||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Ys),l!==Gs&&(g+="rotate("+l+Ys),u!==Gs&&(g+="rotateY("+u+Ys),h!==Gs&&(g+="rotateX("+h+Ys),(d!==Gs||p!==Gs)&&(g+="skew("+d+", "+p+Ys),(_!==1||f!==1)&&(g+="scale("+_+", "+f+Ys),b.style[Rt]=g||"translate(0, 0)"},Gv=function(t,e){var s=e||this,n=s.xPercent,r=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,p=s.target,_=s.xOrigin,f=s.yOrigin,m=s.xOffset,v=s.yOffset,b=s.forceCSS,w=parseFloat(o),g=parseFloat(a),y,k,T,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=Ln,l*=Ln,y=Math.cos(c)*h,k=Math.sin(c)*h,T=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=Ln,C=Math.tan(l-u),C=Math.sqrt(1+C*C),T*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,k*=C)),y=zt(y),k=zt(k),T=zt(T),x=zt(x)):(y=h,x=d,k=T=0),(w&&!~(o+"").indexOf("px")||g&&!~(a+"").indexOf("px"))&&(w=Vs(p,"x",o,"px"),g=Vs(p,"y",a,"px")),(_||f||m||v)&&(w=zt(w+_-(_*y+f*T)+m),g=zt(g+f-(_*k+f*x)+v)),(n||r)&&(C=p.getBBox(),w=zt(w+n/100*C.width),g=zt(g+r/100*C.height)),C="matrix("+y+","+k+","+T+","+x+","+w+","+g+")",p.setAttribute("transform",C),b&&(p.style[Rt]=C)},Yv=function(t,e,s,n,r){var o=360,a=Xt(r),c=parseFloat(r)*(a&&~r.indexOf("rad")?$s:1),l=c-n,u=n+l+"deg",h,d;return a&&(h=r.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Vl)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Vl)%o-~~(l/o)*o)),t._pt=d=new fe(t._pt,e,s,n,l,Mv),d.e=u,d.u="deg",t._props.push(s),d},Wl=function(t,e){for(var s in e)t[s]=e[s];return t},$v=function(t,e,s){var n=Wl({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,p,_;n.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Rt]=e,a=Ji(s,1),dn(s,Rt),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Rt],o[Rt]=e,a=Ji(s,1),o[Rt]=l);for(c in gs)l=n[c],u=a[c],l!==u&&r.indexOf(c)<0&&(p=Kt(l),_=Kt(u),h=p!==_?Vs(s,c,l,_):parseFloat(l),d=parseFloat(u),t._pt=new fe(t._pt,a,c,h,d-h,Ma),t._pt.u=_||0,t._props.push(c));Wl(a,n)};de("padding,margin,Width,Radius",function(i,t){var e="Top",s="Right",n="Bottom",r="Left",o=(t<3?[e,s,n,r]:[e+r,e+s,n+s,n+r]).map(function(a){return t<2?i+a:"border"+a+i});lo[t>1?"border"+i:i]=function(a,c,l,u,h){var d,p;if(arguments.length<4)return d=o.map(function(_){return hs(a,_,l)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(u+"").split(" "),p={},o.forEach(function(_,f){return p[_]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(c,p,h)}});var yd={name:"css",register:Pa,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,s,n,r){var o=this._props,a=t.style,c=s.vars.startAt,l,u,h,d,p,_,f,m,v,b,w,g,y,k,T,x;Ec||Pa(),this.styles=this.styles||hd(t),x=this.styles.props,this.tween=s;for(f in e)if(f!=="autoRound"&&(u=e[f],!(ye[f]&&td(f,e,s,n,t,r)))){if(p=typeof u,_=lo[f],p==="function"&&(u=u.call(s,n,t,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=Zi(u)),_)_(this,t,f,u,s)&&(T=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),u+="",Ds.lastIndex=0,Ds.test(l)||(m=Kt(l),v=Kt(u)),v?m!==v&&(l=Vs(t,f,l,v)+v):m&&(u+=m),this.add(a,"setProperty",l,u,n,r,0,0,f),o.push(f),x.push(f,0,a[f]);else if(p!=="undefined"){if(c&&f in c?(l=typeof c[f]=="function"?c[f].call(s,n,t,r):c[f],Xt(l)&&~l.indexOf("random(")&&(l=Zi(l)),Kt(l+"")||l==="auto"||(l+=Te.units[f]||Kt(hs(t,f))||""),(l+"").charAt(1)==="="&&(l=hs(t,f))):l=hs(t,f),d=parseFloat(l),b=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),b&&(u=u.substr(2)),h=parseFloat(u),f in Qe&&(f==="autoAlpha"&&(d===1&&hs(t,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),Es(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=Qe[f],~f.indexOf(",")&&(f=f.split(",")[0]))),w=f in gs,w){if(this.styles.save(f),g||(y=t._gsap,y.renderTransform&&!e.parseTransform||Ji(t,e.parseTransform),k=e.smoothOrigin!==!1&&y.smooth,g=this._pt=new fe(this._pt,a,Rt,0,1,y.renderTransform,y,0,-1),g.dep=1),f==="scale")this._pt=new fe(this._pt,y,"scaleY",y.scaleY,(b?Rn(y.scaleY,b+h):h)-y.scaleY||0,Ma),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){x.push(pe,0,a[pe]),u=qv(u),y.svg?Ia(t,u,0,k,0,this):(v=parseFloat(u.split(" ")[2])||0,v!==y.zOrigin&&Es(this,y,"zOrigin",y.zOrigin,v),Es(this,a,f,uo(l),uo(u)));continue}else if(f==="svgOrigin"){Ia(t,u,1,k,0,this);continue}else if(f in md){Yv(this,y,f,d,b?Rn(d,b+u):u);continue}else if(f==="smoothOrigin"){Es(this,y,"smooth",y.smooth,u);continue}else if(f==="force3D"){y[f]=u;continue}else if(f==="transform"){$v(this,u,t);continue}}else f in a||(f=Zn(f)||f);if(w||(h||h===0)&&(d||d===0)&&!Av.test(u)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),v=Kt(u)||(f in Te.units?Te.units[f]:m),m!==v&&(d=Vs(t,f,l,v)),this._pt=new fe(this._pt,w?y:a,f,d,(b?Rn(d,b+h):h)-d,!w&&(v==="px"||f==="zIndex")&&e.autoRound!==!1?Pv:Ma),this._pt.u=v||0,m!==v&&v!=="%"&&(this._pt.b=l,this._pt.r=Dv);else if(f in a)Bv.call(this,t,f,l,b?b+u:u);else if(f in t)this.add(t,f,l||t[f],b?b+u:u,n,r);else if(f!=="parseTransform"){yc(f,u);continue}w||(f in a?x.push(f,0,a[f]):x.push(f,1,l||t[f])),o.push(f)}}T&&od(this)},render:function(t,e){if(e.tween._time||!Oc())for(var s=e._pt;s;)s.r(t,s.d),s=s._next;else e.styles.revert()},get:hs,aliases:Qe,getSetter:function(t,e,s){var n=Qe[e];return n&&n.indexOf(",")<0&&(e=n),e in gs&&e!==pe&&(t._gsap.x||hs(t,"x"))?s&&Ll===s?e==="scale"?Fv:Rv:(Ll=s||{})&&(e==="scale"?Lv:Vv):t.style&&!mc(t.style[e])?Iv:~e.indexOf("-")?Nv:Cc(t,e)},core:{_removeProperty:dn,_getMatrix:Mc}};_e.utils.checkPrefix=Zn;_e.core.getStyleSaver=hd;(function(i,t,e,s){var n=de(i+","+t+","+e,function(r){gs[r]=1});de(t,function(r){Te.units[r]="deg",md[r]=1}),Qe[n[13]]=i+","+t,de(s,function(r){var o=r.split(":");Qe[o[1]]=n[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");de("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Te.units[i]="px"});_e.registerPlugin(yd);var vd=_e.registerPlugin(yd)||_e;vd.core.Tween;const Hl=new at(0,0,0),xd=i=>{const{isSelected:t,lineWidth:e,visible:s}=i,n=D.useRef(null);D.useEffect(()=>{const o=n.current;o&&vd.fromTo(o.material,{linewidth:5},{linewidth:t?2:e,duration:1})},[t,e,n]);const r=new go(16711680);return L.jsx(Wd,{ref:n,color:r,isLine2:!0,lineWidth:2,opacity:.5,points:[Hl,Hl],visible:s})};xd.displayName="LineComponent";const Zv=D.memo(xd),kd=D.memo(()=>{const i=Us(s=>s.dataInitial),{showSelectionGraph:t}=oe(s=>s),e=We();return console.log("connection"),L.jsx("group",{name:"simulation-3d-group__connections",children:i==null?void 0:i.links.map(s=>{const n=(e==null?void 0:e.ref_id)===s.source||(e==null?void 0:e.ref_id)===s.target,r=e?0:1;return L.jsx(Zv,{isSelected:n,lineWidth:r,visible:!t},s.ref_id)})})});kd.displayName="Connections";const Xv=({color:i,scale:t})=>L.jsx(L.Fragment,{children:L.jsx(iu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,children:L.jsx(cu,{color:i,scale:t})})}),Qv=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],Kv=()=>{const i=We(),t=Us(r=>r.dataInitial),{normalizedSchemasByType:e}=Na(r=>r),s=Kl(),n=D.useMemo(()=>new Rf(30,2,16,100),[]);return L.jsx(L.Fragment,{children:L.jsxs(n0,{geometry:n,limit:1e3,range:1e3,visible:!i,children:[L.jsx("meshBasicMaterial",{}),t==null?void 0:t.nodes.map(r=>{var c;const a=((c=e[r.node_type])==null?void 0:c.primary_color)??(Qv[s.indexOf(r.node_type)]||Tt.white);return L.jsx(Xv,{color:a,scale:r.scale||1},r.ref_id)})]})})},Jv=D.memo(Kv),tx=Ut(ys)` text-align: center; width: ${i=>i.type==="topic"?"auto":`${i.size}px`}; height: ${i=>i.type==="topic"?"auto":`${i.size}px`}; @@ -410,7 +410,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a top: -7px; left: -14px; } -`,Qv=qt(ys)` +`,ex=Ut(ys)` text-align: center; outline: 1px solid ${Tt.white}; outline-offset: 0px; @@ -467,14 +467,14 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a top: -7px; left: -14px; } -`;qt.img` +`;Ut.img` background-image: ${({src:i})=>`url(${i})`}; background-size: contain; background-repeat: no-repeat; width: ${i=>i.size}px; height: ${i=>i.size}px; border-radius: ${i=>i.borderRadius}; -`;qt.div` +`;Ut.div` display: flex; position: absolute; bottom: -14px; @@ -482,7 +482,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a width: auto; justify-content: center; align-items: center; -`;qt.div` +`;Ut.div` display: flex; justify-content: center; align-items: center; @@ -496,7 +496,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a font-weight: 500; border-radius: 6px; margin-right: 5px; -`;qt.div` +`;Ut.div` display: flex; justify-content: center; align-items: center; @@ -510,7 +510,7 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a font-weight: 500; border-radius: 6px; margin-right: 5px; -`;const Kv=new at,Jv=({position:i,userData:t,color:e})=>{const s=A.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=oe(Ra(p=>p)),l=((t==null?void 0:t.node_type)||"")==="Topic"||!!t.name,u=((t==null?void 0:t.node_type)||"")==="Guest"||((t==null?void 0:t.node_type)||"")==="Person";be(()=>{if(o&&s.current){const p=Kv.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);s.current.position.copy(p)}}),A.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=A.useMemo(()=>(a==null?void 0:a.ref_id)===(t==null?void 0:t.ref_id),[a==null?void 0:a.ref_id,t==null?void 0:t.ref_id]),d=(n==null?void 0:n.ref_id)===(t==null?void 0:t.ref_id);return l||d&&o||!d?L.jsx("group",{ref:s,position:i,children:L.jsx(tr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs(Qv,{direction:"column",onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},children:[L.jsx("div",{className:"badge-wrapper",children:L.jsx(Ic,{type:(t==null?void 0:t.node_type)||""})}),Kl(t==null?void 0:t.name,20)]}):L.jsxs(Zv,{className:Zl(t==null?void 0:t.node_type,{selected:d}),color:e,fontColor:Tt.white,fontSize:l?64:20,onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(t==null?void 0:t.node_type)||"",children:[!u&&!l?L.jsx("div",{className:"badge-wrapper",children:L.jsx(Ic,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(Xd,{rounded:u,size:d?60:52,src:(t==null?void 0:t.image_url)||"audio_default.svg",type:t==null?void 0:t.node_type})]})})}):null},kd=A.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=oe(Ra(o=>o)),n=po(),r=A.useMemo(()=>{const o=(i==null?void 0:i.nodes())||[];return(t?s.nodes:o).filter(u=>n.includes((u==null?void 0:u.ref_id)||"")||(e==null?void 0:e.ref_id)===(u==null?void 0:u.ref_id)).slice(0,T1).map(u=>{const h=Ql(u.node_type||"",!0),d=new at((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),p=o.filter(_=>_.ref_id&&w1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(Jv,{color:h,position:d,relativeIds:p,userData:u},`node-badge-${u.ref_id}`)})},[i,t,s.nodes,n,e==null?void 0:e.ref_id]);return L.jsx(A.Fragment,{children:r.length?r:null},"node-badges")});kd.displayName="RelevanceBadges";const Wl=Zd().stop(),ge={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:i=>(i.edge_count||1)*6+200,forceLinkDistanceMethod:i=>{const t=i.source.node_type;let e=50;switch(t){case"topic":e=30;break;case"guest":e=30;break;case"clip":e=10;break;case"episode":e=15;break}return e*2/50}},tk=(i,t,{numDimensions:e=ge.numDimensions,velocityDecay:s=ge.velocityDecay,forceChargeStrength:n=ge.forceChargeStrength,forceChargeMinDistance:r=ge.forceChargeMinDistance,forceChargeMaxDistance:o=ge.forceChargeMaxDistance,forceLinkStrength:a=ge.forceLinkStrength,forceCenterStrength:c=ge.forceCenterStrength,forceLinkDistanceMethod:l=ge.forceLinkDistanceMethod,forceCollideRadiusMethod:u=ge.forceCollideRadiusMethod,disableCollide:h=ge.disableCollide,disableCenter:d=ge.disableCenter,disableLink:p=ge.disableLink,disableCharge:_=ge.disableCharge})=>(Wl.alpha(1).stop().numDimensions(e).velocityDecay(s).force("collide",h?null:Qd().radius(u).iterations(1)).force("center",d?null:Kd().strength(c)).force("charge",_?null:Jd().strength(n).distanceMin(r).distanceMax(o)).nodes(i).force("link",p?null:tf(t).id(f=>f.ref_id).distance(l).strength(a)).alpha(1).restart(),Wl),ek=({link:i,animated:t})=>{const e=A.useRef(null),s=We(),[n,r]=A.useState(new at(0,0,0)),[o,a]=A.useState(new at(0,0,0)),[c,l]=A.useState(8947848),u=oe(h=>h.selectionGraphData);return A.useEffect(()=>{var p,_,f,m,v,b;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new at(((p=i.sourcePosition)==null?void 0:p.x)||0,((_=i.sourcePosition)==null?void 0:_.y)||0,((f=i.sourcePosition)==null?void 0:f.z)||0)),a(new at(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((b=i.targetPosition)==null?void 0:b.z)||0))):(r(new at(0,0,0)),a(new at(0,0,0))),l(d?i.color||Md.children.segmentColor:s?5592405:8947848)},[s,i]),be(()=>{if(t&&e.current){const h=u.nodes.find(p=>p.ref_id===i.source),d=u.nodes.find(p=>p.ref_id===i.target);e.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),e.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),L.jsx(L.Fragment,{children:L.jsx(s0,{ref:e,color:"0xFFFFFF",end:o,start:n})})},sk=({links:i,simulation:t})=>{const e=A.useRef(null);return A.useEffect(()=>function(){e.current&&e.current.clear()},[e]),be(()=>{if(e.current){const s=t.nodes();e.current.children.forEach((r,o)=>{var u;const a=i[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),i.length?L.jsx("group",{ref:e,children:i.map(s=>L.jsx("mesh",{children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsxs(nk,{direction:"row",justify:"center",onClick:n=>{n.stopPropagation()},onPointerOut:n=>{n.stopPropagation()},onPointerOver:n=>{n.stopPropagation()},children:[L.jsx("span",{children:s.edge_type}),L.jsx(ys,{className:"icon",children:L.jsx(ef,{})})]})})},s.ref_id))}):null},nk=qt(ys)` +`;const sx=new at,nx=({position:i,userData:t,color:e})=>{const s=D.useRef(null),{selectedNode:n,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=oe(Fa(p=>p)),l=((t==null?void 0:t.node_type)||"")==="Topic"||!!t.name,u=((t==null?void 0:t.node_type)||"")==="Guest"||((t==null?void 0:t.node_type)||"")==="Person";be(()=>{if(o&&s.current){const p=sx.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);s.current.position.copy(p)}}),D.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=D.useMemo(()=>(a==null?void 0:a.ref_id)===(t==null?void 0:t.ref_id),[a==null?void 0:a.ref_id,t==null?void 0:t.ref_id]),d=(n==null?void 0:n.ref_id)===(t==null?void 0:t.ref_id);return l||d&&o||!d?L.jsx("group",{ref:s,position:i,children:L.jsx(er,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?L.jsxs(ex,{direction:"column",onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},children:[L.jsx("div",{className:"badge-wrapper",children:L.jsx(Rc,{type:(t==null?void 0:t.node_type)||""})}),eu(t==null?void 0:t.name,20)]}):L.jsxs(tx,{className:Jl(t==null?void 0:t.node_type,{selected:d}),color:e,fontColor:Tt.white,fontSize:l?64:20,onClick:p=>{p.stopPropagation(),t&&r(t)},onPointerOut:p=>{p.stopPropagation()},onPointerOver:p=>{p.stopPropagation()},scale:h?1.05:1,selected:!1,size:d?68:40,type:(t==null?void 0:t.node_type)||"",children:[!u&&!l?L.jsx("div",{className:"badge-wrapper",children:L.jsx(Rc,{type:(t==null?void 0:t.node_type)||""})}):null,t!=null&&t.name?t==null?void 0:t.name:L.jsx(Jd,{rounded:u,size:d?60:52,src:(t==null?void 0:t.image_url)||"audio_default.svg",type:t==null?void 0:t.node_type})]})})}):null},Td=D.memo(()=>{const{simulation:i,showSelectionGraph:t,selectedNode:e,selectionGraphData:s}=oe(Fa(o=>o)),n=mo(),r=D.useMemo(()=>{const o=(i==null?void 0:i.nodes())||[];return(t?s.nodes:o).filter(u=>n.includes((u==null?void 0:u.ref_id)||"")||(e==null?void 0:e.ref_id)===(u==null?void 0:u.ref_id)).slice(0,S1).map(u=>{const h=tu(u.node_type||"",!0),d=new at((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),p=o.filter(_=>_.ref_id&&E1(_,u)).map(_=>(_==null?void 0:_.ref_id)||"")||[];return L.jsx(nx,{color:h,position:d,relativeIds:p,userData:u},`node-badge-${u.ref_id}`)})},[i,t,s.nodes,n,e==null?void 0:e.ref_id]);return L.jsx(D.Fragment,{children:r.length?r:null},"node-badges")});Td.displayName="RelevanceBadges";const Gl=tf().stop(),ge={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:i=>(i.edge_count||1)*6+200,forceLinkDistanceMethod:i=>{const t=i.source.node_type;let e=50;switch(t){case"topic":e=30;break;case"guest":e=30;break;case"clip":e=10;break;case"episode":e=15;break}return e*2/50}},ix=(i,t,{numDimensions:e=ge.numDimensions,velocityDecay:s=ge.velocityDecay,forceChargeStrength:n=ge.forceChargeStrength,forceChargeMinDistance:r=ge.forceChargeMinDistance,forceChargeMaxDistance:o=ge.forceChargeMaxDistance,forceLinkStrength:a=ge.forceLinkStrength,forceCenterStrength:c=ge.forceCenterStrength,forceLinkDistanceMethod:l=ge.forceLinkDistanceMethod,forceCollideRadiusMethod:u=ge.forceCollideRadiusMethod,disableCollide:h=ge.disableCollide,disableCenter:d=ge.disableCenter,disableLink:p=ge.disableLink,disableCharge:_=ge.disableCharge})=>(Gl.alpha(1).stop().numDimensions(e).velocityDecay(s).force("collide",h?null:ef().radius(u).iterations(1)).force("center",d?null:sf().strength(c)).force("charge",_?null:nf().strength(n).distanceMin(r).distanceMax(o)).nodes(i).force("link",p?null:rf(t).id(f=>f.ref_id).distance(l).strength(a)).alpha(1).restart(),Gl),rx=({link:i,animated:t})=>{const e=D.useRef(null),s=We(),[n,r]=D.useState(new at(0,0,0)),[o,a]=D.useState(new at(0,0,0)),[c,l]=D.useState(8947848),u=oe(h=>h.selectionGraphData);return D.useEffect(()=>{var p,_,f,m,v,b;const h=(s==null?void 0:s.ref_id)||"",d=s&&(h===i.target||h===i.source);!i.onlyVisibleOnSelect||d?(r(new at(((p=i.sourcePosition)==null?void 0:p.x)||0,((_=i.sourcePosition)==null?void 0:_.y)||0,((f=i.sourcePosition)==null?void 0:f.z)||0)),a(new at(((m=i.targetPosition)==null?void 0:m.x)||0,((v=i.targetPosition)==null?void 0:v.y)||0,((b=i.targetPosition)==null?void 0:b.z)||0))):(r(new at(0,0,0)),a(new at(0,0,0))),l(d?i.color||Pd.children.segmentColor:s?5592405:8947848)},[s,i]),be(()=>{if(t&&e.current){const h=u.nodes.find(p=>p.ref_id===i.source),d=u.nodes.find(p=>p.ref_id===i.target);e.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),e.current.end.set((d==null?void 0:d.x)||0,(d==null?void 0:d.y)||0,(d==null?void 0:d.z)||0)}}),L.jsx(L.Fragment,{children:L.jsx(o0,{ref:e,color:"0xFFFFFF",end:o,start:n})})},ox=({links:i,simulation:t})=>{const e=D.useRef(null);return D.useEffect(()=>function(){e.current&&e.current.clear()},[e]),be(()=>{if(e.current){const s=t.nodes();e.current.children.forEach((r,o)=>{var u;const a=i[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),i.length?L.jsx("group",{ref:e,children:i.map(s=>L.jsx("mesh",{children:L.jsx(er,{center:!0,sprite:!0,children:L.jsxs(ax,{direction:"row",justify:"center",onClick:n=>{n.stopPropagation()},onPointerOut:n=>{n.stopPropagation()},onPointerOver:n=>{n.stopPropagation()},children:[L.jsx("span",{children:s.edge_type}),L.jsx(ys,{className:"icon",children:L.jsx(of,{})})]})})},s.ref_id))}):null},ax=Ut(ys)` text-align: center; outline-offset: 0px; @@ -561,9 +561,9 @@ import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y a top: -7px; left: -14px; } -`,Mc={metalness:.9,roughness:0},xd=new mo,uo=xd.load("noimage.jpeg"),Hl=new go({...Mc,map:uo}),Td=.4,ik=new go({...Mc,map:uo,transparent:!0,opacity:Td}),Ar={},rk=(i,t)=>{const[e,s]=A.useState(uo),[n,r]=A.useState(Hl);return A.useEffect(()=>{const o=`${i}${t&&"-transparent"}`;if(Ar[o]){s(Ar[o].texture),r(Ar[o].material);return}xd.load(i,a=>{const c=new go({map:a,transparent:t,opacity:t?Td:1,...Mc});Ar[o]={texture:a,material:c},s(a),r(c)},void 0,()=>{s(uo),r(t?ik:Hl)})},[i,t]),A.useEffect(()=>function(){e.dispose(),n.dispose()},[e,n]),n},wd=A.memo(({node:i,hide:t,animated:e})=>{const s=A.useRef(null),[n]=A.useState(Sl),r=We(),{showSelectionGraph:o}=oe(u=>u),a=!!r&&i.ref_id===r.ref_id,c=rk(i.image_url||"noimage.jpeg",!1);be((u,h)=>{e&&s.current&&a&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6)}),A.useEffect(()=>function(){n.dispose()},[n]);const l=A.useMemo(()=>o&&a?20:a?(i.scale||1)*1.2:i.scale,[i,a,o]);return L.jsx(a0,{enabled:!!a,children:L.jsx("mesh",{ref:s,geometry:Sl,material:c,name:i.id,scale:l,userData:i,visible:!t})})});wd.displayName="Cube";const ok=i=>{const t=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return i.replace(t,e=>/^[\d*#]$/.test(e)?e:"")},ak=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"];function ck(i){const t=Kl(i,30),e=t.split(" ");if(e.length<=5)return t;const s=Math.ceil(e.length/3),n=s*2,r=e.slice(0,s).join(" "),o=e.slice(s,n).join(" "),a=e.slice(n).join(" ");return`${r} +`,Dc={metalness:.9,roughness:0},wd=new _o,ho=wd.load("noimage.jpeg"),Yl=new yo({...Dc,map:ho}),bd=.4,cx=new yo({...Dc,map:ho,transparent:!0,opacity:bd}),Mr={},lx=(i,t)=>{const[e,s]=D.useState(ho),[n,r]=D.useState(Yl);return D.useEffect(()=>{const o=`${i}${t&&"-transparent"}`;if(Mr[o]){s(Mr[o].texture),r(Mr[o].material);return}wd.load(i,a=>{const c=new yo({map:a,transparent:t,opacity:t?bd:1,...Dc});Mr[o]={texture:a,material:c},s(a),r(c)},void 0,()=>{s(ho),r(t?cx:Yl)})},[i,t]),D.useEffect(()=>function(){e.dispose(),n.dispose()},[e,n]),n},Cd=D.memo(({node:i,hide:t,animated:e})=>{const s=D.useRef(null),[n]=D.useState(Ol),r=We(),{showSelectionGraph:o}=oe(u=>u),a=!!r&&i.ref_id===r.ref_id,c=lx(i.image_url||"noimage.jpeg",!1);be((u,h)=>{e&&s.current&&a&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6)}),D.useEffect(()=>function(){n.dispose()},[n]);const l=D.useMemo(()=>o&&a?20:a?(i.scale||1)*1.2:i.scale,[i,a,o]);return L.jsx(h0,{enabled:!!a,children:L.jsx("mesh",{ref:s,geometry:Ol,material:c,name:i.id,scale:l,userData:i,visible:!t})})});Cd.displayName="Cube";const ux=i=>{const t=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return i.replace(t,e=>/^[\d*#]$/.test(e)?e:"")},hx=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"];function dx(i){const t=eu(i,30),e=t.split(" ");if(e.length<=5)return t;const s=Math.ceil(e.length/3),n=s*2,r=e.slice(0,s).join(" "),o=e.slice(s,n).join(" "),a=e.slice(n).join(" ");return`${r} ${o} -${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(null),n=A.useRef(null),r=We(),o=A.useRef(new at),c=po().includes((i==null?void 0:i.ref_id)||""),l=!!r&&(r==null?void 0:r.ref_id)===i.ref_id,u=oe(x=>x.showSelectionGraph),{normalizedSchemasByType:h}=Na(x=>x);be(({camera:x})=>{(()=>{const k=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=k.distanceTo(x.position)<2500)})()});const d=Xl(),p=A.useMemo(()=>{if(!i.name)return 0;let x=(i.edge_count||1)*20;u&&l?x=40:!l&&c&&(x=0);const T=x/Math.sqrt(i.name.length);return Math.min(Math.max(T,20),30)},[i.edge_count,i.name,l,c,u]);A.useMemo(()=>r&&!l||!e?.2:1,[l,r,e]);const _=(g=h[i.node_type])==null?void 0:g.primary_color,f=(y=h[i.node_type])==null?void 0:y.icon,m=_??(ak[d.indexOf(i.node_type)]||Tt.white),b=(f?sf[f]:null)?f:"NodesIcon",w=ok(String(i.name));return L.jsx(su,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:i,children:L.jsxs("mesh",{ref:n,name:i.id,userData:i,visible:!t,children:[L.jsx(Hf,{ref:s,name:"svg",onUpdate:x=>{x.traverse(T=>{T instanceof eu&&(T.material=new Mf({color:m}))})},position:[-15,15,0],scale:2,src:`svg-icons/${b}.svg`,strokeMaterial:{color:"yellow"},userData:i}),i.name&&L.jsx(jd,{color:m,fillOpacity:1,name:"text",position:[0,-40,0],scale:p,userData:i,...Bd,children:ck(w)})]})})});Dc.displayName="TextNode";const bd=A.memo(()=>{const[i,t]=A.useState(null),{dataInitial:e}=Us(l=>l),s=We(),n=A.useRef(null),r=po(),o=qd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=oe(Ra(l=>l));return A.useEffect(()=>{const l=structuredClone((e==null?void 0:e.nodes)||[]),u=structuredClone((e==null?void 0:e.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||r.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const p=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...p}});if(h){const d=u.filter(p=>h.some(_=>_.ref_id===p.target)&&h.some(_=>_.ref_id===p.source));c({nodes:h,links:d})}},[e,s,r,c,o]),A.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=tk(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});t(u)},[a,i]),A.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),A.useEffect(()=>{i&&i.on("tick",()=>{n.current&&n.current.children.forEach((u,h)=>{const d=i.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[i]),console.log(a.nodes),L.jsxs(L.Fragment,{children:[L.jsx("group",{ref:n,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>L.jsx("mesh",{children:l.name?L.jsx(Dc,{hide:!0,isHovered:!1,node:l},l.ref_id||l.id):L.jsx(wd,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(t0,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(ek,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(sk,{links:a.links,simulation:i})]})});bd.displayName="SelectionDataNodes";const lk=200,Cd=A.memo(()=>{const i=We(),t=nf(),e=po(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=oe(f=>f),a=Us(f=>f.dataInitial),c=Ji(f=>f.setTranscriptOpen),l=A.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=A.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||oe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=A.useRef(null),d=A.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=A.useCallback(f=>{var b;const v=f.intersections.map(w=>w.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(b=v==null?void 0:v.userData)!=null&&b.ref_id){const w=v.userData;l(w)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(w)},lk))}},[r,l,o]),_=n&&!!i;return L.jsxs(Wf,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(kd,{}),L.jsx("group",{name:"simulation-3d-group__nodes",visible:!_,children:a==null?void 0:a.nodes.map(f=>{const m=!!i&&(e.includes(f.ref_id)||i.ref_id===f.ref_id);return L.jsxs("mesh",{name:"wr2",scale:f.scale||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Dc,{hide:_||m,isHovered:!!t&&t.id===f.ref_id,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Xv,{})}),_&&L.jsx(bd,{})]})});Cd.displayName="Cubes";const uk={earthRef:null},hk=Gl(i=>({...uk,setEarthRef:t=>i({earthRef:t})})),dk=new at(0,0,0),fk=()=>{const i=A.useRef(null),t=A.useRef(null),{graphStyle:e,showSelectionGraph:s}=oe(a=>a),n=hk(a=>a.setEarthRef),r=Ks("textures/earth/galaxy.png"),o=Ks("textures/earth/clouds.png");return be(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(dk))}),A.useLayoutEffect(()=>{i.current&&n(i)},[n]),e!=="earth"||s?null:L.jsxs(L.Fragment,{children:[L.jsxs("mesh",{ref:i,userData:{type:"earth"},children:[L.jsx("sphereGeometry",{args:[Sr,200,200]}),L.jsx(pk,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Sr*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:ra,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Sr*3]})]})},pk=()=>{const i=Ks("textures/earth/earth.jpeg"),t=Ks("textures/earth/bump.jpeg"),e=Ks("textures/earth/water.png"),s=A.useMemo(()=>new go({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},mk="C",_k=256,gk=256,yk={g:"LottieFiles AE 0.1.20"},vk=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],kk="5.5.7",xk=60,Tk=104,wk=0,bk=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Ck={nm:mk,h:_k,w:gk,meta:yk,layers:vk,v:kk,fr:xk,op:Tk,ip:wk,assets:bk},Sk=({meshId:i})=>{const t=A.useRef(null);return A.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Dd.loadAnimation({container:e,animationData:Ck,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},na=()=>Math.floor(Math.random()*2001)-1e3,Ek=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=na(),e=na(),s=na();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(tr,{center:!0,sprite:!0,children:L.jsx(Ok,{children:L.jsx(Sk,{meshId:i})})})},i)})}),Ok=qt.div` +${a}`}const Pc=D.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=D.useRef(null),n=D.useRef(null),r=We(),o=D.useRef(new at),c=mo().includes((i==null?void 0:i.ref_id)||""),l=!!r&&(r==null?void 0:r.ref_id)===i.ref_id,u=oe(k=>k.showSelectionGraph),{normalizedSchemasByType:h}=Na(k=>k);be(({camera:k})=>{(()=>{const x=o.current.setFromMatrixPosition(n.current.matrixWorld);n.current&&(n.current.visible=x.distanceTo(k.position)<2500)})()});const d=Kl(),p=D.useMemo(()=>{if(!i.name)return 0;let k=(i.edge_count||1)*20;u&&l?k=40:!l&&c&&(k=0);const T=k/Math.sqrt(i.name.length);return Math.min(Math.max(T,20),30)},[i.edge_count,i.name,l,c,u]);D.useMemo(()=>r&&!l||!e?.2:1,[l,r,e]);const _=(g=h[i.node_type])==null?void 0:g.primary_color,f=(y=h[i.node_type])==null?void 0:y.icon,m=_??(hx[d.indexOf(i.node_type)]||Tt.white),b=(f?af[f]:null)?f:"NodesIcon",w=ux(String(i.name));return L.jsx(iu,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:i,children:L.jsxs("mesh",{ref:n,name:i.id,userData:i,visible:!t,children:[L.jsx(Zf,{ref:s,name:"svg",onUpdate:k=>{k.traverse(T=>{T instanceof nu&&(T.material=new Ff({color:m}))})},position:[-15,15,0],scale:2,src:`svg-icons/${b}.svg`,strokeMaterial:{color:"yellow"},userData:i}),i.name&&L.jsx(Hd,{color:m,fillOpacity:1,name:"text",position:[0,-40,0],scale:p,userData:i,...Gd,children:dx(w)})]})})});Pc.displayName="TextNode";const Sd=D.memo(()=>{const[i,t]=D.useState(null),{dataInitial:e}=Us(l=>l),s=We(),n=D.useRef(null),r=mo(),o=Yd(e==null?void 0:e.nodes.length),{selectionGraphData:a,setSelectionData:c}=oe(Fa(l=>l));return D.useEffect(()=>{const l=structuredClone((e==null?void 0:e.nodes)||[]),u=structuredClone((e==null?void 0:e.links)||[]);if(o===l.length)return;const h=l.filter(d=>d.ref_id===(s==null?void 0:s.ref_id)||r.includes((d==null?void 0:d.ref_id)||"")).map(d=>{const p=d.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...d,x:0,y:0,z:0,...p}});if(h){const d=u.filter(p=>h.some(_=>_.ref_id===p.target)&&h.some(_=>_.ref_id===p.source));c({nodes:h,links:d})}},[e,s,r,c,o]),D.useEffect(()=>{if(i||!a.nodes.length)return;const l=structuredClone(a.links),u=ix(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});t(u)},[a,i]),D.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),D.useEffect(()=>{i&&i.on("tick",()=>{n.current&&n.current.children.forEach((u,h)=>{const d=i.nodes()[h];d&&u.position.set(d.x,d.y,d.z)})})},[i]),console.log(a.nodes),L.jsxs(L.Fragment,{children:[L.jsx("group",{ref:n,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>L.jsx("mesh",{children:l.name?L.jsx(Pc,{hide:!0,isHovered:!1,node:l},l.ref_id||l.id):L.jsx(Cd,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),L.jsx(i0,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>L.jsx(rx,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),i&&L.jsx(ox,{links:a.links,simulation:i})]})});Sd.displayName="SelectionDataNodes";const fx=200,Ed=D.memo(()=>{const i=We(),t=cf(),e=mo(),{selectionGraphData:s,showSelectionGraph:n,setHoveredNode:r,setIsHovering:o}=oe(f=>f),a=Us(f=>f.dataInitial),c=tr(f=>f.setTranscriptOpen),l=D.useCallback(f=>!!(n&&!s.nodes.find(m=>m.ref_id===f.ref_id)),[n,s]),u=D.useCallback(f=>{const m=f==null?void 0:f[0];m&&(c(!1),m.userData&&(l(m.userData)||oe.getState().setSelectedNode((m==null?void 0:m.userData)||null)))},[c,l]),h=D.useRef(null),d=D.useCallback(f=>{f.stopPropagation(),h.current&&(clearTimeout(h.current),h.current=null),t&&(o(!1),r(null))},[o,r,t]),p=D.useCallback(f=>{var b;const v=f.intersections.map(w=>w.object)[0];if(h.current&&(clearTimeout(h.current),h.current=null),(b=v==null?void 0:v.userData)!=null&&b.ref_id){const w=v.userData;l(w)||(f.stopPropagation(),h.current=setTimeout(()=>{o(!0),r(w)},fx))}},[r,l,o]),_=n&&!!i;return L.jsxs($f,{filter:f=>f.filter(m=>{var v;return!!((v=m.userData)!=null&&v.ref_id)}),onChange:u,onPointerOut:d,onPointerOver:p,children:[L.jsx(Td,{}),L.jsx("group",{name:"simulation-3d-group__nodes",visible:!_,children:a==null?void 0:a.nodes.map(f=>{const m=!!i&&(e.includes(f.ref_id)||i.ref_id===f.ref_id);return L.jsxs("mesh",{name:"wr2",scale:f.scale||1,userData:f,children:[L.jsx("boxGeometry",{args:[40,40,40]}),L.jsx("meshStandardMaterial",{opacity:0,transparent:!0}),L.jsx(Pc,{hide:_||m,isHovered:!!t&&t.id===f.ref_id,node:f},f.ref_id||f.id)]},f.ref_id)})}),L.jsx("group",{name:"simulation-3d-group__node-points",children:L.jsx(Jv,{})}),_&&L.jsx(Sd,{})]})});Ed.displayName="Cubes";const px={earthRef:null},mx=Zl(i=>({...px,setEarthRef:t=>i({earthRef:t})})),_x=new at(0,0,0),gx=()=>{const i=D.useRef(null),t=D.useRef(null),{graphStyle:e,showSelectionGraph:s}=oe(a=>a),n=mx(a=>a.setEarthRef),r=Ks("textures/earth/galaxy.png"),o=Ks("textures/earth/clouds.png");return be(({camera:a})=>{t.current&&t.current.position.copy(a.getWorldPosition(_x))}),D.useLayoutEffect(()=>{i.current&&n(i)},[n]),e!=="earth"||s?null:L.jsxs(L.Fragment,{children:[L.jsxs("mesh",{ref:i,userData:{type:"earth"},children:[L.jsx("sphereGeometry",{args:[Er,200,200]}),L.jsx(yx,{})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Er+2,200,200]}),L.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),L.jsxs("mesh",{children:[L.jsx("sphereGeometry",{args:[Er*4,200,200]}),L.jsx("meshStandardMaterial",{map:r,opacity:.4,side:oa,transparent:!0})]}),L.jsx("directionalLight",{ref:t,intensity:.9,position:[0,0,Er*3]})]})},yx=()=>{const i=Ks("textures/earth/earth.jpeg"),t=Ks("textures/earth/bump.jpeg"),e=Ks("textures/earth/water.png"),s=D.useMemo(()=>new yo({map:i,bumpMap:t,aoMap:t,roughnessMap:t,metalnessMap:e,toneMapped:!0,roughness:35,metalness:0}),[i,t,e]);return L.jsx("meshStandardMaterial",{...s})},vx="C",xx=256,kx=256,Tx={g:"LottieFiles AE 0.1.20"},wx=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],bx="5.5.7",Cx=60,Sx=104,Ex=0,Ox=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Ax={nm:vx,h:xx,w:kx,meta:Tx,layers:wx,v:bx,fr:Cx,op:Sx,ip:Ex,assets:Ox},Mx=({meshId:i})=>{const t=D.useRef(null);return D.useEffect(()=>{const e=document.getElementById(`lottie-animation-${i}`);return e&&(t.current=Id.loadAnimation({container:e,animationData:Ax,loop:!0,autoplay:!0})),()=>{t.current&&t.current.destroy()}},[i]),L.jsx("div",{id:`lottie-animation-${i}`,style:{width:"2em",height:"2em"}})},ia=()=>Math.floor(Math.random()*2001)-1e3,Dx=()=>L.jsx(L.Fragment,{children:["a","b","c"].map(i=>{const t=ia(),e=ia(),s=ia();return L.jsx("mesh",{position:[t,e,s],children:L.jsx(er,{center:!0,sprite:!0,children:L.jsx(Px,{children:L.jsx(Mx,{meshId:i})})})},i)})}),Px=Ut.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -571,7 +571,7 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n justify-content: center; color: white; font-size: 20px; -`,yi=i=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:i?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:i?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:i?"#ffffff66":"#5078f2",fontColor:i?"#ffffff66":"#fff"}}),Ak=new at,Sd=A.memo(()=>{var T;const i=A.useRef(null),t=Ji(k=>k.setSidebarOpen),[e,s]=Pd.useState(null),{open:n}=fr("editNodeName"),{open:r}=fr("addEdgeToNode"),{open:o}=fr("mergeToNode"),{open:a}=fr("createBounty"),[c]=$l(k=>[k.isAdmin]),[l]=Us(k=>[k.addNewNode]),u=We(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=oe(k=>k),f=Nf(),m=A.useCallback(async()=>{try{if(u!=null&&u.ref_id){const k=await Nd(u==null?void 0:u.ref_id,d.nodes.length||0);k&&l(k)}}catch(k){console.log(k)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);be(()=>{v()});const v=A.useCallback(()=>{const k=h?d:f;if(i.current){const C=k==null?void 0:k.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(C){const M=Ak.set(C==null?void 0:C.x,C==null?void 0:C.y,C==null?void 0:C.z);i.current.position.copy(M)}}},[u,h,d,f]),b=A.useMemo(()=>{const k=c?[{key:"control-key-1",colors:yi(h).focus,icon:L.jsx(af,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:yi(h).focus,icon:L.jsx(cf,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],C=[{key:"control-key-4",colors:yi(h).focus,icon:L.jsx(Df,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:yi(!0).close,icon:L.jsx(lf,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:yi(!0).close,icon:L.jsx(Pf,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...k,...C].map((M,R)=>({...M,left:-80+R*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const w=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,x=!!(u&&((T=u==null?void 0:u.node_type)==null?void 0:T.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(tr,{center:!0,className:"control-panel",onClick:k=>k.stopPropagation(),onKeyDown:k=>k.stopPropagation(),onPointerDown:k=>k.stopPropagation(),onPointerOut:k=>k.stopPropagation(),onPointerOver:k=>k.stopPropagation(),onPointerUp:k=>k.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[b.map(k=>L.jsx(Mk,{backgroundColor:k.colors.backgroundColor,borderColor:k.colors.borderColor,className:k.className,fontColor:k.colors.fontColor,left:k.left,onClick:C=>{C.stopPropagation(),k.onClick(C)},children:k.icon},k.key)),x&&L.jsx(Pk,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsxs(Dk,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:w,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:[L.jsxs(Yl,{"data-testid":"merge",onClick:()=>{o(),w()},children:[L.jsx(rf,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Yl,{"data-testid":"add_edge",onClick:()=>{r(),w()},children:[L.jsx(of,{"data-testid":"AddCircleIcon"})," Add edge"]})]})]})})});Sd.displayName="NodeControls";const Mk=qt.div` +`,vi=i=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:i?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:i?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:i?"#ffffff66":"#5078f2",fontColor:i?"#ffffff66":"#fff"}}),Ix=new at,Od=D.memo(()=>{var x,C;const i=D.useRef(null),t=tr(O=>O.setSidebarOpen),[e,s]=Nd.useState(null),{open:n}=pr("editNodeName"),{open:r}=pr("addEdgeToNode"),{open:o}=pr("mergeToNode"),{open:a}=pr("createBounty"),[c]=Ql(O=>[O.isAdmin]),[l]=Us(O=>[O.addNewNode]),u=We(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:p,setShowSelectionGraph:_}=oe(O=>O),f=Lf(),m=D.useCallback(async()=>{try{if(u!=null&&u.ref_id){const O=await Rd(u==null?void 0:u.ref_id,d.nodes.length||0);O&&l(O)}}catch(O){console.log(O)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);be(()=>{v()});const v=D.useCallback(()=>{const O=h?d:f;if(i.current){const I=O==null?void 0:O.nodes.find(M=>M.ref_id===(u==null?void 0:u.ref_id));if(I){const M=Ix.set(I==null?void 0:I.x,I==null?void 0:I.y,I==null?void 0:I.z);i.current.position.copy(M)}}},[u,h,d,f]),b=D.useMemo(()=>{const O=c?[{key:"control-key-1",colors:vi(h).focus,icon:L.jsx(ff,{}),left:-80,className:"add",onClick:M=>{s(M.currentTarget)}},{key:"control-key-2",colors:vi(h).focus,icon:L.jsx(pf,{}),left:-40,className:"edit",onClick:()=>{n()}}]:[],I=[{key:"control-key-4",colors:vi(h).focus,icon:L.jsx(Fd,{}),left:0,className:"expand",onClick:()=>{const M=!h;_(M),M&&t(!0)}},{key:"control-key-5",colors:vi(!0).close,icon:L.jsx(mf,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:vi(!0).close,icon:L.jsx(Ld,{}),left:40,className:"exit",onClick:()=>{_(!1),p(null)}}];return[...O,...I].map((M,U)=>({...M,left:-80+U*40}))},[c,h,n,_,t,m,p]);if(!u)return null;const w=()=>{s(null)},g=!!e,y=g?"simple-popover":void 0,k=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",T=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return L.jsx("group",{ref:i,children:L.jsxs(er,{center:!0,className:"control-panel",onClick:O=>O.stopPropagation(),onKeyDown:O=>O.stopPropagation(),onPointerDown:O=>O.stopPropagation(),onPointerOut:O=>O.stopPropagation(),onPointerOver:O=>O.stopPropagation(),onPointerUp:O=>O.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[b.map(O=>L.jsx(Nx,{backgroundColor:O.colors.backgroundColor,borderColor:O.colors.borderColor,className:O.className,fontColor:O.colors.fontColor,left:O.left,onClick:I=>{I.stopPropagation(),O.onClick(I)},children:O.icon},O.key)),T&&L.jsx(Fx,{left:2,onClick:()=>{a()},children:"Create Test"}),L.jsx(Rx,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:w,open:g,transformOrigin:{vertical:"top",horizontal:"right"},children:k?L.jsxs(L.Fragment,{children:[L.jsxs(Sn,{"data-testid":"generate_tests",onClick:()=>{w()},children:[L.jsx($l,{children:L.jsx(Fc,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),L.jsxs(Sn,{"data-testid":"add_comments",onClick:()=>{w()},children:[L.jsxs($l,{children:[L.jsx(uf,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),L.jsxs(Sn,{"data-testid":"review_bugs",onClick:()=>{w()},children:[L.jsx(hf,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),L.jsxs(Sn,{"data-testid":"find_vulnerabilities",onClick:()=>{w()},children:[L.jsx(df,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):L.jsxs(L.Fragment,{children:[L.jsxs(Sn,{"data-testid":"merge",onClick:()=>{o(),w()},children:[L.jsx(lf,{"data-testid":"MergeIcon"})," Merge"]}),L.jsxs(Sn,{"data-testid":"add_edge",onClick:()=>{r(),w()},children:[L.jsx(Fc,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});Od.displayName="NodeControls";const Nx=Ut.div` position: fixed; top: -60px; left: ${i=>-7+i.left}px; @@ -589,7 +589,7 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n cursor: pointer; transition: opacity 0.4s; box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); -`,Yl=qt(ys).attrs({direction:"row",px:12,py:8})` +`,Sn=Ut(ys).attrs({direction:"row",px:12,py:8})` display: flex; align-items: center; justify-content: start; @@ -602,7 +602,7 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n background: ${Tt.BUTTON1_HOVER}; color: ${Tt.GRAY3}; } -`,Dk=qt(uf)` +`,Rx=Ut(_f)` && { z-index: 9999; } @@ -615,8 +615,20 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n font-family: Barlow; font-size: 14px; font-weight: 500; + background-color: transparent !important; + margin: 2px; } -`,Pk=qt.div` +`,$l=Ut.div` + display: flex; + align-items: center; + justify-content: start; + + svg { + margin-top: 1px; + width: 12px; + height: 12px; + } +`,Fx=Ut.div` position: fixed; top: 40px; left: ${i=>-53+i.left}px; @@ -635,7 +647,7 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n &:hover { transform: scale(1.05); } -`,Ed=A.memo(()=>L.jsx(L.Fragment,{children:L.jsx(Sd,{})}));Ed.displayName="NodeDetailsPanel";const Nk=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Us(f=>f),r=A.useRef(null),o=A.useRef(!1),a=A.useRef([]),{normalizedSchemasByType:c}=Na(f=>f),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=oe(f=>f);return A.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),b=structuredClone(m);if(u){const w=Id.isEqual(s,i);d.addNodesAndLinks(v,b,w)}u||h(v,b),n()},[l,s,u,h,n,d,i]),A.useEffect(()=>{u&&d.setForces()},[p,d,u]),A.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v);const b=Math.min(5e3,v.radius);_(b),o.current=!0}if(r.current){const f=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__node-points"),v=r.current.getObjectByName("simulation-3d-group__connections");f&&f.children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),v&&v.children.forEach((b,w)=>{var x;const g=i==null?void 0:i.links[w],y=b;if(g){const T=u.nodes().find(j=>j.ref_id===g.source),k=u.nodes().find(j=>j.ref_id===g.target),{x:C,y:M,z:R}=T,{x:P,y:U,z:W}=k;a.current[w]={sx:C,sy:M,sz:R,tx:P,ty:U,tz:W};const G=((x=c[T.node_type])==null?void 0:x.primary_color)||"white";y.geometry.setPositions([C,M,R,P,U,W]);const{material:Y}=y;Y.color=new _o(G),Y.transparent=!0,Y.opacity=.5}})}}),u.on("end",()=>{const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Fc().setFromPoints(f),v=new Lc;m.getBoundingSphere(v);const b=v.radius;_(b),o.current=!1}))},[i,u,_,c]),u?L.jsxs("group",{ref:r,children:[L.jsx(Cd,{}),p==="earth"&&L.jsx(fk,{}),(t||e)&&L.jsx(Ek,{}),p!=="earth"&&L.jsx(vd,{}),L.jsx(Ed,{})]}):null},Ik=({fullSize:i=!0})=>{const t=Ji(e=>e.sidebarIsOpen);return L.jsx(Rk,{align:"center",className:Zl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(If,{color:Tt.SECONDARY_BLUE,size:64})})},Rk=qt(ys)` +`,Ad=D.memo(()=>L.jsx(L.Fragment,{children:L.jsx(Od,{})}));Ad.displayName="NodeDetailsPanel";const Lx=()=>{const{dataInitial:i,isLoadingNew:t,isFetching:e,dataNew:s,resetDataNew:n}=Us(f=>f),r=D.useRef(null),o=D.useRef(!1),a=D.useRef([]),{normalizedSchemasByType:c}=Na(f=>f),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:p,setGraphRadius:_}=oe(f=>f);return D.useEffect(()=>{if(!s)return;const f=s.nodes||[],m=s.links||[],v=structuredClone(f),b=structuredClone(m);if(u){const w=Vd.isEqual(s,i);d.addNodesAndLinks(v,b,w)}u||h(v,b),n()},[l,s,u,h,n,d,i]),D.useEffect(()=>{u&&d.setForces()},[p,d,u]),D.useEffect(()=>{u&&(u.on("tick",()=>{if(!o.current&&u.alpha()<.1){const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Vc().setFromPoints(f),v=new Uc;m.getBoundingSphere(v);const b=Math.min(5e3,v.radius);_(b),o.current=!0}if(r.current){const f=r.current.getObjectByName("simulation-3d-group__nodes"),m=r.current.getObjectByName("simulation-3d-group__node-points"),v=r.current.getObjectByName("simulation-3d-group__connections");f&&f.children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),m&&m.children[0].children.forEach((b,w)=>{const g=u.nodes()[w];g&&b.position.set(g.x,g.y,g.z)}),v&&v.children.forEach((b,w)=>{var k;const g=i==null?void 0:i.links[w],y=b;if(g){const T=u.nodes().find(z=>z.ref_id===g.source),x=u.nodes().find(z=>z.ref_id===g.target),{x:C,y:O,z:I}=T,{x:M,y:U,z:W}=x;a.current[w]={sx:C,sy:O,sz:I,tx:M,ty:U,tz:W};const Y=((k=c[T.node_type])==null?void 0:k.primary_color)||"white";y.geometry.setPositions([C,O,I,M,U,W]);const{material:G}=y;G.color=new go(Y),G.transparent=!0,G.opacity=.5}})}}),u.on("end",()=>{const f=u.nodes().map(w=>new at(w.x,w.y,w.z)),m=new Vc().setFromPoints(f),v=new Uc;m.getBoundingSphere(v);const b=v.radius;_(b),o.current=!1}))},[i,u,_,c]),u?L.jsxs("group",{ref:r,children:[L.jsx(Ed,{}),p==="earth"&&L.jsx(gx,{}),(t||e)&&L.jsx(Dx,{}),p!=="earth"&&L.jsx(kd,{}),L.jsx(Ad,{})]}):null},Vx=({fullSize:i=!0})=>{const t=tr(e=>e.sidebarIsOpen);return L.jsx(Ux,{align:"center",className:Jl({"sidebar-is-open":t&&!i}),justify:"center",children:L.jsx(Vf,{color:Tt.SECONDARY_BLUE,size:64})})},Ux=Ut(ys)` position: absolute; left: 0; right: 0; @@ -643,7 +655,7 @@ ${a}`}const Dc=A.memo(({node:i,hide:t,isHovered:e})=>{var g,y;const s=A.useRef(n top: 0; background-color: ${Tt.black}; z-index: 1; -`,Fk=()=>L.jsx(tr,{children:L.jsx(zf,{})}),Lk=()=>{const{universeColor:i}=df("universe",{universeColor:Tt.black}),t=We();return A.useMemo(()=>t!=null&&t.node_type?Ql(t.node_type):x1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(Yd,{}),L.jsx(M1,{}),L.jsxs(o0,{children:[!1,L.jsx(Nk,{})]})]})};let ia=null;const Vk={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Ti.x,Ti.y,Ti.z]},Uk=()=>{const[i,t,e]=[Os(a=>a.setIsUserScrollingOnHtmlPanel),Os(a=>a.setIsUserScrolling),Os(a=>a.setUserMovedCamera)],s=Us(a=>a.isFetching),n=Ji(a=>a.universeQuestionIsOpen),r=A.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;ia&&clearTimeout(ia),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=A.useCallback(a=>Rd(a,"threeState"),[]);return L.jsxs(zk,{children:[L.jsx(A.Suspense,{fallback:null,children:L.jsxs(Wd,{camera:Vk,id:"universe-canvas",onCreated:o,onWheel:r,children:[Fd&&L.jsx(Hd,{position:"top-right",style:{top:"80px"}}),L.jsxs(A.Suspense,{fallback:L.jsx(Fk,{}),children:[L.jsx(n0,{}),L.jsx(i0,{}),L.jsx(r0,{}),L.jsx(Lk,{})]})]})}),n&&L.jsx(l0,{}),s&&L.jsx(Ik,{fullSize:!1}),L.jsx(hf,{})]})},zk=qt(ys)` +`,jx=()=>L.jsx(er,{children:L.jsx(Wf,{})}),zx=()=>{const{universeColor:i}=yf("universe",{universeColor:Tt.black}),t=We();return D.useMemo(()=>t!=null&&t.node_type?tu(t.node_type):C1,[t]),L.jsxs(L.Fragment,{children:[L.jsx("color",{args:[i],attach:"background"}),L.jsx(Xd,{}),L.jsx(N1,{}),L.jsxs(u0,{children:[!1,L.jsx(Lx,{})]})]})};let ra=null;const Bx={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[wi.x,wi.y,wi.z]},qx=()=>{const[i,t,e]=[Os(a=>a.setIsUserScrollingOnHtmlPanel),Os(a=>a.setIsUserScrolling),Os(a=>a.setUserMovedCamera)],s=Us(a=>a.isFetching),n=tr(a=>a.universeQuestionIsOpen),r=D.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;ra&&clearTimeout(ra),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{t(!1),i(!1)},200)},[t,i,e]),o=D.useCallback(a=>Ud(a,"threeState"),[]);return L.jsxs(Wx,{children:[L.jsx(D.Suspense,{fallback:null,children:L.jsxs($d,{camera:Bx,id:"universe-canvas",onCreated:o,onWheel:r,children:[jd&&L.jsx(Zd,{position:"top-right",style:{top:"80px"}}),L.jsxs(D.Suspense,{fallback:L.jsx(jx,{}),children:[L.jsx(a0,{}),L.jsx(c0,{}),L.jsx(l0,{}),L.jsx(zx,{})]})]})}),n&&L.jsx(f0,{}),s&&L.jsx(Vx,{fullSize:!1}),L.jsx(gf,{})]})},Wx=Ut(ys)` flex: 1 1 100%; position: relative; -`,wx=A.memo(Uk);export{wx as Universe}; +`,Sk=D.memo(qx);export{Sk as Universe}; diff --git a/build/assets/index-a2878e02.css b/build/assets/index-a2878e02.css deleted file mode 100644 index 922bc3d4a..000000000 --- a/build/assets/index-a2878e02.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Barlow;font-weight:200;src:local("Barlow"),url(/fonts/Barlow-ExtraLight.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:100;src:local("Barlow"),url(/fonts/Barlow-Thin.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:300;src:local("Barlow"),url(/fonts/Barlow-Light.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:400;src:local("Barlow"),url(/fonts/Barlow-Regular.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:500;src:local("Barlow"),url(/fonts/Barlow-Medium.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:600;src:local("Barlow"),url(/fonts/Barlow-SemiBold.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:700;src:local("Barlow"),url(/fonts/Barlow-Bold.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:800;src:local("Barlow"),url(/fonts/Barlow-ExtraBold.ttf) format("truetype")}html,body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100%;width:100%;overflow:hidden}#root{height:100%;width:100%}#universe-canvas{z-index:0}*:root{--scrollbar-color: #ffffff33}*::-webkit-scrollbar{width:3px;height:40%;max-height:60%}*::-webkit-scrollbar-thumb{background-clip:padding-box;background:var(--scrollbar-color);width:8px;border-radius:0}@-moz-document url-prefix(){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) transparent}} diff --git a/build/assets/index-a4521012.js b/build/assets/index-a4521012.js deleted file mode 100644 index 6cac57ac9..000000000 --- a/build/assets/index-a4521012.js +++ /dev/null @@ -1,34 +0,0 @@ -import{t as a,j as e,F as s,aA as g,T as n,v as i,r as m,Z as j}from"./index-b416b1a9.js";import{B as S,b5 as w,u as y,a0 as k,a1 as v}from"./index-1f5ac1eb.js";import{B as F}from"./index-8331965f.js";import{S as B}from"./index-17930aa1.js";import{T}from"./index-64813bbe.js";import"./index.esm-258646ab.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(T,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:g})}),e.jsx(s,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(n)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,C=()=>e.jsxs(s,{align:"center",direction:"column",justify:"center",p:40,children:[e.jsx(M,{children:e.jsx(w,{})}),e.jsx($,{children:"We've Got Your Feedback"}),e.jsx(A,{children:"Thank you for sharing your thoughts with us! We value your input."})]}),M=a.div` - margin-bottom: 20px; - width: 50px; - height: 50px; - - svg { - width: 100%; - height: 100%; - color: ${i.white}; - fill: none; - } - - circle { - color: ${i.SUCESS}; - } -`,$=a(n)` - font-size: 22px; - font-weight: 700; - font-family: 'Barlow'; - text-align: center; - margin-bottom: 10px; -`,A=a(n)` - font-size: 16px; - font-family: 'Barlow'; - text-align: center; - margin-bottom: 20px; - font-weight: 400; - color: ${i.GRAY6}; - padding-top: 10px; -`,I=async r=>{try{const t=await j.post("/prediction/feedback",JSON.stringify(r));if(t.error){const{message:o}=t.error;throw new Error(o)}}catch(t){throw new Error(t.message||"Error submitting feedback")}},U=()=>{const{close:r,visible:t}=y("feedback"),o=k({mode:"onChange"}),{watch:u,reset:c}=o,[x,d]=m.useState(!1);m.useEffect(()=>()=>{d(!1),c()},[t,c]);const l=u("message"),h=!!l&&l.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),B("Feedback Submitted"),d(!0)}catch(b){console.error(b.message)}});return e.jsx(F,{id:"feedback",kind:"small",onClose:r,preventOutsideClose:!0,children:e.jsx(v,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:x?e.jsx(C,{}):e.jsx(E,{allowNextStep:h})})})})};export{U as UserFeedBackModal}; diff --git a/build/assets/index-b416b1a9.js b/build/assets/index-b416b1a9.js deleted file mode 100644 index d3d9eed1a..000000000 --- a/build/assets/index-b416b1a9.js +++ /dev/null @@ -1,532 +0,0 @@ -var C5=Object.defineProperty;var R5=(a,o,et)=>o in a?C5(a,o,{enumerable:!0,configurable:!0,writable:!0,value:et}):a[o]=et;var Rp=(a,o,et)=>(R5(a,typeof o!="symbol"?o+"":o,et),et);function _mergeNamespaces(a,o){for(var et=0;ettt[rt]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const rt of document.querySelectorAll('link[rel="modulepreload"]'))tt(rt);new MutationObserver(rt=>{for(const nt of rt)if(nt.type==="childList")for(const it of nt.addedNodes)it.tagName==="LINK"&&it.rel==="modulepreload"&&tt(it)}).observe(document,{childList:!0,subtree:!0});function et(rt){const nt={};return rt.integrity&&(nt.integrity=rt.integrity),rt.referrerPolicy&&(nt.referrerPolicy=rt.referrerPolicy),rt.crossOrigin==="use-credentials"?nt.credentials="include":rt.crossOrigin==="anonymous"?nt.credentials="omit":nt.credentials="same-origin",nt}function tt(rt){if(rt.ep)return;rt.ep=!0;const nt=et(rt);fetch(rt.href,nt)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(a.__esModule)return a;var o=a.default;if(typeof o=="function"){var et=function tt(){return this instanceof tt?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};et.prototype=o.prototype}else et={};return Object.defineProperty(et,"__esModule",{value:!0}),Object.keys(a).forEach(function(tt){var rt=Object.getOwnPropertyDescriptor(a,tt);Object.defineProperty(et,tt,rt.get?rt:{enumerable:!0,get:function(){return a[tt]}})}),et}var buffer$2={},base64Js={};base64Js.byteLength=byteLength$1;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup$2=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$2=0,len=code.length;i$20)throw new Error("Invalid string. Length must be a multiple of 4");var et=a.indexOf("=");et===-1&&(et=o);var tt=et===o?0:4-et%4;return[et,tt]}function byteLength$1(a){var o=getLens(a),et=o[0],tt=o[1];return(et+tt)*3/4-tt}function _byteLength(a,o,et){return(o+et)*3/4-et}function toByteArray(a){var o,et=getLens(a),tt=et[0],rt=et[1],nt=new Arr(_byteLength(a,tt,rt)),it=0,st=rt>0?tt-4:tt,at;for(at=0;at>16&255,nt[it++]=o>>8&255,nt[it++]=o&255;return rt===2&&(o=revLookup[a.charCodeAt(at)]<<2|revLookup[a.charCodeAt(at+1)]>>4,nt[it++]=o&255),rt===1&&(o=revLookup[a.charCodeAt(at)]<<10|revLookup[a.charCodeAt(at+1)]<<4|revLookup[a.charCodeAt(at+2)]>>2,nt[it++]=o>>8&255,nt[it++]=o&255),nt}function tripletToBase64(a){return lookup$2[a>>18&63]+lookup$2[a>>12&63]+lookup$2[a>>6&63]+lookup$2[a&63]}function encodeChunk(a,o,et){for(var tt,rt=[],nt=o;ntst?st:it+nt));return tt===1?(o=a[et-1],rt.push(lookup$2[o>>2]+lookup$2[o<<4&63]+"==")):tt===2&&(o=(a[et-2]<<8)+a[et-1],rt.push(lookup$2[o>>10]+lookup$2[o>>4&63]+lookup$2[o<<2&63]+"=")),rt.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(a,o,et,tt,rt){var nt,it,st=rt*8-tt-1,at=(1<>1,ht=-7,vt=et?rt-1:0,gt=et?-1:1,wt=a[o+vt];for(vt+=gt,nt=wt&(1<<-ht)-1,wt>>=-ht,ht+=st;ht>0;nt=nt*256+a[o+vt],vt+=gt,ht-=8);for(it=nt&(1<<-ht)-1,nt>>=-ht,ht+=tt;ht>0;it=it*256+a[o+vt],vt+=gt,ht-=8);if(nt===0)nt=1-lt;else{if(nt===at)return it?NaN:(wt?-1:1)*(1/0);it=it+Math.pow(2,tt),nt=nt-lt}return(wt?-1:1)*it*Math.pow(2,nt-tt)};ieee754.write=function(a,o,et,tt,rt,nt){var it,st,at,lt=nt*8-rt-1,ht=(1<>1,gt=rt===23?Math.pow(2,-24)-Math.pow(2,-77):0,wt=tt?0:nt-1,ut=tt?1:-1,pt=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(st=isNaN(o)?1:0,it=ht):(it=Math.floor(Math.log(o)/Math.LN2),o*(at=Math.pow(2,-it))<1&&(it--,at*=2),it+vt>=1?o+=gt/at:o+=gt*Math.pow(2,1-vt),o*at>=2&&(it++,at/=2),it+vt>=ht?(st=0,it=ht):it+vt>=1?(st=(o*at-1)*Math.pow(2,rt),it=it+vt):(st=o*Math.pow(2,vt-1)*Math.pow(2,rt),it=0));rt>=8;a[et+wt]=st&255,wt+=ut,st/=256,rt-=8);for(it=it<0;a[et+wt]=it&255,wt+=ut,it/=256,lt-=8);a[et+wt-ut]|=pt*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(a){const o=base64Js,et=ieee754,tt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=st,a.SlowBuffer=bt,a.INSPECT_MAX_BYTES=50;const rt=2147483647;a.kMaxLength=rt,st.TYPED_ARRAY_SUPPORT=nt(),!st.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function nt(){try{const Kt=new Uint8Array(1),Lt={foo:function(){return 42}};return Object.setPrototypeOf(Lt,Uint8Array.prototype),Object.setPrototypeOf(Kt,Lt),Kt.foo()===42}catch{return!1}}Object.defineProperty(st.prototype,"parent",{enumerable:!0,get:function(){if(st.isBuffer(this))return this.buffer}}),Object.defineProperty(st.prototype,"offset",{enumerable:!0,get:function(){if(st.isBuffer(this))return this.byteOffset}});function it(Kt){if(Kt>rt)throw new RangeError('The value "'+Kt+'" is invalid for option "size"');const Lt=new Uint8Array(Kt);return Object.setPrototypeOf(Lt,st.prototype),Lt}function st(Kt,Lt,Ut){if(typeof Kt=="number"){if(typeof Lt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vt(Kt)}return at(Kt,Lt,Ut)}st.poolSize=8192;function at(Kt,Lt,Ut){if(typeof Kt=="string")return gt(Kt,Lt);if(ArrayBuffer.isView(Kt))return ut(Kt);if(Kt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Kt);if(Jr(Kt,ArrayBuffer)||Kt&&Jr(Kt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Jr(Kt,SharedArrayBuffer)||Kt&&Jr(Kt.buffer,SharedArrayBuffer)))return pt(Kt,Lt,Ut);if(typeof Kt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const rr=Kt.valueOf&&Kt.valueOf();if(rr!=null&&rr!==Kt)return st.from(rr,Lt,Ut);const vr=Et(Kt);if(vr)return vr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Kt[Symbol.toPrimitive]=="function")return st.from(Kt[Symbol.toPrimitive]("string"),Lt,Ut);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Kt)}st.from=function(Kt,Lt,Ut){return at(Kt,Lt,Ut)},Object.setPrototypeOf(st.prototype,Uint8Array.prototype),Object.setPrototypeOf(st,Uint8Array);function lt(Kt){if(typeof Kt!="number")throw new TypeError('"size" argument must be of type number');if(Kt<0)throw new RangeError('The value "'+Kt+'" is invalid for option "size"')}function ht(Kt,Lt,Ut){return lt(Kt),Kt<=0?it(Kt):Lt!==void 0?typeof Ut=="string"?it(Kt).fill(Lt,Ut):it(Kt).fill(Lt):it(Kt)}st.alloc=function(Kt,Lt,Ut){return ht(Kt,Lt,Ut)};function vt(Kt){return lt(Kt),it(Kt<0?0:yt(Kt)|0)}st.allocUnsafe=function(Kt){return vt(Kt)},st.allocUnsafeSlow=function(Kt){return vt(Kt)};function gt(Kt,Lt){if((typeof Lt!="string"||Lt==="")&&(Lt="utf8"),!st.isEncoding(Lt))throw new TypeError("Unknown encoding: "+Lt);const Ut=kt(Kt,Lt)|0;let rr=it(Ut);const vr=rr.write(Kt,Lt);return vr!==Ut&&(rr=rr.slice(0,vr)),rr}function wt(Kt){const Lt=Kt.length<0?0:yt(Kt.length)|0,Ut=it(Lt);for(let rr=0;rr=rt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+rt.toString(16)+" bytes");return Kt|0}function bt(Kt){return+Kt!=Kt&&(Kt=0),st.alloc(+Kt)}st.isBuffer=function(Lt){return Lt!=null&&Lt._isBuffer===!0&&Lt!==st.prototype},st.compare=function(Lt,Ut){if(Jr(Lt,Uint8Array)&&(Lt=st.from(Lt,Lt.offset,Lt.byteLength)),Jr(Ut,Uint8Array)&&(Ut=st.from(Ut,Ut.offset,Ut.byteLength)),!st.isBuffer(Lt)||!st.isBuffer(Ut))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Lt===Ut)return 0;let rr=Lt.length,vr=Ut.length;for(let kr=0,Tr=Math.min(rr,vr);krvr.length?(st.isBuffer(Tr)||(Tr=st.from(Tr)),Tr.copy(vr,kr)):Uint8Array.prototype.set.call(vr,Tr,kr);else if(st.isBuffer(Tr))Tr.copy(vr,kr);else throw new TypeError('"list" argument must be an Array of Buffers');kr+=Tr.length}return vr};function kt(Kt,Lt){if(st.isBuffer(Kt))return Kt.length;if(ArrayBuffer.isView(Kt)||Jr(Kt,ArrayBuffer))return Kt.byteLength;if(typeof Kt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Kt);const Ut=Kt.length,rr=arguments.length>2&&arguments[2]===!0;if(!rr&&Ut===0)return 0;let vr=!1;for(;;)switch(Lt){case"ascii":case"latin1":case"binary":return Ut;case"utf8":case"utf-8":return Lr(Kt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut*2;case"hex":return Ut>>>1;case"base64":return Pr(Kt).length;default:if(vr)return rr?-1:Lr(Kt).length;Lt=(""+Lt).toLowerCase(),vr=!0}}st.byteLength=kt;function It(Kt,Lt,Ut){let rr=!1;if((Lt===void 0||Lt<0)&&(Lt=0),Lt>this.length||((Ut===void 0||Ut>this.length)&&(Ut=this.length),Ut<=0)||(Ut>>>=0,Lt>>>=0,Ut<=Lt))return"";for(Kt||(Kt="utf8");;)switch(Kt){case"hex":return Tt(this,Lt,Ut);case"utf8":case"utf-8":return ct(this,Lt,Ut);case"ascii":return Mt(this,Lt,Ut);case"latin1":case"binary":return $t(this,Lt,Ut);case"base64":return Bt(this,Lt,Ut);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,Lt,Ut);default:if(rr)throw new TypeError("Unknown encoding: "+Kt);Kt=(Kt+"").toLowerCase(),rr=!0}}st.prototype._isBuffer=!0;function Ot(Kt,Lt,Ut){const rr=Kt[Lt];Kt[Lt]=Kt[Ut],Kt[Ut]=rr}st.prototype.swap16=function(){const Lt=this.length;if(Lt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Ut=0;UtUt&&(Lt+=" ... "),""},tt&&(st.prototype[tt]=st.prototype.inspect),st.prototype.compare=function(Lt,Ut,rr,vr,kr){if(Jr(Lt,Uint8Array)&&(Lt=st.from(Lt,Lt.offset,Lt.byteLength)),!st.isBuffer(Lt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Lt);if(Ut===void 0&&(Ut=0),rr===void 0&&(rr=Lt?Lt.length:0),vr===void 0&&(vr=0),kr===void 0&&(kr=this.length),Ut<0||rr>Lt.length||vr<0||kr>this.length)throw new RangeError("out of range index");if(vr>=kr&&Ut>=rr)return 0;if(vr>=kr)return-1;if(Ut>=rr)return 1;if(Ut>>>=0,rr>>>=0,vr>>>=0,kr>>>=0,this===Lt)return 0;let Tr=kr-vr,nn=rr-Ut;const cn=Math.min(Tr,nn),en=this.slice(vr,kr),kn=Lt.slice(Ut,rr);for(let sn=0;sn2147483647?Ut=2147483647:Ut<-2147483648&&(Ut=-2147483648),Ut=+Ut,Hr(Ut)&&(Ut=vr?0:Kt.length-1),Ut<0&&(Ut=Kt.length+Ut),Ut>=Kt.length){if(vr)return-1;Ut=Kt.length-1}else if(Ut<0)if(vr)Ut=0;else return-1;if(typeof Lt=="string"&&(Lt=st.from(Lt,rr)),st.isBuffer(Lt))return Lt.length===0?-1:Vt(Kt,Lt,Ut,rr,vr);if(typeof Lt=="number")return Lt=Lt&255,typeof Uint8Array.prototype.indexOf=="function"?vr?Uint8Array.prototype.indexOf.call(Kt,Lt,Ut):Uint8Array.prototype.lastIndexOf.call(Kt,Lt,Ut):Vt(Kt,[Lt],Ut,rr,vr);throw new TypeError("val must be string, number or Buffer")}function Vt(Kt,Lt,Ut,rr,vr){let kr=1,Tr=Kt.length,nn=Lt.length;if(rr!==void 0&&(rr=String(rr).toLowerCase(),rr==="ucs2"||rr==="ucs-2"||rr==="utf16le"||rr==="utf-16le")){if(Kt.length<2||Lt.length<2)return-1;kr=2,Tr/=2,nn/=2,Ut/=2}function cn(kn,sn){return kr===1?kn[sn]:kn.readUInt16BE(sn*kr)}let en;if(vr){let kn=-1;for(en=Ut;enTr&&(Ut=Tr-nn),en=Ut;en>=0;en--){let kn=!0;for(let sn=0;snvr&&(rr=vr)):rr=vr;const kr=Lt.length;rr>kr/2&&(rr=kr/2);let Tr;for(Tr=0;Tr>>0,isFinite(rr)?(rr=rr>>>0,vr===void 0&&(vr="utf8")):(vr=rr,rr=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const kr=this.length-Ut;if((rr===void 0||rr>kr)&&(rr=kr),Lt.length>0&&(rr<0||Ut<0)||Ut>this.length)throw new RangeError("Attempt to write outside buffer bounds");vr||(vr="utf8");let Tr=!1;for(;;)switch(vr){case"hex":return jt(this,Lt,Ut,rr);case"utf8":case"utf-8":return zt(this,Lt,Ut,rr);case"ascii":case"latin1":case"binary":return or(this,Lt,Ut,rr);case"base64":return qt(this,Lt,Ut,rr);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,Lt,Ut,rr);default:if(Tr)throw new TypeError("Unknown encoding: "+vr);vr=(""+vr).toLowerCase(),Tr=!0}},st.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Bt(Kt,Lt,Ut){return Lt===0&&Ut===Kt.length?o.fromByteArray(Kt):o.fromByteArray(Kt.slice(Lt,Ut))}function ct(Kt,Lt,Ut){Ut=Math.min(Kt.length,Ut);const rr=[];let vr=Lt;for(;vr239?4:kr>223?3:kr>191?2:1;if(vr+nn<=Ut){let cn,en,kn,sn;switch(nn){case 1:kr<128&&(Tr=kr);break;case 2:cn=Kt[vr+1],(cn&192)===128&&(sn=(kr&31)<<6|cn&63,sn>127&&(Tr=sn));break;case 3:cn=Kt[vr+1],en=Kt[vr+2],(cn&192)===128&&(en&192)===128&&(sn=(kr&15)<<12|(cn&63)<<6|en&63,sn>2047&&(sn<55296||sn>57343)&&(Tr=sn));break;case 4:cn=Kt[vr+1],en=Kt[vr+2],kn=Kt[vr+3],(cn&192)===128&&(en&192)===128&&(kn&192)===128&&(sn=(kr&15)<<18|(cn&63)<<12|(en&63)<<6|kn&63,sn>65535&&sn<1114112&&(Tr=sn))}}Tr===null?(Tr=65533,nn=1):Tr>65535&&(Tr-=65536,rr.push(Tr>>>10&1023|55296),Tr=56320|Tr&1023),rr.push(Tr),vr+=nn}return St(rr)}const xt=4096;function St(Kt){const Lt=Kt.length;if(Lt<=xt)return String.fromCharCode.apply(String,Kt);let Ut="",rr=0;for(;rrrr)&&(Ut=rr);let vr="";for(let kr=Lt;krrr&&(Lt=rr),Ut<0?(Ut+=rr,Ut<0&&(Ut=0)):Ut>rr&&(Ut=rr),UtUt)throw new RangeError("Trying to access beyond buffer length")}st.prototype.readUintLE=st.prototype.readUIntLE=function(Lt,Ut,rr){Lt=Lt>>>0,Ut=Ut>>>0,rr||Pt(Lt,Ut,this.length);let vr=this[Lt],kr=1,Tr=0;for(;++Tr>>0,Ut=Ut>>>0,rr||Pt(Lt,Ut,this.length);let vr=this[Lt+--Ut],kr=1;for(;Ut>0&&(kr*=256);)vr+=this[Lt+--Ut]*kr;return vr},st.prototype.readUint8=st.prototype.readUInt8=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,1,this.length),this[Lt]},st.prototype.readUint16LE=st.prototype.readUInt16LE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,2,this.length),this[Lt]|this[Lt+1]<<8},st.prototype.readUint16BE=st.prototype.readUInt16BE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,2,this.length),this[Lt]<<8|this[Lt+1]},st.prototype.readUint32LE=st.prototype.readUInt32LE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,4,this.length),(this[Lt]|this[Lt+1]<<8|this[Lt+2]<<16)+this[Lt+3]*16777216},st.prototype.readUint32BE=st.prototype.readUInt32BE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,4,this.length),this[Lt]*16777216+(this[Lt+1]<<16|this[Lt+2]<<8|this[Lt+3])},st.prototype.readBigUInt64LE=wr(function(Lt){Lt=Lt>>>0,Sr(Lt,"offset");const Ut=this[Lt],rr=this[Lt+7];(Ut===void 0||rr===void 0)&&br(Lt,this.length-8);const vr=Ut+this[++Lt]*2**8+this[++Lt]*2**16+this[++Lt]*2**24,kr=this[++Lt]+this[++Lt]*2**8+this[++Lt]*2**16+rr*2**24;return BigInt(vr)+(BigInt(kr)<>>0,Sr(Lt,"offset");const Ut=this[Lt],rr=this[Lt+7];(Ut===void 0||rr===void 0)&&br(Lt,this.length-8);const vr=Ut*2**24+this[++Lt]*2**16+this[++Lt]*2**8+this[++Lt],kr=this[++Lt]*2**24+this[++Lt]*2**16+this[++Lt]*2**8+rr;return(BigInt(vr)<>>0,Ut=Ut>>>0,rr||Pt(Lt,Ut,this.length);let vr=this[Lt],kr=1,Tr=0;for(;++Tr=kr&&(vr-=Math.pow(2,8*Ut)),vr},st.prototype.readIntBE=function(Lt,Ut,rr){Lt=Lt>>>0,Ut=Ut>>>0,rr||Pt(Lt,Ut,this.length);let vr=Ut,kr=1,Tr=this[Lt+--vr];for(;vr>0&&(kr*=256);)Tr+=this[Lt+--vr]*kr;return kr*=128,Tr>=kr&&(Tr-=Math.pow(2,8*Ut)),Tr},st.prototype.readInt8=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,1,this.length),this[Lt]&128?(255-this[Lt]+1)*-1:this[Lt]},st.prototype.readInt16LE=function(Lt,Ut){Lt=Lt>>>0,Ut||Pt(Lt,2,this.length);const rr=this[Lt]|this[Lt+1]<<8;return rr&32768?rr|4294901760:rr},st.prototype.readInt16BE=function(Lt,Ut){Lt=Lt>>>0,Ut||Pt(Lt,2,this.length);const rr=this[Lt+1]|this[Lt]<<8;return rr&32768?rr|4294901760:rr},st.prototype.readInt32LE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,4,this.length),this[Lt]|this[Lt+1]<<8|this[Lt+2]<<16|this[Lt+3]<<24},st.prototype.readInt32BE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,4,this.length),this[Lt]<<24|this[Lt+1]<<16|this[Lt+2]<<8|this[Lt+3]},st.prototype.readBigInt64LE=wr(function(Lt){Lt=Lt>>>0,Sr(Lt,"offset");const Ut=this[Lt],rr=this[Lt+7];(Ut===void 0||rr===void 0)&&br(Lt,this.length-8);const vr=this[Lt+4]+this[Lt+5]*2**8+this[Lt+6]*2**16+(rr<<24);return(BigInt(vr)<>>0,Sr(Lt,"offset");const Ut=this[Lt],rr=this[Lt+7];(Ut===void 0||rr===void 0)&&br(Lt,this.length-8);const vr=(Ut<<24)+this[++Lt]*2**16+this[++Lt]*2**8+this[++Lt];return(BigInt(vr)<>>0,Ut||Pt(Lt,4,this.length),et.read(this,Lt,!0,23,4)},st.prototype.readFloatBE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,4,this.length),et.read(this,Lt,!1,23,4)},st.prototype.readDoubleLE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,8,this.length),et.read(this,Lt,!0,52,8)},st.prototype.readDoubleBE=function(Lt,Ut){return Lt=Lt>>>0,Ut||Pt(Lt,8,this.length),et.read(this,Lt,!1,52,8)};function mt(Kt,Lt,Ut,rr,vr,kr){if(!st.isBuffer(Kt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Lt>vr||LtKt.length)throw new RangeError("Index out of range")}st.prototype.writeUintLE=st.prototype.writeUIntLE=function(Lt,Ut,rr,vr){if(Lt=+Lt,Ut=Ut>>>0,rr=rr>>>0,!vr){const nn=Math.pow(2,8*rr)-1;mt(this,Lt,Ut,rr,nn,0)}let kr=1,Tr=0;for(this[Ut]=Lt&255;++Tr>>0,rr=rr>>>0,!vr){const nn=Math.pow(2,8*rr)-1;mt(this,Lt,Ut,rr,nn,0)}let kr=rr-1,Tr=1;for(this[Ut+kr]=Lt&255;--kr>=0&&(Tr*=256);)this[Ut+kr]=Lt/Tr&255;return Ut+rr},st.prototype.writeUint8=st.prototype.writeUInt8=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,1,255,0),this[Ut]=Lt&255,Ut+1},st.prototype.writeUint16LE=st.prototype.writeUInt16LE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,2,65535,0),this[Ut]=Lt&255,this[Ut+1]=Lt>>>8,Ut+2},st.prototype.writeUint16BE=st.prototype.writeUInt16BE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,2,65535,0),this[Ut]=Lt>>>8,this[Ut+1]=Lt&255,Ut+2},st.prototype.writeUint32LE=st.prototype.writeUInt32LE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,4,4294967295,0),this[Ut+3]=Lt>>>24,this[Ut+2]=Lt>>>16,this[Ut+1]=Lt>>>8,this[Ut]=Lt&255,Ut+4},st.prototype.writeUint32BE=st.prototype.writeUInt32BE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,4,4294967295,0),this[Ut]=Lt>>>24,this[Ut+1]=Lt>>>16,this[Ut+2]=Lt>>>8,this[Ut+3]=Lt&255,Ut+4};function Ft(Kt,Lt,Ut,rr,vr){Xt(Lt,rr,vr,Kt,Ut,7);let kr=Number(Lt&BigInt(4294967295));Kt[Ut++]=kr,kr=kr>>8,Kt[Ut++]=kr,kr=kr>>8,Kt[Ut++]=kr,kr=kr>>8,Kt[Ut++]=kr;let Tr=Number(Lt>>BigInt(32)&BigInt(4294967295));return Kt[Ut++]=Tr,Tr=Tr>>8,Kt[Ut++]=Tr,Tr=Tr>>8,Kt[Ut++]=Tr,Tr=Tr>>8,Kt[Ut++]=Tr,Ut}function Qt(Kt,Lt,Ut,rr,vr){Xt(Lt,rr,vr,Kt,Ut,7);let kr=Number(Lt&BigInt(4294967295));Kt[Ut+7]=kr,kr=kr>>8,Kt[Ut+6]=kr,kr=kr>>8,Kt[Ut+5]=kr,kr=kr>>8,Kt[Ut+4]=kr;let Tr=Number(Lt>>BigInt(32)&BigInt(4294967295));return Kt[Ut+3]=Tr,Tr=Tr>>8,Kt[Ut+2]=Tr,Tr=Tr>>8,Kt[Ut+1]=Tr,Tr=Tr>>8,Kt[Ut]=Tr,Ut+8}st.prototype.writeBigUInt64LE=wr(function(Lt,Ut=0){return Ft(this,Lt,Ut,BigInt(0),BigInt("0xffffffffffffffff"))}),st.prototype.writeBigUInt64BE=wr(function(Lt,Ut=0){return Qt(this,Lt,Ut,BigInt(0),BigInt("0xffffffffffffffff"))}),st.prototype.writeIntLE=function(Lt,Ut,rr,vr){if(Lt=+Lt,Ut=Ut>>>0,!vr){const cn=Math.pow(2,8*rr-1);mt(this,Lt,Ut,rr,cn-1,-cn)}let kr=0,Tr=1,nn=0;for(this[Ut]=Lt&255;++kr>0)-nn&255;return Ut+rr},st.prototype.writeIntBE=function(Lt,Ut,rr,vr){if(Lt=+Lt,Ut=Ut>>>0,!vr){const cn=Math.pow(2,8*rr-1);mt(this,Lt,Ut,rr,cn-1,-cn)}let kr=rr-1,Tr=1,nn=0;for(this[Ut+kr]=Lt&255;--kr>=0&&(Tr*=256);)Lt<0&&nn===0&&this[Ut+kr+1]!==0&&(nn=1),this[Ut+kr]=(Lt/Tr>>0)-nn&255;return Ut+rr},st.prototype.writeInt8=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,1,127,-128),Lt<0&&(Lt=255+Lt+1),this[Ut]=Lt&255,Ut+1},st.prototype.writeInt16LE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,2,32767,-32768),this[Ut]=Lt&255,this[Ut+1]=Lt>>>8,Ut+2},st.prototype.writeInt16BE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,2,32767,-32768),this[Ut]=Lt>>>8,this[Ut+1]=Lt&255,Ut+2},st.prototype.writeInt32LE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,4,2147483647,-2147483648),this[Ut]=Lt&255,this[Ut+1]=Lt>>>8,this[Ut+2]=Lt>>>16,this[Ut+3]=Lt>>>24,Ut+4},st.prototype.writeInt32BE=function(Lt,Ut,rr){return Lt=+Lt,Ut=Ut>>>0,rr||mt(this,Lt,Ut,4,2147483647,-2147483648),Lt<0&&(Lt=4294967295+Lt+1),this[Ut]=Lt>>>24,this[Ut+1]=Lt>>>16,this[Ut+2]=Lt>>>8,this[Ut+3]=Lt&255,Ut+4},st.prototype.writeBigInt64LE=wr(function(Lt,Ut=0){return Ft(this,Lt,Ut,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),st.prototype.writeBigInt64BE=wr(function(Lt,Ut=0){return Qt(this,Lt,Ut,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function cr(Kt,Lt,Ut,rr,vr,kr){if(Ut+rr>Kt.length)throw new RangeError("Index out of range");if(Ut<0)throw new RangeError("Index out of range")}function Gt(Kt,Lt,Ut,rr,vr){return Lt=+Lt,Ut=Ut>>>0,vr||cr(Kt,Lt,Ut,4),et.write(Kt,Lt,Ut,rr,23,4),Ut+4}st.prototype.writeFloatLE=function(Lt,Ut,rr){return Gt(this,Lt,Ut,!0,rr)},st.prototype.writeFloatBE=function(Lt,Ut,rr){return Gt(this,Lt,Ut,!1,rr)};function Zt(Kt,Lt,Ut,rr,vr){return Lt=+Lt,Ut=Ut>>>0,vr||cr(Kt,Lt,Ut,8),et.write(Kt,Lt,Ut,rr,52,8),Ut+8}st.prototype.writeDoubleLE=function(Lt,Ut,rr){return Zt(this,Lt,Ut,!0,rr)},st.prototype.writeDoubleBE=function(Lt,Ut,rr){return Zt(this,Lt,Ut,!1,rr)},st.prototype.copy=function(Lt,Ut,rr,vr){if(!st.isBuffer(Lt))throw new TypeError("argument should be a Buffer");if(rr||(rr=0),!vr&&vr!==0&&(vr=this.length),Ut>=Lt.length&&(Ut=Lt.length),Ut||(Ut=0),vr>0&&vr=this.length)throw new RangeError("Index out of range");if(vr<0)throw new RangeError("sourceEnd out of bounds");vr>this.length&&(vr=this.length),Lt.length-Ut>>0,rr=rr===void 0?this.length:rr>>>0,Lt||(Lt=0);let kr;if(typeof Lt=="number")for(kr=Ut;kr2**32?vr=gr(String(Ut)):typeof Ut=="bigint"&&(vr=String(Ut),(Ut>BigInt(2)**BigInt(32)||Ut<-(BigInt(2)**BigInt(32)))&&(vr=gr(vr)),vr+="n"),rr+=` It must be ${Lt}. Received ${vr}`,rr},RangeError);function gr(Kt){let Lt="",Ut=Kt.length;const rr=Kt[0]==="-"?1:0;for(;Ut>=rr+4;Ut-=3)Lt=`_${Kt.slice(Ut-3,Ut)}${Lt}`;return`${Kt.slice(0,Ut)}${Lt}`}function Jt(Kt,Lt,Ut){Sr(Lt,"offset"),(Kt[Lt]===void 0||Kt[Lt+Ut]===void 0)&&br(Lt,Kt.length-(Ut+1))}function Xt(Kt,Lt,Ut,rr,vr,kr){if(Kt>Ut||Kt3?Lt===0||Lt===BigInt(0)?nn=`>= 0${Tr} and < 2${Tr} ** ${(kr+1)*8}${Tr}`:nn=`>= -(2${Tr} ** ${(kr+1)*8-1}${Tr}) and < 2 ** ${(kr+1)*8-1}${Tr}`:nn=`>= ${Lt}${Tr} and <= ${Ut}${Tr}`,new Yt.ERR_OUT_OF_RANGE("value",nn,Kt)}Jt(rr,vr,kr)}function Sr(Kt,Lt){if(typeof Kt!="number")throw new Yt.ERR_INVALID_ARG_TYPE(Lt,"number",Kt)}function br(Kt,Lt,Ut){throw Math.floor(Kt)!==Kt?(Sr(Kt,Ut),new Yt.ERR_OUT_OF_RANGE(Ut||"offset","an integer",Kt)):Lt<0?new Yt.ERR_BUFFER_OUT_OF_BOUNDS:new Yt.ERR_OUT_OF_RANGE(Ut||"offset",`>= ${Ut?1:0} and <= ${Lt}`,Kt)}const Or=/[^+/0-9A-Za-z-_]/g;function Zr(Kt){if(Kt=Kt.split("=")[0],Kt=Kt.trim().replace(Or,""),Kt.length<2)return"";for(;Kt.length%4!==0;)Kt=Kt+"=";return Kt}function Lr(Kt,Lt){Lt=Lt||1/0;let Ut;const rr=Kt.length;let vr=null;const kr=[];for(let Tr=0;Tr55295&&Ut<57344){if(!vr){if(Ut>56319){(Lt-=3)>-1&&kr.push(239,191,189);continue}else if(Tr+1===rr){(Lt-=3)>-1&&kr.push(239,191,189);continue}vr=Ut;continue}if(Ut<56320){(Lt-=3)>-1&&kr.push(239,191,189),vr=Ut;continue}Ut=(vr-55296<<10|Ut-56320)+65536}else vr&&(Lt-=3)>-1&&kr.push(239,191,189);if(vr=null,Ut<128){if((Lt-=1)<0)break;kr.push(Ut)}else if(Ut<2048){if((Lt-=2)<0)break;kr.push(Ut>>6|192,Ut&63|128)}else if(Ut<65536){if((Lt-=3)<0)break;kr.push(Ut>>12|224,Ut>>6&63|128,Ut&63|128)}else if(Ut<1114112){if((Lt-=4)<0)break;kr.push(Ut>>18|240,Ut>>12&63|128,Ut>>6&63|128,Ut&63|128)}else throw new Error("Invalid code point")}return kr}function yr(Kt){const Lt=[];for(let Ut=0;Ut>8,vr=Ut%256,kr.push(vr),kr.push(rr);return kr}function Pr(Kt){return o.toByteArray(Zr(Kt))}function Cr(Kt,Lt,Ut,rr){let vr;for(vr=0;vr=Lt.length||vr>=Kt.length);++vr)Lt[vr+Ut]=Kt[vr];return vr}function Jr(Kt,Lt){return Kt instanceof Lt||Kt!=null&&Kt.constructor!=null&&Kt.constructor.name!=null&&Kt.constructor.name===Lt.name}function Hr(Kt){return Kt!==Kt}const ur=function(){const Kt="0123456789abcdef",Lt=new Array(256);for(let Ut=0;Ut<16;++Ut){const rr=Ut*16;for(let vr=0;vr<16;++vr)Lt[rr+vr]=Kt[Ut]+Kt[vr]}return Lt}();function wr(Kt){return typeof BigInt>"u"?Rr:Kt}function Rr(){throw new Error("BigInt not supported")}})(buffer$2);var browser$c={exports:{}},process$1=browser$c.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(a){if(cachedSetTimeout===setTimeout)return setTimeout(a,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(a,0);try{return cachedSetTimeout(a,0)}catch{try{return cachedSetTimeout.call(null,a,0)}catch{return cachedSetTimeout.call(this,a,0)}}}function runClearTimeout(a){if(cachedClearTimeout===clearTimeout)return clearTimeout(a);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(a);try{return cachedClearTimeout(a)}catch{try{return cachedClearTimeout.call(null,a)}catch{return cachedClearTimeout.call(this,a)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var a=runTimeout(cleanUpNextTick);draining=!0;for(var o=queue.length;o;){for(currentQueue=queue,queue=[];++queueIndex1)for(var et=1;et>>1,mt=$t[Pt];if(0>>1;Ptrt(cr,At))Gtrt(Zt,cr)?($t[Pt]=Zt,$t[Gt]=At,Pt=Gt):($t[Pt]=cr,$t[Qt]=At,Pt=Qt);else if(Gtrt(Zt,At))$t[Pt]=Zt,$t[Gt]=At,Pt=Gt;else break e}}return Tt}function rt($t,Tt){var At=$t.sortIndex-Tt.sortIndex;return At!==0?At:$t.id-Tt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var nt=performance;a.unstable_now=function(){return nt.now()}}else{var it=Date,st=it.now();a.unstable_now=function(){return it.now()-st}}var at=[],lt=[],ht=1,vt=null,gt=3,wt=!1,ut=!1,pt=!1,Et=typeof setTimeout=="function"?setTimeout:null,yt=typeof clearTimeout=="function"?clearTimeout:null,bt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function kt($t){for(var Tt=et(lt);Tt!==null;){if(Tt.callback===null)tt(lt);else if(Tt.startTime<=$t)tt(lt),Tt.sortIndex=Tt.expirationTime,o(at,Tt);else break;Tt=et(lt)}}function It($t){if(pt=!1,kt($t),!ut)if(et(at)!==null)ut=!0,St(Ot);else{var Tt=et(lt);Tt!==null&&Mt(It,Tt.startTime-$t)}}function Ot($t,Tt){ut=!1,pt&&(pt=!1,yt(jt),jt=-1),wt=!0;var At=gt;try{for(kt(Tt),vt=et(at);vt!==null&&(!(vt.expirationTime>Tt)||$t&&!qt());){var Pt=vt.callback;if(typeof Pt=="function"){vt.callback=null,gt=vt.priorityLevel;var mt=Pt(vt.expirationTime<=Tt);Tt=a.unstable_now(),typeof mt=="function"?vt.callback=mt:vt===et(at)&&tt(at),kt(Tt)}else tt(at);vt=et(at)}if(vt!==null)var Ft=!0;else{var Qt=et(lt);Qt!==null&&Mt(It,Qt.startTime-Tt),Ft=!1}return Ft}finally{vt=null,gt=At,wt=!1}}var Nt=!1,Vt=null,jt=-1,zt=5,or=-1;function qt(){return!(a.unstable_now()-or$t||125<$t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):zt=0<$t?Math.floor(1e3/$t):5},a.unstable_getCurrentPriorityLevel=function(){return gt},a.unstable_getFirstCallbackNode=function(){return et(at)},a.unstable_next=function($t){switch(gt){case 1:case 2:case 3:var Tt=3;break;default:Tt=gt}var At=gt;gt=Tt;try{return $t()}finally{gt=At}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function($t,Tt){switch($t){case 1:case 2:case 3:case 4:case 5:break;default:$t=3}var At=gt;gt=$t;try{return Tt()}finally{gt=At}},a.unstable_scheduleCallback=function($t,Tt,At){var Pt=a.unstable_now();switch(typeof At=="object"&&At!==null?(At=At.delay,At=typeof At=="number"&&0Pt?($t.sortIndex=At,o(lt,$t),et(at)===null&&$t===et(lt)&&(pt?(yt(jt),jt=-1):pt=!0,Mt(It,At-Pt))):($t.sortIndex=mt,o(at,$t),ut||wt||(ut=!0,St(Ot))),$t},a.unstable_shouldYield=qt,a.unstable_wrapCallback=function($t){var Tt=gt;return function(){var At=gt;gt=Tt;try{return $t.apply(this,arguments)}finally{gt=At}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var aa=reactExports,ca=schedulerExports;function p$4(a){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+a,et=1;et"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(a){return ja.call(ma,a)?!0:ja.call(la,a)?!1:ka.test(a)?ma[a]=!0:(la[a]=!0,!1)}function pa(a,o,et,tt){if(et!==null&&et.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return tt?!1:et!==null?!et.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function qa(a,o,et,tt){if(o===null||typeof o>"u"||pa(a,o,et,tt))return!0;if(tt)return!1;if(et!==null)switch(et.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function v$5(a,o,et,tt,rt,nt,it){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=tt,this.attributeNamespace=rt,this.mustUseProperty=et,this.propertyName=a,this.type=o,this.sanitizeURL=nt,this.removeEmptyString=it}var z$3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z$3[a]=new v$5(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var o=a[0];z$3[o]=new v$5(o,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z$3[a]=new v$5(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){z$3[a]=new v$5(a,2,!1,a,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(a){z$3[a]=new v$5(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){z$3[a]=new v$5(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){z$3[a]=new v$5(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){z$3[a]=new v$5(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){z$3[a]=new v$5(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(a){return a[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(a){var o=a.replace(ra,sa);z$3[o]=new v$5(o,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var o=a.replace(ra,sa);z$3[o]=new v$5(o,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var o=a.replace(ra,sa);z$3[o]=new v$5(o,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){z$3[a]=new v$5(a,1,!1,a.toLowerCase(),null,!1,!1)});z$3.xlinkHref=new v$5("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){z$3[a]=new v$5(a,1,!1,a.toLowerCase(),null,!0,!0)});function ta(a,o,et,tt){var rt=z$3.hasOwnProperty(o)?z$3[o]:null;(rt!==null?rt.type!==0:tt||!(2st||rt[it]!==nt[st]){var at=` -`+rt[it].replace(" at new "," at ");return a.displayName&&at.includes("")&&(at=at.replace("",a.displayName)),at}while(1<=it&&0<=st);break}}}finally{Na=!1,Error.prepareStackTrace=et}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}function Qa(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return o=a.displayName||null,o!==null?o:Qa(a.type)||"Memo";case Ha:o=a._payload,a=a._init;try{return Qa(a(o))}catch{}}return null}function Ra(a){var o=a.type;switch(a.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(o);case 8:return o===za?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ta(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ua(a){var o=Ta(a)?"checked":"value",et=Object.getOwnPropertyDescriptor(a.constructor.prototype,o),tt=""+a[o];if(!a.hasOwnProperty(o)&&typeof et<"u"&&typeof et.get=="function"&&typeof et.set=="function"){var rt=et.get,nt=et.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return rt.call(this)},set:function(it){tt=""+it,nt.call(this,it)}}),Object.defineProperty(a,o,{enumerable:et.enumerable}),{getValue:function(){return tt},setValue:function(it){tt=""+it},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var et=o.getValue(),tt="";return a&&(tt=Ta(a)?a.checked?"true":"false":a.value),a=tt,a!==et?(o.setValue(a),!0):!1}function Xa(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ya(a,o){var et=o.checked;return A$2({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:et??a._wrapperState.initialChecked})}function Za(a,o){var et=o.defaultValue==null?"":o.defaultValue,tt=o.checked!=null?o.checked:o.defaultChecked;et=Sa(o.value!=null?o.value:et),a._wrapperState={initialChecked:tt,initialValue:et,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function ab(a,o){o=o.checked,o!=null&&ta(a,"checked",o,!1)}function bb(a,o){ab(a,o);var et=Sa(o.value),tt=o.type;if(et!=null)tt==="number"?(et===0&&a.value===""||a.value!=et)&&(a.value=""+et):a.value!==""+et&&(a.value=""+et);else if(tt==="submit"||tt==="reset"){a.removeAttribute("value");return}o.hasOwnProperty("value")?cb(a,o.type,et):o.hasOwnProperty("defaultValue")&&cb(a,o.type,Sa(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(a.defaultChecked=!!o.defaultChecked)}function db(a,o,et){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var tt=o.type;if(!(tt!=="submit"&&tt!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+a._wrapperState.initialValue,et||o===a.value||(a.value=o),a.defaultValue=o}et=a.name,et!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,et!==""&&(a.name=et)}function cb(a,o,et){(o!=="number"||Xa(a.ownerDocument)!==a)&&(et==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+et&&(a.defaultValue=""+et))}var eb=Array.isArray;function fb(a,o,et,tt){if(a=a.options,o){o={};for(var rt=0;rt"+o.valueOf().toString()+"",o=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;o.firstChild;)a.appendChild(o.firstChild)}});function ob(a,o){if(o){var et=a.firstChild;if(et&&et===a.lastChild&&et.nodeType===3){et.nodeValue=o;return}}a.textContent=o}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a){qb.forEach(function(o){o=o+a.charAt(0).toUpperCase()+a.substring(1),pb[o]=pb[a]})});function rb(a,o,et){return o==null||typeof o=="boolean"||o===""?"":et||typeof o!="number"||o===0||pb.hasOwnProperty(a)&&pb[a]?(""+o).trim():o+"px"}function sb(a,o){a=a.style;for(var et in o)if(o.hasOwnProperty(et)){var tt=et.indexOf("--")===0,rt=rb(et,o[et],tt);et==="float"&&(et="cssFloat"),tt?a.setProperty(et,rt):a[et]=rt}}var tb=A$2({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 ub(a,o){if(o){if(tb[a]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(p$4(137,a));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(p$4(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(p$4(61))}if(o.style!=null&&typeof o.style!="object")throw Error(p$4(62))}}function vb(a,o){if(a.indexOf("-")===-1)return typeof o.is=="string";switch(a){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 wb=null;function xb(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if(typeof yb!="function")throw Error(p$4(280));var o=a.stateNode;o&&(o=Db(o),yb(a.stateNode,a.type,o))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,o=Ab;if(Ab=zb=null,Bb(a),o)for(a=0;a>>=0,a===0?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;function tc(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,o){var et=a.pendingLanes;if(et===0)return 0;var tt=0,rt=a.suspendedLanes,nt=a.pingedLanes,it=et&268435455;if(it!==0){var st=it&~rt;st!==0?tt=tc(st):(nt&=it,nt!==0&&(tt=tc(nt)))}else it=et&~rt,it!==0?tt=tc(it):nt!==0&&(tt=tc(nt));if(tt===0)return 0;if(o!==0&&o!==tt&&!(o&rt)&&(rt=tt&-tt,nt=o&-o,rt>=nt||rt===16&&(nt&4194240)!==0))return o;if(tt&4&&(tt|=et&16),o=a.entangledLanes,o!==0)for(a=a.entanglements,o&=tt;0et;et++)o.push(a);return o}function Ac(a,o,et){a.pendingLanes|=o,o!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,o=31-oc(o),a[o]=et}function Bc(a,o){var et=a.pendingLanes&~o;a.pendingLanes=o,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=o,a.mutableReadLanes&=o,a.entangledLanes&=o,o=a.entanglements;var tt=a.eventTimes;for(a=a.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(a,o){switch(a){case"keyup":return $d.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ie$1=!1;function je$1(a,o){switch(a){case"compositionend":return he$1(o);case"keypress":return o.which!==32?null:(fe$1=!0,ee$1);case"textInput":return a=o.data,a===ee$1&&fe$1?null:a;default:return null}}function ke$1(a,o){if(ie$1)return a==="compositionend"||!ae$1&&ge$1(a,o)?(a=nd(),md=ld=kd=null,ie$1=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:et,offset:o-a};a=tt}e:{for(;et;){if(et.nextSibling){et=et.nextSibling;break e}et=et.parentNode}et=void 0}et=Je(et)}}function Le(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?Le(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function Me$1(){for(var a=window,o=Xa();o instanceof a.HTMLIFrameElement;){try{var et=typeof o.contentWindow.location.href=="string"}catch{et=!1}if(et)a=o.contentWindow;else break;o=Xa(a.document)}return o}function Ne$1(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function Oe(a){var o=Me$1(),et=a.focusedElem,tt=a.selectionRange;if(o!==et&&et&&et.ownerDocument&&Le(et.ownerDocument.documentElement,et)){if(tt!==null&&Ne$1(et)){if(o=tt.start,a=tt.end,a===void 0&&(a=o),"selectionStart"in et)et.selectionStart=o,et.selectionEnd=Math.min(a,et.value.length);else if(a=(o=et.ownerDocument||document)&&o.defaultView||window,a.getSelection){a=a.getSelection();var rt=et.textContent.length,nt=Math.min(tt.start,rt);tt=tt.end===void 0?nt:Math.min(tt.end,rt),!a.extend&&nt>tt&&(rt=tt,tt=nt,nt=rt),rt=Ke(et,nt);var it=Ke(et,tt);rt&&it&&(a.rangeCount!==1||a.anchorNode!==rt.node||a.anchorOffset!==rt.offset||a.focusNode!==it.node||a.focusOffset!==it.offset)&&(o=o.createRange(),o.setStart(rt.node,rt.offset),a.removeAllRanges(),nt>tt?(a.addRange(o),a.extend(it.node,it.offset)):(o.setEnd(it.node,it.offset),a.addRange(o)))}}for(o=[],a=et;a=a.parentNode;)a.nodeType===1&&o.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof et.focus=="function"&&et.focus(),et=0;et=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(a,o,et){var tt=et.window===et?et.document:et.nodeType===9?et:et.ownerDocument;Te$1||Qe==null||Qe!==Xa(tt)||(tt=Qe,"selectionStart"in tt&&Ne$1(tt)?tt={start:tt.selectionStart,end:tt.selectionEnd}:(tt=(tt.ownerDocument&&tt.ownerDocument.defaultView||window).getSelection(),tt={anchorNode:tt.anchorNode,anchorOffset:tt.anchorOffset,focusNode:tt.focusNode,focusOffset:tt.focusOffset}),Se$1&&Ie(Se$1,tt)||(Se$1=tt,tt=oe$1(Re$1,"onSelect"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(a,o){Tf++,Sf[Tf]=a.current,a.current=o}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,o){var et=a.type.contextTypes;if(!et)return Vf;var tt=a.stateNode;if(tt&&tt.__reactInternalMemoizedUnmaskedChildContext===o)return tt.__reactInternalMemoizedMaskedChildContext;var rt={},nt;for(nt in et)rt[nt]=o[nt];return tt&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=o,a.__reactInternalMemoizedMaskedChildContext=rt),rt}function Zf(a){return a=a.childContextTypes,a!=null}function $f(){E$1(Wf),E$1(H$1)}function ag(a,o,et){if(H$1.current!==Vf)throw Error(p$4(168));G$2(H$1,o),G$2(Wf,et)}function bg(a,o,et){var tt=a.stateNode;if(o=o.childContextTypes,typeof tt.getChildContext!="function")return et;tt=tt.getChildContext();for(var rt in tt)if(!(rt in o))throw Error(p$4(108,Ra(a)||"Unknown",rt));return A$2({},et,tt)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$2(H$1,a),G$2(Wf,Wf.current),!0}function dg(a,o,et){var tt=a.stateNode;if(!tt)throw Error(p$4(169));et?(a=bg(a,o,Xf),tt.__reactInternalMemoizedMergedChildContext=a,E$1(Wf),E$1(H$1),G$2(H$1,a)):E$1(Wf),G$2(Wf,et)}var eg=null,fg=!1,gg=!1;function hg(a){eg===null?eg=[a]:eg.push(a)}function ig(a){fg=!0,hg(a)}function jg(){if(!gg&&eg!==null){gg=!0;var a=0,o=C;try{var et=eg;for(C=1;a>=it,rt-=it,rg=1<<32-oc(o)+rt|et<jt?(zt=Vt,Vt=null):zt=Vt.sibling;var or=gt(yt,Vt,kt[jt],It);if(or===null){Vt===null&&(Vt=zt);break}a&&Vt&&or.alternate===null&&o(yt,Vt),bt=nt(or,bt,jt),Nt===null?Ot=or:Nt.sibling=or,Nt=or,Vt=zt}if(jt===kt.length)return et(yt,Vt),I$1&&tg(yt,jt),Ot;if(Vt===null){for(;jtjt?(zt=Vt,Vt=null):zt=Vt.sibling;var qt=gt(yt,Vt,or.value,It);if(qt===null){Vt===null&&(Vt=zt);break}a&&Vt&&qt.alternate===null&&o(yt,Vt),bt=nt(qt,bt,jt),Nt===null?Ot=qt:Nt.sibling=qt,Nt=qt,Vt=zt}if(or.done)return et(yt,Vt),I$1&&tg(yt,jt),Ot;if(Vt===null){for(;!or.done;jt++,or=kt.next())or=vt(yt,or.value,It),or!==null&&(bt=nt(or,bt,jt),Nt===null?Ot=or:Nt.sibling=or,Nt=or);return I$1&&tg(yt,jt),Ot}for(Vt=tt(yt,Vt);!or.done;jt++,or=kt.next())or=wt(Vt,yt,jt,or.value,It),or!==null&&(a&&or.alternate!==null&&Vt.delete(or.key===null?jt:or.key),bt=nt(or,bt,jt),Nt===null?Ot=or:Nt.sibling=or,Nt=or);return a&&Vt.forEach(function(Rt){return o(yt,Rt)}),I$1&&tg(yt,jt),Ot}function Et(yt,bt,kt,It){if(typeof kt=="object"&&kt!==null&&kt.type===ya&&kt.key===null&&(kt=kt.props.children),typeof kt=="object"&&kt!==null){switch(kt.$$typeof){case va:e:{for(var Ot=kt.key,Nt=bt;Nt!==null;){if(Nt.key===Ot){if(Ot=kt.type,Ot===ya){if(Nt.tag===7){et(yt,Nt.sibling),bt=rt(Nt,kt.props.children),bt.return=yt,yt=bt;break e}}else if(Nt.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===Ha&&uh(Ot)===Nt.type){et(yt,Nt.sibling),bt=rt(Nt,kt.props),bt.ref=sh$1(yt,Nt,kt),bt.return=yt,yt=bt;break e}et(yt,Nt);break}else o(yt,Nt);Nt=Nt.sibling}kt.type===ya?(bt=Ah(kt.props.children,yt.mode,It,kt.key),bt.return=yt,yt=bt):(It=yh(kt.type,kt.key,kt.props,null,yt.mode,It),It.ref=sh$1(yt,bt,kt),It.return=yt,yt=It)}return it(yt);case wa:e:{for(Nt=kt.key;bt!==null;){if(bt.key===Nt)if(bt.tag===4&&bt.stateNode.containerInfo===kt.containerInfo&&bt.stateNode.implementation===kt.implementation){et(yt,bt.sibling),bt=rt(bt,kt.children||[]),bt.return=yt,yt=bt;break e}else{et(yt,bt);break}else o(yt,bt);bt=bt.sibling}bt=zh(kt,yt.mode,It),bt.return=yt,yt=bt}return it(yt);case Ha:return Nt=kt._init,Et(yt,bt,Nt(kt._payload),It)}if(eb(kt))return ut(yt,bt,kt,It);if(Ka(kt))return pt(yt,bt,kt,It);th(yt,kt)}return typeof kt=="string"&&kt!==""||typeof kt=="number"?(kt=""+kt,bt!==null&&bt.tag===6?(et(yt,bt.sibling),bt=rt(bt,kt),bt.return=yt,yt=bt):(et(yt,bt),bt=xh(kt,yt.mode,It),bt.return=yt,yt=bt),it(yt)):et(yt,bt)}return Et}var Bh=vh(!0),Ch$1=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p$4(174));return a}function Ih(a,o){switch(G$2(Gh,o),G$2(Fh,a),G$2(Eh,Dh),a=o.nodeType,a){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:lb(null,"");break;default:a=a===8?o.parentNode:o,o=a.namespaceURI||null,a=a.tagName,o=lb(o,a)}E$1(Eh),G$2(Eh,o)}function Jh(){E$1(Eh),E$1(Fh),E$1(Gh)}function Kh$1(a){Hh(Gh.current);var o=Hh(Eh.current),et=lb(o,a.type);o!==et&&(G$2(Fh,a),G$2(Eh,et))}function Lh(a){Fh.current===a&&(E$1(Eh),E$1(Fh))}var M$1=Uf(0);function Mh(a){for(var o=a;o!==null;){if(o.tag===13){var et=o.memoizedState;if(et!==null&&(et=et.dehydrated,et===null||et.data==="$?"||et.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Nh=[];function Oh(){for(var a=0;aet?et:4,a(!0);var tt=Qh.transition;Qh.transition={};try{a(!1),o()}finally{C=et,Qh.transition=tt}}function Fi(){return di().memoizedState}function Gi(a,o,et){var tt=lh(a);if(et={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null},Hi(a))Ii(o,et);else if(et=Yg(a,o,et,tt),et!==null){var rt=L$1();mh(et,a,tt,rt),Ji(et,o,tt)}}function ri(a,o,et){var tt=lh(a),rt={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(o,rt);else{var nt=a.alternate;if(a.lanes===0&&(nt===null||nt.lanes===0)&&(nt=o.lastRenderedReducer,nt!==null))try{var it=o.lastRenderedState,st=nt(it,et);if(rt.hasEagerState=!0,rt.eagerState=st,He$1(st,it)){var at=o.interleaved;at===null?(rt.next=rt,Xg(o)):(rt.next=at.next,at.next=rt),o.interleaved=rt;return}}catch{}finally{}et=Yg(a,o,rt,tt),et!==null&&(rt=L$1(),mh(et,a,tt,rt),Ji(et,o,tt))}}function Hi(a){var o=a.alternate;return a===N$1||o!==null&&o===N$1}function Ii(a,o){Th=Sh=!0;var et=a.pending;et===null?o.next=o:(o.next=et.next,et.next=o),a.pending=o}function Ji(a,o,et){if(et&4194240){var tt=o.lanes;tt&=a.pendingLanes,et|=tt,o.lanes=et,Cc(a,et)}}var ai={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,o){return ci().memoizedState=[a,o===void 0?null:o],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,o,et){return et=et!=null?et.concat([a]):null,ti(4194308,4,yi.bind(null,o,a),et)},useLayoutEffect:function(a,o){return ti(4194308,4,a,o)},useInsertionEffect:function(a,o){return ti(4,2,a,o)},useMemo:function(a,o){var et=ci();return o=o===void 0?null:o,a=a(),et.memoizedState=[a,o],a},useReducer:function(a,o,et){var tt=ci();return o=et!==void 0?et(o):o,tt.memoizedState=tt.baseState=o,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:o},tt.queue=a,a=a.dispatch=Gi.bind(null,N$1,a),[tt.memoizedState,a]},useRef:function(a){var o=ci();return a={current:a},o.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),o=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[o,a]},useMutableSource:function(){},useSyncExternalStore:function(a,o,et){var tt=N$1,rt=ci();if(I$1){if(et===void 0)throw Error(p$4(407));et=et()}else{if(et=o(),R$1===null)throw Error(p$4(349));Rh&30||ni(tt,o,et)}rt.memoizedState=et;var nt={value:et,getSnapshot:o};return rt.queue=nt,vi(ki.bind(null,tt,nt,a),[a]),tt.flags|=2048,li(9,mi.bind(null,tt,nt,et,o),void 0,null),et},useId:function(){var a=ci(),o=R$1.identifierPrefix;if(I$1){var et=sg,tt=rg;et=(tt&~(1<<32-oc(tt)-1)).toString(32)+et,o=":"+o+"R"+et,et=Uh++,0<\/script>",a=a.removeChild(a.firstChild)):typeof tt.is=="string"?a=it.createElement(et,{is:tt.is}):(a=it.createElement(et),et==="select"&&(it=a,tt.multiple?it.multiple=!0:tt.size&&(it.size=tt.size))):a=it.createElementNS(a,et),a[Of]=o,a[Pf]=tt,Aj(a,o,!1,!1),o.stateNode=a;e:{switch(it=vb(et,tt),et){case"dialog":D("cancel",a),D("close",a),rt=tt;break;case"iframe":case"object":case"embed":D("load",a),rt=tt;break;case"video":case"audio":for(rt=0;rtHj&&(o.flags|=128,tt=!0,Ej(nt,!1),o.lanes=4194304)}else{if(!tt)if(a=Mh(it),a!==null){if(o.flags|=128,tt=!0,et=a.updateQueue,et!==null&&(o.updateQueue=et,o.flags|=4),Ej(nt,!0),nt.tail===null&&nt.tailMode==="hidden"&&!it.alternate&&!I$1)return S$1(o),null}else 2*B$1()-nt.renderingStartTime>Hj&&et!==1073741824&&(o.flags|=128,tt=!0,Ej(nt,!1),o.lanes=4194304);nt.isBackwards?(it.sibling=o.child,o.child=it):(et=nt.last,et!==null?et.sibling=it:o.child=it,nt.last=it)}return nt.tail!==null?(o=nt.tail,nt.rendering=o,nt.tail=o.sibling,nt.renderingStartTime=B$1(),o.sibling=null,et=M$1.current,G$2(M$1,tt?et&1|2:et&1),o):(S$1(o),null);case 22:case 23:return Ij(),tt=o.memoizedState!==null,a!==null&&a.memoizedState!==null!==tt&&(o.flags|=8192),tt&&o.mode&1?gj&1073741824&&(S$1(o),o.subtreeFlags&6&&(o.flags|=8192)):S$1(o),null;case 24:return null;case 25:return null}throw Error(p$4(156,o.tag))}function Jj(a,o){switch(wg(o),o.tag){case 1:return Zf(o.type)&&$f(),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Jh(),E$1(Wf),E$1(H$1),Oh(),a=o.flags,a&65536&&!(a&128)?(o.flags=a&-65537|128,o):null;case 5:return Lh(o),null;case 13:if(E$1(M$1),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(p$4(340));Ig()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return E$1(M$1),null;case 4:return Jh(),null;case 10:return Rg(o.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(a,o){var et=a.ref;if(et!==null)if(typeof et=="function")try{et(null)}catch(tt){W$7(a,o,tt)}else et.current=null}function Nj(a,o,et){try{et()}catch(tt){W$7(a,o,tt)}}var Oj=!1;function Pj(a,o){if(Cf=dd,a=Me$1(),Ne$1(a)){if("selectionStart"in a)var et={start:a.selectionStart,end:a.selectionEnd};else e:{et=(et=a.ownerDocument)&&et.defaultView||window;var tt=et.getSelection&&et.getSelection();if(tt&&tt.rangeCount!==0){et=tt.anchorNode;var rt=tt.anchorOffset,nt=tt.focusNode;tt=tt.focusOffset;try{et.nodeType,nt.nodeType}catch{et=null;break e}var it=0,st=-1,at=-1,lt=0,ht=0,vt=a,gt=null;t:for(;;){for(var wt;vt!==et||rt!==0&&vt.nodeType!==3||(st=it+rt),vt!==nt||tt!==0&&vt.nodeType!==3||(at=it+tt),vt.nodeType===3&&(it+=vt.nodeValue.length),(wt=vt.firstChild)!==null;)gt=vt,vt=wt;for(;;){if(vt===a)break t;if(gt===et&&++lt===rt&&(st=it),gt===nt&&++ht===tt&&(at=it),(wt=vt.nextSibling)!==null)break;vt=gt,gt=vt.parentNode}vt=wt}et=st===-1||at===-1?null:{start:st,end:at}}else et=null}et=et||{start:0,end:0}}else et=null;for(Df={focusedElem:a,selectionRange:et},dd=!1,V$1=o;V$1!==null;)if(o=V$1,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,V$1=a;else for(;V$1!==null;){o=V$1;try{var ut=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ut!==null){var pt=ut.memoizedProps,Et=ut.memoizedState,yt=o.stateNode,bt=yt.getSnapshotBeforeUpdate(o.elementType===o.type?pt:Lg(o.type,pt),Et);yt.__reactInternalSnapshotBeforeUpdate=bt}break;case 3:var kt=o.stateNode.containerInfo;kt.nodeType===1?kt.textContent="":kt.nodeType===9&&kt.documentElement&&kt.removeChild(kt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch(It){W$7(o,o.return,It)}if(a=o.sibling,a!==null){a.return=o.return,V$1=a;break}V$1=o.return}return ut=Oj,Oj=!1,ut}function Qj(a,o,et){var tt=o.updateQueue;if(tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&a)===a){var nt=rt.destroy;rt.destroy=void 0,nt!==void 0&&Nj(o,et,nt)}rt=rt.next}while(rt!==tt)}}function Rj(a,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var et=o=o.next;do{if((et.tag&a)===a){var tt=et.create;et.destroy=tt()}et=et.next}while(et!==o)}}function Sj(a){var o=a.ref;if(o!==null){var et=a.stateNode;switch(a.tag){case 5:a=et;break;default:a=et}typeof o=="function"?o(a):o.current=a}}function Tj(a){var o=a.alternate;o!==null&&(a.alternate=null,Tj(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&(delete o[Of],delete o[Pf],delete o[of],delete o[Qf],delete o[Rf])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uj(a){return a.tag===5||a.tag===3||a.tag===4}function Vj(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Uj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Wj(a,o,et){var tt=a.tag;if(tt===5||tt===6)a=a.stateNode,o?et.nodeType===8?et.parentNode.insertBefore(a,o):et.insertBefore(a,o):(et.nodeType===8?(o=et.parentNode,o.insertBefore(a,et)):(o=et,o.appendChild(a)),et=et._reactRootContainer,et!=null||o.onclick!==null||(o.onclick=Bf));else if(tt!==4&&(a=a.child,a!==null))for(Wj(a,o,et),a=a.sibling;a!==null;)Wj(a,o,et),a=a.sibling}function Xj(a,o,et){var tt=a.tag;if(tt===5||tt===6)a=a.stateNode,o?et.insertBefore(a,o):et.appendChild(a);else if(tt!==4&&(a=a.child,a!==null))for(Xj(a,o,et),a=a.sibling;a!==null;)Xj(a,o,et),a=a.sibling}var X$1=null,Yj=!1;function Zj(a,o,et){for(et=et.child;et!==null;)ak(a,o,et),et=et.sibling}function ak(a,o,et){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,et)}catch{}switch(et.tag){case 5:U$1||Mj(et,o);case 6:var tt=X$1,rt=Yj;X$1=null,Zj(a,o,et),X$1=tt,Yj=rt,X$1!==null&&(Yj?(a=X$1,et=et.stateNode,a.nodeType===8?a.parentNode.removeChild(et):a.removeChild(et)):X$1.removeChild(et.stateNode));break;case 18:X$1!==null&&(Yj?(a=X$1,et=et.stateNode,a.nodeType===8?Kf(a.parentNode,et):a.nodeType===1&&Kf(a,et),bd(a)):Kf(X$1,et.stateNode));break;case 4:tt=X$1,rt=Yj,X$1=et.stateNode.containerInfo,Yj=!0,Zj(a,o,et),X$1=tt,Yj=rt;break;case 0:case 11:case 14:case 15:if(!U$1&&(tt=et.updateQueue,tt!==null&&(tt=tt.lastEffect,tt!==null))){rt=tt=tt.next;do{var nt=rt,it=nt.destroy;nt=nt.tag,it!==void 0&&(nt&2||nt&4)&&Nj(et,o,it),rt=rt.next}while(rt!==tt)}Zj(a,o,et);break;case 1:if(!U$1&&(Mj(et,o),tt=et.stateNode,typeof tt.componentWillUnmount=="function"))try{tt.props=et.memoizedProps,tt.state=et.memoizedState,tt.componentWillUnmount()}catch(st){W$7(et,o,st)}Zj(a,o,et);break;case 21:Zj(a,o,et);break;case 22:et.mode&1?(U$1=(tt=U$1)||et.memoizedState!==null,Zj(a,o,et),U$1=tt):Zj(a,o,et);break;default:Zj(a,o,et)}}function bk(a){var o=a.updateQueue;if(o!==null){a.updateQueue=null;var et=a.stateNode;et===null&&(et=a.stateNode=new Lj),o.forEach(function(tt){var rt=ck.bind(null,a,tt);et.has(tt)||(et.add(tt),tt.then(rt,rt))})}}function dk(a,o){var et=o.deletions;if(et!==null)for(var tt=0;ttrt&&(rt=it),tt&=~nt}if(tt=rt,tt=B$1()-tt,tt=(120>tt?120:480>tt?480:1080>tt?1080:1920>tt?1920:3e3>tt?3e3:4320>tt?4320:1960*mk(tt/1960))-tt,10a?16:a,xk===null)var tt=!1;else{if(a=xk,xk=null,yk=0,K$6&6)throw Error(p$4(331));var rt=K$6;for(K$6|=4,V$1=a.current;V$1!==null;){var nt=V$1,it=nt.child;if(V$1.flags&16){var st=nt.deletions;if(st!==null){for(var at=0;atB$1()-gk?Lk(a,0):sk|=et),Ek(a,o)}function Zk(a,o){o===0&&(a.mode&1?(o=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):o=1);var et=L$1();a=Zg(a,o),a!==null&&(Ac(a,o,et),Ek(a,et))}function vj(a){var o=a.memoizedState,et=0;o!==null&&(et=o.retryLane),Zk(a,et)}function ck(a,o){var et=0;switch(a.tag){case 13:var tt=a.stateNode,rt=a.memoizedState;rt!==null&&(et=rt.retryLane);break;case 19:tt=a.stateNode;break;default:throw Error(p$4(314))}tt!==null&&tt.delete(o),Zk(a,et)}var Wk;Wk=function(a,o,et){if(a!==null)if(a.memoizedProps!==o.pendingProps||Wf.current)Ug=!0;else{if(!(a.lanes&et)&&!(o.flags&128))return Ug=!1,zj(a,o,et);Ug=!!(a.flags&131072)}else Ug=!1,I$1&&o.flags&1048576&&ug(o,ng,o.index);switch(o.lanes=0,o.tag){case 2:var tt=o.type;jj(a,o),a=o.pendingProps;var rt=Yf(o,H$1.current);Tg(o,et),rt=Xh(null,o,tt,a,rt,et);var nt=bi();return o.flags|=1,typeof rt=="object"&&rt!==null&&typeof rt.render=="function"&&rt.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Zf(tt)?(nt=!0,cg(o)):nt=!1,o.memoizedState=rt.state!==null&&rt.state!==void 0?rt.state:null,ah(o),rt.updater=nh,o.stateNode=rt,rt._reactInternals=o,rh$1(o,tt,a,et),o=kj(null,o,tt,!0,nt,et)):(o.tag=0,I$1&&nt&&vg(o),Yi(null,o,rt,et),o=o.child),o;case 16:tt=o.elementType;e:{switch(jj(a,o),a=o.pendingProps,rt=tt._init,tt=rt(tt._payload),o.type=tt,rt=o.tag=$k(tt),a=Lg(tt,a),rt){case 0:o=dj(null,o,tt,a,et);break e;case 1:o=ij(null,o,tt,a,et);break e;case 11:o=Zi(null,o,tt,a,et);break e;case 14:o=aj(null,o,tt,Lg(tt.type,a),et);break e}throw Error(p$4(306,tt,""))}return o;case 0:return tt=o.type,rt=o.pendingProps,rt=o.elementType===tt?rt:Lg(tt,rt),dj(a,o,tt,rt,et);case 1:return tt=o.type,rt=o.pendingProps,rt=o.elementType===tt?rt:Lg(tt,rt),ij(a,o,tt,rt,et);case 3:e:{if(lj(o),a===null)throw Error(p$4(387));tt=o.pendingProps,nt=o.memoizedState,rt=nt.element,bh(a,o),gh(o,tt,null,et);var it=o.memoizedState;if(tt=it.element,nt.isDehydrated)if(nt={element:tt,isDehydrated:!1,cache:it.cache,pendingSuspenseBoundaries:it.pendingSuspenseBoundaries,transitions:it.transitions},o.updateQueue.baseState=nt,o.memoizedState=nt,o.flags&256){rt=Ki(Error(p$4(423)),o),o=mj(a,o,tt,et,rt);break e}else if(tt!==rt){rt=Ki(Error(p$4(424)),o),o=mj(a,o,tt,et,rt);break e}else for(yg=Lf(o.stateNode.containerInfo.firstChild),xg=o,I$1=!0,zg=null,et=Ch$1(o,null,tt,et),o.child=et;et;)et.flags=et.flags&-3|4096,et=et.sibling;else{if(Ig(),tt===rt){o=$i(a,o,et);break e}Yi(a,o,tt,et)}o=o.child}return o;case 5:return Kh$1(o),a===null&&Eg(o),tt=o.type,rt=o.pendingProps,nt=a!==null?a.memoizedProps:null,it=rt.children,Ef(tt,rt)?it=null:nt!==null&&Ef(tt,nt)&&(o.flags|=32),hj(a,o),Yi(a,o,it,et),o.child;case 6:return a===null&&Eg(o),null;case 13:return pj(a,o,et);case 4:return Ih(o,o.stateNode.containerInfo),tt=o.pendingProps,a===null?o.child=Bh(o,null,tt,et):Yi(a,o,tt,et),o.child;case 11:return tt=o.type,rt=o.pendingProps,rt=o.elementType===tt?rt:Lg(tt,rt),Zi(a,o,tt,rt,et);case 7:return Yi(a,o,o.pendingProps,et),o.child;case 8:return Yi(a,o,o.pendingProps.children,et),o.child;case 12:return Yi(a,o,o.pendingProps.children,et),o.child;case 10:e:{if(tt=o.type._context,rt=o.pendingProps,nt=o.memoizedProps,it=rt.value,G$2(Mg,tt._currentValue),tt._currentValue=it,nt!==null)if(He$1(nt.value,it)){if(nt.children===rt.children&&!Wf.current){o=$i(a,o,et);break e}}else for(nt=o.child,nt!==null&&(nt.return=o);nt!==null;){var st=nt.dependencies;if(st!==null){it=nt.child;for(var at=st.firstContext;at!==null;){if(at.context===tt){if(nt.tag===1){at=ch$1(-1,et&-et),at.tag=2;var lt=nt.updateQueue;if(lt!==null){lt=lt.shared;var ht=lt.pending;ht===null?at.next=at:(at.next=ht.next,ht.next=at),lt.pending=at}}nt.lanes|=et,at=nt.alternate,at!==null&&(at.lanes|=et),Sg(nt.return,et,o),st.lanes|=et;break}at=at.next}}else if(nt.tag===10)it=nt.type===o.type?null:nt.child;else if(nt.tag===18){if(it=nt.return,it===null)throw Error(p$4(341));it.lanes|=et,st=it.alternate,st!==null&&(st.lanes|=et),Sg(it,et,o),it=nt.sibling}else it=nt.child;if(it!==null)it.return=nt;else for(it=nt;it!==null;){if(it===o){it=null;break}if(nt=it.sibling,nt!==null){nt.return=it.return,it=nt;break}it=it.return}nt=it}Yi(a,o,rt.children,et),o=o.child}return o;case 9:return rt=o.type,tt=o.pendingProps.children,Tg(o,et),rt=Vg(rt),tt=tt(rt),o.flags|=1,Yi(a,o,tt,et),o.child;case 14:return tt=o.type,rt=Lg(tt,o.pendingProps),rt=Lg(tt.type,rt),aj(a,o,tt,rt,et);case 15:return cj(a,o,o.type,o.pendingProps,et);case 17:return tt=o.type,rt=o.pendingProps,rt=o.elementType===tt?rt:Lg(tt,rt),jj(a,o),o.tag=1,Zf(tt)?(a=!0,cg(o)):a=!1,Tg(o,et),ph(o,tt,rt),rh$1(o,tt,rt,et),kj(null,o,tt,!0,a,et);case 19:return yj(a,o,et);case 22:return ej(a,o,et)}throw Error(p$4(156,o.tag))};function Gk(a,o){return ac(a,o)}function al(a,o,et,tt){this.tag=a,this.key=et,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=tt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,o,et,tt){return new al(a,o,et,tt)}function bj(a){return a=a.prototype,!(!a||!a.isReactComponent)}function $k(a){if(typeof a=="function")return bj(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Da)return 11;if(a===Ga)return 14}return 2}function wh(a,o){var et=a.alternate;return et===null?(et=Bg(a.tag,o,a.key,a.mode),et.elementType=a.elementType,et.type=a.type,et.stateNode=a.stateNode,et.alternate=a,a.alternate=et):(et.pendingProps=o,et.type=a.type,et.flags=0,et.subtreeFlags=0,et.deletions=null),et.flags=a.flags&14680064,et.childLanes=a.childLanes,et.lanes=a.lanes,et.child=a.child,et.memoizedProps=a.memoizedProps,et.memoizedState=a.memoizedState,et.updateQueue=a.updateQueue,o=a.dependencies,et.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},et.sibling=a.sibling,et.index=a.index,et.ref=a.ref,et}function yh(a,o,et,tt,rt,nt){var it=2;if(tt=a,typeof a=="function")bj(a)&&(it=1);else if(typeof a=="string")it=5;else e:switch(a){case ya:return Ah(et.children,rt,nt,o);case za:it=8,rt|=8;break;case Aa:return a=Bg(12,et,o,rt|2),a.elementType=Aa,a.lanes=nt,a;case Ea:return a=Bg(13,et,o,rt),a.elementType=Ea,a.lanes=nt,a;case Fa:return a=Bg(19,et,o,rt),a.elementType=Fa,a.lanes=nt,a;case Ia:return qj(et,rt,nt,o);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ba:it=10;break e;case Ca:it=9;break e;case Da:it=11;break e;case Ga:it=14;break e;case Ha:it=16,tt=null;break e}throw Error(p$4(130,a==null?a:typeof a,""))}return o=Bg(it,et,o,rt),o.elementType=a,o.type=tt,o.lanes=nt,o}function Ah(a,o,et,tt){return a=Bg(7,a,tt,o),a.lanes=et,a}function qj(a,o,et,tt){return a=Bg(22,a,tt,o),a.elementType=Ia,a.lanes=et,a.stateNode={isHidden:!1},a}function xh(a,o,et){return a=Bg(6,a,null,o),a.lanes=et,a}function zh(a,o,et){return o=Bg(4,a.children!==null?a.children:[],a.key,o),o.lanes=et,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function bl(a,o,et,tt,rt){this.tag=o,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=tt,this.onRecoverableError=rt,this.mutableSourceEagerHydrationData=null}function cl(a,o,et,tt,rt,nt,it,st,at){return a=new bl(a,o,et,st,at),o===1?(o=1,nt===!0&&(o|=8)):o=0,nt=Bg(3,null,null,o),a.current=nt,nt.stateNode=a,nt.memoizedState={element:tt,isDehydrated:et,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(nt),a}function dl(a,o,et){var tt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(a){console.error(a)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$3=reactDomExports;createRoot=client$1.createRoot=m$3.createRoot,client$1.hydrateRoot=m$3.hydrateRoot;const scriptRel="modulepreload",assetsURL=function(a){return"/"+a},seen={},__vitePreload=function(o,et,tt){if(!et||et.length===0)return o();const rt=document.getElementsByTagName("link");return Promise.all(et.map(nt=>{if(nt=assetsURL(nt),nt in seen)return;seen[nt]=!0;const it=nt.endsWith(".css"),st=it?'[rel="stylesheet"]':"";if(!!tt)for(let ht=rt.length-1;ht>=0;ht--){const vt=rt[ht];if(vt.href===nt&&(!it||vt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${nt}"]${st}`))return;const lt=document.createElement("link");if(lt.rel=it?"stylesheet":scriptRel,it||(lt.as="script",lt.crossOrigin=""),lt.href=nt,document.head.appendChild(lt),it)return new Promise((ht,vt)=>{lt.addEventListener("load",ht),lt.addEventListener("error",()=>vt(new Error(`Unable to preload CSS for ${nt}`)))})})).then(()=>o()).catch(nt=>{const it=new Event("vite:preloadError",{cancelable:!0});if(it.payload=nt,window.dispatchEvent(it),!it.defaultPrevented)throw nt})},reportWebVitals=a=>{a&&a instanceof Function&&__vitePreload(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:o,getFID:et,getFCP:tt,getLCP:rt,getTTFB:nt})=>{o(a),et(a),tt(a),rt(a),nt(a)})};/** - * @remix-run/router v1.16.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(a){for(var o=1;o"u")throw new Error(o)}function warning(a,o){if(!a){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(a,o){return{usr:a.state,key:a.key,idx:o}}function createLocation(a,o,et,tt){return et===void 0&&(et=null),_extends$2({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof o=="string"?parsePath(o):o,{state:et,key:o&&o.key||tt||createKey()})}function createPath(a){let{pathname:o="/",search:et="",hash:tt=""}=a;return et&&et!=="?"&&(o+=et.charAt(0)==="?"?et:"?"+et),tt&&tt!=="#"&&(o+=tt.charAt(0)==="#"?tt:"#"+tt),o}function parsePath(a){let o={};if(a){let et=a.indexOf("#");et>=0&&(o.hash=a.substr(et),a=a.substr(0,et));let tt=a.indexOf("?");tt>=0&&(o.search=a.substr(tt),a=a.substr(0,tt)),a&&(o.pathname=a)}return o}function getUrlBasedHistory(a,o,et,tt){tt===void 0&&(tt={});let{window:rt=document.defaultView,v5Compat:nt=!1}=tt,it=rt.history,st=Action.Pop,at=null,lt=ht();lt==null&&(lt=0,it.replaceState(_extends$2({},it.state,{idx:lt}),""));function ht(){return(it.state||{idx:null}).idx}function vt(){st=Action.Pop;let Et=ht(),yt=Et==null?null:Et-lt;lt=Et,at&&at({action:st,location:pt.location,delta:yt})}function gt(Et,yt){st=Action.Push;let bt=createLocation(pt.location,Et,yt);et&&et(bt,Et),lt=ht()+1;let kt=getHistoryState(bt,lt),It=pt.createHref(bt);try{it.pushState(kt,"",It)}catch(Ot){if(Ot instanceof DOMException&&Ot.name==="DataCloneError")throw Ot;rt.location.assign(It)}nt&&at&&at({action:st,location:pt.location,delta:1})}function wt(Et,yt){st=Action.Replace;let bt=createLocation(pt.location,Et,yt);et&&et(bt,Et),lt=ht();let kt=getHistoryState(bt,lt),It=pt.createHref(bt);it.replaceState(kt,"",It),nt&&at&&at({action:st,location:pt.location,delta:0})}function ut(Et){let yt=rt.location.origin!=="null"?rt.location.origin:rt.location.href,bt=typeof Et=="string"?Et:createPath(Et);return bt=bt.replace(/ $/,"%20"),invariant(yt,"No window.location.(origin|href) available to create URL for href: "+bt),new URL(bt,yt)}let pt={get action(){return st},get location(){return a(rt,it)},listen(Et){if(at)throw new Error("A history only accepts one active listener");return rt.addEventListener(PopStateEventType,vt),at=Et,()=>{rt.removeEventListener(PopStateEventType,vt),at=null}},createHref(Et){return o(rt,Et)},createURL:ut,encodeLocation(Et){let yt=ut(Et);return{pathname:yt.pathname,search:yt.search,hash:yt.hash}},push:gt,replace:wt,go(Et){return it.go(Et)}};return pt}var ResultType;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(ResultType||(ResultType={}));function matchRoutes(a,o,et){et===void 0&&(et="/");let tt=typeof o=="string"?parsePath(o):o,rt=stripBasename(tt.pathname||"/",et);if(rt==null)return null;let nt=flattenRoutes(a);rankRouteBranches(nt);let it=null;for(let st=0;it==null&&st{let at={relativePath:st===void 0?nt.path||"":st,caseSensitive:nt.caseSensitive===!0,childrenIndex:it,route:nt};at.relativePath.startsWith("/")&&(invariant(at.relativePath.startsWith(tt),'Absolute route path "'+at.relativePath+'" nested under path '+('"'+tt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),at.relativePath=at.relativePath.slice(tt.length));let lt=joinPaths([tt,at.relativePath]),ht=et.concat(at);nt.children&&nt.children.length>0&&(invariant(nt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+lt+'".')),flattenRoutes(nt.children,o,ht,lt)),!(nt.path==null&&!nt.index)&&o.push({path:lt,score:computeScore(lt,nt.index),routesMeta:ht})};return a.forEach((nt,it)=>{var st;if(nt.path===""||!((st=nt.path)!=null&&st.includes("?")))rt(nt,it);else for(let at of explodeOptionalSegments(nt.path))rt(nt,it,at)}),o}function explodeOptionalSegments(a){let o=a.split("/");if(o.length===0)return[];let[et,...tt]=o,rt=et.endsWith("?"),nt=et.replace(/\?$/,"");if(tt.length===0)return rt?[nt,""]:[nt];let it=explodeOptionalSegments(tt.join("/")),st=[];return st.push(...it.map(at=>at===""?nt:[nt,at].join("/"))),rt&&st.push(...it),st.map(at=>a.startsWith("/")&&at===""?"/":at)}function rankRouteBranches(a){a.sort((o,et)=>o.score!==et.score?et.score-o.score:compareIndexes(o.routesMeta.map(tt=>tt.childrenIndex),et.routesMeta.map(tt=>tt.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=a=>a==="*";function computeScore(a,o){let et=a.split("/"),tt=et.length;return et.some(isSplat)&&(tt+=splatPenalty),o&&(tt+=indexRouteValue),et.filter(rt=>!isSplat(rt)).reduce((rt,nt)=>rt+(paramRe.test(nt)?dynamicSegmentValue:nt===""?emptySegmentValue:staticSegmentValue),tt)}function compareIndexes(a,o){return a.length===o.length&&a.slice(0,-1).every((tt,rt)=>tt===o[rt])?a[a.length-1]-o[o.length-1]:0}function matchRouteBranch(a,o){let{routesMeta:et}=a,tt={},rt="/",nt=[];for(let it=0;it{let{paramName:gt,isOptional:wt}=ht;if(gt==="*"){let pt=st[vt]||"";it=nt.slice(0,nt.length-pt.length).replace(/(.)\/+$/,"$1")}const ut=st[vt];return wt&&!ut?lt[gt]=void 0:lt[gt]=(ut||"").replace(/%2F/g,"/"),lt},{}),pathname:nt,pathnameBase:it,pattern:a}}function compilePath(a,o,et){o===void 0&&(o=!1),et===void 0&&(et=!0),warning(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let tt=[],rt="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(it,st,at)=>(tt.push({paramName:st,isOptional:at!=null}),at?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(tt.push({paramName:"*"}),rt+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):et?rt+="\\/*$":a!==""&&a!=="/"&&(rt+="(?:(?=\\/|$))"),[new RegExp(rt,o?void 0:"i"),tt]}function decodePath(a){try{return a.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return warning(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),a}}function stripBasename(a,o){if(o==="/")return a;if(!a.toLowerCase().startsWith(o.toLowerCase()))return null;let et=o.endsWith("/")?o.length-1:o.length,tt=a.charAt(et);return tt&&tt!=="/"?null:a.slice(et)||"/"}function resolvePath(a,o){o===void 0&&(o="/");let{pathname:et,search:tt="",hash:rt=""}=typeof a=="string"?parsePath(a):a;return{pathname:et?et.startsWith("/")?et:resolvePathname(et,o):o,search:normalizeSearch(tt),hash:normalizeHash(rt)}}function resolvePathname(a,o){let et=o.replace(/\/+$/,"").split("/");return a.split("/").forEach(rt=>{rt===".."?et.length>1&&et.pop():rt!=="."&&et.push(rt)}),et.length>1?et.join("/"):"/"}function getInvalidPathError(a,o,et,tt){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+o+"` field ["+JSON.stringify(tt)+"]. Please separate it out to the ")+("`to."+et+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(a){return a.filter((o,et)=>et===0||o.route.path&&o.route.path.length>0)}function getResolveToMatches(a,o){let et=getPathContributingMatches(a);return o?et.map((tt,rt)=>rt===a.length-1?tt.pathname:tt.pathnameBase):et.map(tt=>tt.pathnameBase)}function resolveTo(a,o,et,tt){tt===void 0&&(tt=!1);let rt;typeof a=="string"?rt=parsePath(a):(rt=_extends$2({},a),invariant(!rt.pathname||!rt.pathname.includes("?"),getInvalidPathError("?","pathname","search",rt)),invariant(!rt.pathname||!rt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",rt)),invariant(!rt.search||!rt.search.includes("#"),getInvalidPathError("#","search","hash",rt)));let nt=a===""||rt.pathname==="",it=nt?"/":rt.pathname,st;if(it==null)st=et;else{let vt=o.length-1;if(!tt&&it.startsWith("..")){let gt=it.split("/");for(;gt[0]==="..";)gt.shift(),vt-=1;rt.pathname=gt.join("/")}st=vt>=0?o[vt]:"/"}let at=resolvePath(rt,st),lt=it&&it!=="/"&&it.endsWith("/"),ht=(nt||it===".")&&et.endsWith("/");return!at.pathname.endsWith("/")&&(lt||ht)&&(at.pathname+="/"),at}const joinPaths=a=>a.join("/").replace(/\/\/+/g,"/"),normalizePathname=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,normalizeHash=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function isRouteErrorResponse(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(a){for(var o=1;o{st.current=!0}),reactExports.useCallback(function(lt,ht){if(ht===void 0&&(ht={}),!st.current)return;if(typeof lt=="number"){tt.go(lt);return}let vt=resolveTo(lt,JSON.parse(it),nt,ht.relative==="path");a==null&&o!=="/"&&(vt.pathname=vt.pathname==="/"?o:joinPaths([o,vt.pathname])),(ht.replace?tt.replace:tt.push)(vt,ht.state,ht)},[o,tt,it,nt,a])}function useRoutes(a,o){return useRoutesImpl(a,o)}function useRoutesImpl(a,o,et,tt){useInRouterContext()||invariant(!1);let{navigator:rt}=reactExports.useContext(NavigationContext),{matches:nt}=reactExports.useContext(RouteContext),it=nt[nt.length-1],st=it?it.params:{};it&&it.pathname;let at=it?it.pathnameBase:"/";it&&it.route;let lt=useLocation(),ht;if(o){var vt;let Et=typeof o=="string"?parsePath(o):o;at==="/"||(vt=Et.pathname)!=null&&vt.startsWith(at)||invariant(!1),ht=Et}else ht=lt;let gt=ht.pathname||"/",wt=gt;if(at!=="/"){let Et=at.replace(/^\//,"").split("/");wt="/"+gt.replace(/^\//,"").split("/").slice(Et.length).join("/")}let ut=matchRoutes(a,{pathname:wt}),pt=_renderMatches(ut&&ut.map(Et=>Object.assign({},Et,{params:Object.assign({},st,Et.params),pathname:joinPaths([at,rt.encodeLocation?rt.encodeLocation(Et.pathname).pathname:Et.pathname]),pathnameBase:Et.pathnameBase==="/"?at:joinPaths([at,rt.encodeLocation?rt.encodeLocation(Et.pathnameBase).pathname:Et.pathnameBase])})),nt,et,tt);return o&&pt?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$1({pathname:"/",search:"",hash:"",state:null,key:"default"},ht),navigationType:Action.Pop}},pt):pt}function DefaultErrorComponent(){let a=useRouteError(),o=isRouteErrorResponse(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),et=a instanceof Error?a.stack:null,rt={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},nt=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},o),et?reactExports.createElement("pre",{style:rt},et):null,nt)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,et){return et.location!==o.location||et.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:et.error,location:et.location,revalidation:o.revalidation||et.revalidation}}componentDidCatch(o,et){console.error("React Router caught the following error during render",o,et)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(a){let{routeContext:o,match:et,children:tt}=a,rt=reactExports.useContext(DataRouterContext);return rt&&rt.static&&rt.staticContext&&(et.route.errorElement||et.route.ErrorBoundary)&&(rt.staticContext._deepestRenderedBoundaryId=et.route.id),reactExports.createElement(RouteContext.Provider,{value:o},tt)}function _renderMatches(a,o,et,tt){var rt;if(o===void 0&&(o=[]),et===void 0&&(et=null),tt===void 0&&(tt=null),a==null){var nt;if((nt=et)!=null&&nt.errors)a=et.matches;else return null}let it=a,st=(rt=et)==null?void 0:rt.errors;if(st!=null){let ht=it.findIndex(vt=>vt.route.id&&(st==null?void 0:st[vt.route.id])!==void 0);ht>=0||invariant(!1),it=it.slice(0,Math.min(it.length,ht+1))}let at=!1,lt=-1;if(et&&tt&&tt.v7_partialHydration)for(let ht=0;ht=0?it=it.slice(0,lt+1):it=[it[0]];break}}}return it.reduceRight((ht,vt,gt)=>{let wt,ut=!1,pt=null,Et=null;et&&(wt=st&&vt.route.id?st[vt.route.id]:void 0,pt=vt.route.errorElement||defaultErrorElement,at&&(lt<0&>===0?(warningOnce("route-fallback",!1),ut=!0,Et=null):lt===gt&&(ut=!0,Et=vt.route.hydrateFallbackElement||null)));let yt=o.concat(it.slice(0,gt+1)),bt=()=>{let kt;return wt?kt=pt:ut?kt=Et:vt.route.Component?kt=reactExports.createElement(vt.route.Component,null):vt.route.element?kt=vt.route.element:kt=ht,reactExports.createElement(RenderedRoute,{match:vt,routeContext:{outlet:ht,matches:yt,isDataRoute:et!=null},children:kt})};return et&&(vt.route.ErrorBoundary||vt.route.errorElement||gt===0)?reactExports.createElement(RenderErrorBoundary,{location:et.location,revalidation:et.revalidation,component:pt,error:wt,children:bt(),routeContext:{outlet:null,matches:yt,isDataRoute:!0}}):bt()},null)}var DataRouterHook$1=function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a}(DataRouterHook$1||{}),DataRouterStateHook$1=function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a}(DataRouterStateHook$1||{});function useDataRouterContext(a){let o=reactExports.useContext(DataRouterContext);return o||invariant(!1),o}function useDataRouterState(a){let o=reactExports.useContext(DataRouterStateContext);return o||invariant(!1),o}function useRouteContext(a){let o=reactExports.useContext(RouteContext);return o||invariant(!1),o}function useCurrentRouteId(a){let o=useRouteContext(),et=o.matches[o.matches.length-1];return et.route.id||invariant(!1),et.route.id}function useRouteError(){var a;let o=reactExports.useContext(RouteErrorContext),et=useDataRouterState(DataRouterStateHook$1.UseRouteError),tt=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return o!==void 0?o:(a=et.errors)==null?void 0:a[tt]}function useNavigateStable(){let{router:a}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),o=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),et=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{et.current=!0}),reactExports.useCallback(function(rt,nt){nt===void 0&&(nt={}),et.current&&(typeof rt=="number"?a.navigate(rt):a.navigate(rt,_extends$1({fromRouteId:o},nt)))},[a,o])}const alreadyWarned={};function warningOnce(a,o,et){!o&&!alreadyWarned[a]&&(alreadyWarned[a]=!0)}function Route(a){invariant(!1)}function Router(a){let{basename:o="/",children:et=null,location:tt,navigationType:rt=Action.Pop,navigator:nt,static:it=!1,future:st}=a;useInRouterContext()&&invariant(!1);let at=o.replace(/^\/*/,"/"),lt=reactExports.useMemo(()=>({basename:at,navigator:nt,static:it,future:_extends$1({v7_relativeSplatPath:!1},st)}),[at,st,nt,it]);typeof tt=="string"&&(tt=parsePath(tt));let{pathname:ht="/",search:vt="",hash:gt="",state:wt=null,key:ut="default"}=tt,pt=reactExports.useMemo(()=>{let Et=stripBasename(ht,at);return Et==null?null:{location:{pathname:Et,search:vt,hash:gt,state:wt,key:ut},navigationType:rt}},[at,ht,vt,gt,wt,ut,rt]);return pt==null?null:reactExports.createElement(NavigationContext.Provider,{value:lt},reactExports.createElement(LocationContext.Provider,{children:et,value:pt}))}function Routes(a){let{children:o,location:et}=a;return useRoutes(createRoutesFromChildren(o),et)}new Promise(()=>{});function createRoutesFromChildren(a,o){o===void 0&&(o=[]);let et=[];return reactExports.Children.forEach(a,(tt,rt)=>{if(!reactExports.isValidElement(tt))return;let nt=[...o,rt];if(tt.type===reactExports.Fragment){et.push.apply(et,createRoutesFromChildren(tt.props.children,nt));return}tt.type!==Route&&invariant(!1),!tt.props.index||!tt.props.children||invariant(!1);let it={id:tt.props.id||nt.join("-"),caseSensitive:tt.props.caseSensitive,element:tt.props.element,Component:tt.props.Component,index:tt.props.index,path:tt.props.path,loader:tt.props.loader,action:tt.props.action,errorElement:tt.props.errorElement,ErrorBoundary:tt.props.ErrorBoundary,hasErrorBoundary:tt.props.ErrorBoundary!=null||tt.props.errorElement!=null,shouldRevalidate:tt.props.shouldRevalidate,handle:tt.props.handle,lazy:tt.props.lazy};tt.props.children&&(it.children=createRoutesFromChildren(tt.props.children,nt)),et.push(it)}),et}/** - * React Router DOM v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function createSearchParams(a){return a===void 0&&(a=""),new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((o,et)=>{let tt=a[et];return o.concat(Array.isArray(tt)?tt.map(rt=>[et,rt]):[[et,tt]])},[]))}function getSearchParamsForLocation(a,o){let et=createSearchParams(a);return o&&o.forEach((tt,rt)=>{et.has(rt)||o.getAll(rt).forEach(nt=>{et.append(rt,nt)})}),et}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=$2AODx$react[START_TRANSITION];function BrowserRouter(a){let{basename:o,children:et,future:tt,window:rt}=a,nt=reactExports.useRef();nt.current==null&&(nt.current=createBrowserHistory({window:rt,v5Compat:!0}));let it=nt.current,[st,at]=reactExports.useState({action:it.action,location:it.location}),{v7_startTransition:lt}=tt||{},ht=reactExports.useCallback(vt=>{lt&&startTransitionImpl?startTransitionImpl(()=>at(vt)):at(vt)},[at,lt]);return reactExports.useLayoutEffect(()=>it.listen(ht),[it,ht]),reactExports.createElement(Router,{basename:o,children:et,location:st.location,navigationType:st.action,navigator:it,future:tt})}var DataRouterHook;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams(a){let o=reactExports.useRef(createSearchParams(a)),et=reactExports.useRef(!1),tt=useLocation(),rt=reactExports.useMemo(()=>getSearchParamsForLocation(tt.search,et.current?null:o.current),[tt.search]),nt=useNavigate(),it=reactExports.useCallback((st,at)=>{const lt=createSearchParams(typeof st=="function"?st(rt):st);et.current=!0,nt("?"+lt,at)},[nt,rt]);return[rt,it]}const assertNever=a=>{throw new Error(`Unexpected object: ${a}`)};var dist$3={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(a){var o=window;if(o.sendToElectron)return o.sendToElectron("sphinx-bridge",a);o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?o.ReactNativeWebView.postMessage(JSON.stringify(a)):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx?o.webkit.messageHandlers.sphinx.postMessage(a):o.Android?o.Android.receiveMessage(JSON.stringify(a)):o.parent.postMessage(a,"*")}postMessage$1.postMessage=postMessage;function addEventer(a){var o=window;if(o.sendToElectron){o.EE&&o.EE.once("sphinx-bridge",a);return}else o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?document.addEventListener("message",function(et){var tt={};try{tt=JSON.parse(et.data)}catch{}a({data:tt})}):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx?o.sphinxMessage=function(et){var tt={};try{tt=JSON.parse(et)}catch{}a({data:tt})}:o.Android?o.sphinxMessage=function(et){var tt={};try{tt=JSON.parse(et)}catch{}a({data:tt})}:o.addEventListener("message",a)}postMessage$1.addEventer=addEventer;function removeEventer(a){var o=window;o.sendToElectron||(o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?document.removeEventListener("message",a):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx||o.Android?o.sphinxMessage=null:o.removeEventListener("message",a))}postMessage$1.removeEventer=removeEventer;(function(a){var o=commonjsGlobal&&commonjsGlobal.__assign||function(){return o=Object.assign||function(at){for(var lt,ht=1,vt=arguments.length;ht0&&wt[wt.length-1])&&(yt[0]===6||yt[0]===2)){ht=0;continue}if(yt[0]===3&&(!wt||yt[1]>wt[0]&&yt[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:it}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.AUTHORIZE)];case 2:return ht=gt.sent(),ht.pubkey?(this.isEnabled=!0,this.pubkey=ht.pubkey,[2,ht]):[3,4];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[3,4];case 4:return[2,null]}})})},at.prototype.authorize=function(lt,ht,vt){return et(this,void 0,void 0,function(){var gt,wt,ut,pt;return tt(this,function(Et){switch(Et.label){case 0:vt&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),Et.label=1;case 1:return Et.trys.push([1,3,,4]),gt=ht||!1,[4,this.postMsg(nt.AUTHORIZE,{challenge:lt,noBudget:gt})];case 2:return wt=Et.sent(),ut=wt.budget||wt.budget===0,(gt||ut)&&wt.pubkey?(this.isEnabled=!0,this.budget=wt.budget||0,this.pubkey=wt.pubkey,[2,wt]):[3,4];case 3:return pt=Et.sent(),this.logging&&console.log(pt),[3,4];case 4:return[2,null]}})})},at.prototype.topup=function(){return et(this,void 0,void 0,function(){var lt,ht,vt;return tt(this,function(gt){switch(gt.label){case 0:this.logging&&console.log("=> TOP UP"),gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.SETBUDGET)];case 2:return lt=gt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[3,4];case 4:return[2,null]}})})},at.prototype.keysend=function(lt,ht){return et(this,void 0,void 0,function(){var vt,gt,wt;return tt(this,function(ut){switch(ut.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!lt||!ht)return[2,null];if(lt.length!==66)return[2,null];if(ht<1)return[2,null];if(ht>this.budget)return[2,null];ut.label=1;case 1:return ut.trys.push([1,3,,4]),vt={dest:lt,amt:ht},[4,this.postMsg(nt.KEYSEND,vt)];case 2:return gt=ut.sent(),gt&>.success&&(this.budget=this.budget-ht,gt.budget=this.budget),[2,gt];case 3:return wt=ut.sent(),this.logging&&console.log(wt),[2,null];case 4:return[2]}})})},at.prototype.updated=function(){return et(this,void 0,void 0,function(){var lt,ht;return tt(this,function(vt){switch(vt.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];vt.label=1;case 1:return vt.trys.push([1,3,,4]),[4,this.postMsg(nt.UPDATED)];case 2:return lt=vt.sent(),[2,lt];case 3:return ht=vt.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},at.prototype.sendPayment=function(lt){return et(this,void 0,void 0,function(){var ht,vt;return tt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.PAYMENT,{paymentRequest:lt})];case 2:return ht=gt.sent(),[2,ht];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[2,null];case 4:return[2]}})})},at.prototype.saveLsat=function(lt,ht,vt){return et(this,void 0,void 0,function(){var gt,wt;return tt(this,function(ut){switch(ut.label){case 0:this.logging&&console.log("=> SAVE LSAT"),ut.label=1;case 1:return ut.trys.push([1,3,,4]),[4,this.postMsg(nt.LSAT,{paymentRequest:lt,macaroon:ht,issuer:vt})];case 2:return gt=ut.sent(),[2,gt];case 3:return wt=ut.sent(),this.logging&&console.log(wt),[2,wt];case 4:return[2]}})})},at.prototype.getLsat=function(lt){return et(this,void 0,void 0,function(){var ht,vt;return tt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETLSAT,{issuer:lt})];case 2:return ht=gt.sent(),[2,ht];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[2,vt];case 4:return[2]}})})},at.prototype.updateLsat=function(lt,ht){return et(this,void 0,void 0,function(){var vt,gt;return tt(this,function(wt){switch(wt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];wt.label=1;case 1:return wt.trys.push([1,3,,4]),[4,this.postMsg(nt.UPDATELSAT,{identifier:lt,status:ht})];case 2:return vt=wt.sent(),[2,vt];case 3:return gt=wt.sent(),this.logging&&console.log(gt),[2,gt];case 4:return[2]}})})},at.prototype.makeInvoice=function(lt,ht){return et(this,void 0,void 0,function(){var vt,gt;return tt(this,function(wt){switch(wt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];wt.label=1;case 1:return wt.trys.push([1,3,,4]),[4,this.postMsg(nt.INVOICE,{amt:lt,memo:ht})];case 2:return vt=wt.sent(),[2,vt];case 3:return gt=wt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},at.prototype.signMessage=function(lt){return et(this,void 0,void 0,function(){var ht,vt;return tt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.SIGN,{message:lt})];case 2:return ht=gt.sent(),[2,ht];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[2,null];case 4:return[2]}})})},at.prototype.verifyMessage=function(lt,ht){return et(this,void 0,void 0,function(){var vt,gt;return tt(this,function(wt){switch(wt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];wt.label=1;case 1:return wt.trys.push([1,3,,4]),[4,this.postMsg(nt.SIGN,{signature:lt,message:ht})];case 2:return vt=wt.sent(),[2,vt];case 3:return gt=wt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},at.prototype.reload=function(lt){return et(this,void 0,void 0,function(){var ht,vt,gt;return tt(this,function(wt){switch(wt.label){case 0:this.logging&&console.log("=> RELOAD"),wt.label=1;case 1:return wt.trys.push([1,3,,4]),[4,this.postMsg(nt.RELOAD,{password:lt})];case 2:return ht=wt.sent(),vt=ht.budget||ht.budget===0,vt&&ht.pubkey?(this.isEnabled=!0,this.budget=ht.budget,this.pubkey=ht.pubkey,[2,ht]):[3,4];case 3:return gt=wt.sent(),this.logging&&console.log(gt),[3,4];case 4:return[2,null]}})})},at.prototype.saveGraphData=function(lt){return et(this,void 0,void 0,function(){var ht,vt;return tt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.SAVEDATA,{data:{type:lt.type,metaData:lt.metaData}})];case 2:return ht=gt.sent(),[2,ht];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[2,null];case 4:return[2]}})})},at.prototype.getPersonData=function(){return et(this,void 0,void 0,function(){var lt,ht;return tt(this,function(vt){switch(vt.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];vt.label=1;case 1:return vt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETPERSONDATA)];case 2:return lt=vt.sent(),[2,lt];case 3:return ht=vt.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},at.prototype.getBudget=function(){return et(this,void 0,void 0,function(){var lt,ht,vt;return tt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETBUDGET)];case 2:return lt=gt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[2,null];case 4:return[2]}})})},at.prototype.setBudget=function(){return et(this,void 0,void 0,function(){var lt,ht,vt;return tt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(nt.SETBUDGET)];case 2:return lt=gt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return vt=gt.sent(),this.logging&&console.log(vt),[2,null];case 4:return[2]}})})},at.prototype.getSignedToken=function(){return et(this,void 0,void 0,function(){var lt,ht;return tt(this,function(vt){switch(vt.label){case 0:if(this.logging&&console.log("=> GETSIGNEDTOKEN"),!this.isEnabled)return[2,null];vt.label=1;case 1:return vt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETSIGNEDTOKEN)];case 2:return lt=vt.sent(),[2,lt];case 3:return ht=vt.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},at.prototype.postMsg=function(lt,ht){var vt,gt=this;gt.active&&Promise.reject(new Error("User is busy")),gt.active=lt;var wt=window;return!((vt=wt.kmpJsBridge)===null||vt===void 0)&&vt.callNative?new Promise(function(ut,pt){wt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(o({application:it,type:lt},ht||{})),function(Et){var yt={};try{yt=JSON.parse(Et)}catch{}Object.keys(yt).length===0||yt.application!==it||(gt.active=null,yt.error?pt(yt.error):ut(yt))})}):new Promise(function(ut,pt){rt.postMessage(o({application:it,type:lt},ht||{}));function Et(yt){!yt.data||yt.data.application!==it||(yt.data.error?(gt.active=null,pt(yt.data.error)):(gt.active=null,ut(yt.data)),rt.removeEventer(Et))}rt.addEventer(Et)})},at}();a.default=st})(lib$2);var dist$2=dist$3.exports;Object.defineProperty(dist$2,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$3.exports=sphinx;var distExports$1=dist$3.exports;const sphinx$1=getDefaultExportFromCjs(distExports$1),{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://bitcoin.sphinx.chat";function apiUrlFromSwarmHost(){let o=window.location.origin;if(host.includes("swarm")){if(host.startsWith("nav")){const et=host.split(".");et[0]="boltwall",o=`https://${et.join(".")}`}}else origin$1.includes("localhost")&&(o="https://bitcoin.sphinx.chat");return`${o}/api`}function removeApi(a){const o=/\/api$/;return a.replace(o,"")}const request=async(a,o,et)=>{let tt=a;const rt=new URL(a),nt=new URLSearchParams(rt.search),it=await getSignedMessageFromRelay();nt.append("sig",it.signature),nt.append("msg",it.message),rt.search=nt.toString(),tt=rt.toString();const st=new AbortController,at=et||st.signal,lt=await fetch(tt,{...o,signal:at});if(!lt.ok)throw lt;return lt.json()},api$1={delete:(a,o,et)=>request(`${API_URL}${a}`,{headers:{...o,"Content-Type":"application/json"},method:"DELETE"},et),get:(a,o,et)=>request(`${API_URL}${a}`,o?{headers:o}:void 0,et),post:(a,o,et,tt)=>request(`${API_URL}${a}`,{body:o,headers:{...et,"Content-Type":"application/json"},method:"POST"},tt),put:(a,o,et,tt)=>request(`${API_URL}${a}`,{body:o,headers:{...et,"Content-Type":"application/json"},method:"PUT"},tt)},colors={black:"rgb(0, 0, 0)",appearanceBg:"rgba(60, 64, 83, 0.3)",disableBtn:"rgba(35, 37, 47, 0.8)",bluePressState:"rgb(57, 97, 220)",addAttributeBtn:"rgba(107, 122, 141, 0.25)",blueTextAccent:"rgb(130, 180, 255)",colorPickerThing:"rgba(255, 158, 239, 1)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",BG4:"rgba(30, 30, 35, 0.9)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)",CLIP:"rgba(143, 38, 44, 1)",TEXT:"rgba(40, 74, 178, 1)",SHOW:"rgba(79, 111, 24, 1)",EPISODE:"rgba(109, 33, 151, 1)",ORGANIZATION:"rgba(153, 62, 19, 1)",TWEET:"rgba(22, 23, 29, 1)",PERSON:"rgba(7, 105, 82, 1)",EVENT:"rgba(137, 107, 0, 1)",TOPIC:"rgba(255, 255, 255, 0.85)",THING:"rgba(150, 39, 119, 1)",SUCESS:"rgba(73, 201, 152, 1)",SEEDQUESTION:"rgba(47, 58, 89, 1)",SEEDQUESTION_HOVER:"rgba(38, 42, 58, 1)",COLLAPSE_BUTTON:"rgba(48, 51, 66, 1)",SOURCE_TABLE_LINK:"rgba(171, 204, 254, 1)",AI_HIGHLIGHT:"rgba(0, 123, 255, 0.1)",createTestButton:"rgb(178, 255, 102)",MESSAGE_BG:"rgba(22, 22, 29, 0.89)",MESSAGE_BG_HOVER:"rgba(35, 37, 47, 0.3)"};//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(a){hookCallback=a}function isArray$5(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function isObject$9(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function hasOwnProp(a,o){return Object.prototype.hasOwnProperty.call(a,o)}function isObjectEmpty$1(a){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(a).length===0;var o;for(o in a)if(hasOwnProp(a,o))return!1;return!0}function isUndefined(a){return a===void 0}function isNumber$1(a){return typeof a=="number"||Object.prototype.toString.call(a)==="[object Number]"}function isDate$1(a){return a instanceof Date||Object.prototype.toString.call(a)==="[object Date]"}function map$1(a,o){var et=[],tt,rt=a.length;for(tt=0;tt>>0,tt;for(tt=0;tt0)for(et=0;et=0;return(nt?et?"+":"":"-")+Math.pow(10,Math.max(0,rt)).toString().substr(1)+tt}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(a,o,et,tt){var rt=tt;typeof tt=="string"&&(rt=function(){return this[tt]()}),a&&(formatTokenFunctions[a]=rt),o&&(formatTokenFunctions[o[0]]=function(){return zeroFill(rt.apply(this,arguments),o[1],o[2])}),et&&(formatTokenFunctions[et]=function(){return this.localeData().ordinal(rt.apply(this,arguments),a)})}function removeFormattingTokens(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function makeFormatFunction(a){var o=a.match(formattingTokens),et,tt;for(et=0,tt=o.length;et=0&&localFormattingTokens.test(a);)a=a.replace(localFormattingTokens,tt),localFormattingTokens.lastIndex=0,et-=1;return a}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(a){var o=this._longDateFormat[a],et=this._longDateFormat[a.toUpperCase()];return o||!et?o:(this._longDateFormat[a]=et.match(formattingTokens).map(function(tt){return tt==="MMMM"||tt==="MM"||tt==="DD"||tt==="dddd"?tt.slice(1):tt}).join(""),this._longDateFormat[a])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(a){return this._ordinal.replace("%d",a)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(a,o,et,tt){var rt=this._relativeTime[et];return isFunction$4(rt)?rt(a,o,et,tt):rt.replace(/%d/i,a)}function pastFuture(a,o){var et=this._relativeTime[a>0?"future":"past"];return isFunction$4(et)?et(o):et.replace(/%s/i,o)}var aliases$1={};function addUnitAlias(a,o){var et=a.toLowerCase();aliases$1[et]=aliases$1[et+"s"]=aliases$1[o]=a}function normalizeUnits(a){return typeof a=="string"?aliases$1[a]||aliases$1[a.toLowerCase()]:void 0}function normalizeObjectUnits(a){var o={},et,tt;for(tt in a)hasOwnProp(a,tt)&&(et=normalizeUnits(tt),et&&(o[et]=a[tt]));return o}var priorities={};function addUnitPriority(a,o){priorities[a]=o}function getPrioritizedUnits(a){var o=[],et;for(et in a)hasOwnProp(a,et)&&o.push({unit:et,priority:priorities[et]});return o.sort(function(tt,rt){return tt.priority-rt.priority}),o}function isLeapYear(a){return a%4===0&&a%100!==0||a%400===0}function absFloor(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function toInt(a){var o=+a,et=0;return o!==0&&isFinite(o)&&(et=absFloor(o)),et}function makeGetSet(a,o){return function(et){return et!=null?(set$1(this,a,et),hooks.updateOffset(this,o),this):get(this,a)}}function get(a,o){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+o]():NaN}function set$1(a,o,et){a.isValid()&&!isNaN(et)&&(o==="FullYear"&&isLeapYear(a.year())&&a.month()===1&&a.date()===29?(et=toInt(et),a._d["set"+(a._isUTC?"UTC":"")+o](et,a.month(),daysInMonth(et,a.month()))):a._d["set"+(a._isUTC?"UTC":"")+o](et))}function stringGet(a){return a=normalizeUnits(a),isFunction$4(this[a])?this[a]():this}function stringSet(a,o){if(typeof a=="object"){a=normalizeObjectUnits(a);var et=getPrioritizedUnits(a),tt,rt=et.length;for(tt=0;tt68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(a,o,et,tt,rt,nt,it){var st;return a<100&&a>=0?(st=new Date(a+400,o,et,tt,rt,nt,it),isFinite(st.getFullYear())&&st.setFullYear(a)):st=new Date(a,o,et,tt,rt,nt,it),st}function createUTCDate(a){var o,et;return a<100&&a>=0?(et=Array.prototype.slice.call(arguments),et[0]=a+400,o=new Date(Date.UTC.apply(null,et)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(a)):o=new Date(Date.UTC.apply(null,arguments)),o}function firstWeekOffset(a,o,et){var tt=7+o-et,rt=(7+createUTCDate(a,0,tt).getUTCDay()-o)%7;return-rt+tt-1}function dayOfYearFromWeeks(a,o,et,tt,rt){var nt=(7+et-tt)%7,it=firstWeekOffset(a,tt,rt),st=1+7*(o-1)+nt+it,at,lt;return st<=0?(at=a-1,lt=daysInYear(at)+st):st>daysInYear(a)?(at=a+1,lt=st-daysInYear(a)):(at=a,lt=st),{year:at,dayOfYear:lt}}function weekOfYear(a,o,et){var tt=firstWeekOffset(a.year(),o,et),rt=Math.floor((a.dayOfYear()-tt-1)/7)+1,nt,it;return rt<1?(it=a.year()-1,nt=rt+weeksInYear(it,o,et)):rt>weeksInYear(a.year(),o,et)?(nt=rt-weeksInYear(a.year(),o,et),it=a.year()+1):(it=a.year(),nt=rt),{week:nt,year:it}}function weeksInYear(a,o,et){var tt=firstWeekOffset(a,o,et),rt=firstWeekOffset(a+1,o,et);return(daysInYear(a)-tt+rt)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(a,o,et,tt){o[tt.substr(0,1)]=toInt(a)});function localeWeek(a){return weekOfYear(a,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(a){var o=this.localeData().week(this);return a==null?o:this.add((a-o)*7,"d")}function getSetISOWeek(a){var o=weekOfYear(this,1,4).week;return a==null?o:this.add((a-o)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)});addFormatToken("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)});addFormatToken("dddd",0,0,function(a){return this.localeData().weekdays(this,a)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(a,o){return o.weekdaysMinRegex(a)});addRegexToken("ddd",function(a,o){return o.weekdaysShortRegex(a)});addRegexToken("dddd",function(a,o){return o.weekdaysRegex(a)});addWeekParseToken(["dd","ddd","dddd"],function(a,o,et,tt){var rt=et._locale.weekdaysParse(a,tt,et._strict);rt!=null?o.d=rt:getParsingFlags(et).invalidWeekday=a});addWeekParseToken(["d","e","E"],function(a,o,et,tt){o[tt]=toInt(a)});function parseWeekday(a,o){return typeof a!="string"?a:isNaN(a)?(a=o.weekdaysParse(a),typeof a=="number"?a:null):parseInt(a,10)}function parseIsoWeekday(a,o){return typeof a=="string"?o.weekdaysParse(a)%7||7:isNaN(a)?null:a}function shiftWeekdays(a,o){return a.slice(o,7).concat(a.slice(0,o))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(a,o){var et=isArray$5(this._weekdays)?this._weekdays:this._weekdays[a&&a!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return a===!0?shiftWeekdays(et,this._week.dow):a?et[a.day()]:et}function localeWeekdaysShort(a){return a===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):a?this._weekdaysShort[a.day()]:this._weekdaysShort}function localeWeekdaysMin(a){return a===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):a?this._weekdaysMin[a.day()]:this._weekdaysMin}function handleStrictParse$1(a,o,et){var tt,rt,nt,it=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],tt=0;tt<7;++tt)nt=createUTC([2e3,1]).day(tt),this._minWeekdaysParse[tt]=this.weekdaysMin(nt,"").toLocaleLowerCase(),this._shortWeekdaysParse[tt]=this.weekdaysShort(nt,"").toLocaleLowerCase(),this._weekdaysParse[tt]=this.weekdays(nt,"").toLocaleLowerCase();return et?o==="dddd"?(rt=indexOf.call(this._weekdaysParse,it),rt!==-1?rt:null):o==="ddd"?(rt=indexOf.call(this._shortWeekdaysParse,it),rt!==-1?rt:null):(rt=indexOf.call(this._minWeekdaysParse,it),rt!==-1?rt:null):o==="dddd"?(rt=indexOf.call(this._weekdaysParse,it),rt!==-1||(rt=indexOf.call(this._shortWeekdaysParse,it),rt!==-1)?rt:(rt=indexOf.call(this._minWeekdaysParse,it),rt!==-1?rt:null)):o==="ddd"?(rt=indexOf.call(this._shortWeekdaysParse,it),rt!==-1||(rt=indexOf.call(this._weekdaysParse,it),rt!==-1)?rt:(rt=indexOf.call(this._minWeekdaysParse,it),rt!==-1?rt:null)):(rt=indexOf.call(this._minWeekdaysParse,it),rt!==-1||(rt=indexOf.call(this._weekdaysParse,it),rt!==-1)?rt:(rt=indexOf.call(this._shortWeekdaysParse,it),rt!==-1?rt:null))}function localeWeekdaysParse(a,o,et){var tt,rt,nt;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,a,o,et);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),tt=0;tt<7;tt++){if(rt=createUTC([2e3,1]).day(tt),et&&!this._fullWeekdaysParse[tt]&&(this._fullWeekdaysParse[tt]=new RegExp("^"+this.weekdays(rt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[tt]=new RegExp("^"+this.weekdaysShort(rt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[tt]=new RegExp("^"+this.weekdaysMin(rt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[tt]||(nt="^"+this.weekdays(rt,"")+"|^"+this.weekdaysShort(rt,"")+"|^"+this.weekdaysMin(rt,""),this._weekdaysParse[tt]=new RegExp(nt.replace(".",""),"i")),et&&o==="dddd"&&this._fullWeekdaysParse[tt].test(a))return tt;if(et&&o==="ddd"&&this._shortWeekdaysParse[tt].test(a))return tt;if(et&&o==="dd"&&this._minWeekdaysParse[tt].test(a))return tt;if(!et&&this._weekdaysParse[tt].test(a))return tt}}function getSetDayOfWeek(a){if(!this.isValid())return a!=null?this:NaN;var o=this._isUTC?this._d.getUTCDay():this._d.getDay();return a!=null?(a=parseWeekday(a,this.localeData()),this.add(a-o,"d")):o}function getSetLocaleDayOfWeek(a){if(!this.isValid())return a!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return a==null?o:this.add(a-o,"d")}function getSetISODayOfWeek(a){if(!this.isValid())return a!=null?this:NaN;if(a!=null){var o=parseIsoWeekday(a,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function weekdaysRegex(a){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(a){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(a){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function a(ht,vt){return vt.length-ht.length}var o=[],et=[],tt=[],rt=[],nt,it,st,at,lt;for(nt=0;nt<7;nt++)it=createUTC([2e3,1]).day(nt),st=regexEscape(this.weekdaysMin(it,"")),at=regexEscape(this.weekdaysShort(it,"")),lt=regexEscape(this.weekdays(it,"")),o.push(st),et.push(at),tt.push(lt),rt.push(st),rt.push(at),rt.push(lt);o.sort(a),et.sort(a),tt.sort(a),rt.sort(a),this._weekdaysRegex=new RegExp("^("+rt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+tt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+et.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(a,o){addFormatToken(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(a,o){return o._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(a,o,et){var tt=toInt(a);o[HOUR]=tt===24?0:tt});addParseToken(["a","A"],function(a,o,et){et._isPm=et._locale.isPM(a),et._meridiem=a});addParseToken(["h","hh"],function(a,o,et){o[HOUR]=toInt(a),getParsingFlags(et).bigHour=!0});addParseToken("hmm",function(a,o,et){var tt=a.length-2;o[HOUR]=toInt(a.substr(0,tt)),o[MINUTE]=toInt(a.substr(tt)),getParsingFlags(et).bigHour=!0});addParseToken("hmmss",function(a,o,et){var tt=a.length-4,rt=a.length-2;o[HOUR]=toInt(a.substr(0,tt)),o[MINUTE]=toInt(a.substr(tt,2)),o[SECOND]=toInt(a.substr(rt)),getParsingFlags(et).bigHour=!0});addParseToken("Hmm",function(a,o,et){var tt=a.length-2;o[HOUR]=toInt(a.substr(0,tt)),o[MINUTE]=toInt(a.substr(tt))});addParseToken("Hmmss",function(a,o,et){var tt=a.length-4,rt=a.length-2;o[HOUR]=toInt(a.substr(0,tt)),o[MINUTE]=toInt(a.substr(tt,2)),o[SECOND]=toInt(a.substr(rt))});function localeIsPM(a){return(a+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(a,o,et){return a>11?et?"pm":"PM":et?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(a,o){var et,tt=Math.min(a.length,o.length);for(et=0;et0;){if(rt=loadLocale(nt.slice(0,et).join("-")),rt)return rt;if(tt&&tt.length>=et&&commonPrefix(nt,tt)>=et-1)break;et--}o++}return globalLocale}function isLocaleNameSane(a){return a.match("^[^/\\\\]*$")!=null}function loadLocale(a){var o=null,et;if(locales[a]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(a))try{o=globalLocale._abbr,et=require,et("./locale/"+a),getSetGlobalLocale(o)}catch{locales[a]=null}return locales[a]}function getSetGlobalLocale(a,o){var et;return a&&(isUndefined(o)?et=getLocale(a):et=defineLocale(a,o),et?globalLocale=et:typeof console<"u"&&console.warn&&console.warn("Locale "+a+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(a,o){if(o!==null){var et,tt=baseConfig;if(o.abbr=a,locales[a]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),tt=locales[a]._config;else if(o.parentLocale!=null)if(locales[o.parentLocale]!=null)tt=locales[o.parentLocale]._config;else if(et=loadLocale(o.parentLocale),et!=null)tt=et._config;else return localeFamilies[o.parentLocale]||(localeFamilies[o.parentLocale]=[]),localeFamilies[o.parentLocale].push({name:a,config:o}),null;return locales[a]=new Locale(mergeConfigs(tt,o)),localeFamilies[a]&&localeFamilies[a].forEach(function(rt){defineLocale(rt.name,rt.config)}),getSetGlobalLocale(a),locales[a]}else return delete locales[a],null}function updateLocale(a,o){if(o!=null){var et,tt,rt=baseConfig;locales[a]!=null&&locales[a].parentLocale!=null?locales[a].set(mergeConfigs(locales[a]._config,o)):(tt=loadLocale(a),tt!=null&&(rt=tt._config),o=mergeConfigs(rt,o),tt==null&&(o.abbr=a),et=new Locale(o),et.parentLocale=locales[a],locales[a]=et),getSetGlobalLocale(a)}else locales[a]!=null&&(locales[a].parentLocale!=null?(locales[a]=locales[a].parentLocale,a===getSetGlobalLocale()&&getSetGlobalLocale(a)):locales[a]!=null&&delete locales[a]);return locales[a]}function getLocale(a){var o;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return globalLocale;if(!isArray$5(a)){if(o=loadLocale(a),o)return o;a=[a]}return chooseLocale(a)}function listLocales(){return keys$4(locales)}function checkOverflow(a){var o,et=a._a;return et&&getParsingFlags(a).overflow===-2&&(o=et[MONTH]<0||et[MONTH]>11?MONTH:et[DATE]<1||et[DATE]>daysInMonth(et[YEAR],et[MONTH])?DATE:et[HOUR]<0||et[HOUR]>24||et[HOUR]===24&&(et[MINUTE]!==0||et[SECOND]!==0||et[MILLISECOND]!==0)?HOUR:et[MINUTE]<0||et[MINUTE]>59?MINUTE:et[SECOND]<0||et[SECOND]>59?SECOND:et[MILLISECOND]<0||et[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(a)._overflowDayOfYear&&(oDATE)&&(o=DATE),getParsingFlags(a)._overflowWeeks&&o===-1&&(o=WEEK),getParsingFlags(a)._overflowWeekday&&o===-1&&(o=WEEKDAY),getParsingFlags(a).overflow=o),a}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(a){var o,et,tt=a._i,rt=extendedIsoRegex.exec(tt)||basicIsoRegex.exec(tt),nt,it,st,at,lt=isoDates.length,ht=isoTimes.length;if(rt){for(getParsingFlags(a).iso=!0,o=0,et=lt;odaysInYear(it)||a._dayOfYear===0)&&(getParsingFlags(a)._overflowDayOfYear=!0),et=createUTCDate(it,0,a._dayOfYear),a._a[MONTH]=et.getUTCMonth(),a._a[DATE]=et.getUTCDate()),o=0;o<3&&a._a[o]==null;++o)a._a[o]=tt[o]=rt[o];for(;o<7;o++)a._a[o]=tt[o]=a._a[o]==null?o===2?1:0:a._a[o];a._a[HOUR]===24&&a._a[MINUTE]===0&&a._a[SECOND]===0&&a._a[MILLISECOND]===0&&(a._nextDay=!0,a._a[HOUR]=0),a._d=(a._useUTC?createUTCDate:createDate).apply(null,tt),nt=a._useUTC?a._d.getUTCDay():a._d.getDay(),a._tzm!=null&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[HOUR]=24),a._w&&typeof a._w.d<"u"&&a._w.d!==nt&&(getParsingFlags(a).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(a){var o,et,tt,rt,nt,it,st,at,lt;o=a._w,o.GG!=null||o.W!=null||o.E!=null?(nt=1,it=4,et=defaults(o.GG,a._a[YEAR],weekOfYear(createLocal(),1,4).year),tt=defaults(o.W,1),rt=defaults(o.E,1),(rt<1||rt>7)&&(at=!0)):(nt=a._locale._week.dow,it=a._locale._week.doy,lt=weekOfYear(createLocal(),nt,it),et=defaults(o.gg,a._a[YEAR],lt.year),tt=defaults(o.w,lt.week),o.d!=null?(rt=o.d,(rt<0||rt>6)&&(at=!0)):o.e!=null?(rt=o.e+nt,(o.e<0||o.e>6)&&(at=!0)):rt=nt),tt<1||tt>weeksInYear(et,nt,it)?getParsingFlags(a)._overflowWeeks=!0:at!=null?getParsingFlags(a)._overflowWeekday=!0:(st=dayOfYearFromWeeks(et,tt,rt,nt,it),a._a[YEAR]=st.year,a._dayOfYear=st.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(a){if(a._f===hooks.ISO_8601){configFromISO(a);return}if(a._f===hooks.RFC_2822){configFromRFC2822(a);return}a._a=[],getParsingFlags(a).empty=!0;var o=""+a._i,et,tt,rt,nt,it,st=o.length,at=0,lt,ht;for(rt=expandFormat(a._f,a._locale).match(formattingTokens)||[],ht=rt.length,et=0;et0&&getParsingFlags(a).unusedInput.push(it),o=o.slice(o.indexOf(tt)+tt.length),at+=tt.length),formatTokenFunctions[nt]?(tt?getParsingFlags(a).empty=!1:getParsingFlags(a).unusedTokens.push(nt),addTimeToArrayFromToken(nt,tt,a)):a._strict&&!tt&&getParsingFlags(a).unusedTokens.push(nt);getParsingFlags(a).charsLeftOver=st-at,o.length>0&&getParsingFlags(a).unusedInput.push(o),a._a[HOUR]<=12&&getParsingFlags(a).bigHour===!0&&a._a[HOUR]>0&&(getParsingFlags(a).bigHour=void 0),getParsingFlags(a).parsedDateParts=a._a.slice(0),getParsingFlags(a).meridiem=a._meridiem,a._a[HOUR]=meridiemFixWrap(a._locale,a._a[HOUR],a._meridiem),lt=getParsingFlags(a).era,lt!==null&&(a._a[YEAR]=a._locale.erasConvertYear(lt,a._a[YEAR])),configFromArray(a),checkOverflow(a)}function meridiemFixWrap(a,o,et){var tt;return et==null?o:a.meridiemHour!=null?a.meridiemHour(o,et):(a.isPM!=null&&(tt=a.isPM(et),tt&&o<12&&(o+=12),!tt&&o===12&&(o=0)),o)}function configFromStringAndArray(a){var o,et,tt,rt,nt,it,st=!1,at=a._f.length;if(at===0){getParsingFlags(a).invalidFormat=!0,a._d=new Date(NaN);return}for(rt=0;rtthis?this:a:createInvalid()});function pickBy(a,o){var et,tt;if(o.length===1&&isArray$5(o[0])&&(o=o[0]),!o.length)return createLocal();for(et=o[0],tt=1;ttthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var a={},o;return copyConfig(a,this),a=prepareConfig(a),a._a?(o=a._isUTC?createUTC(a._a):createLocal(a._a),this._isDSTShifted=this.isValid()&&compareArrays(a._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(a,o){var et=a,tt=null,rt,nt,it;return isDuration(a)?et={ms:a._milliseconds,d:a._days,M:a._months}:isNumber$1(a)||!isNaN(+a)?(et={},o?et[o]=+a:et.milliseconds=+a):(tt=aspNetRegex.exec(a))?(rt=tt[1]==="-"?-1:1,et={y:0,d:toInt(tt[DATE])*rt,h:toInt(tt[HOUR])*rt,m:toInt(tt[MINUTE])*rt,s:toInt(tt[SECOND])*rt,ms:toInt(absRound(tt[MILLISECOND]*1e3))*rt}):(tt=isoRegex.exec(a))?(rt=tt[1]==="-"?-1:1,et={y:parseIso(tt[2],rt),M:parseIso(tt[3],rt),w:parseIso(tt[4],rt),d:parseIso(tt[5],rt),h:parseIso(tt[6],rt),m:parseIso(tt[7],rt),s:parseIso(tt[8],rt)}):et==null?et={}:typeof et=="object"&&("from"in et||"to"in et)&&(it=momentsDifference(createLocal(et.from),createLocal(et.to)),et={},et.ms=it.milliseconds,et.M=it.months),nt=new Duration(et),isDuration(a)&&hasOwnProp(a,"_locale")&&(nt._locale=a._locale),isDuration(a)&&hasOwnProp(a,"_isValid")&&(nt._isValid=a._isValid),nt}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(a,o){var et=a&&parseFloat(a.replace(",","."));return(isNaN(et)?0:et)*o}function positiveMomentsDifference(a,o){var et={};return et.months=o.month()-a.month()+(o.year()-a.year())*12,a.clone().add(et.months,"M").isAfter(o)&&--et.months,et.milliseconds=+o-+a.clone().add(et.months,"M"),et}function momentsDifference(a,o){var et;return a.isValid()&&o.isValid()?(o=cloneWithOffset(o,a),a.isBefore(o)?et=positiveMomentsDifference(a,o):(et=positiveMomentsDifference(o,a),et.milliseconds=-et.milliseconds,et.months=-et.months),et):{milliseconds:0,months:0}}function createAdder(a,o){return function(et,tt){var rt,nt;return tt!==null&&!isNaN(+tt)&&(deprecateSimple(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),nt=et,et=tt,tt=nt),rt=createDuration(et,tt),addSubtract(this,rt,a),this}}function addSubtract(a,o,et,tt){var rt=o._milliseconds,nt=absRound(o._days),it=absRound(o._months);a.isValid()&&(tt=tt??!0,it&&setMonth(a,get(a,"Month")+it*et),nt&&set$1(a,"Date",get(a,"Date")+nt*et),rt&&a._d.setTime(a._d.valueOf()+rt*et),tt&&hooks.updateOffset(a,nt||it))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(a){return typeof a=="string"||a instanceof String}function isMomentInput(a){return isMoment(a)||isDate$1(a)||isString(a)||isNumber$1(a)||isNumberOrStringArray(a)||isMomentInputObject(a)||a===null||a===void 0}function isMomentInputObject(a){var o=isObject$9(a)&&!isObjectEmpty$1(a),et=!1,tt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],rt,nt,it=tt.length;for(rt=0;rtet.valueOf():et.valueOf()9999?formatMoment(et,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$4(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(et,"Z")):formatMoment(et,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",o="",et,tt,rt,nt;return this.isLocal()||(a=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),et="["+a+'("]',tt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",rt="-MM-DD[T]HH:mm:ss.SSS",nt=o+'[")]',this.format(et+tt+rt+nt)}function format(a){a||(a=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var o=formatMoment(this,a);return this.localeData().postformat(o)}function from$1(a,o){return this.isValid()&&(isMoment(a)&&a.isValid()||createLocal(a).isValid())?createDuration({to:this,from:a}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function fromNow(a){return this.from(createLocal(),a)}function to(a,o){return this.isValid()&&(isMoment(a)&&a.isValid()||createLocal(a).isValid())?createDuration({from:this,to:a}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function toNow(a){return this.to(createLocal(),a)}function locale(a){var o;return a===void 0?this._locale._abbr:(o=getLocale(a),o!=null&&(this._locale=o),this)}var lang=deprecate$1("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return a===void 0?this.localeData():this.locale(a)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(a,o){return(a%o+o)%o}function localStartOfDate(a,o,et){return a<100&&a>=0?new Date(a+400,o,et)-MS_PER_400_YEARS:new Date(a,o,et).valueOf()}function utcStartOfDate(a,o,et){return a<100&&a>=0?Date.UTC(a+400,o,et)-MS_PER_400_YEARS:Date.UTC(a,o,et)}function startOf(a){var o,et;if(a=normalizeUnits(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(et=this._isUTC?utcStartOfDate:localStartOfDate,a){case"year":o=et(this.year(),0,1);break;case"quarter":o=et(this.year(),this.month()-this.month()%3,1);break;case"month":o=et(this.year(),this.month(),1);break;case"week":o=et(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=et(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=et(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=mod$1(o+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":o=this._d.valueOf(),o-=mod$1(o,MS_PER_MINUTE);break;case"second":o=this._d.valueOf(),o-=mod$1(o,MS_PER_SECOND);break}return this._d.setTime(o),hooks.updateOffset(this,!0),this}function endOf(a){var o,et;if(a=normalizeUnits(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(et=this._isUTC?utcStartOfDate:localStartOfDate,a){case"year":o=et(this.year()+1,0,1)-1;break;case"quarter":o=et(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=et(this.year(),this.month()+1,1)-1;break;case"week":o=et(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=et(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=et(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=MS_PER_HOUR-mod$1(o+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":o=this._d.valueOf(),o+=MS_PER_MINUTE-mod$1(o,MS_PER_MINUTE)-1;break;case"second":o=this._d.valueOf(),o+=MS_PER_SECOND-mod$1(o,MS_PER_SECOND)-1;break}return this._d.setTime(o),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$3(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function toObject$1(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(a,o,et,tt){var rt=et._locale.erasParse(a,tt,et._strict);rt?getParsingFlags(et).era=rt:getParsingFlags(et).invalidEra=a});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(a,o,et,tt){var rt;et._locale._eraYearOrdinalRegex&&(rt=a.match(et._locale._eraYearOrdinalRegex)),et._locale.eraYearOrdinalParse?o[YEAR]=et._locale.eraYearOrdinalParse(a,rt):o[YEAR]=parseInt(a,10)});function localeEras(a,o){var et,tt,rt,nt=this._eras||getLocale("en")._eras;for(et=0,tt=nt.length;et=0)return nt[tt]}function localeErasConvertYear(a,o){var et=a.since<=a.until?1:-1;return o===void 0?hooks(a.since).year():hooks(a.since).year()+(o-a.offset)*et}function getEraName(){var a,o,et,tt=this.localeData().eras();for(a=0,o=tt.length;ant&&(o=nt),setWeekAll.call(this,a,o,et,tt,rt))}function setWeekAll(a,o,et,tt,rt){var nt=dayOfYearFromWeeks(a,o,et,tt,rt),it=createUTCDate(nt.year,0,nt.dayOfYear);return this.year(it.getUTCFullYear()),this.month(it.getUTCMonth()),this.date(it.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(a,o){o[MONTH]=(toInt(a)-1)*3});function getSetQuarter(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(a,o){return a?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(a,o){o[DATE]=toInt(a.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(a,o,et){et._dayOfYear=toInt(a)});function getSetDayOfYear(a){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return a==null?o:this.add(a-o,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token$1,getSetMillisecond;for(token$1="SSSS";token$1.length<=9;token$1+="S")addRegexToken(token$1,matchUnsigned);function parseMs(a,o){o[MILLISECOND]=toInt(("0."+a)*1e3)}for(token$1="S";token$1.length<=9;token$1+="S")addParseToken(token$1,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add;proto$1.calendar=calendar$1;proto$1.clone=clone;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format;proto$1.from=from$1;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract;proto$1.toArray=toArray$3;proto$1.toObject=toObject$1;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString$2;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate$1("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate$1("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate$1("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate$1("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate$1("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(a){return createLocal(a*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(a){return a}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1(a,o,et,tt){var rt=getLocale(),nt=createUTC().set(tt,o);return rt[et](nt,a)}function listMonthsImpl(a,o,et){if(isNumber$1(a)&&(o=a,a=void 0),a=a||"",o!=null)return get$1(a,o,et,"month");var tt,rt=[];for(tt=0;tt<12;tt++)rt[tt]=get$1(a,tt,et,"month");return rt}function listWeekdaysImpl(a,o,et,tt){typeof a=="boolean"?(isNumber$1(o)&&(et=o,o=void 0),o=o||""):(o=a,et=o,a=!1,isNumber$1(o)&&(et=o,o=void 0),o=o||"");var rt=getLocale(),nt=a?rt._week.dow:0,it,st=[];if(et!=null)return get$1(o,(et+nt)%7,tt,"day");for(it=0;it<7;it++)st[it]=get$1(o,(it+nt)%7,tt,"day");return st}function listMonths(a,o){return listMonthsImpl(a,o,"months")}function listMonthsShort(a,o){return listMonthsImpl(a,o,"monthsShort")}function listWeekdays(a,o,et){return listWeekdaysImpl(a,o,et,"weekdays")}function listWeekdaysShort(a,o,et){return listWeekdaysImpl(a,o,et,"weekdaysShort")}function listWeekdaysMin(a,o,et){return listWeekdaysImpl(a,o,et,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var o=a%10,et=toInt(a%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return a+et}});hooks.lang=deprecate$1("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate$1("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs$1(){var a=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),a.milliseconds=mathAbs(a.milliseconds),a.seconds=mathAbs(a.seconds),a.minutes=mathAbs(a.minutes),a.hours=mathAbs(a.hours),a.months=mathAbs(a.months),a.years=mathAbs(a.years),this}function addSubtract$1(a,o,et,tt){var rt=createDuration(o,et);return a._milliseconds+=tt*rt._milliseconds,a._days+=tt*rt._days,a._months+=tt*rt._months,a._bubble()}function add$1(a,o){return addSubtract$1(this,a,o,1)}function subtract$1(a,o){return addSubtract$1(this,a,o,-1)}function absCeil(a){return a<0?Math.floor(a):Math.ceil(a)}function bubble(){var a=this._milliseconds,o=this._days,et=this._months,tt=this._data,rt,nt,it,st,at;return a>=0&&o>=0&&et>=0||a<=0&&o<=0&&et<=0||(a+=absCeil(monthsToDays(et)+o)*864e5,o=0,et=0),tt.milliseconds=a%1e3,rt=absFloor(a/1e3),tt.seconds=rt%60,nt=absFloor(rt/60),tt.minutes=nt%60,it=absFloor(nt/60),tt.hours=it%24,o+=absFloor(it/24),at=absFloor(daysToMonths(o)),et+=at,o-=absCeil(monthsToDays(at)),st=absFloor(et/12),et%=12,tt.days=o,tt.months=et,tt.years=st,this}function daysToMonths(a){return a*4800/146097}function monthsToDays(a){return a*146097/4800}function as(a){if(!this.isValid())return NaN;var o,et,tt=this._milliseconds;if(a=normalizeUnits(a),a==="month"||a==="quarter"||a==="year")switch(o=this._days+tt/864e5,et=this._months+daysToMonths(o),a){case"month":return et;case"quarter":return et/3;case"year":return et/12}else switch(o=this._days+Math.round(monthsToDays(this._months)),a){case"week":return o/7+tt/6048e5;case"day":return o+tt/864e5;case"hour":return o*24+tt/36e5;case"minute":return o*1440+tt/6e4;case"second":return o*86400+tt/1e3;case"millisecond":return Math.floor(o*864e5)+tt;default:throw new Error("Unknown unit "+a)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(a){return function(){return this.as(a)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1(){return createDuration(this)}function get$2(a){return a=normalizeUnits(a),this.isValid()?this[a+"s"]():NaN}function makeGetter(a){return function(){return this.isValid()?this._data[a]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round$1=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(a,o,et,tt,rt){return rt.relativeTime(o||1,!!et,a,tt)}function relativeTime$1(a,o,et,tt){var rt=createDuration(a).abs(),nt=round$1(rt.as("s")),it=round$1(rt.as("m")),st=round$1(rt.as("h")),at=round$1(rt.as("d")),lt=round$1(rt.as("M")),ht=round$1(rt.as("w")),vt=round$1(rt.as("y")),gt=nt<=et.ss&&["s",nt]||nt0,gt[4]=tt,substituteTimeAgo.apply(null,gt)}function getSetRelativeTimeRounding(a){return a===void 0?round$1:typeof a=="function"?(round$1=a,!0):!1}function getSetRelativeTimeThreshold(a,o){return thresholds[a]===void 0?!1:o===void 0?thresholds[a]:(thresholds[a]=o,a==="s"&&(thresholds.ss=o-1),!0)}function humanize(a,o){if(!this.isValid())return this.localeData().invalidDate();var et=!1,tt=thresholds,rt,nt;return typeof a=="object"&&(o=a,a=!1),typeof a=="boolean"&&(et=a),typeof o=="object"&&(tt=Object.assign({},thresholds,o),o.s!=null&&o.ss==null&&(tt.ss=o.s-1)),rt=this.localeData(),nt=relativeTime$1(this,!et,tt,rt),et&&(nt=rt.pastFuture(+this,nt)),rt.postformat(nt)}var abs$1$1=Math.abs;function sign$2(a){return(a>0)-(a<0)||+a}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var a=abs$1$1(this._milliseconds)/1e3,o=abs$1$1(this._days),et=abs$1$1(this._months),tt,rt,nt,it,st=this.asSeconds(),at,lt,ht,vt;return st?(tt=absFloor(a/60),rt=absFloor(tt/60),a%=60,tt%=60,nt=absFloor(et/12),et%=12,it=a?a.toFixed(3).replace(/\.?0+$/,""):"",at=st<0?"-":"",lt=sign$2(this._months)!==sign$2(st)?"-":"",ht=sign$2(this._days)!==sign$2(st)?"-":"",vt=sign$2(this._milliseconds)!==sign$2(st)?"-":"",at+"P"+(nt?lt+nt+"Y":"")+(et?lt+et+"M":"")+(o?ht+o+"D":"")+(rt||tt||a?"T":"")+(rt?vt+rt+"H":"")+(tt?vt+tt+"M":"")+(a?vt+it+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs$1;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate$1("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(a,o,et){et._d=new Date(parseFloat(a)*1e3)});addParseToken("x",function(a,o,et){et._d=new Date(toInt(a))});//! moment.js -hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min;hooks.max=max$1;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$1;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const{origin}=window.location;hooks.relativeTimeThreshold("h",24);hooks.updateLocale("en",{relativeTime:{s:a=>`${a} ${a>1?"seconds":"second"}`,m:"1 minute",h:a=>`${a} ${a>1?"hours":"hour"}`,d:"1 day",M:"1 month"}});const isDevelopment=origin==="http://localhost:3000"||origin==="http://localhost:3001"||origin==="https://sphinx-jarvis-david.sphinx1.repl.co";API_URL.includes("boltwall");const GRAPH_FOG_COLOR="blue",GRAPH_GROUND_COLOR=13421772,GRAPH_LIGHT_INTENSITY=.8,NODE_ADD_ERROR="Submission failed, please try again.",NODE_RELATIVE_HIGHLIGHT_COLORS={children:{nodeColor:"green",segmentColor:4063109},guests:{nodeColor:"purple",segmentColor:14504191},topics:{nodeColor:"purple",segmentColor:5273842},pathway:{nodeColor:"#ffffff",segmentColor:16777215}},LINK="link",TWITTER_HANDLE="twitter_handle",GITHUB_REPOSITORY="github_repository",YOUTUBE_CHANNEL="youtube_channel",WEB_PAGE="web_page",RSS="rss",TWITTER_SOURCE="tweet",DOCUMENT="document",isE2E=!!{}.VITE_APP_IS_E2E,requiredRule={required:{message:"The field is required",value:!0}},nodes=[];function getCurrentUser(){if(window.CYPRESS_USER){const a=window.CYPRESS_USER;let o;for(let et=0;etenableSphinx(),getLsat:async a=>getLsatSphinx(a),signMessage:async a=>signMessage(a),setBudget:async()=>setBudget(),saveLsat:async(a,o,et)=>saveLsat(a,o,et)},isSphinx=()=>sessionStorage.getItem("isSphinx")==="true",getLSat=async()=>{var a;try{const o=(a=window.localStorage)==null?void 0:a.getItem("lsat");if(o){const et=JSON.parse(o);return lsatToken(et.macaroon,et.preimage)}if(isSphinx()){let et;const{host:tt}=window.location;return isE2E?et=await sphinxBridge.getLsat(tt):et=await distExports$1.getLsat(tt),et.macaroon?(window.localStorage.setItem("lsat",JSON.stringify({macaroon:et.macaroon,identifier:et.identifier,preimage:et.preimage})),lsatToken(et.macaroon,et.preimage)):""}return""}catch(o){return console.warn(o),""}};function lsatToken(a,o){return`LSAT ${a}:${o}`}var lodash={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash.exports;(function(a,o){(function(){var et,tt="4.17.21",rt=200,nt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",it="Expected a function",st="Invalid `variable` option passed into `_.template`",at="__lodash_hash_undefined__",lt=500,ht="__lodash_placeholder__",vt=1,gt=2,wt=4,ut=1,pt=2,Et=1,yt=2,bt=4,kt=8,It=16,Ot=32,Nt=64,Vt=128,jt=256,zt=512,or=30,qt="...",Rt=800,Bt=16,ct=1,xt=2,St=3,Mt=1/0,$t=9007199254740991,Tt=17976931348623157e292,At=0/0,Pt=4294967295,mt=Pt-1,Ft=Pt>>>1,Qt=[["ary",Vt],["bind",Et],["bindKey",yt],["curry",kt],["curryRight",It],["flip",zt],["partial",Ot],["partialRight",Nt],["rearg",jt]],cr="[object Arguments]",Gt="[object Array]",Zt="[object AsyncFunction]",Yt="[object Boolean]",ar="[object Date]",gr="[object DOMException]",Jt="[object Error]",Xt="[object Function]",Sr="[object GeneratorFunction]",br="[object Map]",Or="[object Number]",Zr="[object Null]",Lr="[object Object]",yr="[object Promise]",pr="[object Proxy]",Pr="[object RegExp]",Cr="[object Set]",Jr="[object String]",Hr="[object Symbol]",ur="[object Undefined]",wr="[object WeakMap]",Rr="[object WeakSet]",Kt="[object ArrayBuffer]",Lt="[object DataView]",Ut="[object Float32Array]",rr="[object Float64Array]",vr="[object Int8Array]",kr="[object Int16Array]",Tr="[object Int32Array]",nn="[object Uint8Array]",cn="[object Uint8ClampedArray]",en="[object Uint16Array]",kn="[object Uint32Array]",sn=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,wn=/[&<>"']/g,ls=RegExp(Fn.source),Bn=RegExp(wn.source),gn=/<%-([\s\S]+?)%>/g,rs=/<%([\s\S]+?)%>/g,Rn=/<%=([\s\S]+?)%>/g,xn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,os=/^\w*$/,Dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,fs=RegExp(un.source),Wt=/^\s+/,tr=/\s/,nr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dt=/\{\n\/\* \[wrapped with (.+)\] \*/,ir=/,? & /,Ar=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$r=/[()=,{}\[\]\/\s]/,Br=/\\(\\)?/g,Gr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qr=/\w*$/,Vr=/^[-+]0x[0-9a-f]+$/i,Un=/^0b[01]+$/i,ln=/^\[object .+?Constructor\]$/,En=/^0o[0-7]+$/i,$n=/^(?:0|[1-9]\d*)$/,Mn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,Sn="\\ud800-\\udfff",Pn="\\u0300-\\u036f",hn="\\ufe20-\\ufe2f",vn="\\u20d0-\\u20ff",fn=Pn+hn+vn,dn="\\u2700-\\u27bf",pn="a-z\\xdf-\\xf6\\xf8-\\xff",an="\\xac\\xb1\\xd7\\xf7",Fr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nr="\\u2000-\\u206f",Xr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ur="A-Z\\xc0-\\xd6\\xd8-\\xde",Wr="\\ufe0e\\ufe0f",rn=an+Fr+Nr+Xr,Cn="['’]",Hn="["+Sn+"]",Vn="["+rn+"]",jn="["+fn+"]",_r="\\d+",qn="["+dn+"]",Qn="["+pn+"]",_i="[^"+Sn+rn+_r+dn+pn+Ur+"]",Gn="\\ud83c[\\udffb-\\udfff]",es="(?:"+jn+"|"+Gn+")",Zn="[^"+Sn+"]",ms="(?:\\ud83c[\\udde6-\\uddff]){2}",is="[\\ud800-\\udbff][\\udc00-\\udfff]",hs="["+Ur+"]",gs="\\u200d",vs="(?:"+Qn+"|"+_i+")",ks="(?:"+hs+"|"+_i+")",$s="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Ts="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",As=es+"?",Su="["+Wr+"]?",Fp="(?:"+gs+"(?:"+[Zn,ms,is].join("|")+")"+Su+As+")*",Np="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Eu=Su+As+Fp,Dp="(?:"+[qn,ms,is].join("|")+")"+Eu,Up="(?:"+[Zn+jn+"?",jn,ms,is,Hn].join("|")+")",jp=RegExp(Cn,"g"),Hp=RegExp(jn,"g"),K0=RegExp(Gn+"(?="+Gn+")|"+Up+Eu,"g"),Vp=RegExp([hs+"?"+Qn+"+"+$s+"(?="+[Vn,hs,"$"].join("|")+")",ks+"+"+Ts+"(?="+[Vn,hs+vs,"$"].join("|")+")",hs+"?"+vs+"+"+$s,hs+"+"+Ts,Lp,Np,_r,Dp].join("|"),"g"),Gp=RegExp("["+gs+Sn+fn+Wr+"]"),zp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qp=-1,bs={};bs[Ut]=bs[rr]=bs[vr]=bs[kr]=bs[Tr]=bs[nn]=bs[cn]=bs[en]=bs[kn]=!0,bs[cr]=bs[Gt]=bs[Kt]=bs[Yt]=bs[Lt]=bs[ar]=bs[Jt]=bs[Xt]=bs[br]=bs[Or]=bs[Lr]=bs[Pr]=bs[Cr]=bs[Jr]=bs[wr]=!1;var ys={};ys[cr]=ys[Gt]=ys[Kt]=ys[Lt]=ys[Yt]=ys[ar]=ys[Ut]=ys[rr]=ys[vr]=ys[kr]=ys[Tr]=ys[br]=ys[Or]=ys[Lr]=ys[Pr]=ys[Cr]=ys[Jr]=ys[Hr]=ys[nn]=ys[cn]=ys[en]=ys[kn]=!0,ys[Jt]=ys[Xt]=ys[wr]=!1;var Kp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yp={"&":"&","<":"<",">":">",'"':""","'":"'"},Xp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jp=parseFloat,Qp=parseInt,$u=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ey=typeof self=="object"&&self&&self.Object===Object&&self,Ms=$u||ey||Function("return this")(),Y0=o&&!o.nodeType&&o,So=Y0&&!0&&a&&!a.nodeType&&a,Tu=So&&So.exports===Y0,X0=Tu&&$u.process,Ys=function(){try{var Ir=So&&So.require&&So.require("util").types;return Ir||X0&&X0.binding&&X0.binding("util")}catch{}}(),Au=Ys&&Ys.isArrayBuffer,Pu=Ys&&Ys.isDate,Iu=Ys&&Ys.isMap,Bu=Ys&&Ys.isRegExp,Mu=Ys&&Ys.isSet,Cu=Ys&&Ys.isTypedArray;function Vs(Ir,jr,Dr){switch(Dr.length){case 0:return Ir.call(jr);case 1:return Ir.call(jr,Dr[0]);case 2:return Ir.call(jr,Dr[0],Dr[1]);case 3:return Ir.call(jr,Dr[0],Dr[1],Dr[2])}return Ir.apply(jr,Dr)}function ty(Ir,jr,Dr,_n){for(var zn=-1,cs=Ir==null?0:Ir.length;++zn-1}function Z0(Ir,jr,Dr){for(var _n=-1,zn=Ir==null?0:Ir.length;++_n-1;);return Dr}function ju(Ir,jr){for(var Dr=Ir.length;Dr--&&Co(jr,Ir[Dr],0)>-1;);return Dr}function ly(Ir,jr){for(var Dr=Ir.length,_n=0;Dr--;)Ir[Dr]===jr&&++_n;return _n}var uy=_c(Kp),hy=_c(Yp);function dy(Ir){return"\\"+Zp[Ir]}function py(Ir,jr){return Ir==null?et:Ir[jr]}function Ro(Ir){return Gp.test(Ir)}function yy(Ir){return zp.test(Ir)}function my(Ir){for(var jr,Dr=[];!(jr=Ir.next()).done;)Dr.push(jr.value);return Dr}function Sl(Ir){var jr=-1,Dr=Array(Ir.size);return Ir.forEach(function(_n,zn){Dr[++jr]=[zn,_n]}),Dr}function Hu(Ir,jr){return function(Dr){return Ir(jr(Dr))}}function go(Ir,jr){for(var Dr=-1,_n=Ir.length,zn=0,cs=[];++Dr<_n;){var Ps=Ir[Dr];(Ps===jr||Ps===ht)&&(Ir[Dr]=ht,cs[zn++]=Dr)}return cs}function l0(Ir){var jr=-1,Dr=Array(Ir.size);return Ir.forEach(function(_n){Dr[++jr]=_n}),Dr}function gy(Ir){var jr=-1,Dr=Array(Ir.size);return Ir.forEach(function(_n){Dr[++jr]=[_n,_n]}),Dr}function vy(Ir,jr,Dr){for(var _n=Dr-1,zn=Ir.length;++_n-1}function n2(ot,dt){var Ct=this.__data__,Ht=E0(Ct,ot);return Ht<0?(++this.size,Ct.push([ot,dt])):Ct[Ht][1]=dt,this}so.prototype.clear=Qy,so.prototype.delete=e2,so.prototype.get=t2,so.prototype.has=r2,so.prototype.set=n2;function ao(ot){var dt=-1,Ct=ot==null?0:ot.length;for(this.clear();++dt=dt?ot:dt)),ot}function Qs(ot,dt,Ct,Ht,er,dr){var xr,Er=dt&vt,Mr=dt>,qr=dt&wt;if(Ct&&(xr=er?Ct(ot,Ht,er,dr):Ct(ot)),xr!==et)return xr;if(!ws(ot))return ot;var Yr=Wn(ot);if(Yr){if(xr=fm(ot),!Er)return Ds(ot,xr)}else{var tn=Os(ot),mn=tn==Xt||tn==Sr;if(ko(ot))return S1(ot,Er);if(tn==Lr||tn==cr||mn&&!er){if(xr=Mr||mn?{}:V1(ot),!Er)return Mr?X2(ot,b2(xr,ot)):Y2(ot,_h(xr,ot))}else{if(!ys[tn])return er?ot:{};xr=cm(ot,tn,Er)}}dr||(dr=new _a);var In=dr.get(ot);if(In)return In;dr.set(ot,xr),bp(ot)?ot.forEach(function(Ln){xr.add(Qs(Ln,dt,Ct,Ln,ot,dr))}):gp(ot)&&ot.forEach(function(Ln,Jn){xr.set(Jn,Qs(Ln,dt,Ct,Jn,ot,dr))});var Nn=qr?Mr?eu:Ql:Mr?js:Bs,Yn=Yr?et:Nn(ot);return Xs(Yn||ot,function(Ln,Jn){Yn&&(Jn=Ln,Ln=ot[Jn]),Qo(xr,Jn,Qs(Ln,dt,Ct,Jn,ot,dr))}),xr}function x2(ot){var dt=Bs(ot);return function(Ct){return e1(Ct,ot,dt)}}function e1(ot,dt,Ct){var Ht=Ct.length;if(ot==null)return!Ht;for(ot=ps(ot);Ht--;){var er=Ct[Ht],dr=dt[er],xr=ot[er];if(xr===et&&!(er in ot)||!dr(xr))return!1}return!0}function t1(ot,dt,Ct){if(typeof ot!="function")throw new Zs(it);return a0(function(){ot.apply(et,Ct)},dt)}function e0(ot,dt,Ct,Ht){var er=-1,dr=f0,xr=!0,Er=ot.length,Mr=[],qr=dt.length;if(!Er)return Mr;Ct&&(dt=xs(dt,Gs(Ct))),Ht?(dr=Z0,xr=!1):dt.length>=rt&&(dr=qo,xr=!1,dt=new To(dt));e:for(;++erer?0:er+Ct),Ht=Ht===et||Ht>er?er:Kn(Ht),Ht<0&&(Ht+=er),Ht=Ct>Ht?0:wp(Ht);Ct0&&Ct(Er)?dt>1?Cs(Er,dt-1,Ct,Ht,er):mo(er,Er):Ht||(er[er.length]=Er)}return er}var Bl=I1(),i1=I1(!0);function ro(ot,dt){return ot&&Bl(ot,dt,Bs)}function Ml(ot,dt){return ot&&i1(ot,dt,Bs)}function T0(ot,dt){return yo(dt,function(Ct){return uo(ot[Ct])})}function Po(ot,dt){dt=wo(dt,ot);for(var Ct=0,Ht=dt.length;ot!=null&&Ctdt}function k2(ot,dt){return ot!=null&&ds.call(ot,dt)}function S2(ot,dt){return ot!=null&&dt in ps(ot)}function E2(ot,dt,Ct){return ot>=Rs(dt,Ct)&&ot=120&&Yr.length>=120)?new To(xr&&Yr):et}Yr=ot[0];var tn=-1,mn=Er[0];e:for(;++tn-1;)Er!==ot&&v0.call(Er,Mr,1),v0.call(ot,Mr,1);return ot}function y1(ot,dt){for(var Ct=ot?dt.length:0,Ht=Ct-1;Ct--;){var er=dt[Ct];if(Ct==Ht||er!==dr){var dr=er;lo(er)?v0.call(ot,er,1):Vl(ot,er)}}return ot}function Dl(ot,dt){return ot+w0(Xu()*(dt-ot+1))}function L2(ot,dt,Ct,Ht){for(var er=-1,dr=Is(x0((dt-ot)/(Ct||1)),0),xr=Dr(dr);dr--;)xr[Ht?dr:++er]=ot,ot+=Ct;return xr}function Ul(ot,dt){var Ct="";if(!ot||dt<1||dt>$t)return Ct;do dt%2&&(Ct+=ot),dt=w0(dt/2),dt&&(ot+=ot);while(dt);return Ct}function Xn(ot,dt){return ou(W1(ot,dt,Hs),ot+"")}function D2(ot){return Qu(zo(ot))}function U2(ot,dt){var Ct=zo(ot);return L0(Ct,Ao(dt,0,Ct.length))}function n0(ot,dt,Ct,Ht){if(!ws(ot))return ot;dt=wo(dt,ot);for(var er=-1,dr=dt.length,xr=dr-1,Er=ot;Er!=null&&++erer?0:er+dt),Ct=Ct>er?er:Ct,Ct<0&&(Ct+=er),er=dt>Ct?0:Ct-dt>>>0,dt>>>=0;for(var dr=Dr(er);++Ht>>1,xr=ot[dr];xr!==null&&!Ws(xr)&&(Ct?xr<=dt:xr=rt){var qr=dt?null:em(ot);if(qr)return l0(qr);xr=!1,er=qo,Mr=new To}else Mr=dt?[]:Er;e:for(;++Ht=Ht?ot:na(ot,dt,Ct)}var k1=By||function(ot){return Ms.clearTimeout(ot)};function S1(ot,dt){if(dt)return ot.slice();var Ct=ot.length,Ht=zu?zu(Ct):new ot.constructor(Ct);return ot.copy(Ht),Ht}function Xl(ot){var dt=new ot.constructor(ot.byteLength);return new m0(dt).set(new m0(ot)),dt}function z2(ot,dt){var Ct=dt?Xl(ot.buffer):ot.buffer;return new ot.constructor(Ct,ot.byteOffset,ot.byteLength)}function W2(ot){var dt=new ot.constructor(ot.source,Qr.exec(ot));return dt.lastIndex=ot.lastIndex,dt}function q2(ot){return Jo?ps(Jo.call(ot)):{}}function E1(ot,dt){var Ct=dt?Xl(ot.buffer):ot.buffer;return new ot.constructor(Ct,ot.byteOffset,ot.length)}function $1(ot,dt){if(ot!==dt){var Ct=ot!==et,Ht=ot===null,er=ot===ot,dr=Ws(ot),xr=dt!==et,Er=dt===null,Mr=dt===dt,qr=Ws(dt);if(!Er&&!qr&&!dr&&ot>dt||dr&&xr&&Mr&&!Er&&!qr||Ht&&xr&&Mr||!Ct&&Mr||!er)return 1;if(!Ht&&!dr&&!qr&&ot=Er)return Mr;var qr=Ct[Ht];return Mr*(qr=="desc"?-1:1)}}return ot.index-dt.index}function T1(ot,dt,Ct,Ht){for(var er=-1,dr=ot.length,xr=Ct.length,Er=-1,Mr=dt.length,qr=Is(dr-xr,0),Yr=Dr(Mr+qr),tn=!Ht;++Er1?Ct[er-1]:et,xr=er>2?Ct[2]:et;for(dr=ot.length>3&&typeof dr=="function"?(er--,dr):et,xr&&Ns(Ct[0],Ct[1],xr)&&(dr=er<3?et:dr,er=1),dt=ps(dt);++Ht-1?er[dr?dt[xr]:xr]:et}}function C1(ot){return co(function(dt){var Ct=dt.length,Ht=Ct,er=Js.prototype.thru;for(ot&&dt.reverse();Ht--;){var dr=dt[Ht];if(typeof dr!="function")throw new Zs(it);if(er&&!xr&&F0(dr)=="wrapper")var xr=new Js([],!0)}for(Ht=xr?Ht:Ct;++Ht1&&ns.reverse(),Yr&&MrEr))return!1;var qr=dr.get(ot),Yr=dr.get(dt);if(qr&&Yr)return qr==dt&&Yr==ot;var tn=-1,mn=!0,In=Ct&pt?new To:et;for(dr.set(ot,dt),dr.set(dt,ot);++tn1?"& ":"")+dt[Ht],dt=dt.join(Ct>2?", ":" "),ot.replace(nr,`{ -/* [wrapped with `+dt+`] */ -`)}function um(ot){return Wn(ot)||Mo(ot)||!!(Ku&&ot&&ot[Ku])}function lo(ot,dt){var Ct=typeof ot;return dt=dt??$t,!!dt&&(Ct=="number"||Ct!="symbol"&&$n.test(ot))&&ot>-1&&ot%1==0&&ot0){if(++dt>=Rt)return arguments[0]}else dt=0;return ot.apply(et,arguments)}}function L0(ot,dt){var Ct=-1,Ht=ot.length,er=Ht-1;for(dt=dt===et?Ht:dt;++Ct1?ot[dt-1]:et;return Ct=typeof Ct=="function"?(ot.pop(),Ct):et,np(ot,Ct)});function sp(ot){var dt=lr(ot);return dt.__chain__=!0,dt}function wv(ot,dt){return dt(ot),ot}function D0(ot,dt){return dt(ot)}var _v=co(function(ot){var dt=ot.length,Ct=dt?ot[0]:0,Ht=this.__wrapped__,er=function(dr){return Il(dr,ot)};return dt>1||this.__actions__.length||!(Ht instanceof ts)||!lo(Ct)?this.thru(er):(Ht=Ht.slice(Ct,+Ct+(dt?1:0)),Ht.__actions__.push({func:D0,args:[er],thisArg:et}),new Js(Ht,this.__chain__).thru(function(dr){return dt&&!dr.length&&dr.push(et),dr}))});function kv(){return sp(this)}function Sv(){return new Js(this.value(),this.__chain__)}function Ev(){this.__values__===et&&(this.__values__=xp(this.value()));var ot=this.__index__>=this.__values__.length,dt=ot?et:this.__values__[this.__index__++];return{done:ot,value:dt}}function $v(){return this}function Tv(ot){for(var dt,Ct=this;Ct instanceof S0;){var Ht=J1(Ct);Ht.__index__=0,Ht.__values__=et,dt?er.__wrapped__=Ht:dt=Ht;var er=Ht;Ct=Ct.__wrapped__}return er.__wrapped__=ot,dt}function Av(){var ot=this.__wrapped__;if(ot instanceof ts){var dt=ot;return this.__actions__.length&&(dt=new ts(this)),dt=dt.reverse(),dt.__actions__.push({func:D0,args:[fu],thisArg:et}),new Js(dt,this.__chain__)}return this.thru(fu)}function Pv(){return x1(this.__wrapped__,this.__actions__)}var Iv=B0(function(ot,dt,Ct){ds.call(ot,Ct)?++ot[Ct]:oo(ot,Ct,1)});function Bv(ot,dt,Ct){var Ht=Wn(ot)?Ru:w2;return Ct&&Ns(ot,dt,Ct)&&(dt=et),Ht(ot,On(dt,3))}function Mv(ot,dt){var Ct=Wn(ot)?yo:n1;return Ct(ot,On(dt,3))}var Cv=M1(Q1),Rv=M1(_d);function Ov(ot,dt){return Cs(U0(ot,dt),1)}function Fv(ot,dt){return Cs(U0(ot,dt),Mt)}function Nv(ot,dt,Ct){return Ct=Ct===et?1:Kn(Ct),Cs(U0(ot,dt),Ct)}function ap(ot,dt){var Ct=Wn(ot)?Xs:bo;return Ct(ot,On(dt,3))}function fp(ot,dt){var Ct=Wn(ot)?ry:r1;return Ct(ot,On(dt,3))}var Lv=B0(function(ot,dt,Ct){ds.call(ot,Ct)?ot[Ct].push(dt):oo(ot,Ct,[dt])});function Dv(ot,dt,Ct,Ht){ot=Us(ot)?ot:zo(ot),Ct=Ct&&!Ht?Kn(Ct):0;var er=ot.length;return Ct<0&&(Ct=Is(er+Ct,0)),z0(ot)?Ct<=er&&ot.indexOf(dt,Ct)>-1:!!er&&Co(ot,dt,Ct)>-1}var Uv=Xn(function(ot,dt,Ct){var Ht=-1,er=typeof dt=="function",dr=Us(ot)?Dr(ot.length):[];return bo(ot,function(xr){dr[++Ht]=er?Vs(dt,xr,Ct):t0(xr,dt,Ct)}),dr}),jv=B0(function(ot,dt,Ct){oo(ot,Ct,dt)});function U0(ot,dt){var Ct=Wn(ot)?xs:c1;return Ct(ot,On(dt,3))}function Hv(ot,dt,Ct,Ht){return ot==null?[]:(Wn(dt)||(dt=dt==null?[]:[dt]),Ct=Ht?et:Ct,Wn(Ct)||(Ct=Ct==null?[]:[Ct]),d1(ot,dt,Ct))}var Vv=B0(function(ot,dt,Ct){ot[Ct?0:1].push(dt)},function(){return[[],[]]});function Gv(ot,dt,Ct){var Ht=Wn(ot)?J0:Lu,er=arguments.length<3;return Ht(ot,On(dt,4),Ct,er,bo)}function zv(ot,dt,Ct){var Ht=Wn(ot)?ny:Lu,er=arguments.length<3;return Ht(ot,On(dt,4),Ct,er,r1)}function Wv(ot,dt){var Ct=Wn(ot)?yo:n1;return Ct(ot,V0(On(dt,3)))}function qv(ot){var dt=Wn(ot)?Qu:D2;return dt(ot)}function Kv(ot,dt,Ct){(Ct?Ns(ot,dt,Ct):dt===et)?dt=1:dt=Kn(dt);var Ht=Wn(ot)?m2:U2;return Ht(ot,dt)}function Yv(ot){var dt=Wn(ot)?g2:H2;return dt(ot)}function Xv(ot){if(ot==null)return 0;if(Us(ot))return z0(ot)?Oo(ot):ot.length;var dt=Os(ot);return dt==br||dt==Cr?ot.size:Fl(ot).length}function Zv(ot,dt,Ct){var Ht=Wn(ot)?Q0:V2;return Ct&&Ns(ot,dt,Ct)&&(dt=et),Ht(ot,On(dt,3))}var Jv=Xn(function(ot,dt){if(ot==null)return[];var Ct=dt.length;return Ct>1&&Ns(ot,dt[0],dt[1])?dt=[]:Ct>2&&Ns(dt[0],dt[1],dt[2])&&(dt=[dt[0]]),d1(ot,Cs(dt,1),[])}),j0=My||function(){return Ms.Date.now()};function Qv(ot,dt){if(typeof dt!="function")throw new Zs(it);return ot=Kn(ot),function(){if(--ot<1)return dt.apply(this,arguments)}}function cp(ot,dt,Ct){return dt=Ct?et:dt,dt=ot&&dt==null?ot.length:dt,fo(ot,Vt,et,et,et,et,dt)}function lp(ot,dt){var Ct;if(typeof dt!="function")throw new Zs(it);return ot=Kn(ot),function(){return--ot>0&&(Ct=dt.apply(this,arguments)),ot<=1&&(dt=et),Ct}}var lu=Xn(function(ot,dt,Ct){var Ht=Et;if(Ct.length){var er=go(Ct,Vo(lu));Ht|=Ot}return fo(ot,Ht,dt,Ct,er)}),up=Xn(function(ot,dt,Ct){var Ht=Et|yt;if(Ct.length){var er=go(Ct,Vo(up));Ht|=Ot}return fo(dt,Ht,ot,Ct,er)});function hp(ot,dt,Ct){dt=Ct?et:dt;var Ht=fo(ot,kt,et,et,et,et,et,dt);return Ht.placeholder=hp.placeholder,Ht}function dp(ot,dt,Ct){dt=Ct?et:dt;var Ht=fo(ot,It,et,et,et,et,et,dt);return Ht.placeholder=dp.placeholder,Ht}function pp(ot,dt,Ct){var Ht,er,dr,xr,Er,Mr,qr=0,Yr=!1,tn=!1,mn=!0;if(typeof ot!="function")throw new Zs(it);dt=ba(dt)||0,ws(Ct)&&(Yr=!!Ct.leading,tn="maxWait"in Ct,dr=tn?Is(ba(Ct.maxWait)||0,dt):dr,mn="trailing"in Ct?!!Ct.trailing:mn);function In(Es){var eo=Ht,po=er;return Ht=er=et,qr=Es,xr=ot.apply(po,eo),xr}function Nn(Es){return qr=Es,Er=a0(Jn,dt),Yr?In(Es):xr}function Yn(Es){var eo=Es-Mr,po=Es-qr,Cp=dt-eo;return tn?Rs(Cp,dr-po):Cp}function Ln(Es){var eo=Es-Mr,po=Es-qr;return Mr===et||eo>=dt||eo<0||tn&&po>=dr}function Jn(){var Es=j0();if(Ln(Es))return ns(Es);Er=a0(Jn,Yn(Es))}function ns(Es){return Er=et,mn&&Ht?In(Es):(Ht=er=et,xr)}function qs(){Er!==et&&k1(Er),qr=0,Ht=Mr=er=Er=et}function Ls(){return Er===et?xr:ns(j0())}function Ks(){var Es=j0(),eo=Ln(Es);if(Ht=arguments,er=this,Mr=Es,eo){if(Er===et)return Nn(Mr);if(tn)return k1(Er),Er=a0(Jn,dt),In(Mr)}return Er===et&&(Er=a0(Jn,dt)),xr}return Ks.cancel=qs,Ks.flush=Ls,Ks}var e4=Xn(function(ot,dt){return t1(ot,1,dt)}),t4=Xn(function(ot,dt,Ct){return t1(ot,ba(dt)||0,Ct)});function r4(ot){return fo(ot,zt)}function H0(ot,dt){if(typeof ot!="function"||dt!=null&&typeof dt!="function")throw new Zs(it);var Ct=function(){var Ht=arguments,er=dt?dt.apply(this,Ht):Ht[0],dr=Ct.cache;if(dr.has(er))return dr.get(er);var xr=ot.apply(this,Ht);return Ct.cache=dr.set(er,xr)||dr,xr};return Ct.cache=new(H0.Cache||ao),Ct}H0.Cache=ao;function V0(ot){if(typeof ot!="function")throw new Zs(it);return function(){var dt=arguments;switch(dt.length){case 0:return!ot.call(this);case 1:return!ot.call(this,dt[0]);case 2:return!ot.call(this,dt[0],dt[1]);case 3:return!ot.call(this,dt[0],dt[1],dt[2])}return!ot.apply(this,dt)}}function n4(ot){return lp(2,ot)}var i4=G2(function(ot,dt){dt=dt.length==1&&Wn(dt[0])?xs(dt[0],Gs(On())):xs(Cs(dt,1),Gs(On()));var Ct=dt.length;return Xn(function(Ht){for(var er=-1,dr=Rs(Ht.length,Ct);++er=dt}),Mo=a1(function(){return arguments}())?a1:function(ot){return _s(ot)&&ds.call(ot,"callee")&&!qu.call(ot,"callee")},Wn=Dr.isArray,x4=Au?Gs(Au):T2;function Us(ot){return ot!=null&&G0(ot.length)&&!uo(ot)}function Ss(ot){return _s(ot)&&Us(ot)}function w4(ot){return ot===!0||ot===!1||_s(ot)&&Fs(ot)==Yt}var ko=Ry||_u,_4=Pu?Gs(Pu):A2;function k4(ot){return _s(ot)&&ot.nodeType===1&&!o0(ot)}function S4(ot){if(ot==null)return!0;if(Us(ot)&&(Wn(ot)||typeof ot=="string"||typeof ot.splice=="function"||ko(ot)||Go(ot)||Mo(ot)))return!ot.length;var dt=Os(ot);if(dt==br||dt==Cr)return!ot.size;if(s0(ot))return!Fl(ot).length;for(var Ct in ot)if(ds.call(ot,Ct))return!1;return!0}function E4(ot,dt){return r0(ot,dt)}function $4(ot,dt,Ct){Ct=typeof Ct=="function"?Ct:et;var Ht=Ct?Ct(ot,dt):et;return Ht===et?r0(ot,dt,et,Ct):!!Ht}function hu(ot){if(!_s(ot))return!1;var dt=Fs(ot);return dt==Jt||dt==gr||typeof ot.message=="string"&&typeof ot.name=="string"&&!o0(ot)}function T4(ot){return typeof ot=="number"&&Yu(ot)}function uo(ot){if(!ws(ot))return!1;var dt=Fs(ot);return dt==Xt||dt==Sr||dt==Zt||dt==pr}function mp(ot){return typeof ot=="number"&&ot==Kn(ot)}function G0(ot){return typeof ot=="number"&&ot>-1&&ot%1==0&&ot<=$t}function ws(ot){var dt=typeof ot;return ot!=null&&(dt=="object"||dt=="function")}function _s(ot){return ot!=null&&typeof ot=="object"}var gp=Iu?Gs(Iu):I2;function A4(ot,dt){return ot===dt||Ol(ot,dt,ru(dt))}function P4(ot,dt,Ct){return Ct=typeof Ct=="function"?Ct:et,Ol(ot,dt,ru(dt),Ct)}function I4(ot){return vp(ot)&&ot!=+ot}function B4(ot){if(pm(ot))throw new zn(nt);return o1(ot)}function M4(ot){return ot===null}function C4(ot){return ot==null}function vp(ot){return typeof ot=="number"||_s(ot)&&Fs(ot)==Or}function o0(ot){if(!_s(ot)||Fs(ot)!=Lr)return!1;var dt=g0(ot);if(dt===null)return!0;var Ct=ds.call(dt,"constructor")&&dt.constructor;return typeof Ct=="function"&&Ct instanceof Ct&&d0.call(Ct)==Ay}var du=Bu?Gs(Bu):B2;function R4(ot){return mp(ot)&&ot>=-$t&&ot<=$t}var bp=Mu?Gs(Mu):M2;function z0(ot){return typeof ot=="string"||!Wn(ot)&&_s(ot)&&Fs(ot)==Jr}function Ws(ot){return typeof ot=="symbol"||_s(ot)&&Fs(ot)==Hr}var Go=Cu?Gs(Cu):C2;function O4(ot){return ot===et}function F4(ot){return _s(ot)&&Os(ot)==wr}function N4(ot){return _s(ot)&&Fs(ot)==Rr}var L4=O0(Nl),D4=O0(function(ot,dt){return ot<=dt});function xp(ot){if(!ot)return[];if(Us(ot))return z0(ot)?xa(ot):Ds(ot);if(Ko&&ot[Ko])return my(ot[Ko]());var dt=Os(ot),Ct=dt==br?Sl:dt==Cr?l0:zo;return Ct(ot)}function ho(ot){if(!ot)return ot===0?ot:0;if(ot=ba(ot),ot===Mt||ot===-Mt){var dt=ot<0?-1:1;return dt*Tt}return ot===ot?ot:0}function Kn(ot){var dt=ho(ot),Ct=dt%1;return dt===dt?Ct?dt-Ct:dt:0}function wp(ot){return ot?Ao(Kn(ot),0,Pt):0}function ba(ot){if(typeof ot=="number")return ot;if(Ws(ot))return At;if(ws(ot)){var dt=typeof ot.valueOf=="function"?ot.valueOf():ot;ot=ws(dt)?dt+"":dt}if(typeof ot!="string")return ot===0?ot:+ot;ot=Du(ot);var Ct=Un.test(ot);return Ct||En.test(ot)?Qp(ot.slice(2),Ct?2:8):Vr.test(ot)?At:+ot}function _p(ot){return no(ot,js(ot))}function U4(ot){return ot?Ao(Kn(ot),-$t,$t):ot===0?ot:0}function us(ot){return ot==null?"":zs(ot)}var j4=jo(function(ot,dt){if(s0(dt)||Us(dt)){no(dt,Bs(dt),ot);return}for(var Ct in dt)ds.call(dt,Ct)&&Qo(ot,Ct,dt[Ct])}),kp=jo(function(ot,dt){no(dt,js(dt),ot)}),W0=jo(function(ot,dt,Ct,Ht){no(dt,js(dt),ot,Ht)}),H4=jo(function(ot,dt,Ct,Ht){no(dt,Bs(dt),ot,Ht)}),V4=co(Il);function G4(ot,dt){var Ct=Uo(ot);return dt==null?Ct:_h(Ct,dt)}var z4=Xn(function(ot,dt){ot=ps(ot);var Ct=-1,Ht=dt.length,er=Ht>2?dt[2]:et;for(er&&Ns(dt[0],dt[1],er)&&(Ht=1);++Ct1),dr}),no(ot,eu(ot),Ct),Ht&&(Ct=Qs(Ct,vt|gt|wt,tm));for(var er=dt.length;er--;)Vl(Ct,dt[er]);return Ct});function c3(ot,dt){return Ep(ot,V0(On(dt)))}var l3=co(function(ot,dt){return ot==null?{}:F2(ot,dt)});function Ep(ot,dt){if(ot==null)return{};var Ct=xs(eu(ot),function(Ht){return[Ht]});return dt=On(dt),p1(ot,Ct,function(Ht,er){return dt(Ht,er[0])})}function u3(ot,dt,Ct){dt=wo(dt,ot);var Ht=-1,er=dt.length;for(er||(er=1,ot=et);++Htdt){var Ht=ot;ot=dt,dt=Ht}if(Ct||ot%1||dt%1){var er=Xu();return Rs(ot+er*(dt-ot+Jp("1e-"+((er+"").length-1))),dt)}return Dl(ot,dt)}var _3=Ho(function(ot,dt,Ct){return dt=dt.toLowerCase(),ot+(Ct?Ap(dt):dt)});function Ap(ot){return mu(us(ot).toLowerCase())}function Pp(ot){return ot=us(ot),ot&&ot.replace(Mn,uy).replace(Hp,"")}function k3(ot,dt,Ct){ot=us(ot),dt=zs(dt);var Ht=ot.length;Ct=Ct===et?Ht:Ao(Kn(Ct),0,Ht);var er=Ct;return Ct-=dt.length,Ct>=0&&ot.slice(Ct,er)==dt}function S3(ot){return ot=us(ot),ot&&Bn.test(ot)?ot.replace(wn,hy):ot}function E3(ot){return ot=us(ot),ot&&fs.test(ot)?ot.replace(un,"\\$&"):ot}var $3=Ho(function(ot,dt,Ct){return ot+(Ct?"-":"")+dt.toLowerCase()}),T3=Ho(function(ot,dt,Ct){return ot+(Ct?" ":"")+dt.toLowerCase()}),A3=B1("toLowerCase");function P3(ot,dt,Ct){ot=us(ot),dt=Kn(dt);var Ht=dt?Oo(ot):0;if(!dt||Ht>=dt)return ot;var er=(dt-Ht)/2;return R0(w0(er),Ct)+ot+R0(x0(er),Ct)}function I3(ot,dt,Ct){ot=us(ot),dt=Kn(dt);var Ht=dt?Oo(ot):0;return dt&&Ht>>0,Ct?(ot=us(ot),ot&&(typeof dt=="string"||dt!=null&&!du(dt))&&(dt=zs(dt),!dt&&Ro(ot))?_o(xa(ot),0,Ct):ot.split(dt,Ct)):[]}var N3=Ho(function(ot,dt,Ct){return ot+(Ct?" ":"")+mu(dt)});function L3(ot,dt,Ct){return ot=us(ot),Ct=Ct==null?0:Ao(Kn(Ct),0,ot.length),dt=zs(dt),ot.slice(Ct,Ct+dt.length)==dt}function D3(ot,dt,Ct){var Ht=lr.templateSettings;Ct&&Ns(ot,dt,Ct)&&(dt=et),ot=us(ot),dt=W0({},dt,Ht,L1);var er=W0({},dt.imports,Ht.imports,L1),dr=Bs(er),xr=_l(er,dr),Er,Mr,qr=0,Yr=dt.interpolate||Tn,tn="__p += '",mn=El((dt.escape||Tn).source+"|"+Yr.source+"|"+(Yr===Rn?Gr:Tn).source+"|"+(dt.evaluate||Tn).source+"|$","g"),In="//# sourceURL="+(ds.call(dt,"sourceURL")?(dt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qp+"]")+` -`;ot.replace(mn,function(Ln,Jn,ns,qs,Ls,Ks){return ns||(ns=qs),tn+=ot.slice(qr,Ks).replace(An,dy),Jn&&(Er=!0,tn+=`' + -__e(`+Jn+`) + -'`),Ls&&(Mr=!0,tn+=`'; -`+Ls+`; -__p += '`),ns&&(tn+=`' + -((__t = (`+ns+`)) == null ? '' : __t) + -'`),qr=Ks+Ln.length,Ln}),tn+=`'; -`;var Nn=ds.call(dt,"variable")&&dt.variable;if(!Nn)tn=`with (obj) { -`+tn+` -} -`;else if($r.test(Nn))throw new zn(st);tn=(Mr?tn.replace(sn,""):tn).replace(yn,"$1").replace(ss,"$1;"),tn="function("+(Nn||"obj")+`) { -`+(Nn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Er?", __e = _.escape":"")+(Mr?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+tn+`return __p -}`;var Yn=Bp(function(){return cs(dr,In+"return "+tn).apply(et,xr)});if(Yn.source=tn,hu(Yn))throw Yn;return Yn}function U3(ot){return us(ot).toLowerCase()}function j3(ot){return us(ot).toUpperCase()}function H3(ot,dt,Ct){if(ot=us(ot),ot&&(Ct||dt===et))return Du(ot);if(!ot||!(dt=zs(dt)))return ot;var Ht=xa(ot),er=xa(dt),dr=Uu(Ht,er),xr=ju(Ht,er)+1;return _o(Ht,dr,xr).join("")}function V3(ot,dt,Ct){if(ot=us(ot),ot&&(Ct||dt===et))return ot.slice(0,Vu(ot)+1);if(!ot||!(dt=zs(dt)))return ot;var Ht=xa(ot),er=ju(Ht,xa(dt))+1;return _o(Ht,0,er).join("")}function G3(ot,dt,Ct){if(ot=us(ot),ot&&(Ct||dt===et))return ot.replace(Wt,"");if(!ot||!(dt=zs(dt)))return ot;var Ht=xa(ot),er=Uu(Ht,xa(dt));return _o(Ht,er).join("")}function z3(ot,dt){var Ct=or,Ht=qt;if(ws(dt)){var er="separator"in dt?dt.separator:er;Ct="length"in dt?Kn(dt.length):Ct,Ht="omission"in dt?zs(dt.omission):Ht}ot=us(ot);var dr=ot.length;if(Ro(ot)){var xr=xa(ot);dr=xr.length}if(Ct>=dr)return ot;var Er=Ct-Oo(Ht);if(Er<1)return Ht;var Mr=xr?_o(xr,0,Er).join(""):ot.slice(0,Er);if(er===et)return Mr+Ht;if(xr&&(Er+=Mr.length-Er),du(er)){if(ot.slice(Er).search(er)){var qr,Yr=Mr;for(er.global||(er=El(er.source,us(Qr.exec(er))+"g")),er.lastIndex=0;qr=er.exec(Yr);)var tn=qr.index;Mr=Mr.slice(0,tn===et?Er:tn)}}else if(ot.indexOf(zs(er),Er)!=Er){var mn=Mr.lastIndexOf(er);mn>-1&&(Mr=Mr.slice(0,mn))}return Mr+Ht}function W3(ot){return ot=us(ot),ot&&ls.test(ot)?ot.replace(Fn,xy):ot}var q3=Ho(function(ot,dt,Ct){return ot+(Ct?" ":"")+dt.toUpperCase()}),mu=B1("toUpperCase");function Ip(ot,dt,Ct){return ot=us(ot),dt=Ct?et:dt,dt===et?yy(ot)?ky(ot):ay(ot):ot.match(dt)||[]}var Bp=Xn(function(ot,dt){try{return Vs(ot,et,dt)}catch(Ct){return hu(Ct)?Ct:new zn(Ct)}}),K3=co(function(ot,dt){return Xs(dt,function(Ct){Ct=io(Ct),oo(ot,Ct,lu(ot[Ct],ot))}),ot});function Y3(ot){var dt=ot==null?0:ot.length,Ct=On();return ot=dt?xs(ot,function(Ht){if(typeof Ht[1]!="function")throw new Zs(it);return[Ct(Ht[0]),Ht[1]]}):[],Xn(function(Ht){for(var er=-1;++er$t)return[];var Ct=Pt,Ht=Rs(ot,Pt);dt=On(dt),ot-=Pt;for(var er=xl(Ht,dt);++Ct0||dt<0)?new ts(Ct):(ot<0?Ct=Ct.takeRight(-ot):ot&&(Ct=Ct.drop(ot)),dt!==et&&(dt=Kn(dt),Ct=dt<0?Ct.dropRight(-dt):Ct.take(dt-ot)),Ct)},ts.prototype.takeRightWhile=function(ot){return this.reverse().takeWhile(ot).reverse()},ts.prototype.toArray=function(){return this.take(Pt)},ro(ts.prototype,function(ot,dt){var Ct=/^(?:filter|find|map|reject)|While$/.test(dt),Ht=/^(?:head|last)$/.test(dt),er=lr[Ht?"take"+(dt=="last"?"Right":""):dt],dr=Ht||/^find/.test(dt);er&&(lr.prototype[dt]=function(){var xr=this.__wrapped__,Er=Ht?[1]:arguments,Mr=xr instanceof ts,qr=Er[0],Yr=Mr||Wn(xr),tn=function(Jn){var ns=er.apply(lr,mo([Jn],Er));return Ht&&mn?ns[0]:ns};Yr&&Ct&&typeof qr=="function"&&qr.length!=1&&(Mr=Yr=!1);var mn=this.__chain__,In=!!this.__actions__.length,Nn=dr&&!mn,Yn=Mr&&!In;if(!dr&&Yr){xr=Yn?xr:new ts(this);var Ln=ot.apply(xr,Er);return Ln.__actions__.push({func:D0,args:[tn],thisArg:et}),new Js(Ln,mn)}return Nn&&Yn?ot.apply(this,Er):(Ln=this.thru(tn),Nn?Ht?Ln.value()[0]:Ln.value():Ln)})}),Xs(["pop","push","shift","sort","splice","unshift"],function(ot){var dt=u0[ot],Ct=/^(?:push|sort|unshift)$/.test(ot)?"tap":"thru",Ht=/^(?:pop|shift)$/.test(ot);lr.prototype[ot]=function(){var er=arguments;if(Ht&&!this.__chain__){var dr=this.value();return dt.apply(Wn(dr)?dr:[],er)}return this[Ct](function(xr){return dt.apply(Wn(xr)?xr:[],er)})}}),ro(ts.prototype,function(ot,dt){var Ct=lr[dt];if(Ct){var Ht=Ct.name+"";ds.call(Do,Ht)||(Do[Ht]=[]),Do[Ht].push({name:dt,func:Ct})}}),Do[M0(et,yt).name]=[{name:"wrapper",func:et}],ts.prototype.clone=zy,ts.prototype.reverse=Wy,ts.prototype.value=qy,lr.prototype.at=_v,lr.prototype.chain=kv,lr.prototype.commit=Sv,lr.prototype.next=Ev,lr.prototype.plant=Tv,lr.prototype.reverse=Av,lr.prototype.toJSON=lr.prototype.valueOf=lr.prototype.value=Pv,lr.prototype.first=lr.prototype.head,Ko&&(lr.prototype[Ko]=$v),lr},Fo=Sy();So?((So.exports=Fo)._=Fo,Y0._=Fo):Ms._=Fo}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const getElementsMemoized=()=>{const a={};return()=>{if(a.inner&&a.body)return a;const o=document.querySelector("body"),et=document.createElement("div"),tt=document.createElement("div"),rt=document.createElement("div"),nt=document.createElement("div"),it=()=>{et.classList.toggle("hide")};return rt.addEventListener("click",it),nt.addEventListener("click",it),et.classList.add("loggerWrapper"),et.classList.add("hide"),tt.classList.add("loggerInner"),rt.classList.add("close"),nt.classList.add("open"),rt.textContent="X",nt.textContent="OPEN LOG",o==null||o.appendChild(et),o==null||o.appendChild(nt),et.appendChild(rt),et.appendChild(tt),a.body=o,a.inner=tt,{body:o,inner:tt}}},getElements=getElementsMemoized(),variants=["log","info","warn","error"],logMessage=(a,o)=>{const{inner:et}=getElements(),tt=document.createElement("span");tt.textContent=a,tt.classList.add("message"),tt.classList.add(o),et.appendChild(tt)},overrideConsole=()=>{window.location.hostname.includes("local")};var reactIs$2={exports:{}},reactIs_production_min$1={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var b$2=Symbol.for("react.element"),c$1=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e$2=Symbol.for("react.strict_mode"),f$3=Symbol.for("react.profiler"),g$4=Symbol.for("react.provider"),h$5=Symbol.for("react.context"),k$3=Symbol.for("react.server_context"),l$2=Symbol.for("react.forward_ref"),m$2=Symbol.for("react.suspense"),n$3=Symbol.for("react.suspense_list"),p$3=Symbol.for("react.memo"),q$4=Symbol.for("react.lazy"),t$3=Symbol.for("react.offscreen"),u$2;u$2=Symbol.for("react.module.reference");function v$4(a){if(typeof a=="object"&&a!==null){var o=a.$$typeof;switch(o){case b$2:switch(a=a.type,a){case d$1:case f$3:case e$2:case m$2:case n$3:return a;default:switch(a=a&&a.$$typeof,a){case k$3:case h$5:case l$2:case q$4:case p$3:case g$4:return a;default:return o}}case c$1:return o}}}reactIs_production_min$1.ContextConsumer=h$5;reactIs_production_min$1.ContextProvider=g$4;reactIs_production_min$1.Element=b$2;reactIs_production_min$1.ForwardRef=l$2;reactIs_production_min$1.Fragment=d$1;reactIs_production_min$1.Lazy=q$4;reactIs_production_min$1.Memo=p$3;reactIs_production_min$1.Portal=c$1;reactIs_production_min$1.Profiler=f$3;reactIs_production_min$1.StrictMode=e$2;reactIs_production_min$1.Suspense=m$2;reactIs_production_min$1.SuspenseList=n$3;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(a){return v$4(a)===h$5};reactIs_production_min$1.isContextProvider=function(a){return v$4(a)===g$4};reactIs_production_min$1.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===b$2};reactIs_production_min$1.isForwardRef=function(a){return v$4(a)===l$2};reactIs_production_min$1.isFragment=function(a){return v$4(a)===d$1};reactIs_production_min$1.isLazy=function(a){return v$4(a)===q$4};reactIs_production_min$1.isMemo=function(a){return v$4(a)===p$3};reactIs_production_min$1.isPortal=function(a){return v$4(a)===c$1};reactIs_production_min$1.isProfiler=function(a){return v$4(a)===f$3};reactIs_production_min$1.isStrictMode=function(a){return v$4(a)===e$2};reactIs_production_min$1.isSuspense=function(a){return v$4(a)===m$2};reactIs_production_min$1.isSuspenseList=function(a){return v$4(a)===n$3};reactIs_production_min$1.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===d$1||a===f$3||a===e$2||a===m$2||a===n$3||a===t$3||typeof a=="object"&&a!==null&&(a.$$typeof===q$4||a.$$typeof===p$3||a.$$typeof===g$4||a.$$typeof===h$5||a.$$typeof===l$2||a.$$typeof===u$2||a.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$4;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports;function stylis_min(a){function o(mt,Ft,Qt,cr,Gt){for(var Zt=0,Yt=0,ar=0,gr=0,Jt,Xt,Sr=0,br=0,Or,Zr=Or=Jt=0,Lr=0,yr=0,pr=0,Pr=0,Cr=Qt.length,Jr=Cr-1,Hr,ur="",wr="",Rr="",Kt="",Lt;LrJt)&&(Pr=(ur=ur.replace(" ",":")).length),0<$t&&(Lt=st(1,ur,Ft,mt,Bt,Rt,wr.length,cr,Gt,cr))!==void 0&&(Pr=(ur=Lt.trim()).length)===0&&(ur="\0\0"),Jt=ur.charCodeAt(0),Xt=ur.charCodeAt(1),Jt){case 0:break;case 64:if(Xt===105||Xt===99){Kt+=ur+Qt.charAt(Lr);break}default:ur.charCodeAt(Pr-1)!==58&&(wr+=rt(ur,Jt,Xt,ur.charCodeAt(2)))}pr=yr=Zr=Jt=0,ur="",Xt=Qt.charCodeAt(++Lr)}}switch(Xt){case 13:case 10:Yt===47?Yt=0:1+Jt===0&&cr!==107&&0cr&&(cr=(Ft=Ft.trim()).charCodeAt(0)),cr){case 38:return Ft.replace(yt,"$1"+mt.trim());case 58:return mt.trim()+Ft.replace(yt,"$1"+mt.trim());default:if(0<1*Qt&&0Yt.charCodeAt(8))break;case 115:Gt=Gt.replace(Yt,"-webkit-"+Yt)+";"+Gt;break;case 207:case 102:Gt=Gt.replace(Yt,"-webkit-"+(102Qt.charCodeAt(0)&&(Qt=Qt.trim()),Pt=Qt,Qt=[Pt],0<$t){var cr=st(-1,Ft,Qt,Qt,Bt,Rt,0,0,0,0);cr!==void 0&&typeof cr=="string"&&(Ft=cr)}var Gt=o(St,Qt,Ft,0,0);return 0<$t&&(cr=st(-2,Gt,Qt,Qt,Bt,Rt,Gt.length,0,0,0),cr!==void 0&&(Gt=cr)),Pt="",ct=0,Rt=Bt=1,Gt}var vt=/^\0+/g,gt=/[\0\r\f]/g,wt=/: */g,ut=/zoo|gra/,pt=/([,: ])(transform)/g,Et=/,\r+?/g,yt=/([\t\r\n ])*\f?&/g,bt=/@(k\w+)\s*(\S*)\s*/,kt=/::(place)/g,It=/:(read-only)/g,Ot=/[svh]\w+-[tblr]{2}/,Nt=/\(\s*(.*)\s*\)/g,Vt=/([\s\S]*?);/g,jt=/-self|flex-/g,zt=/[^]*?(:[rp][el]a[\w-]+)[^]*/,or=/stretch|:\s*\w+\-(?:conte|avail)/,qt=/([^-])(image-set\()/,Rt=1,Bt=1,ct=0,xt=1,St=[],Mt=[],$t=0,Tt=null,At=0,Pt="";return ht.use=at,ht.set=lt,a!==void 0&<(a),ht}var unitlessKeys$1={animationIterationCount: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,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};function memoize$1(a){var o=Object.create(null);return function(et){return o[et]===void 0&&(o[et]=a(et)),o[et]}}var reactPropsRegex$1=/^((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|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|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|enableBackground|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)-.*))$/,isPropValid$1=memoize$1(function(a){return reactPropsRegex$1.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91}),reactIs$1={exports:{}},reactIs_production_min={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var b$1=typeof Symbol=="function"&&Symbol.for,c=b$1?Symbol.for("react.element"):60103,d=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$2=b$1?Symbol.for("react.strict_mode"):60108,g$3=b$1?Symbol.for("react.profiler"):60114,h$4=b$1?Symbol.for("react.provider"):60109,k$2=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$2=b$1?Symbol.for("react.forward_ref"):60112,p$2=b$1?Symbol.for("react.suspense"):60113,q$3=b$1?Symbol.for("react.suspense_list"):60120,r$5=b$1?Symbol.for("react.memo"):60115,t$2=b$1?Symbol.for("react.lazy"):60116,v$3=b$1?Symbol.for("react.block"):60121,w$3=b$1?Symbol.for("react.fundamental"):60117,x$2=b$1?Symbol.for("react.responder"):60118,y=b$1?Symbol.for("react.scope"):60119;function z$2(a){if(typeof a=="object"&&a!==null){var o=a.$$typeof;switch(o){case c:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$3:case f$2:case p$2:return a;default:switch(a=a&&a.$$typeof,a){case k$2:case n$2:case t$2:case r$5:case h$4:return a;default:return o}}case d:return o}}}function A$1(a){return z$2(a)===m$1}reactIs_production_min.AsyncMode=l$1;reactIs_production_min.ConcurrentMode=m$1;reactIs_production_min.ContextConsumer=k$2;reactIs_production_min.ContextProvider=h$4;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n$2;reactIs_production_min.Fragment=e$1;reactIs_production_min.Lazy=t$2;reactIs_production_min.Memo=r$5;reactIs_production_min.Portal=d;reactIs_production_min.Profiler=g$3;reactIs_production_min.StrictMode=f$2;reactIs_production_min.Suspense=p$2;reactIs_production_min.isAsyncMode=function(a){return A$1(a)||z$2(a)===l$1};reactIs_production_min.isConcurrentMode=A$1;reactIs_production_min.isContextConsumer=function(a){return z$2(a)===k$2};reactIs_production_min.isContextProvider=function(a){return z$2(a)===h$4};reactIs_production_min.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z$2(a)===n$2};reactIs_production_min.isFragment=function(a){return z$2(a)===e$1};reactIs_production_min.isLazy=function(a){return z$2(a)===t$2};reactIs_production_min.isMemo=function(a){return z$2(a)===r$5};reactIs_production_min.isPortal=function(a){return z$2(a)===d};reactIs_production_min.isProfiler=function(a){return z$2(a)===g$3};reactIs_production_min.isStrictMode=function(a){return z$2(a)===f$2};reactIs_production_min.isSuspense=function(a){return z$2(a)===p$2};reactIs_production_min.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===e$1||a===m$1||a===g$3||a===f$2||a===p$2||a===q$3||typeof a=="object"&&a!==null&&(a.$$typeof===t$2||a.$$typeof===r$5||a.$$typeof===h$4||a.$$typeof===k$2||a.$$typeof===n$2||a.$$typeof===w$3||a.$$typeof===x$2||a.$$typeof===y||a.$$typeof===v$3)};reactIs_production_min.typeOf=z$2;reactIs$1.exports=reactIs_production_min;var reactIsExports=reactIs$1.exports,reactIs=reactIsExports,REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(a){return reactIs.isMemo(a)?MEMO_STATICS:TYPE_STATICS[a.$$typeof]||REACT_STATICS}var defineProperty$2=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf$1=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(a,o,et){if(typeof o!="string"){if(objectPrototype){var tt=getPrototypeOf$1(o);tt&&tt!==objectPrototype&&hoistNonReactStatics(a,tt,et)}var rt=getOwnPropertyNames(o);getOwnPropertySymbols&&(rt=rt.concat(getOwnPropertySymbols(o)));for(var nt=getStatics(a),it=getStatics(o),st=0;st1?o-1:0),tt=1;tt0?" Args: "+et.join(", "):""))}var T=function(){function a(et){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=et}var o=a.prototype;return o.indexOfGroup=function(et){for(var tt=0,rt=0;rt=this.groupSizes.length){for(var rt=this.groupSizes,nt=rt.length,it=nt;et>=it;)(it<<=1)<0&&j(16,""+et);this.groupSizes=new Uint32Array(it),this.groupSizes.set(rt),this.length=it;for(var st=nt;st=this.length||this.groupSizes[et]===0)return tt;for(var rt=this.groupSizes[et],nt=this.indexOfGroup(et),it=nt+rt,st=nt;st=V&&(V=o+1),x$1.set(a,o),k$1.set(o,a)},G$1="style["+A+'][data-styled-version="5.3.9"]',L=new RegExp("^"+A+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(a,o,et){for(var tt,rt=et.split(","),nt=0,it=rt.length;nt=0;lt--){var ht=at[lt];if(ht&&ht.nodeType===1&&ht.hasAttribute(A))return ht}}(et),nt=rt!==void 0?rt.nextSibling:null;tt.setAttribute(A,"active"),tt.setAttribute("data-styled-version","5.3.9");var it=q$2();return it&&tt.setAttribute("nonce",it),et.insertBefore(tt,nt),tt},$=function(){function a(et){var tt=this.element=H(et);tt.appendChild(document.createTextNode("")),this.sheet=function(rt){if(rt.sheet)return rt.sheet;for(var nt=document.styleSheets,it=0,st=nt.length;it=0){var rt=document.createTextNode(tt),nt=this.nodes[et];return this.element.insertBefore(rt,nt||null),this.length++,!0}return!1},o.deleteRule=function(et){this.element.removeChild(this.nodes[et]),this.length--},o.getRule=function(et){return et0&&(vt+=gt+",")}),nt+=""+lt+ht+'{content:"'+vt+`"}/*!sc*/ -`}}}return nt}(this)},a}(),K$5=/(a)(d)/gi,Q=function(a){return String.fromCharCode(a+(a>25?39:97))};function ee(a){var o,et="";for(o=Math.abs(a);o>52;o=o/52|0)et=Q(o%52)+et;return(Q(o%52)+et).replace(K$5,"$1-$2")}var te=function(a,o){for(var et=o.length;et;)a=33*a^o.charCodeAt(--et);return a},ne=function(a){return te(5381,a)};function re$1(a){for(var o=0;o>>0);if(!et.hasNameForId(rt,st)){var at=tt(it,"."+st,void 0,rt);et.insertRules(rt,st,at)}nt.push(st),this.staticRulesId=st}else{for(var lt=this.rules.length,ht=te(this.baseHash,tt.hash),vt="",gt=0;gt>>0);if(!et.hasNameForId(rt,Et)){var yt=tt(vt,"."+Et,void 0,rt);et.insertRules(rt,Et,yt)}nt.push(Et)}}return nt.join(" ")},a}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(a){var o,et,tt,rt,nt=a===void 0?E:a,it=nt.options,st=it===void 0?E:it,at=nt.plugins,lt=at===void 0?w$2:at,ht=new stylis_min(st),vt=[],gt=function(pt){function Et(yt){if(yt)try{pt(yt+"}")}catch{}}return function(yt,bt,kt,It,Ot,Nt,Vt,jt,zt,or){switch(yt){case 1:if(zt===0&&bt.charCodeAt(0)===64)return pt(bt+";"),"";break;case 2:if(jt===0)return bt+"/*|*/";break;case 3:switch(jt){case 102:case 112:return pt(kt[0]+bt),"";default:return bt+(or===0?"/*|*/":"")}case-2:bt.split("/*|*/}").forEach(Et)}}}(function(pt){vt.push(pt)}),wt=function(pt,Et,yt){return Et===0&&ae.indexOf(yt[et.length])!==-1||yt.match(rt)?pt:"."+o};function ut(pt,Et,yt,bt){bt===void 0&&(bt="&");var kt=pt.replace(ie,""),It=Et&&yt?yt+" "+Et+" { "+kt+" }":kt;return o=bt,et=Et,tt=new RegExp("\\"+et+"\\b","g"),rt=new RegExp("(\\"+et+"\\b){2,}"),ht(yt||!Et?"":Et,It)}return ht.use([].concat(lt,[function(pt,Et,yt){pt===2&&yt.length&&yt[0].lastIndexOf(et)>0&&(yt[0]=yt[0].replace(tt,wt))},gt,function(pt){if(pt===-2){var Et=vt;return vt=[],Et}}])),ut.hash=lt.length?lt.reduce(function(pt,Et){return Et.name||j(15),te(pt,Et.name)},5381).toString():"",ut}var ue=React.createContext();ue.Consumer;var de=React.createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return reactExports.useContext(ue)||he}function me(){return reactExports.useContext(de)||pe}var ve=function(){function a(o,et){var tt=this;this.inject=function(rt,nt){nt===void 0&&(nt=pe);var it=tt.name+nt.hash;rt.hasNameForId(tt.id,it)||rt.insertRules(tt.id,it,nt(tt.rules,it,"@keyframes"))},this.toString=function(){return j(12,String(tt.name))},this.name=o,this.id="sc-keyframes-"+o,this.rules=et}return a.prototype.getName=function(o){return o===void 0&&(o=pe),this.name+o.hash},a}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(a){return"-"+a.toLowerCase()};function be(a){return ge.test(a)?a.replace(Se,Ee).replace(we,"-ms-"):a}var _e=function(a){return a==null||a===!1||a===""};function Ne(a,o,et,tt){if(Array.isArray(a)){for(var rt,nt=[],it=0,st=a.length;it1?o-1:0),tt=1;tt?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(a){return a.replace(De,"-").replace(je,"")}var xe=function(a){return ee(ne(a)>>>0)};function ke(a){return typeof a=="string"&&!0}var Ve=function(a){return typeof a=="function"||typeof a=="object"&&a!==null&&!Array.isArray(a)},Be=function(a){return a!=="__proto__"&&a!=="constructor"&&a!=="prototype"};function ze(a,o,et){var tt=a[et];Ve(o)&&Ve(tt)?Me(tt,o):a[et]=o}function Me(a){for(var o=arguments.length,et=new Array(o>1?o-1:0),tt=1;tt=0||(or[jt]=Nt[jt]);return or}(o,["componentId"]),Ot=kt&&kt+"-"+(ke(bt)?bt:Te(_$1(bt)));return qe(bt,v$2({},It,{attrs:gt,componentId:Ot}),et)},Object.defineProperty(ut,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(bt){this._foldedDefaultProps=tt?Me({},a.defaultProps,bt):bt}}),Object.defineProperty(ut,"toString",{value:function(){return"."+ut.styledComponentId}}),rt&&hoistNonReactStatics$1(ut,a,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),ut}var He=function(a){return function o(et,tt,rt){if(rt===void 0&&(rt=E),!reactIsExports$1.isValidElementType(tt))return j(1,String(tt));var nt=function(){return et(tt,rt,Ce.apply(void 0,arguments))};return nt.withConfig=function(it){return o(et,tt,v$2({},rt,{},it))},nt.attrs=function(it){return o(et,tt,v$2({},rt,{attrs:Array.prototype.concat(rt.attrs,it).filter(Boolean)}))},nt}(qe,a)};["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","figcaption","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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(a){He[a]=He(a)});var $e=function(){function a(et,tt){this.rules=et,this.componentId=tt,this.isStatic=re$1(et),Z.registerId(this.componentId+1)}var o=a.prototype;return o.createStyles=function(et,tt,rt,nt){var it=nt(Ne(this.rules,tt,rt,nt).join(""),""),st=this.componentId+et;rt.insertRules(st,st,it)},o.removeStyles=function(et,tt){tt.clearRules(this.componentId+et)},o.renderStyles=function(et,tt,rt,nt){et>2&&Z.registerId(this.componentId+et),this.removeStyles(et,rt),this.createStyles(et,tt,rt,nt)},a}();function We(a){for(var o=arguments.length,et=new Array(o>1?o-1:0),tt=1;tt1?o-1:0),tt=1;tt(o,...et)=>{const tt=Ce(o,...et);return tt.join("").trim()?Ce` - @media ${a} { - ${tt} - } - `:[""]},breakpoints={large:1024,medium:640,small:0},media={large:cssWithMediaQuery(`(min-width: ${breakpoints.large}px)`),medium:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px)`),mediumOnly:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px) and (max-width: ${breakpoints.large-1}px)`),small:cssWithMediaQuery(`(min-width: ${breakpoints.small}px)`),smallOnly:cssWithMediaQuery(`(min-width: ${breakpoints.small}px) and (max-width: ${breakpoints.medium-1}px)`)};var dist$1={},identifier$1={},assert$o={exports:{}},errors$3={},util={},types$7={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},et=Symbol("test"),tt=Object(et);if(typeof et=="string"||Object.prototype.toString.call(et)!=="[object Symbol]"||Object.prototype.toString.call(tt)!=="[object Symbol]")return!1;var rt=42;o[et]=rt;for(et in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var nt=Object.getOwnPropertySymbols(o);if(nt.length!==1||nt[0]!==et||!Object.prototype.propertyIsEnumerable.call(o,et))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var it=Object.getOwnPropertyDescriptor(o,et);if(it.value!==rt||it.enumerable!==!0)return!1}return!0},hasSymbols$3=shams$1,shams=function(){return hasSymbols$3()&&!!Symbol.toStringTag},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$2=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(o,et){for(var tt=[],rt=0;rt"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(a){var errorProto=getProto$1(getProto$1(a));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function a(o){var et;if(o==="%AsyncFunction%")et=getEvalledConstructor("async function () {}");else if(o==="%GeneratorFunction%")et=getEvalledConstructor("function* () {}");else if(o==="%AsyncGeneratorFunction%")et=getEvalledConstructor("async function* () {}");else if(o==="%AsyncGenerator%"){var tt=a("%AsyncGeneratorFunction%");tt&&(et=tt.prototype)}else if(o==="%AsyncIteratorPrototype%"){var rt=a("%AsyncGenerator%");rt&&getProto$1&&(et=getProto$1(rt.prototype))}return INTRINSICS[o]=et,et},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(o){var et=$strSlice(o,0,1),tt=$strSlice(o,-1);if(et==="%"&&tt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(tt==="%"&&et!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var rt=[];return $replace(o,rePropName,function(nt,it,st,at){rt[rt.length]=st?$replace(at,reEscapeChar,"$1"):it||nt}),rt},getBaseIntrinsic=function(o,et){var tt=o,rt;if(hasOwn(LEGACY_ALIASES,tt)&&(rt=LEGACY_ALIASES[tt],tt="%"+rt[0]+"%"),hasOwn(INTRINSICS,tt)){var nt=INTRINSICS[tt];if(nt===needsEval&&(nt=doEval(tt)),typeof nt>"u"&&!et)throw new $TypeError$2("intrinsic "+o+" exists, but is not available. Please file an issue!");return{alias:rt,name:tt,value:nt}}throw new $SyntaxError$1("intrinsic "+o+" does not exist!")},getIntrinsic=function(o,et){if(typeof o!="string"||o.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof et!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,o)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var tt=stringToPath(o),rt=tt.length>0?tt[0]:"",nt=getBaseIntrinsic("%"+rt+"%",et),it=nt.name,st=nt.value,at=!1,lt=nt.alias;lt&&(rt=lt[0],$spliceApply(tt,$concat([0,1],lt)));for(var ht=1,vt=!0;ht=tt.length){var pt=$gOPD$1(st,gt);vt=!!pt,vt&&"get"in pt&&!("originalValue"in pt.get)?st=pt.get:st=st[gt]}else vt=hasOwn(st,gt),st=st[gt];vt&&!at&&(INTRINSICS[it]=st)}}return st},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function(o,et,tt){if(!o||typeof o!="object"&&typeof o!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof et!="string"&&typeof et!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var rt=arguments.length>3?arguments[3]:null,nt=arguments.length>4?arguments[4]:null,it=arguments.length>5?arguments[5]:null,st=arguments.length>6?arguments[6]:!1,at=!!gopd&&gopd(o,et);if($defineProperty)$defineProperty(o,et,{configurable:it===null&&at?at.configurable:!it,enumerable:rt===null&&at?at.enumerable:!rt,value:tt,writable:nt===null&&at?at.writable:!nt});else if(st||!rt&&!nt&&!it)o[et]=tt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(o,et){if(typeof o!="function")throw new $TypeError("`fn` is not a function");if(typeof et!="number"||et<0||et>4294967295||$floor(et)!==et)throw new $TypeError("`length` must be a positive 32-bit integer");var tt=arguments.length>2&&!!arguments[2],rt=!0,nt=!0;if("length"in o&&gOPD$1){var it=gOPD$1(o,"length");it&&!it.configurable&&(rt=!1),it&&!it.writable&&(nt=!1)}return(rt||nt||!tt)&&(hasDescriptors?define(o,"length",et,!0,!0):define(o,"length",et)),o};(function(a){var o=functionBind,et=getIntrinsic,tt=setFunctionLength,rt=et("%TypeError%"),nt=et("%Function.prototype.apply%"),it=et("%Function.prototype.call%"),st=et("%Reflect.apply%",!0)||o.call(it,nt),at=et("%Object.defineProperty%",!0),lt=et("%Math.max%");if(at)try{at({},"a",{value:1})}catch{at=null}a.exports=function(gt){if(typeof gt!="function")throw new rt("a function is required");var wt=st(o,it,arguments);return tt(wt,1+lt(0,gt.length-(arguments.length-1)),!0)};var ht=function(){return st(o,nt,arguments)};at?at(a.exports,"apply",{value:ht}):a.exports.apply=ht})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$3=function(o,et){var tt=GetIntrinsic(o,!!et);return typeof tt=="function"&&$indexOf$1(o,".prototype.")>-1?callBind$1(tt):tt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(o){return hasToStringTag$3&&o&&typeof o=="object"&&Symbol.toStringTag in o?!1:$toString$1(o)==="[object Arguments]"},isLegacyArguments=function(o){return isStandardArguments(o)?!0:o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&$toString$1(o)!=="[object Array]"&&$toString$1(o.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$3=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(o){if(typeof o!="function")return!1;if(isFnRegex.test(fnToStr$1.call(o)))return!0;if(!hasToStringTag$2){var et=toStr$3.call(o);return et==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var tt=getGeneratorFunc();GeneratorFunction=tt?getProto(tt):!1}return getProto(o)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(a){a!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(o){try{var et=fnToStr.call(o);return constructorRegex.test(et)}catch{return!1}},tryFunctionObject=function(o){try{return isES6ClassFn(o)?!1:(fnToStr.call(o),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(o){if((isIE68||!o)&&(typeof o>"u"||typeof o=="object"))try{var et=toStr$2.call(o);return(et===ddaClass||et===ddaClass2||et===ddaClass3||et===objectClass)&&o("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(o){if(isDDA(o))return!0;if(!o||typeof o!="function"&&typeof o!="object")return!1;try{reflectApply(o,null,badArrayLike)}catch(et){if(et!==isCallableMarker)return!1}return!isES6ClassFn(o)&&tryFunctionObject(o)}:function(o){if(isDDA(o))return!0;if(!o||typeof o!="function"&&typeof o!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(o);if(isES6ClassFn(o))return!1;var et=toStr$2.call(o);return et!==fnClass&&et!==genClass&&!/^\[object HTML/.test(et)?!1:tryFunctionObject(o)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$a=Object.prototype.hasOwnProperty,forEachArray=function(o,et,tt){for(var rt=0,nt=o.length;rt=3&&(rt=tt),toStr$1.call(o)==="[object Array]"?forEachArray(o,et,rt):typeof o=="string"?forEachString(o,et,rt):forEachObject(o,et,rt)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var o=[],et=0;et"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(o,et){for(var tt=0;tt-1?et:et!=="Object"?!1:trySlices(o)}return gOPD?tryTypedArrays(o):null},whichTypedArray=whichTypedArray$1,isTypedArray$2=function(o){return!!whichTypedArray(o)};(function(a){var o=isArguments$3,et=isGeneratorFunction,tt=whichTypedArray$1,rt=isTypedArray$2;function nt(pr){return pr.call.bind(pr)}var it=typeof BigInt<"u",st=typeof Symbol<"u",at=nt(Object.prototype.toString),lt=nt(Number.prototype.valueOf),ht=nt(String.prototype.valueOf),vt=nt(Boolean.prototype.valueOf);if(it)var gt=nt(BigInt.prototype.valueOf);if(st)var wt=nt(Symbol.prototype.valueOf);function ut(pr,Pr){if(typeof pr!="object")return!1;try{return Pr(pr),!0}catch{return!1}}a.isArgumentsObject=o,a.isGeneratorFunction=et,a.isTypedArray=rt;function pt(pr){return typeof Promise<"u"&&pr instanceof Promise||pr!==null&&typeof pr=="object"&&typeof pr.then=="function"&&typeof pr.catch=="function"}a.isPromise=pt;function Et(pr){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(pr):rt(pr)||Ft(pr)}a.isArrayBufferView=Et;function yt(pr){return tt(pr)==="Uint8Array"}a.isUint8Array=yt;function bt(pr){return tt(pr)==="Uint8ClampedArray"}a.isUint8ClampedArray=bt;function kt(pr){return tt(pr)==="Uint16Array"}a.isUint16Array=kt;function It(pr){return tt(pr)==="Uint32Array"}a.isUint32Array=It;function Ot(pr){return tt(pr)==="Int8Array"}a.isInt8Array=Ot;function Nt(pr){return tt(pr)==="Int16Array"}a.isInt16Array=Nt;function Vt(pr){return tt(pr)==="Int32Array"}a.isInt32Array=Vt;function jt(pr){return tt(pr)==="Float32Array"}a.isFloat32Array=jt;function zt(pr){return tt(pr)==="Float64Array"}a.isFloat64Array=zt;function or(pr){return tt(pr)==="BigInt64Array"}a.isBigInt64Array=or;function qt(pr){return tt(pr)==="BigUint64Array"}a.isBigUint64Array=qt;function Rt(pr){return at(pr)==="[object Map]"}Rt.working=typeof Map<"u"&&Rt(new Map);function Bt(pr){return typeof Map>"u"?!1:Rt.working?Rt(pr):pr instanceof Map}a.isMap=Bt;function ct(pr){return at(pr)==="[object Set]"}ct.working=typeof Set<"u"&&ct(new Set);function xt(pr){return typeof Set>"u"?!1:ct.working?ct(pr):pr instanceof Set}a.isSet=xt;function St(pr){return at(pr)==="[object WeakMap]"}St.working=typeof WeakMap<"u"&&St(new WeakMap);function Mt(pr){return typeof WeakMap>"u"?!1:St.working?St(pr):pr instanceof WeakMap}a.isWeakMap=Mt;function $t(pr){return at(pr)==="[object WeakSet]"}$t.working=typeof WeakSet<"u"&&$t(new WeakSet);function Tt(pr){return $t(pr)}a.isWeakSet=Tt;function At(pr){return at(pr)==="[object ArrayBuffer]"}At.working=typeof ArrayBuffer<"u"&&At(new ArrayBuffer);function Pt(pr){return typeof ArrayBuffer>"u"?!1:At.working?At(pr):pr instanceof ArrayBuffer}a.isArrayBuffer=Pt;function mt(pr){return at(pr)==="[object DataView]"}mt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&mt(new DataView(new ArrayBuffer(1),0,1));function Ft(pr){return typeof DataView>"u"?!1:mt.working?mt(pr):pr instanceof DataView}a.isDataView=Ft;var Qt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function cr(pr){return at(pr)==="[object SharedArrayBuffer]"}function Gt(pr){return typeof Qt>"u"?!1:(typeof cr.working>"u"&&(cr.working=cr(new Qt)),cr.working?cr(pr):pr instanceof Qt)}a.isSharedArrayBuffer=Gt;function Zt(pr){return at(pr)==="[object AsyncFunction]"}a.isAsyncFunction=Zt;function Yt(pr){return at(pr)==="[object Map Iterator]"}a.isMapIterator=Yt;function ar(pr){return at(pr)==="[object Set Iterator]"}a.isSetIterator=ar;function gr(pr){return at(pr)==="[object Generator]"}a.isGeneratorObject=gr;function Jt(pr){return at(pr)==="[object WebAssembly.Module]"}a.isWebAssemblyCompiledModule=Jt;function Xt(pr){return ut(pr,lt)}a.isNumberObject=Xt;function Sr(pr){return ut(pr,ht)}a.isStringObject=Sr;function br(pr){return ut(pr,vt)}a.isBooleanObject=br;function Or(pr){return it&&ut(pr,gt)}a.isBigIntObject=Or;function Zr(pr){return st&&ut(pr,wt)}a.isSymbolObject=Zr;function Lr(pr){return Xt(pr)||Sr(pr)||br(pr)||Or(pr)||Zr(pr)}a.isBoxedPrimitive=Lr;function yr(pr){return typeof Uint8Array<"u"&&(Pt(pr)||Gt(pr))}a.isAnyArrayBuffer=yr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(pr){Object.defineProperty(a,pr,{enumerable:!1,value:function(){throw new Error(pr+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(o,et){et&&(o.super_=et,o.prototype=Object.create(et.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(o,et){if(et){o.super_=et;var tt=function(){};tt.prototype=et.prototype,o.prototype=new tt,o.prototype.constructor=o}};var inherits_browserExports=inherits_browser.exports;(function(a){var o=Object.getOwnPropertyDescriptors||function(Ft){for(var Qt=Object.keys(Ft),cr={},Gt=0;Gt=Gt)return ar;switch(ar){case"%s":return String(cr[Qt++]);case"%d":return Number(cr[Qt++]);case"%j":try{return JSON.stringify(cr[Qt++])}catch{return"[Circular]"}default:return ar}}),Yt=cr[Qt];Qt"u")return function(){return a.deprecate(mt,Ft).apply(this,arguments)};var Qt=!1;function cr(){if(!Qt){if(process.throwDeprecation)throw new Error(Ft);process.traceDeprecation?console.trace(Ft):console.error(Ft),Qt=!0}return mt.apply(this,arguments)}return cr};var tt={},rt=/^$/;if({}.NODE_DEBUG){var nt={}.NODE_DEBUG;nt=nt.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),rt=new RegExp("^"+nt+"$","i")}a.debuglog=function(mt){if(mt=mt.toUpperCase(),!tt[mt])if(rt.test(mt)){var Ft=process.pid;tt[mt]=function(){var Qt=a.format.apply(a,arguments);console.error("%s %d: %s",mt,Ft,Qt)}}else tt[mt]=function(){};return tt[mt]};function it(mt,Ft){var Qt={seen:[],stylize:at};return arguments.length>=3&&(Qt.depth=arguments[2]),arguments.length>=4&&(Qt.colors=arguments[3]),yt(Ft)?Qt.showHidden=Ft:Ft&&a._extend(Qt,Ft),Vt(Qt.showHidden)&&(Qt.showHidden=!1),Vt(Qt.depth)&&(Qt.depth=2),Vt(Qt.colors)&&(Qt.colors=!1),Vt(Qt.customInspect)&&(Qt.customInspect=!0),Qt.colors&&(Qt.stylize=st),ht(Qt,mt,Qt.depth)}a.inspect=it,it.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},it.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function st(mt,Ft){var Qt=it.styles[Ft];return Qt?"\x1B["+it.colors[Qt][0]+"m"+mt+"\x1B["+it.colors[Qt][1]+"m":mt}function at(mt,Ft){return mt}function lt(mt){var Ft={};return mt.forEach(function(Qt,cr){Ft[Qt]=!0}),Ft}function ht(mt,Ft,Qt){if(mt.customInspect&&Ft&&Rt(Ft.inspect)&&Ft.inspect!==a.inspect&&!(Ft.constructor&&Ft.constructor.prototype===Ft)){var cr=Ft.inspect(Qt,mt);return Ot(cr)||(cr=ht(mt,cr,Qt)),cr}var Gt=vt(mt,Ft);if(Gt)return Gt;var Zt=Object.keys(Ft),Yt=lt(Zt);if(mt.showHidden&&(Zt=Object.getOwnPropertyNames(Ft)),qt(Ft)&&(Zt.indexOf("message")>=0||Zt.indexOf("description")>=0))return gt(Ft);if(Zt.length===0){if(Rt(Ft)){var ar=Ft.name?": "+Ft.name:"";return mt.stylize("[Function"+ar+"]","special")}if(jt(Ft))return mt.stylize(RegExp.prototype.toString.call(Ft),"regexp");if(or(Ft))return mt.stylize(Date.prototype.toString.call(Ft),"date");if(qt(Ft))return gt(Ft)}var gr="",Jt=!1,Xt=["{","}"];if(Et(Ft)&&(Jt=!0,Xt=["[","]"]),Rt(Ft)){var Sr=Ft.name?": "+Ft.name:"";gr=" [Function"+Sr+"]"}if(jt(Ft)&&(gr=" "+RegExp.prototype.toString.call(Ft)),or(Ft)&&(gr=" "+Date.prototype.toUTCString.call(Ft)),qt(Ft)&&(gr=" "+gt(Ft)),Zt.length===0&&(!Jt||Ft.length==0))return Xt[0]+gr+Xt[1];if(Qt<0)return jt(Ft)?mt.stylize(RegExp.prototype.toString.call(Ft),"regexp"):mt.stylize("[Object]","special");mt.seen.push(Ft);var br;return Jt?br=wt(mt,Ft,Qt,Yt,Zt):br=Zt.map(function(Or){return ut(mt,Ft,Qt,Yt,Or,Jt)}),mt.seen.pop(),pt(br,gr,Xt)}function vt(mt,Ft){if(Vt(Ft))return mt.stylize("undefined","undefined");if(Ot(Ft)){var Qt="'"+JSON.stringify(Ft).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return mt.stylize(Qt,"string")}if(It(Ft))return mt.stylize(""+Ft,"number");if(yt(Ft))return mt.stylize(""+Ft,"boolean");if(bt(Ft))return mt.stylize("null","null")}function gt(mt){return"["+Error.prototype.toString.call(mt)+"]"}function wt(mt,Ft,Qt,cr,Gt){for(var Zt=[],Yt=0,ar=Ft.length;Yt-1&&(Zt?ar=ar.split(` -`).map(function(Jt){return" "+Jt}).join(` -`).slice(2):ar=` -`+ar.split(` -`).map(function(Jt){return" "+Jt}).join(` -`))):ar=mt.stylize("[Circular]","special")),Vt(Yt)){if(Zt&&Gt.match(/^\d+$/))return ar;Yt=JSON.stringify(""+Gt),Yt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Yt=Yt.slice(1,-1),Yt=mt.stylize(Yt,"name")):(Yt=Yt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Yt=mt.stylize(Yt,"string"))}return Yt+": "+ar}function pt(mt,Ft,Qt){var cr=mt.reduce(function(Gt,Zt){return Zt.indexOf(` -`)>=0,Gt+Zt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return cr>60?Qt[0]+(Ft===""?"":Ft+` - `)+" "+mt.join(`, - `)+" "+Qt[1]:Qt[0]+Ft+" "+mt.join(", ")+" "+Qt[1]}a.types=types$7;function Et(mt){return Array.isArray(mt)}a.isArray=Et;function yt(mt){return typeof mt=="boolean"}a.isBoolean=yt;function bt(mt){return mt===null}a.isNull=bt;function kt(mt){return mt==null}a.isNullOrUndefined=kt;function It(mt){return typeof mt=="number"}a.isNumber=It;function Ot(mt){return typeof mt=="string"}a.isString=Ot;function Nt(mt){return typeof mt=="symbol"}a.isSymbol=Nt;function Vt(mt){return mt===void 0}a.isUndefined=Vt;function jt(mt){return zt(mt)&&ct(mt)==="[object RegExp]"}a.isRegExp=jt,a.types.isRegExp=jt;function zt(mt){return typeof mt=="object"&&mt!==null}a.isObject=zt;function or(mt){return zt(mt)&&ct(mt)==="[object Date]"}a.isDate=or,a.types.isDate=or;function qt(mt){return zt(mt)&&(ct(mt)==="[object Error]"||mt instanceof Error)}a.isError=qt,a.types.isNativeError=qt;function Rt(mt){return typeof mt=="function"}a.isFunction=Rt;function Bt(mt){return mt===null||typeof mt=="boolean"||typeof mt=="number"||typeof mt=="string"||typeof mt=="symbol"||typeof mt>"u"}a.isPrimitive=Bt,a.isBuffer=isBufferBrowser;function ct(mt){return Object.prototype.toString.call(mt)}function xt(mt){return mt<10?"0"+mt.toString(10):mt.toString(10)}var St=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Mt(){var mt=new Date,Ft=[xt(mt.getHours()),xt(mt.getMinutes()),xt(mt.getSeconds())].join(":");return[mt.getDate(),St[mt.getMonth()],Ft].join(" ")}a.log=function(){console.log("%s - %s",Mt(),a.format.apply(a,arguments))},a.inherits=inherits_browserExports,a._extend=function(mt,Ft){if(!Ft||!zt(Ft))return mt;for(var Qt=Object.keys(Ft),cr=Qt.length;cr--;)mt[Qt[cr]]=Ft[Qt[cr]];return mt};function $t(mt,Ft){return Object.prototype.hasOwnProperty.call(mt,Ft)}var Tt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;a.promisify=function(Ft){if(typeof Ft!="function")throw new TypeError('The "original" argument must be of type Function');if(Tt&&Ft[Tt]){var Qt=Ft[Tt];if(typeof Qt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qt,Tt,{value:Qt,enumerable:!1,writable:!1,configurable:!0}),Qt}function Qt(){for(var cr,Gt,Zt=new Promise(function(gr,Jt){cr=gr,Gt=Jt}),Yt=[],ar=0;ar"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 gt(Ot){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Vt){return Vt.__proto__||Object.getPrototypeOf(Vt)},gt(Ot)}var wt={},ut,pt;function Et(Ot,Nt,Vt){Vt||(Vt=Error);function jt(or,qt,Rt){return typeof Nt=="string"?Nt:Nt(or,qt,Rt)}var zt=function(or){it(Rt,or);var qt=at(Rt);function Rt(Bt,ct,xt){var St;return nt(this,Rt),St=qt.call(this,jt(Bt,ct,xt)),St.code=Ot,St}return et(Rt)}(Vt);wt[Ot]=zt}function yt(Ot,Nt){if(Array.isArray(Ot)){var Vt=Ot.length;return Ot=Ot.map(function(jt){return String(jt)}),Vt>2?"one of ".concat(Nt," ").concat(Ot.slice(0,Vt-1).join(", "),", or ")+Ot[Vt-1]:Vt===2?"one of ".concat(Nt," ").concat(Ot[0]," or ").concat(Ot[1]):"of ".concat(Nt," ").concat(Ot[0])}else return"of ".concat(Nt," ").concat(String(Ot))}function bt(Ot,Nt,Vt){return Ot.substr(!Vt||Vt<0?0:+Vt,Nt.length)===Nt}function kt(Ot,Nt,Vt){return(Vt===void 0||Vt>Ot.length)&&(Vt=Ot.length),Ot.substring(Vt-Nt.length,Vt)===Nt}function It(Ot,Nt,Vt){return typeof Vt!="number"&&(Vt=0),Vt+Nt.length>Ot.length?!1:Ot.indexOf(Nt,Vt)!==-1}return Et("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),Et("ERR_INVALID_ARG_TYPE",function(Ot,Nt,Vt){ut===void 0&&(ut=requireAssert()),ut(typeof Ot=="string","'name' must be a string");var jt;typeof Nt=="string"&&bt(Nt,"not ")?(jt="must not be",Nt=Nt.replace(/^not /,"")):jt="must be";var zt;if(kt(Ot," argument"))zt="The ".concat(Ot," ").concat(jt," ").concat(yt(Nt,"type"));else{var or=It(Ot,".")?"property":"argument";zt='The "'.concat(Ot,'" ').concat(or," ").concat(jt," ").concat(yt(Nt,"type"))}return zt+=". Received type ".concat(a(Vt)),zt},TypeError),Et("ERR_INVALID_ARG_VALUE",function(Ot,Nt){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";pt===void 0&&(pt=util);var jt=pt.inspect(Nt);return jt.length>128&&(jt="".concat(jt.slice(0,128),"...")),"The argument '".concat(Ot,"' ").concat(Vt,". Received ").concat(jt)},TypeError),Et("ERR_INVALID_RETURN_VALUE",function(Ot,Nt,Vt){var jt;return Vt&&Vt.constructor&&Vt.constructor.name?jt="instance of ".concat(Vt.constructor.name):jt="type ".concat(a(Vt)),"Expected ".concat(Ot,' to be returned from the "').concat(Nt,'"')+" function but got ".concat(jt,".")},TypeError),Et("ERR_MISSING_ARGS",function(){for(var Ot=arguments.length,Nt=new Array(Ot),Vt=0;Vt0,"At least one arg needs to be specified");var jt="The ",zt=Nt.length;switch(Nt=Nt.map(function(or){return'"'.concat(or,'"')}),zt){case 1:jt+="".concat(Nt[0]," argument");break;case 2:jt+="".concat(Nt[0]," and ").concat(Nt[1]," arguments");break;default:jt+=Nt.slice(0,zt-1).join(", "),jt+=", and ".concat(Nt[zt-1]," arguments");break}return"".concat(jt," must be specified")},TypeError),errors$3.codes=wt,errors$3}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function a(Tt,At){var Pt=Object.keys(Tt);if(Object.getOwnPropertySymbols){var mt=Object.getOwnPropertySymbols(Tt);At&&(mt=mt.filter(function(Ft){return Object.getOwnPropertyDescriptor(Tt,Ft).enumerable})),Pt.push.apply(Pt,mt)}return Pt}function o(Tt){for(var At=1;At"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 pt(Tt){return Function.toString.call(Tt).indexOf("[native code]")!==-1}function Et(Tt,At){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(mt,Ft){return mt.__proto__=Ft,mt},Et(Tt,At)}function yt(Tt){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Pt){return Pt.__proto__||Object.getPrototypeOf(Pt)},yt(Tt)}function bt(Tt){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(At){return typeof At}:function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},bt(Tt)}var kt=util,It=kt.inspect,Ot=requireErrors(),Nt=Ot.codes.ERR_INVALID_ARG_TYPE;function Vt(Tt,At,Pt){return(Pt===void 0||Pt>Tt.length)&&(Pt=Tt.length),Tt.substring(Pt-At.length,Pt)===At}function jt(Tt,At){if(At=Math.floor(At),Tt.length==0||At==0)return"";var Pt=Tt.length*At;for(At=Math.floor(Math.log(At)/Math.log(2));At;)Tt+=Tt,At--;return Tt+=Tt.substring(0,Pt-Tt.length),Tt}var zt="",or="",qt="",Rt="",Bt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ct=10;function xt(Tt){var At=Object.keys(Tt),Pt=Object.create(Object.getPrototypeOf(Tt));return At.forEach(function(mt){Pt[mt]=Tt[mt]}),Object.defineProperty(Pt,"message",{value:Tt.message}),Pt}function St(Tt){return It(Tt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Mt(Tt,At,Pt){var mt="",Ft="",Qt=0,cr="",Gt=!1,Zt=St(Tt),Yt=Zt.split(` -`),ar=St(At).split(` -`),gr=0,Jt="";if(Pt==="strictEqual"&&bt(Tt)==="object"&&bt(At)==="object"&&Tt!==null&&At!==null&&(Pt="strictEqualObject"),Yt.length===1&&ar.length===1&&Yt[0]!==ar[0]){var Xt=Yt[0].length+ar[0].length;if(Xt<=ct){if((bt(Tt)!=="object"||Tt===null)&&(bt(At)!=="object"||At===null)&&(Tt!==0||At!==0))return"".concat(Bt[Pt],` - -`)+"".concat(Yt[0]," !== ").concat(ar[0],` -`)}else if(Pt!=="strictEqualObject"){var Sr=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(Xt2&&(Jt=` - `.concat(jt(" ",gr),"^"),gr=0)}}}for(var br=Yt[Yt.length-1],Or=ar[ar.length-1];br===Or&&(gr++<2?cr=` - `.concat(br).concat(cr):mt=br,Yt.pop(),ar.pop(),!(Yt.length===0||ar.length===0));)br=Yt[Yt.length-1],Or=ar[ar.length-1];var Zr=Math.max(Yt.length,ar.length);if(Zr===0){var Lr=Zt.split(` -`);if(Lr.length>30)for(Lr[26]="".concat(zt,"...").concat(Rt);Lr.length>27;)Lr.pop();return"".concat(Bt.notIdentical,` - -`).concat(Lr.join(` -`),` -`)}gr>3&&(cr=` -`.concat(zt,"...").concat(Rt).concat(cr),Gt=!0),mt!==""&&(cr=` - `.concat(mt).concat(cr),mt="");var yr=0,pr=Bt[Pt]+` -`.concat(or,"+ actual").concat(Rt," ").concat(qt,"- expected").concat(Rt),Pr=" ".concat(zt,"...").concat(Rt," Lines skipped");for(gr=0;gr1&&gr>2&&(Cr>4?(Ft+=` -`.concat(zt,"...").concat(Rt),Gt=!0):Cr>3&&(Ft+=` - `.concat(ar[gr-2]),yr++),Ft+=` - `.concat(ar[gr-1]),yr++),Qt=gr,mt+=` -`.concat(qt,"-").concat(Rt," ").concat(ar[gr]),yr++;else if(ar.length1&&gr>2&&(Cr>4?(Ft+=` -`.concat(zt,"...").concat(Rt),Gt=!0):Cr>3&&(Ft+=` - `.concat(Yt[gr-2]),yr++),Ft+=` - `.concat(Yt[gr-1]),yr++),Qt=gr,Ft+=` -`.concat(or,"+").concat(Rt," ").concat(Yt[gr]),yr++;else{var Jr=ar[gr],Hr=Yt[gr],ur=Hr!==Jr&&(!Vt(Hr,",")||Hr.slice(0,-1)!==Jr);ur&&Vt(Jr,",")&&Jr.slice(0,-1)===Hr&&(ur=!1,Hr+=","),ur?(Cr>1&&gr>2&&(Cr>4?(Ft+=` -`.concat(zt,"...").concat(Rt),Gt=!0):Cr>3&&(Ft+=` - `.concat(Yt[gr-2]),yr++),Ft+=` - `.concat(Yt[gr-1]),yr++),Qt=gr,Ft+=` -`.concat(or,"+").concat(Rt," ").concat(Hr),mt+=` -`.concat(qt,"-").concat(Rt," ").concat(Jr),yr+=2):(Ft+=mt,mt="",(Cr===1||gr===0)&&(Ft+=` - `.concat(Hr),yr++))}if(yr>20&&gr30)for(Xt[26]="".concat(zt,"...").concat(Rt);Xt.length>27;)Xt.pop();Xt.length===1?Qt=Pt.call(this,"".concat(Jt," ").concat(Xt[0])):Qt=Pt.call(this,"".concat(Jt,` - -`).concat(Xt.join(` -`),` -`))}else{var Sr=St(Yt),br="",Or=Bt[Gt];Gt==="notDeepEqual"||Gt==="notEqual"?(Sr="".concat(Bt[Gt],` - -`).concat(Sr),Sr.length>1024&&(Sr="".concat(Sr.slice(0,1021),"..."))):(br="".concat(St(ar)),Sr.length>512&&(Sr="".concat(Sr.slice(0,509),"...")),br.length>512&&(br="".concat(br.slice(0,509),"...")),Gt==="deepEqual"||Gt==="equal"?Sr="".concat(Or,` - -`).concat(Sr,` - -should equal - -`):br=" ".concat(Gt," ").concat(br)),Qt=Pt.call(this,"".concat(Sr).concat(br))}return Error.stackTraceLimit=gr,Qt.generatedMessage=!cr,Object.defineProperty(vt(Qt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),Qt.code="ERR_ASSERTION",Qt.actual=Yt,Qt.expected=ar,Qt.operator=Gt,Error.captureStackTrace&&Error.captureStackTrace(vt(Qt),Zt),Qt.stack,Qt.name="AssertionError",ht(Qt)}return nt(mt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:At,value:function(Qt,cr){return It(this,o(o({},cr),{},{customInspect:!1,depth:0}))}}]),mt}(gt(Error),It.custom);return assertion_error=$t,assertion_error}var toStr=Object.prototype.toString,isArguments$2=function(o){var et=toStr.call(o),tt=et==="[object Arguments]";return tt||(tt=et!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&toStr.call(o.callee)==="[object Function]"),tt},implementation$5,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$5;hasRequiredImplementation$1=1;var a;if(!Object.keys){var o=Object.prototype.hasOwnProperty,et=Object.prototype.toString,tt=isArguments$2,rt=Object.prototype.propertyIsEnumerable,nt=!rt.call({toString:null},"toString"),it=rt.call(function(){},"prototype"),st=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],at=function(gt){var wt=gt.constructor;return wt&&wt.prototype===gt},lt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ht=function(){if(typeof window>"u")return!1;for(var gt in window)try{if(!lt["$"+gt]&&o.call(window,gt)&&window[gt]!==null&&typeof window[gt]=="object")try{at(window[gt])}catch{return!0}}catch{return!0}return!1}(),vt=function(gt){if(typeof window>"u"||!ht)return at(gt);try{return at(gt)}catch{return!1}};a=function(wt){var ut=wt!==null&&typeof wt=="object",pt=et.call(wt)==="[object Function]",Et=tt(wt),yt=ut&&et.call(wt)==="[object String]",bt=[];if(!ut&&!pt&&!Et)throw new TypeError("Object.keys called on a non-object");var kt=it&&pt;if(yt&&wt.length>0&&!o.call(wt,0))for(var It=0;It0)for(var Ot=0;Ot2?arguments[2]:{},gt=a(ht);o&&(gt=tt.call(gt,Object.getOwnPropertySymbols(ht)));for(var wt=0;wtur.length)&&(wr=ur.length);for(var Rr=0,Kt=new Array(wr);Rr10)return!0;for(var wr=0;wr57)return!0}return ur.length===10&&ur>=Math.pow(2,32)}function $t(ur){return Object.keys(ur).filter(Mt).concat(vt(ur).filter(Object.prototype.propertyIsEnumerable.bind(ur)))}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */function Tt(ur,wr){if(ur===wr)return 0;for(var Rr=ur.length,Kt=wr.length,Lt=0,Ut=Math.min(Rr,Kt);Lt1?ar-1:0),Jt=1;Jt1?ar-1:0),Jt=1;Jt1?ar-1:0),Jt=1;Jt1?ar-1:0),Jt=1;Jt>BigInt(128),rt=o&BIG_U128_MAX;return et=writeBigU128(a,rt,et),et=writeBigU128(a,tt,et),et}function writeBigU128(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U128_MAX;const tt=o>>BigInt(64),rt=o&BIG_U64_MAX;return et=writeBigU64(a,rt,et),et=writeBigU64(a,tt,et),et}function writeBigU64(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U64_MAX;const tt=Number(o>>BigInt(32)),rt=Number(o&BigInt(4294967295));return et=writeU32(a,rt,et),et=writeU32(a,tt,et),et}function writeBigU56(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U56_MAX;const tt=Number(o>>BigInt(32)),rt=Number(o&BigInt(4294967295));return et=writeU32(a,rt,et),et=writeU24(a,tt,et),et}function writeU64(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),write64(a,o,et,!1)}function writeU56(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),write56(a,o,et,!1)}function writeU48(a,o,et){enforce$6(Number.isSafeInteger(o),"num","integer");const tt=o*HI|0;return a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,a[et++]=tt,a[et++]=tt>>>8,et}function writeU40(a,o,et){enforce$6(Number.isSafeInteger(o),"num","integer");const tt=o*HI|0;return a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,a[et++]=tt,et}function writeU32(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,et}function writeU24(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et++]=o,o>>>=8,a[et++]=o,o>>>=8,a[et++]=o,et}function writeU16(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et++]=o,a[et++]=o>>>8,et}function writeU8(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et]=o,et+1}function writeUBE(a,o,et,tt){switch(tt){case 8:return writeU64BE(a,o,et);case 7:return writeU56BE(a,o,et);case 6:return writeU48BE(a,o,et);case 5:return writeU40BE(a,o,et);case 4:return writeU32BE(a,o,et);case 3:return writeU24BE(a,o,et);case 2:return writeU16BE(a,o,et);case 1:return writeU8(a,o,et);default:throw new EncodingError$4(et,"Invalid write length")}}function writeBigU256BE(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U256_MAX;const tt=o>>BigInt(128),rt=o&BIG_U128_MAX;return et=writeBigU128BE(a,tt,et),et=writeBigU128BE(a,rt,et),et}function writeBigU128BE(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U128_MAX;const tt=o>>BigInt(64),rt=o&BIG_U64_MAX;return et=writeBigU64BE(a,tt,et),et=writeBigU64BE(a,rt,et),et}function writeBigU64BE(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U64_MAX;const tt=Number(o>>BigInt(32)),rt=Number(o&BigInt(4294967295));return et=writeU32BE(a,tt,et),et=writeU32BE(a,rt,et),et}function writeBigU56BE(a,o,et){enforce$6(typeof o=="bigint","num","bigint"),o&=BIG_U56_MAX;const tt=Number(o>>BigInt(32)),rt=Number(o&BigInt(4294967295));return et=writeU24BE(a,tt,et),et=writeU32BE(a,rt,et),et}function writeU64BE(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),write64(a,o,et,!0)}function writeU56BE(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),write56(a,o,et,!0)}function writeU48BE(a,o,et){enforce$6(Number.isSafeInteger(o),"num","integer");const tt=o*HI|0;return a[et++]=tt>>>8,a[et++]=tt,a[et+3]=o,o>>>=8,a[et+2]=o,o>>>=8,a[et+1]=o,o>>>=8,a[et]=o,et+4}function writeU40BE(a,o,et){enforce$6(Number.isSafeInteger(o),"num","integer");const tt=o*HI|0;return a[et++]=tt,a[et+3]=o,o>>>=8,a[et+2]=o,o>>>=8,a[et+1]=o,o>>>=8,a[et]=o,et+4}function writeU32BE(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et+3]=o,o>>>=8,a[et+2]=o,o>>>=8,a[et+1]=o,o>>>=8,a[et]=o,et+4}function writeU24BE(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et+2]=o,o>>>=8,a[et+1]=o,o>>>=8,a[et]=o,et+3}function writeU16BE(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),a[et++]=o>>>8,a[et++]=o,et}function writeI(a,o,et,tt){switch(tt){case 8:return writeU64(a,o,et);case 7:return writeU56(a,o,et);case 6:return writeU48(a,o,et);case 5:return writeU40(a,o,et);case 4:return writeU24(a,o,et);case 3:return writeU32(a,o,et);case 2:return writeU16(a,o,et);case 1:return writeU8(a,o,et);default:throw new EncodingError$4(et,"Invalid write length")}}function writeBigI64(a,o,et){return writeBigU64(a,o,et)}function writeBigI56(a,o,et){return writeBigU56(a,o,et)}function writeI64(a,o,et){return writeU64(a,o,et)}function writeI56(a,o,et){return writeU56(a,o,et)}function writeI48(a,o,et){return writeU48(a,o,et)}function writeI40(a,o,et){return writeU40(a,o,et)}function writeI32(a,o,et){return writeU32(a,o,et)}function writeI24(a,o,et){return writeU24(a,o,et)}function writeI16(a,o,et){return writeU16(a,o,et)}function writeI8(a,o,et){return writeU8(a,o,et)}function writeIBE(a,o,et,tt){switch(tt){case 8:return writeU64BE(a,o,et);case 7:return writeU56BE(a,o,et);case 6:return writeU48BE(a,o,et);case 5:return writeU40BE(a,o,et);case 4:return writeU32BE(a,o,et);case 3:return writeU24BE(a,o,et);case 2:return writeU16BE(a,o,et);case 1:return writeU8(a,o,et);default:throw new EncodingError$4(et,"Invalid write length")}}function writeBigI64BE(a,o,et){return writeBigU64BE(a,o,et)}function writeBigI56BE(a,o,et){return writeBigU56BE(a,o,et)}function writeI64BE(a,o,et){return writeU64BE(a,o,et)}function writeI56BE(a,o,et){return writeU56BE(a,o,et)}function writeI48BE(a,o,et){return writeU48BE(a,o,et)}function writeI40BE(a,o,et){return writeU40BE(a,o,et)}function writeI32BE(a,o,et){return writeU32BE(a,o,et)}function writeI24BE(a,o,et){return writeU24BE(a,o,et)}function writeI16BE(a,o,et){return writeU16BE(a,o,et)}function _writeDoubleForwards(a,o,et){return enforce$6(isNumber(o),"num","number"),F64_ARRAY[0]=o,a[et++]=F648_ARRAY[0],a[et++]=F648_ARRAY[1],a[et++]=F648_ARRAY[2],a[et++]=F648_ARRAY[3],a[et++]=F648_ARRAY[4],a[et++]=F648_ARRAY[5],a[et++]=F648_ARRAY[6],a[et++]=F648_ARRAY[7],et}function _writeDoubleBackwards(a,o,et){return enforce$6(isNumber(o),"num","number"),F64_ARRAY[0]=o,a[et++]=F648_ARRAY[7],a[et++]=F648_ARRAY[6],a[et++]=F648_ARRAY[5],a[et++]=F648_ARRAY[4],a[et++]=F648_ARRAY[3],a[et++]=F648_ARRAY[2],a[et++]=F648_ARRAY[1],a[et++]=F648_ARRAY[0],et}function _writeFloatForwards(a,o,et){return enforce$6(isNumber(o),"num","number"),F32_ARRAY[0]=o,a[et++]=F328_ARRAY[0],a[et++]=F328_ARRAY[1],a[et++]=F328_ARRAY[2],a[et++]=F328_ARRAY[3],et}function _writeFloatBackwards(a,o,et){return enforce$6(isNumber(o),"num","number"),F32_ARRAY[0]=o,a[et++]=F328_ARRAY[3],a[et++]=F328_ARRAY[2],a[et++]=F328_ARRAY[1],a[et++]=F328_ARRAY[0],et}const writeFloat=BIG_ENDIAN?_writeFloatBackwards:_writeFloatForwards,writeFloatBE=BIG_ENDIAN?_writeFloatForwards:_writeFloatBackwards,writeDouble=BIG_ENDIAN?_writeDoubleBackwards:_writeDoubleForwards,writeDoubleBE=BIG_ENDIAN?_writeDoubleForwards:_writeDoubleBackwards;function readVarint(a,o){let et,tt;switch(checkRead(o4294967295,o,"Non-canonical varint");break;case 254:tt=5,checkRead(o+tt<=a.length,o),et=readU32(a,o+1),check$e(et>65535,o,"Non-canonical varint");break;case 253:tt=3,checkRead(o+tt<=a.length,o),et=readU16(a,o+1),check$e(et>=253,o,"Non-canonical varint");break;default:tt=1,et=a[o];break}return new Varint(tt,et)}function writeVarint(a,o,et){return enforce$6(Number.isSafeInteger(o),"num","integer"),o<253?(a[et++]=o,et):o<=65535?(a[et++]=253,writeU16(a,o,et)):o<=4294967295?(a[et++]=254,writeU32(a,o,et)):(a[et++]=255,writeU64(a,o,et))}function sizeVarint(a){return enforce$6(Number.isSafeInteger(a),"num","integer"),a<253?1:a<=65535?3:a<=4294967295?5:9}function readVarint2(a,o){let et=0,tt=0;for(;;){checkRead(o>>0===o,"off","integer"),enforce$6(et>>>0===et,"size","integer"),o+et>a.length)throw new EncodingError$4(o,"Out of bounds read");return a.slice(o,o+et)}function readBytes(a,o,et){if(enforce$6(Buffer.isBuffer(a),"data","buffer"),enforce$6(o>>>0===o,"off","integer"),enforce$6(et>>>0===et,"size","integer"),o+et>a.length)throw new EncodingError$4(o,"Out of bounds read");const tt=Buffer.allocUnsafeSlow(et);return a.copy(tt,0,o,o+et),tt}function writeBytes(a,o,et){if(enforce$6(Buffer.isBuffer(a),"data","buffer"),enforce$6(Buffer.isBuffer(o),"value","buffer"),enforce$6(et>>>0===et,"off","integer"),et+o.length>a.length)throw new EncodingError$4(et,"Out of bounds write");return o.copy(a,et,0,o.length)}function readString(a,o,et,tt){if(tt==null&&(tt="binary"),enforce$6(Buffer.isBuffer(a),"data","buffer"),enforce$6(o>>>0===o,"off","integer"),enforce$6(et>>>0===et,"size","integer"),enforce$6(typeof tt=="string","enc","string"),o+et>a.length)throw new EncodingError$4(o,"Out of bounds read");return a.toString(tt,o,o+et)}function writeString(a,o,et,tt){if(tt==null&&(tt="binary"),enforce$6(Buffer.isBuffer(a),"data","buffer"),enforce$6(typeof o=="string","str","string"),enforce$6(et>>>0===et,"off","integer"),enforce$6(typeof tt=="string","enc","string"),o.length===0)return 0;const rt=Buffer.byteLength(o,tt);if(et+rt>a.length)throw new EncodingError$4(et,"Out of bounds write");return a.write(o,et,tt)}function realloc(a,o){enforce$6(Buffer.isBuffer(a),"data","buffer");const et=Buffer.allocUnsafeSlow(o);return a.copy(et,0),et}function copy$1(a){return enforce$6(Buffer.isBuffer(a),"data","buffer"),realloc(a,a.length)}function concat(a,o){enforce$6(Buffer.isBuffer(a),"a","buffer"),enforce$6(Buffer.isBuffer(o),"b","buffer");const et=a.length+o.length,tt=Buffer.allocUnsafeSlow(et);return a.copy(tt,0),o.copy(tt,a.length),tt}function sizeVarBytes(a){return enforce$6(Buffer.isBuffer(a),"data","buffer"),sizeVarint(a.length)+a.length}function sizeVarlen(a){return sizeVarint(a)+a}function sizeVarString(a,o){if(o==null&&(o="binary"),enforce$6(typeof a=="string","str","string"),enforce$6(typeof o=="string","enc","string"),a.length===0)return 1;const et=Buffer.byteLength(a,o);return sizeVarint(et)+et}function isSafe(a,o){return a<0&&(a=~a,o===0&&(a+=1)),(a&4292870144)===0}function write64(a,o,et,tt){let rt=!1;o<0&&(o=-o,rt=!0);let nt=o*HI|0,it=o|0;return rt&&(it===0?nt=~nt+1|0:(nt=~nt,it=~it+1)),tt?(et=writeI32BE(a,nt,et),et=writeI32BE(a,it,et)):(et=writeI32(a,it,et),et=writeI32(a,nt,et)),et}function write56(a,o,et,tt){let rt=!1;o<0&&(o=-o,rt=!0);let nt=o*HI|0,it=o|0;return rt&&(it===0?nt=~nt+1|0:(nt=~nt,it=~it+1)),tt?(et=writeI24BE(a,nt,et),et=writeI32BE(a,it,et)):(et=writeI32(a,it,et),et=writeI24(a,nt,et)),et}class Varint{constructor(o,et){this.size=o,this.value=et}}function isNumber(a){return typeof a=="number"&&isFinite(a)}function checkRead(a,o){if(!a)throw new EncodingError$4(o,"Out of bounds read",checkRead)}function check$e(a,o,et){if(!a)throw new EncodingError$4(o,et,check$e)}function throwNoBigInt(){throw new Error("BigInt not supported.")}function ensureBigInt(a){return typeof BigInt=="function"?a:throwNoBigInt}encoding$4.readU=readU;encoding$4.readBigU256=ensureBigInt(readBigU256);encoding$4.readBigU128=ensureBigInt(readBigU128);encoding$4.readBigU64=ensureBigInt(readBigU64);encoding$4.readBigU56=ensureBigInt(readBigU56);encoding$4.readU64=readU64;encoding$4.readU56=readU56;encoding$4.readU48=readU48;encoding$4.readU40=readU40;encoding$4.readU32=readU32;encoding$4.readU24=readU24;encoding$4.readU16=readU16;encoding$4.readU8=readU8;encoding$4.readUBE=readUBE;encoding$4.readBigU256BE=ensureBigInt(readBigU256BE);encoding$4.readBigU128BE=ensureBigInt(readBigU128BE);encoding$4.readBigU64BE=ensureBigInt(readBigU64BE);encoding$4.readBigU56BE=ensureBigInt(readBigU56BE);encoding$4.readU64BE=readU64BE;encoding$4.readU56BE=readU56BE;encoding$4.readU48BE=readU48BE;encoding$4.readU40BE=readU40BE;encoding$4.readU32BE=readU32BE;encoding$4.readU24BE=readU24BE;encoding$4.readU16BE=readU16BE;encoding$4.readI=readI;encoding$4.readBigI64=ensureBigInt(readBigI64);encoding$4.readBigI56=ensureBigInt(readBigI56);encoding$4.readI64=readI64;encoding$4.readI56=readI56;encoding$4.readI48=readI48;encoding$4.readI40=readI40;encoding$4.readI32=readI32;encoding$4.readI24=readI24;encoding$4.readI16=readI16;encoding$4.readI8=readI8;encoding$4.readIBE=readIBE;encoding$4.readBigI64BE=ensureBigInt(readBigI64BE);encoding$4.readBigI56BE=ensureBigInt(readBigI56BE);encoding$4.readI64BE=readI64BE;encoding$4.readI56BE=readI56BE;encoding$4.readI48BE=readI48BE;encoding$4.readI40BE=readI40BE;encoding$4.readI32BE=readI32BE;encoding$4.readI24BE=readI24BE;encoding$4.readI16BE=readI16BE;encoding$4.readFloat=readFloat;encoding$4.readFloatBE=readFloatBE;encoding$4.readDouble=readDouble;encoding$4.readDoubleBE=readDoubleBE;encoding$4.writeU=writeU;encoding$4.writeBigU256=ensureBigInt(writeBigU256);encoding$4.writeBigU128=ensureBigInt(writeBigU128);encoding$4.writeBigU64=ensureBigInt(writeBigU64);encoding$4.writeBigU56=ensureBigInt(writeBigU56);encoding$4.writeU64=writeU64;encoding$4.writeU56=writeU56;encoding$4.writeU48=writeU48;encoding$4.writeU40=writeU40;encoding$4.writeU32=writeU32;encoding$4.writeU24=writeU24;encoding$4.writeU16=writeU16;encoding$4.writeU8=writeU8;encoding$4.writeUBE=writeUBE;encoding$4.writeBigU256BE=ensureBigInt(writeBigU256BE);encoding$4.writeBigU128BE=ensureBigInt(writeBigU128BE);encoding$4.writeBigU64BE=ensureBigInt(writeBigU64BE);encoding$4.writeBigU56BE=ensureBigInt(writeBigU56BE);encoding$4.writeU64BE=writeU64BE;encoding$4.writeU56BE=writeU56BE;encoding$4.writeU48BE=writeU48BE;encoding$4.writeU40BE=writeU40BE;encoding$4.writeU32BE=writeU32BE;encoding$4.writeU24BE=writeU24BE;encoding$4.writeU16BE=writeU16BE;encoding$4.writeI=writeI;encoding$4.writeBigI64=ensureBigInt(writeBigI64);encoding$4.writeBigI56=ensureBigInt(writeBigI56);encoding$4.writeI64=writeI64;encoding$4.writeI56=writeI56;encoding$4.writeI48=writeI48;encoding$4.writeI40=writeI40;encoding$4.writeI32=writeI32;encoding$4.writeI24=writeI24;encoding$4.writeI16=writeI16;encoding$4.writeI8=writeI8;encoding$4.writeIBE=writeIBE;encoding$4.writeBigI64BE=ensureBigInt(writeBigI64BE);encoding$4.writeBigI56BE=ensureBigInt(writeBigI56BE);encoding$4.writeI64BE=writeI64BE;encoding$4.writeI56BE=writeI56BE;encoding$4.writeI48BE=writeI48BE;encoding$4.writeI40BE=writeI40BE;encoding$4.writeI32BE=writeI32BE;encoding$4.writeI24BE=writeI24BE;encoding$4.writeI16BE=writeI16BE;encoding$4.writeFloat=writeFloat;encoding$4.writeFloatBE=writeFloatBE;encoding$4.writeDouble=writeDouble;encoding$4.writeDoubleBE=writeDoubleBE;encoding$4.readVarint=readVarint;encoding$4.writeVarint=writeVarint;encoding$4.sizeVarint=sizeVarint;encoding$4.readVarint2=readVarint2;encoding$4.writeVarint2=writeVarint2;encoding$4.sizeVarint2=sizeVarint2;encoding$4.sliceBytes=sliceBytes;encoding$4.readBytes=readBytes;encoding$4.writeBytes=writeBytes;encoding$4.readString=readString;encoding$4.writeString=writeString;encoding$4.realloc=realloc;encoding$4.copy=copy$1;encoding$4.concat=concat;encoding$4.sizeVarBytes=sizeVarBytes;encoding$4.sizeVarlen=sizeVarlen;encoding$4.sizeVarString=sizeVarString;/*! - * reader.js - buffer reader for bcoin - * Copyright (c) 2014-2015, Fedor Indutny (MIT License) - * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). - * https://github.com/bcoin-org/bcoin - */const enforce$5=enforce_1,encoding$3=encoding$4,EncodingError$3=error,EMPTY$1=Buffer.alloc(0);let BufferReader$3=class{constructor(o,et=!1){Rp(this,"data");enforce$5(Buffer.isBuffer(o),"data","buffer"),enforce$5(typeof et=="boolean","zeroCopy","boolean"),this.data=o,this.offset=0,this.zeroCopy=et,this.stack=[]}check(o){if(this.offset+o>this.data.length)throw new EncodingError$3(this.offset,"Out of bounds read",this.check)}getSize(){return this.data.length}left(){return this.check(0),this.data.length-this.offset}seek(o){if(enforce$5(Number.isSafeInteger(o),"off","integer"),this.offset+o<0)throw new EncodingError$3(this.offset,"Out of bounds read");return this.check(o),this.offset+=o,this}start(){return this.stack.push(this.offset),this.offset}end(){if(this.stack.length===0)throw new Error("Cannot end without a stack item.");const o=this.stack.pop();return this.offset-o}endData(o=!1){if(enforce$5(typeof o=="boolean","zeroCopy","boolean"),this.stack.length===0)throw new Error("Cannot end without a stack item.");const et=this.stack.pop(),tt=this.offset,rt=tt-et,nt=this.data;if(rt===nt.length)return nt;if(this.zeroCopy||o)return nt.slice(et,tt);const it=Buffer.allocUnsafeSlow(rt);return nt.copy(it,0,et,tt),it}destroy(){return this.data=EMPTY$1,this.offset=0,this.stack.length=0,this}readU8(){this.check(1);const o=this.data[this.offset];return this.offset+=1,o}readU16(){this.check(2);const o=encoding$3.readU16(this.data,this.offset);return this.offset+=2,o}readU16BE(){this.check(2);const o=encoding$3.readU16BE(this.data,this.offset);return this.offset+=2,o}readU24(){this.check(3);const o=encoding$3.readU24(this.data,this.offset);return this.offset+=3,o}readU24BE(){this.check(3);const o=encoding$3.readU24BE(this.data,this.offset);return this.offset+=3,o}readU32(){this.check(4);const o=encoding$3.readU32(this.data,this.offset);return this.offset+=4,o}readU32BE(){this.check(4);const o=encoding$3.readU32BE(this.data,this.offset);return this.offset+=4,o}readU40(){this.check(5);const o=encoding$3.readU40(this.data,this.offset);return this.offset+=5,o}readU40BE(){this.check(5);const o=encoding$3.readU40BE(this.data,this.offset);return this.offset+=5,o}readU48(){this.check(6);const o=encoding$3.readU48(this.data,this.offset);return this.offset+=6,o}readU48BE(){this.check(6);const o=encoding$3.readU48BE(this.data,this.offset);return this.offset+=6,o}readU56(){this.check(7);const o=encoding$3.readU56(this.data,this.offset);return this.offset+=7,o}readU56BE(){this.check(7);const o=encoding$3.readU56BE(this.data,this.offset);return this.offset+=7,o}readBigU56(){this.check(7);const o=encoding$3.readBigU56(this.data,this.offset);return this.offset+=7,o}readBigU56BE(){this.check(7);const o=encoding$3.readBigU56BE(this.data,this.offset);return this.offset+=7,o}readU64(){this.check(8);const o=encoding$3.readU64(this.data,this.offset);return this.offset+=8,o}readU64BE(){this.check(8);const o=encoding$3.readU64BE(this.data,this.offset);return this.offset+=8,o}readBigU64(){this.check(8);const o=encoding$3.readBigU64(this.data,this.offset);return this.offset+=8,o}readBigU64BE(){this.check(8);const o=encoding$3.readBigU64BE(this.data,this.offset);return this.offset+=8,o}readBigU128(){this.check(16);const o=encoding$3.readBigU128(this.data,this.offset);return this.offset+=16,o}readBigU128BE(){this.check(16);const o=encoding$3.readBigU128BE(this.data,this.offset);return this.offset+=16,o}readBigU256(){this.check(32);const o=encoding$3.readBigU256(this.data,this.offset);return this.offset+=32,o}readBigU256BE(){this.check(32);const o=encoding$3.readBigU256BE(this.data,this.offset);return this.offset+=32,o}readI8(){this.check(1);const o=encoding$3.readI8(this.data,this.offset);return this.offset+=1,o}readI16(){this.check(2);const o=encoding$3.readI16(this.data,this.offset);return this.offset+=2,o}readI16BE(){this.check(2);const o=encoding$3.readI16BE(this.data,this.offset);return this.offset+=2,o}readI24(){this.check(3);const o=encoding$3.readI24(this.data,this.offset);return this.offset+=3,o}readI24BE(){this.check(3);const o=encoding$3.readI24BE(this.data,this.offset);return this.offset+=3,o}readI32(){this.check(4);const o=encoding$3.readI32(this.data,this.offset);return this.offset+=4,o}readI32BE(){this.check(4);const o=encoding$3.readI32BE(this.data,this.offset);return this.offset+=4,o}readI40(){this.check(5);const o=encoding$3.readI40(this.data,this.offset);return this.offset+=5,o}readI40BE(){this.check(5);const o=encoding$3.readI40BE(this.data,this.offset);return this.offset+=5,o}readI48(){this.check(6);const o=encoding$3.readI48(this.data,this.offset);return this.offset+=6,o}readI48BE(){this.check(6);const o=encoding$3.readI48BE(this.data,this.offset);return this.offset+=6,o}readI56(){this.check(7);const o=encoding$3.readI56(this.data,this.offset);return this.offset+=7,o}readI56BE(){this.check(7);const o=encoding$3.readI56BE(this.data,this.offset);return this.offset+=7,o}readBigI56(){this.check(7);const o=encoding$3.readBigI56(this.data,this.offset);return this.offset+=7,o}readBigI56BE(){this.check(7);const o=encoding$3.readBigI56BE(this.data,this.offset);return this.offset+=7,o}readI64(){this.check(8);const o=encoding$3.readI64(this.data,this.offset);return this.offset+=8,o}readI64BE(){this.check(8);const o=encoding$3.readI64BE(this.data,this.offset);return this.offset+=8,o}readBigI64(){this.check(8);const o=encoding$3.readBigI64(this.data,this.offset);return this.offset+=8,o}readBigI64BE(){this.check(8);const o=encoding$3.readBigI64BE(this.data,this.offset);return this.offset+=8,o}readFloat(){this.check(4);const o=encoding$3.readFloat(this.data,this.offset);return this.offset+=4,o}readFloatBE(){this.check(4);const o=encoding$3.readFloatBE(this.data,this.offset);return this.offset+=4,o}readDouble(){this.check(8);const o=encoding$3.readDouble(this.data,this.offset);return this.offset+=8,o}readDoubleBE(){this.check(8);const o=encoding$3.readDoubleBE(this.data,this.offset);return this.offset+=8,o}readVarint(){const{size:o,value:et}=encoding$3.readVarint(this.data,this.offset);return this.offset+=o,et}readVarint2(){const{size:o,value:et}=encoding$3.readVarint2(this.data,this.offset);return this.offset+=o,et}readBytes(o,et=!1){enforce$5(o>>>0===o,"size","integer"),enforce$5(typeof et=="boolean","zeroCopy","boolean"),this.check(o);let tt;return this.zeroCopy||et?tt=this.data.slice(this.offset,this.offset+o):(tt=Buffer.allocUnsafeSlow(o),this.data.copy(tt,0,this.offset,this.offset+o)),this.offset+=o,tt}readVarBytes(o=!1){return this.readBytes(this.readVarint(),o)}readChild(o){enforce$5(o>>>0===o,"size","integer"),this.check(o);const et=this.data.slice(0,this.offset+o),tt=new this.constructor(et);return tt.offset=this.offset,this.offset+=o,tt}readString(o,et){et==null&&(et="binary"),enforce$5(o>>>0===o,"size","integer"),enforce$5(typeof et=="string","enc","string"),this.check(o);const tt=this.data.toString(et,this.offset,this.offset+o);return this.offset+=o,tt}readHash(o){return o?this.readString(32,o):this.readBytes(32)}readVarString(o,et=0){o==null&&(o="binary"),enforce$5(typeof o=="string","enc","string"),enforce$5(et>>>0===et,"limit","integer");const tt=this.readVarint();if(et!==0&&tt>et)throw new EncodingError$3(this.offset,"String exceeds limit");return this.readString(tt,o)}readNullString(o){o==null&&(o="binary"),enforce$5(typeof o=="string","enc","string");let et=this.offset;for(;et0&&(et=this.stack[this.stack.length-1]);const tt=this.data.slice(et,this.offset),rt=o.digest?o.digest(tt):o(tt);return encoding$3.readU32(rt,0)}verifyChecksum(o){const et=this.createChecksum(o),tt=this.readU32();if(et!==tt)throw new EncodingError$3(this.offset,"Checksum mismatch");return et}};var reader=BufferReader$3;/*! - * writer.js - buffer writer for bcoin - * Copyright (c) 2014-2015, Fedor Indutny (MIT License) - * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). - * https://github.com/bcoin-org/bcoin - */const enforce$4=enforce_1,encoding$2=encoding$4,EncodingError$2=error,SEEK=0,U8=1,U16=2,U16BE=3,U24=4,U24BE=5,U32=6,U32BE=7,U40=8,U40BE=9,U48=10,U48BE=11,U56=12,U56BE=13,U64=14,U64BE=15,I8=16,I16=17,I16BE=18,I24=19,I24BE=20,I32=21,I32BE=22,I40=23,I40BE=24,I48=25,I48BE=26,I56=27,I56BE=28,I64=29,I64BE=30,FL=31,FLBE=32,DBL=33,DBLBE=34,VARINT=35,VARINT2=36,BYTES=37,STR=38,CHECKSUM=39,FILL=40,BIG_U56=41,BIG_U56BE=42,BIG_U64=43,BIG_U64BE=44,BIG_I56=45,BIG_I56BE=46,BIG_I64=47,BIG_I64BE=48,BIG_U128=49,BIG_U128BE=50,BIG_U256=51,BIG_U256BE=52;let BufferWriter$3=class{constructor(){this.ops=[],this.offset=0}render(){const o=Buffer.allocUnsafeSlow(this.offset);let et=0;for(const tt of this.ops)switch(tt.type){case SEEK:et+=tt.value;break;case U8:et=encoding$2.writeU8(o,tt.value,et);break;case U16:et=encoding$2.writeU16(o,tt.value,et);break;case U16BE:et=encoding$2.writeU16BE(o,tt.value,et);break;case U24:et=encoding$2.writeU24(o,tt.value,et);break;case U24BE:et=encoding$2.writeU24BE(o,tt.value,et);break;case U32:et=encoding$2.writeU32(o,tt.value,et);break;case U32BE:et=encoding$2.writeU32BE(o,tt.value,et);break;case U40:et=encoding$2.writeU40(o,tt.value,et);break;case U40BE:et=encoding$2.writeU40BE(o,tt.value,et);break;case U48:et=encoding$2.writeU48(o,tt.value,et);break;case U48BE:et=encoding$2.writeU48BE(o,tt.value,et);break;case U56:et=encoding$2.writeU56(o,tt.value,et);break;case U56BE:et=encoding$2.writeU56BE(o,tt.value,et);break;case U64:et=encoding$2.writeU64(o,tt.value,et);break;case U64BE:et=encoding$2.writeU64BE(o,tt.value,et);break;case I8:et=encoding$2.writeI8(o,tt.value,et);break;case I16:et=encoding$2.writeI16(o,tt.value,et);break;case I16BE:et=encoding$2.writeI16BE(o,tt.value,et);break;case I24:et=encoding$2.writeI24(o,tt.value,et);break;case I24BE:et=encoding$2.writeI24BE(o,tt.value,et);break;case I32:et=encoding$2.writeI32(o,tt.value,et);break;case I32BE:et=encoding$2.writeI32BE(o,tt.value,et);break;case I40:et=encoding$2.writeI40(o,tt.value,et);break;case I40BE:et=encoding$2.writeI40BE(o,tt.value,et);break;case I48:et=encoding$2.writeI48(o,tt.value,et);break;case I48BE:et=encoding$2.writeI48BE(o,tt.value,et);break;case I56:et=encoding$2.writeI56(o,tt.value,et);break;case I56BE:et=encoding$2.writeI56BE(o,tt.value,et);break;case I64:et=encoding$2.writeI64(o,tt.value,et);break;case I64BE:et=encoding$2.writeI64BE(o,tt.value,et);break;case FL:et=encoding$2.writeFloat(o,tt.value,et);break;case FLBE:et=encoding$2.writeFloatBE(o,tt.value,et);break;case DBL:et=encoding$2.writeDouble(o,tt.value,et);break;case DBLBE:et=encoding$2.writeDoubleBE(o,tt.value,et);break;case VARINT:et=encoding$2.writeVarint(o,tt.value,et);break;case VARINT2:et=encoding$2.writeVarint2(o,tt.value,et);break;case BYTES:et+=tt.data.copy(o,et);break;case STR:et+=o.write(tt.value,et,tt.enc);break;case CHECKSUM:et+=tt.func(o.slice(0,et)).copy(o,et,0,4);break;case FILL:o.fill(tt.value,et,et+tt.size),et+=tt.size;break;case BIG_U56:et=encoding$2.writeBigU56(o,tt.value,et);break;case BIG_U56BE:et=encoding$2.writeBigU56BE(o,tt.value,et);break;case BIG_U64:et=encoding$2.writeBigU64(o,tt.value,et);break;case BIG_U64BE:et=encoding$2.writeBigU64BE(o,tt.value,et);break;case BIG_I56:et=encoding$2.writeBigI56(o,tt.value,et);break;case BIG_I56BE:et=encoding$2.writeBigI56BE(o,tt.value,et);break;case BIG_I64:et=encoding$2.writeBigI64(o,tt.value,et);break;case BIG_I64BE:et=encoding$2.writeBigI64BE(o,tt.value,et);break;case BIG_U128:et=encoding$2.writeBigU128(o,tt.value,et);break;case BIG_U128BE:et=encoding$2.writeBigU128BE(o,tt.value,et);break;case BIG_U256:et=encoding$2.writeBigU256(o,tt.value,et);break;case BIG_U256BE:et=encoding$2.writeBigU256BE(o,tt.value,et);break;default:throw new Error("Invalid type.")}if(et!==o.length)throw new EncodingError$2(et,"Out of bounds write");return this.destroy(),o}encode(){return this.render()}finish(o){if(enforce$4(o>>>0===o,"size","integer"),this.offset>o)throw new EncodingError$2(this.offset,"Out of bounds write");return this.fill(0,o-this.offset),this.render()}getSize(){return this.offset}seek(o){if(enforce$4(Number.isSafeInteger(o),"off","integer"),this.offset+o<0)throw new EncodingError$2(this.offset,"Out of bounds write");return this.offset+=o,this.ops.push(new NumberOp(SEEK,o)),this}destroy(){return this.ops.length=0,this.offset=0,this}writeU8(o){return this.offset+=1,this.ops.push(new NumberOp(U8,o)),this}writeU16(o){return this.offset+=2,this.ops.push(new NumberOp(U16,o)),this}writeU16BE(o){return this.offset+=2,this.ops.push(new NumberOp(U16BE,o)),this}writeU24(o){return this.offset+=3,this.ops.push(new NumberOp(U24,o)),this}writeU24BE(o){return this.offset+=3,this.ops.push(new NumberOp(U24BE,o)),this}writeU32(o){return this.offset+=4,this.ops.push(new NumberOp(U32,o)),this}writeU32BE(o){return this.offset+=4,this.ops.push(new NumberOp(U32BE,o)),this}writeU40(o){return this.offset+=5,this.ops.push(new NumberOp(U40,o)),this}writeU40BE(o){return this.offset+=5,this.ops.push(new NumberOp(U40BE,o)),this}writeU48(o){return this.offset+=6,this.ops.push(new NumberOp(U48,o)),this}writeU48BE(o){return this.offset+=6,this.ops.push(new NumberOp(U48BE,o)),this}writeU56(o){return this.offset+=7,this.ops.push(new NumberOp(U56,o)),this}writeU56BE(o){return this.offset+=7,this.ops.push(new NumberOp(U56BE,o)),this}writeBigU56(o){return this.offset+=7,this.ops.push(new BigOp(BIG_U56,o)),this}writeBigU56BE(o){return this.offset+=7,this.ops.push(new BigOp(BIG_U56BE,o)),this}writeU64(o){return this.offset+=8,this.ops.push(new NumberOp(U64,o)),this}writeU64BE(o){return this.offset+=8,this.ops.push(new NumberOp(U64BE,o)),this}writeBigU64(o){return this.offset+=8,this.ops.push(new BigOp(BIG_U64,o)),this}writeBigU64BE(o){return this.offset+=8,this.ops.push(new BigOp(BIG_U64BE,o)),this}writeBigU128(o){return this.offset+=16,this.ops.push(new BigOp(BIG_U128,o)),this}writeBigU128BE(o){return this.offset+=16,this.ops.push(new BigOp(BIG_U128BE,o)),this}writeBigU256(o){return this.offset+=32,this.ops.push(new BigOp(BIG_U256,o)),this}writeBigU256BE(o){return this.offset+=32,this.ops.push(new BigOp(BIG_U256BE,o)),this}writeI8(o){return this.offset+=1,this.ops.push(new NumberOp(I8,o)),this}writeI16(o){return this.offset+=2,this.ops.push(new NumberOp(I16,o)),this}writeI16BE(o){return this.offset+=2,this.ops.push(new NumberOp(I16BE,o)),this}writeI24(o){return this.offset+=3,this.ops.push(new NumberOp(I24,o)),this}writeI24BE(o){return this.offset+=3,this.ops.push(new NumberOp(I24BE,o)),this}writeI32(o){return this.offset+=4,this.ops.push(new NumberOp(I32,o)),this}writeI32BE(o){return this.offset+=4,this.ops.push(new NumberOp(I32BE,o)),this}writeI40(o){return this.offset+=5,this.ops.push(new NumberOp(I40,o)),this}writeI40BE(o){return this.offset+=5,this.ops.push(new NumberOp(I40BE,o)),this}writeI48(o){return this.offset+=6,this.ops.push(new NumberOp(I48,o)),this}writeI48BE(o){return this.offset+=6,this.ops.push(new NumberOp(I48BE,o)),this}writeI56(o){return this.offset+=7,this.ops.push(new NumberOp(I56,o)),this}writeI56BE(o){return this.offset+=7,this.ops.push(new NumberOp(I56BE,o)),this}writeBigI56(o){return this.offset+=7,this.ops.push(new BigOp(BIG_I56,o)),this}writeBigI56BE(o){return this.offset+=7,this.ops.push(new BigOp(BIG_I56BE,o)),this}writeI64(o){return this.offset+=8,this.ops.push(new NumberOp(I64,o)),this}writeI64BE(o){return this.offset+=8,this.ops.push(new NumberOp(I64BE,o)),this}writeBigI64(o){return this.offset+=8,this.ops.push(new BigOp(BIG_I64,o)),this}writeBigI64BE(o){return this.offset+=8,this.ops.push(new BigOp(BIG_I64BE,o)),this}writeFloat(o){return this.offset+=4,this.ops.push(new NumberOp(FL,o)),this}writeFloatBE(o){return this.offset+=4,this.ops.push(new NumberOp(FLBE,o)),this}writeDouble(o){return this.offset+=8,this.ops.push(new NumberOp(DBL,o)),this}writeDoubleBE(o){return this.offset+=8,this.ops.push(new NumberOp(DBLBE,o)),this}writeVarint(o){return this.offset+=encoding$2.sizeVarint(o),this.ops.push(new NumberOp(VARINT,o)),this}writeVarint2(o){return this.offset+=encoding$2.sizeVarint2(o),this.ops.push(new NumberOp(VARINT2,o)),this}writeBytes(o){return enforce$4(Buffer.isBuffer(o),"value","buffer"),o.length===0?this:(this.offset+=o.length,this.ops.push(new BufferOp(BYTES,o)),this)}writeVarBytes(o){return enforce$4(Buffer.isBuffer(o),"value","buffer"),this.offset+=encoding$2.sizeVarint(o.length),this.ops.push(new NumberOp(VARINT,o.length)),o.length===0?this:(this.offset+=o.length,this.ops.push(new BufferOp(BYTES,o)),this)}copy(o,et,tt){enforce$4(Buffer.isBuffer(o),"value","buffer"),enforce$4(et>>>0===et,"start","integer"),enforce$4(tt>>>0===tt,"end","integer"),enforce$4(tt>=et,"start","integer");const rt=o.slice(et,tt);return this.writeBytes(rt),this}writeString(o,et){return et==null&&(et="binary"),enforce$4(typeof o=="string","value","string"),enforce$4(typeof et=="string","enc","string"),o.length===0?this:(this.offset+=Buffer.byteLength(o,et),this.ops.push(new StringOp(STR,o,et)),this)}writeHash(o){return typeof o!="string"?(enforce$4(Buffer.isBuffer(o),"value","buffer"),enforce$4(o.length===32,"value","32-byte hash"),this.writeBytes(o),this):(enforce$4(o.length===64,"value","32-byte hash"),this.writeString(o,"hex"),this)}writeVarString(o,et){if(et==null&&(et="binary"),enforce$4(typeof o=="string","value","string"),enforce$4(typeof et=="string","enc","string"),o.length===0)return this.ops.push(new NumberOp(VARINT,0)),this;const tt=Buffer.byteLength(o,et);return this.offset+=encoding$2.sizeVarint(tt),this.offset+=tt,this.ops.push(new NumberOp(VARINT,tt)),this.ops.push(new StringOp(STR,o,et)),this}writeNullString(o,et){return this.writeString(o,et),this.writeU8(0),this}writeChecksum(o){return o&&typeof o.digest=="function"&&(o=o.digest.bind(o)),enforce$4(typeof o=="function","hash","function"),this.offset+=4,this.ops.push(new FunctionOp(CHECKSUM,o)),this}fill(o,et){return enforce$4((o&255)===o,"value","byte"),enforce$4(et>>>0===et,"size","integer"),et===0?this:(this.offset+=et,this.ops.push(new FillOp(FILL,o,et)),this)}pad(o,et=0){return this.fill(et,o)}};class WriteOp{constructor(o){this.type=o}}class NumberOp extends WriteOp{constructor(o,et){super(o),this.value=et}}class BigOp extends WriteOp{constructor(o,et){super(o),this.value=et}}class BufferOp extends WriteOp{constructor(o,et){super(o),this.data=et}}class StringOp extends WriteOp{constructor(o,et,tt){super(o),this.value=et,this.enc=tt}}class FunctionOp extends WriteOp{constructor(o,et){super(o),this.func=et}}class FillOp extends WriteOp{constructor(o,et,tt){super(o),this.value=et,this.size=tt}}var writer=BufferWriter$3;/*! - * staticwriter.js - buffer writer for bcoin - * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). - * https://github.com/bcoin-org/bcoin - */const enforce$3=enforce_1,encoding$1=encoding$4,EncodingError$1=error,EMPTY=Buffer.alloc(0),POOL_SIZE=102400;let POOL=null,StaticWriter$2=class ku{constructor(o){this.data=EMPTY,this.offset=0,o!=null&&this.init(o)}check(o){if(this.offset+o>this.data.length)throw new EncodingError$1(this.offset,"Out of bounds write",this.check)}init(o){return Buffer.isBuffer(o)?(this.data=o,this.offset=0,this):(enforce$3(o>>>0===o,"size","integer"),this.data=Buffer.allocUnsafeSlow(o),this.offset=0,this)}static pool(o){if(enforce$3(o>>>0===o,"size","integer"),o<=POOL_SIZE){POOL||(POOL=Buffer.allocUnsafeSlow(POOL_SIZE));const et=new ku;return et.data=POOL.slice(0,o),et}return new ku(o)}render(){const{data:o,offset:et}=this;if(et!==o.length)throw new EncodingError$1(et,"Out of bounds write");return this.destroy(),o}encode(){return this.render()}slice(){const{data:o,offset:et}=this;if(et>o.length)throw new EncodingError$1(et,"Out of bounds write");return this.destroy(),o.slice(0,et)}finish(){const{data:o,offset:et}=this;if(et>o.length)throw new EncodingError$1(et,"Out of bounds write");return o.fill(0,et,o.length),this.destroy(),o}getSize(){return this.offset}seek(o){if(enforce$3(Number.isSafeInteger(o),"off","integer"),this.offset+o<0)throw new EncodingError$1(this.offset,"Out of bounds write");return this.check(o),this.offset+=o,this}destroy(){return this.data=EMPTY,this.offset=0,this}writeU8(o){return this.check(1),this.offset=encoding$1.writeU8(this.data,o,this.offset),this}writeU16(o){return this.check(2),this.offset=encoding$1.writeU16(this.data,o,this.offset),this}writeU16BE(o){return this.check(2),this.offset=encoding$1.writeU16BE(this.data,o,this.offset),this}writeU24(o){return this.check(3),this.offset=encoding$1.writeU24(this.data,o,this.offset),this}writeU24BE(o){return this.check(3),this.offset=encoding$1.writeU24BE(this.data,o,this.offset),this}writeU32(o){return this.check(4),this.offset=encoding$1.writeU32(this.data,o,this.offset),this}writeU32BE(o){return this.check(4),this.offset=encoding$1.writeU32BE(this.data,o,this.offset),this}writeU40(o){return this.check(5),this.offset=encoding$1.writeU40(this.data,o,this.offset),this}writeU40BE(o){return this.check(5),this.offset=encoding$1.writeU40BE(this.data,o,this.offset),this}writeU48(o){return this.check(6),this.offset=encoding$1.writeU48(this.data,o,this.offset),this}writeU48BE(o){return this.check(6),this.offset=encoding$1.writeU48BE(this.data,o,this.offset),this}writeU56(o){return this.check(7),this.offset=encoding$1.writeU56(this.data,o,this.offset),this}writeU56BE(o){return this.check(7),this.offset=encoding$1.writeU56BE(this.data,o,this.offset),this}writeBigU56(o){return this.check(7),this.offset=encoding$1.writeBigU56(this.data,o,this.offset),this}writeBigU56BE(o){return this.check(7),this.offset=encoding$1.writeBigU56BE(this.data,o,this.offset),this}writeU64(o){return this.check(8),this.offset=encoding$1.writeU64(this.data,o,this.offset),this}writeU64BE(o){return this.check(8),this.offset=encoding$1.writeU64BE(this.data,o,this.offset),this}writeBigU64(o){return this.check(8),this.offset=encoding$1.writeBigU64(this.data,o,this.offset),this}writeBigU64BE(o){return this.check(8),this.offset=encoding$1.writeBigU64BE(this.data,o,this.offset),this}writeBigU128(o){return this.check(16),this.offset=encoding$1.writeBigU128(this.data,o,this.offset),this}writeBigU128BE(o){return this.check(16),this.offset=encoding$1.writeBigU128BE(this.data,o,this.offset),this}writeBigU256(o){return this.check(32),this.offset=encoding$1.writeBigU256(this.data,o,this.offset),this}writeBigU256BE(o){return this.check(32),this.offset=encoding$1.writeBigU256BE(this.data,o,this.offset),this}writeI8(o){return this.check(1),this.offset=encoding$1.writeI8(this.data,o,this.offset),this}writeI16(o){return this.check(2),this.offset=encoding$1.writeI16(this.data,o,this.offset),this}writeI16BE(o){return this.check(2),this.offset=encoding$1.writeI16BE(this.data,o,this.offset),this}writeI24(o){return this.check(3),this.offset=encoding$1.writeI24(this.data,o,this.offset),this}writeI24BE(o){return this.check(3),this.offset=encoding$1.writeI24BE(this.data,o,this.offset),this}writeI32(o){return this.check(4),this.offset=encoding$1.writeI32(this.data,o,this.offset),this}writeI32BE(o){return this.check(4),this.offset=encoding$1.writeI32BE(this.data,o,this.offset),this}writeI40(o){return this.check(5),this.offset=encoding$1.writeI40(this.data,o,this.offset),this}writeI40BE(o){return this.check(5),this.offset=encoding$1.writeI40BE(this.data,o,this.offset),this}writeI48(o){return this.check(6),this.offset=encoding$1.writeI48(this.data,o,this.offset),this}writeI48BE(o){return this.check(6),this.offset=encoding$1.writeI48BE(this.data,o,this.offset),this}writeI56(o){return this.check(7),this.offset=encoding$1.writeI56(this.data,o,this.offset),this}writeI56BE(o){return this.check(7),this.offset=encoding$1.writeI56BE(this.data,o,this.offset),this}writeBigI56(o){return this.check(7),this.offset=encoding$1.writeBigI56(this.data,o,this.offset),this}writeBigI56BE(o){return this.check(7),this.offset=encoding$1.writeBigI56BE(this.data,o,this.offset),this}writeI64(o){return this.check(8),this.offset=encoding$1.writeI64(this.data,o,this.offset),this}writeI64BE(o){return this.check(8),this.offset=encoding$1.writeI64BE(this.data,o,this.offset),this}writeBigI64(o){return this.check(8),this.offset=encoding$1.writeBigI64(this.data,o,this.offset),this}writeBigI64BE(o){return this.check(8),this.offset=encoding$1.writeBigI64BE(this.data,o,this.offset),this}writeFloat(o){return this.check(4),this.offset=encoding$1.writeFloat(this.data,o,this.offset),this}writeFloatBE(o){return this.check(4),this.offset=encoding$1.writeFloatBE(this.data,o,this.offset),this}writeDouble(o){return this.check(8),this.offset=encoding$1.writeDouble(this.data,o,this.offset),this}writeDoubleBE(o){return this.check(8),this.offset=encoding$1.writeDoubleBE(this.data,o,this.offset),this}writeVarint(o){return this.offset=encoding$1.writeVarint(this.data,o,this.offset),this}writeVarint2(o){return this.offset=encoding$1.writeVarint2(this.data,o,this.offset),this}writeBytes(o){return enforce$3(Buffer.isBuffer(o),"value","buffer"),this.check(o.length),this.offset+=o.copy(this.data,this.offset),this}writeVarBytes(o){return enforce$3(Buffer.isBuffer(o),"value","buffer"),this.writeVarint(o.length),this.writeBytes(o),this}copy(o,et,tt){return enforce$3(Buffer.isBuffer(o),"value","buffer"),enforce$3(et>>>0===et,"start","integer"),enforce$3(tt>>>0===tt,"end","integer"),enforce$3(tt>=et,"start","integer"),this.check(tt-et),this.offset+=o.copy(this.data,this.offset,et,tt),this}writeString(o,et){if(et==null&&(et="binary"),enforce$3(typeof o=="string","value","string"),enforce$3(typeof et=="string","enc","string"),o.length===0)return this;const tt=Buffer.byteLength(o,et);return this.check(tt),this.offset+=this.data.write(o,this.offset,et),this}writeHash(o){return typeof o!="string"?(enforce$3(Buffer.isBuffer(o),"value","buffer"),enforce$3(o.length===32,"value","32-byte hash"),this.writeBytes(o),this):(enforce$3(o.length===64,"value","32-byte hash"),this.check(32),this.offset+=this.data.write(o,this.offset,"hex"),this)}writeVarString(o,et){if(et==null&&(et="binary"),enforce$3(typeof o=="string","value","string"),enforce$3(typeof et=="string","enc","string"),o.length===0)return this.writeVarint(0),this;const tt=Buffer.byteLength(o,et);return this.writeVarint(tt),this.check(tt),this.offset+=this.data.write(o,this.offset,et),this}writeNullString(o,et){return this.writeString(o,et),this.writeU8(0),this}writeChecksum(o){(!o||typeof o.digest!="function")&&enforce$3(typeof o=="function","hash","function"),this.check(4);const et=this.data.slice(0,this.offset);return(o.digest?o.digest(et):o(et)).copy(this.data,this.offset,0,4),this.offset+=4,this}fill(o,et){return enforce$3((o&255)===o,"value","byte"),enforce$3(et>>>0===et,"size","integer"),et===0?this:(this.check(et),this.data.fill(o,this.offset,this.offset+et),this.offset+=et,this)}pad(o,et=0){return this.fill(et,o)}};var staticwriter=StaticWriter$2;/*! - * struct.js - struct object for bcoin - * Copyright (c) 2018, Christopher Jeffrey (MIT License). - * https://github.com/bcoin-org/bcoin - */const enforce$2=enforce_1,BufferReader$2=reader,BufferWriter$2=writer,StaticWriter$1=staticwriter,{custom:custom$1}=customBrowser;let Struct$1=class{constructor(){}inject(o){return enforce$2(o instanceof this.constructor,"obj","struct"),this.decode(o.encode())}clone(){return new this.constructor().inject(this)}getSize(o){return-1}write(o,et){return o}read(o,et){return this}toString(){return Object.prototype.toString.call(this)}fromString(o,et){return this}getJSON(){return this}fromJSON(o,et){return this}fromOptions(o,et){return this}from(o,et){return this.fromOptions(o,et)}format(){return this.getJSON()}encode(o){const et=this.getSize(o),tt=et===-1?new BufferWriter$2:new StaticWriter$1(et);return this.write(tt,o),tt.render()}decode(o,et){const tt=new BufferReader$2(o);return this.read(tt,et),this}toHex(o){return this.encode(o).toString("hex")}fromHex(o,et){enforce$2(typeof o=="string","str","string");const tt=o.length>>>1,rt=Buffer.from(o,"hex");if(rt.length!==tt)throw new Error("Invalid hex string.");return this.decode(rt,et)}toBase64(o){return this.encode(o).toString("base64")}fromBase64(o,et){enforce$2(typeof o=="string","str","string");const tt=Buffer.from(o,"base64");if(o.length>size64(tt.length))throw new Error("Invalid base64 string.");return this.decode(tt,et)}toJSON(){return this.getJSON()}[custom$1](){return this.format()}static read(o,et){return new this().read(o,et)}static decode(o,et){return new this().decode(o,et)}static fromHex(o,et){return new this().fromHex(o,et)}static fromBase64(o,et){return new this().fromBase64(o,et)}static fromString(o,et){return new this().fromString(o,et)}static fromJSON(o,et){return new this().fromJSON(o,et)}static fromOptions(o,et){return new this().fromOptions(o,et)}static from(o,et){return new this().from(o,et)}toWriter(o,et){return this.write(o,et)}fromReader(o,et){return this.read(o,et)}toRaw(o){return this.encode(o)}fromRaw(o,et){return this.decode(o,et)}static fromReader(o,et){return this.read(o,et)}static fromRaw(o,et){return this.decode(o,et)}};function size64(a){return(4*a/3+3&-4)>>>0}var struct=Struct$1;/*! - * bufio.js - buffer utilities for javascript - * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). - * https://github.com/bcoin-org/bcoin - */const custom=customBrowser,encoding=encoding$4,enforce$1=enforce_1,EncodingError=error,BufferReader$1=reader,BufferWriter$1=writer,StaticWriter=staticwriter,Struct=struct;bufio.custom=custom;bufio.encoding=encoding;bufio.EncodingError=EncodingError;bufio.BufferReader=BufferReader$1;bufio.BufferWriter=BufferWriter$1;bufio.StaticWriter=StaticWriter;bufio.Struct=Struct;bufio.read=function(o,et){return new BufferReader$1(o,et)};bufio.write=function(o){return o!=null?new StaticWriter(o):new BufferWriter$1};bufio.pool=function(o){return StaticWriter.pool(o)};function _read(a,o){return function(et,tt){if(enforce$1(Buffer.isBuffer(et),"data","buffer"),enforce$1(tt>>>0===tt,"off","integer"),tt+o>et.length)throw new EncodingError(tt,"Out of bounds read");return a(et,tt)}}function _readn(a){return function(o,et,tt){if(enforce$1(Buffer.isBuffer(o),"data","buffer"),enforce$1(et>>>0===et,"off","integer"),enforce$1(tt>>>0===tt,"len","integer"),et+tt>o.length)throw new EncodingError(et,"Out of bounds read");return a(o,et,tt)}}function _readvar(a){return function(o,et){return enforce$1(Buffer.isBuffer(o),"data","buffer"),enforce$1(et>>>0===et,"off","integer"),a(o,et)}}function _write(a,o){return function(et,tt,rt){if(enforce$1(Buffer.isBuffer(et),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),rt+o>et.length)throw new EncodingError(rt,"Out of bounds write");return a(et,tt,rt)}}function _writen(a){return function(o,et,tt,rt){if(enforce$1(Buffer.isBuffer(o),"data","buffer"),enforce$1(tt>>>0===tt,"off","integer"),enforce$1(rt>>>0===rt,"len","integer"),tt+rt>o.length)throw new EncodingError(tt,"Out of bounds write");return a(o,et,tt,rt)}}function _writecb(a,o){return function(et,tt,rt){if(enforce$1(Buffer.isBuffer(et),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),rt+o(tt)>et.length)throw new EncodingError(rt,"Out of bounds write");return a(et,tt,rt)}}bufio.readU=_readn(encoding.readU);bufio.readBigU256=_read(encoding.readBigU256,32);bufio.readBigU128=_read(encoding.readBigU128,16);bufio.readBigU64=_read(encoding.readBigU64,8);bufio.readBigU56=_read(encoding.readBigU56,7);bufio.readU64=_read(encoding.readU64,8);bufio.readU56=_read(encoding.readU56,7);bufio.readU48=_read(encoding.readU48,6);bufio.readU40=_read(encoding.readU40,5);bufio.readU32=_read(encoding.readU32,4);bufio.readU24=_read(encoding.readU24,3);bufio.readU16=_read(encoding.readU16,2);bufio.readU8=_read(encoding.readU8,1);bufio.readUBE=_readn(encoding.readUBE);bufio.readBigU256BE=_read(encoding.readBigU256BE,32);bufio.readBigU128BE=_read(encoding.readBigU128BE,16);bufio.readBigU64BE=_read(encoding.readBigU64BE,8);bufio.readBigU56BE=_read(encoding.readBigU56BE,7);bufio.readU64BE=_read(encoding.readU64BE,8);bufio.readU56BE=_read(encoding.readU56BE,7);bufio.readU48BE=_read(encoding.readU48BE,6);bufio.readU40BE=_read(encoding.readU40BE,5);bufio.readU32BE=_read(encoding.readU32BE,4);bufio.readU24BE=_read(encoding.readU24BE,3);bufio.readU16BE=_read(encoding.readU16BE,2);bufio.readI=_readn(encoding.readI);bufio.readBigI64=_read(encoding.readBigI64,8);bufio.readBigI56=_read(encoding.readBigI56,7);bufio.readI64=_read(encoding.readI64,8);bufio.readI56=_read(encoding.readI56,7);bufio.readI48=_read(encoding.readI48,6);bufio.readI40=_read(encoding.readI40,5);bufio.readI32=_read(encoding.readI32,4);bufio.readI24=_read(encoding.readI24,3);bufio.readI16=_read(encoding.readI16,2);bufio.readI8=_read(encoding.readI8,1);bufio.readIBE=_readn(encoding.readIBE);bufio.readBigI64BE=_read(encoding.readBigI64BE,8);bufio.readBigI56BE=_read(encoding.readBigI56BE,7);bufio.readI64BE=_read(encoding.readI64BE,8);bufio.readI56BE=_read(encoding.readI56BE,7);bufio.readI48BE=_read(encoding.readI48BE,6);bufio.readI40BE=_read(encoding.readI40BE,5);bufio.readI32BE=_read(encoding.readI32BE,4);bufio.readI24BE=_read(encoding.readI24BE,3);bufio.readI16BE=_read(encoding.readI16BE,2);bufio.readFloat=_read(encoding.readFloat,4);bufio.readFloatBE=_read(encoding.readFloatBE,4);bufio.readDouble=_read(encoding.readDouble,8);bufio.readDoubleBE=_read(encoding.readDoubleBE,8);bufio.writeU=_writen(encoding.writeU);bufio.writeBigU256=_write(encoding.writeBigU256,32);bufio.writeBigU128=_write(encoding.writeBigU128,16);bufio.writeBigU64=_write(encoding.writeBigU64,8);bufio.writeBigU56=_write(encoding.writeBigU56,7);bufio.writeU64=_write(encoding.writeU64,8);bufio.writeU56=_write(encoding.writeU56,7);bufio.writeU48=_write(encoding.writeU48,6);bufio.writeU40=_write(encoding.writeU40,5);bufio.writeU32=_write(encoding.writeU32,4);bufio.writeU24=_write(encoding.writeU24,3);bufio.writeU16=_write(encoding.writeU16,2);bufio.writeU8=_write(encoding.writeU8,1);bufio.writeUBE=_writen(encoding.writeUBE);bufio.writeBigU256BE=_write(encoding.writeBigU256BE,32);bufio.writeBigU128BE=_write(encoding.writeBigU128BE,16);bufio.writeBigU64BE=_write(encoding.writeBigU64BE,8);bufio.writeBigU56BE=_write(encoding.writeBigU56BE,7);bufio.writeU64BE=_write(encoding.writeU64BE,8);bufio.writeU56BE=_write(encoding.writeU56BE,7);bufio.writeU48BE=_write(encoding.writeU48BE,6);bufio.writeU40BE=_write(encoding.writeU40BE,5);bufio.writeU32BE=_write(encoding.writeU32BE,4);bufio.writeU24BE=_write(encoding.writeU24BE,3);bufio.writeU16BE=_write(encoding.writeU16BE,2);bufio.writeI=_writen(encoding.writeI);bufio.writeBigI64=_write(encoding.writeBigI64,8);bufio.writeBigI56=_write(encoding.writeBigI56,7);bufio.writeI64=_write(encoding.writeI64,8);bufio.writeI56=_write(encoding.writeI56,7);bufio.writeI48=_write(encoding.writeI48,6);bufio.writeI40=_write(encoding.writeI40,5);bufio.writeI32=_write(encoding.writeI32,4);bufio.writeI24=_write(encoding.writeI24,3);bufio.writeI16=_write(encoding.writeI16,2);bufio.writeI8=_write(encoding.writeI8,1);bufio.writeIBE=_writen(encoding.writeIBE);bufio.writeBigI64BE=_write(encoding.writeBigI64BE,8);bufio.writeBigI56BE=_write(encoding.writeBigI56BE,7);bufio.writeI64BE=_write(encoding.writeI64BE,8);bufio.writeI56BE=_write(encoding.writeI56BE,7);bufio.writeI48BE=_write(encoding.writeI48BE,6);bufio.writeI40BE=_write(encoding.writeI40BE,5);bufio.writeI32BE=_write(encoding.writeI32BE,4);bufio.writeI24BE=_write(encoding.writeI24BE,3);bufio.writeI16BE=_write(encoding.writeI16BE,2);bufio.writeFloat=_write(encoding.writeFloat,4);bufio.writeFloatBE=_write(encoding.writeFloatBE,4);bufio.writeDouble=_write(encoding.writeDouble,8);bufio.writeDoubleBE=_write(encoding.writeDoubleBE,8);bufio.readVarint=_readvar(encoding.readVarint);bufio.writeVarint=_writecb(encoding.writeVarint,encoding.sizeVarint);bufio.sizeVarint=encoding.sizeVarint;bufio.readVarint2=_readvar(encoding.readVarint2);bufio.writeVarint2=_writecb(encoding.writeVarint2,encoding.sizeVarint2);bufio.sizeVarint2=encoding.sizeVarint2;bufio.sliceBytes=encoding.sliceBytes;bufio.readBytes=encoding.readBytes;bufio.writeBytes=encoding.writeBytes;bufio.readString=encoding.readString;bufio.writeString=encoding.writeString;bufio.realloc=encoding.realloc;bufio.copy=encoding.copy;bufio.concat=encoding.concat;bufio.sizeVarBytes=encoding.sizeVarBytes;bufio.sizeVarlen=encoding.sizeVarlen;bufio.sizeVarString=encoding.sizeVarString;var cryptoBrowserify={},browser$b={exports:{}},safeBuffer$1={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(a,o){var et=buffer$2,tt=et.Buffer;function rt(it,st){for(var at in it)st[at]=it[at]}tt.from&&tt.alloc&&tt.allocUnsafe&&tt.allocUnsafeSlow?a.exports=et:(rt(et,o),o.Buffer=nt);function nt(it,st,at){return tt(it,st,at)}nt.prototype=Object.create(tt.prototype),rt(tt,nt),nt.from=function(it,st,at){if(typeof it=="number")throw new TypeError("Argument must not be a number");return tt(it,st,at)},nt.alloc=function(it,st,at){if(typeof it!="number")throw new TypeError("Argument must be a number");var lt=tt(it);return st!==void 0?typeof at=="string"?lt.fill(st,at):lt.fill(st):lt.fill(0),lt},nt.allocUnsafe=function(it){if(typeof it!="number")throw new TypeError("Argument must be a number");return tt(it)},nt.allocUnsafeSlow=function(it){if(typeof it!="number")throw new TypeError("Argument must be a number");return et.SlowBuffer(it)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$H=safeBufferExports.Buffer,crypto$4=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$4&&crypto$4.getRandomValues?browser$b.exports=randomBytes$2:browser$b.exports=oldBrowser$1;function randomBytes$2(a,o){if(a>MAX_UINT32)throw new RangeError("requested too many random bytes");var et=Buffer$H.allocUnsafe(a);if(a>0)if(a>MAX_BYTES)for(var tt=0;tt0&&(it=et[0]),it instanceof Error)throw it;var st=new Error("Unhandled error."+(it?" ("+it.message+")":""));throw st.context=it,st}var at=nt[o];if(at===void 0)return!1;if(typeof at=="function")ReflectApply(at,this,et);else for(var lt=at.length,ht=arrayClone(at,lt),tt=0;tt0&&it.length>rt&&!it.warned){it.warned=!0;var st=new Error("Possible EventEmitter memory leak detected. "+it.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");st.name="MaxListenersExceededWarning",st.emitter=a,st.type=o,st.count=it.length,ProcessEmitWarning(st)}return a}EventEmitter.prototype.addListener=function(o,et){return _addListener(this,o,et,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(o,et){return _addListener(this,o,et,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(a,o,et){var tt={fired:!1,wrapFn:void 0,target:a,type:o,listener:et},rt=onceWrapper.bind(tt);return rt.listener=et,tt.wrapFn=rt,rt}EventEmitter.prototype.once=function(o,et){return checkListener(et),this.on(o,_onceWrap(this,o,et)),this};EventEmitter.prototype.prependOnceListener=function(o,et){return checkListener(et),this.prependListener(o,_onceWrap(this,o,et)),this};EventEmitter.prototype.removeListener=function(o,et){var tt,rt,nt,it,st;if(checkListener(et),rt=this._events,rt===void 0)return this;if(tt=rt[o],tt===void 0)return this;if(tt===et||tt.listener===et)--this._eventsCount===0?this._events=Object.create(null):(delete rt[o],rt.removeListener&&this.emit("removeListener",o,tt.listener||et));else if(typeof tt!="function"){for(nt=-1,it=tt.length-1;it>=0;it--)if(tt[it]===et||tt[it].listener===et){st=tt[it].listener,nt=it;break}if(nt<0)return this;nt===0?tt.shift():spliceOne(tt,nt),tt.length===1&&(rt[o]=tt[0]),rt.removeListener!==void 0&&this.emit("removeListener",o,st||et)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(o){var et,tt,rt;if(tt=this._events,tt===void 0)return this;if(tt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):tt[o]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete tt[o]),this;if(arguments.length===0){var nt=Object.keys(tt),it;for(rt=0;rt=0;rt--)this.removeListener(o,et[rt]);return this};function _listeners(a,o,et){var tt=a._events;if(tt===void 0)return[];var rt=tt[o];return rt===void 0?[]:typeof rt=="function"?et?[rt.listener||rt]:[rt]:et?unwrapListeners(rt):arrayClone(rt,rt.length)}EventEmitter.prototype.listeners=function(o){return _listeners(this,o,!0)};EventEmitter.prototype.rawListeners=function(o){return _listeners(this,o,!1)};EventEmitter.listenerCount=function(a,o){return typeof a.listenerCount=="function"?a.listenerCount(o):listenerCount.call(a,o)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(a){var o=this._events;if(o!==void 0){var et=o[a];if(typeof et=="function")return 1;if(et!==void 0)return et.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(a,o){for(var et=new Array(o),tt=0;tt0?this.tail.next=yt:this.head=yt,this.tail=yt,++this.length}},{key:"unshift",value:function(Et){var yt={data:Et,next:this.head};this.length===0&&(this.tail=yt),this.head=yt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Et=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Et}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Et){if(this.length===0)return"";for(var yt=this.head,bt=""+yt.data;yt=yt.next;)bt+=Et+yt.data;return bt}},{key:"concat",value:function(Et){if(this.length===0)return lt.alloc(0);for(var yt=lt.allocUnsafe(Et>>>0),bt=this.head,kt=0;bt;)wt(bt.data,yt,kt),kt+=bt.data.length,bt=bt.next;return yt}},{key:"consume",value:function(Et,yt){var bt;return EtIt.length?It.length:Et;if(Ot===It.length?kt+=It:kt+=It.slice(0,Et),Et-=Ot,Et===0){Ot===It.length?(++bt,yt.next?this.head=yt.next:this.head=this.tail=null):(this.head=yt,yt.data=It.slice(Ot));break}++bt}return this.length-=bt,kt}},{key:"_getBuffer",value:function(Et){var yt=lt.allocUnsafe(Et),bt=this.head,kt=1;for(bt.data.copy(yt),Et-=bt.data.length;bt=bt.next;){var It=bt.data,Ot=Et>It.length?It.length:Et;if(It.copy(yt,yt.length-Et,0,Ot),Et-=Ot,Et===0){Ot===It.length?(++kt,bt.next?this.head=bt.next:this.head=this.tail=null):(this.head=bt,bt.data=It.slice(Ot));break}++kt}return this.length-=kt,yt}},{key:gt,value:function(Et,yt){return vt(this,o(o({},yt),{},{depth:0,customInspect:!1}))}}]),ut}(),buffer_list}function destroy(a,o){var et=this,tt=this._readableState&&this._readableState.destroyed,rt=this._writableState&&this._writableState.destroyed;return tt||rt?(o?o(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,a)):process.nextTick(emitErrorNT,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(nt){!o&&nt?et._writableState?et._writableState.errorEmitted?process.nextTick(emitCloseNT,et):(et._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,et,nt)):process.nextTick(emitErrorAndCloseNT,et,nt):o?(process.nextTick(emitCloseNT,et),o(nt)):process.nextTick(emitCloseNT,et)}),this)}function emitErrorAndCloseNT(a,o){emitErrorNT(a,o),emitCloseNT(a)}function emitCloseNT(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(a,o){a.emit("error",o)}function errorOrDestroy(a,o){var et=a._readableState,tt=a._writableState;et&&et.autoDestroy||tt&&tt.autoDestroy?a.destroy(o):a.emit("error",o)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(a,o){a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.__proto__=o}var codes={};function createErrorType(a,o,et){et||(et=Error);function tt(nt,it,st){return typeof o=="string"?o:o(nt,it,st)}var rt=function(nt){_inheritsLoose(it,nt);function it(st,at,lt){return nt.call(this,tt(st,at,lt))||this}return it}(et);rt.prototype.name=et.name,rt.prototype.code=a,codes[a]=rt}function oneOf(a,o){if(Array.isArray(a)){var et=a.length;return a=a.map(function(tt){return String(tt)}),et>2?"one of ".concat(o," ").concat(a.slice(0,et-1).join(", "),", or ")+a[et-1]:et===2?"one of ".concat(o," ").concat(a[0]," or ").concat(a[1]):"of ".concat(o," ").concat(a[0])}else return"of ".concat(o," ").concat(String(a))}function startsWith(a,o,et){return a.substr(!et||et<0?0:+et,o.length)===o}function endsWith(a,o,et){return(et===void 0||et>a.length)&&(et=a.length),a.substring(et-o.length,et)===o}function includes(a,o,et){return typeof et!="number"&&(et=0),et+o.length>a.length?!1:a.indexOf(o,et)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(a,o){return'The value "'+o+'" is invalid for option "'+a+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(a,o,et){var tt;typeof o=="string"&&startsWith(o,"not ")?(tt="must not be",o=o.replace(/^not /,"")):tt="must be";var rt;if(endsWith(a," argument"))rt="The ".concat(a," ").concat(tt," ").concat(oneOf(o,"type"));else{var nt=includes(a,".")?"property":"argument";rt='The "'.concat(a,'" ').concat(nt," ").concat(tt," ").concat(oneOf(o,"type"))}return rt+=". Received type ".concat(typeof et),rt},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(a,o,et){return a.highWaterMark!=null?a.highWaterMark:o?a[et]:null}function getHighWaterMark(a,o,et,tt){var rt=highWaterMarkFrom(o,tt,et);if(rt!=null){if(!(isFinite(rt)&&Math.floor(rt)===rt)||rt<0){var nt=tt?et:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(nt,rt)}return Math.floor(rt)}return a.objectMode?16:16*1024}var state={getHighWaterMark},browser$a=deprecate;function deprecate(a,o){if(config("noDeprecation"))return a;var et=!1;function tt(){if(!et){if(config("throwDeprecation"))throw new Error(o);config("traceDeprecation")?console.trace(o):console.warn(o),et=!0}return a.apply(this,arguments)}return tt}function config(a){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var o=commonjsGlobal.localStorage[a];return o==null?!1:String(o).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=jt;function a(Gt){var Zt=this;this.next=null,this.entry=null,this.finish=function(){cr(Zt,Gt)}}var o;jt.WritableState=Nt;var et={deprecate:browser$a},tt=streamBrowser,rt=buffer$2.Buffer,nt=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function it(Gt){return rt.from(Gt)}function st(Gt){return rt.isBuffer(Gt)||Gt instanceof nt}var at=destroy_1,lt=state,ht=lt.getHighWaterMark,vt=errorsBrowser.codes,gt=vt.ERR_INVALID_ARG_TYPE,wt=vt.ERR_METHOD_NOT_IMPLEMENTED,ut=vt.ERR_MULTIPLE_CALLBACK,pt=vt.ERR_STREAM_CANNOT_PIPE,Et=vt.ERR_STREAM_DESTROYED,yt=vt.ERR_STREAM_NULL_VALUES,bt=vt.ERR_STREAM_WRITE_AFTER_END,kt=vt.ERR_UNKNOWN_ENCODING,It=at.errorOrDestroy;inherits_browserExports(jt,tt);function Ot(){}function Nt(Gt,Zt,Yt){o=o||require_stream_duplex(),Gt=Gt||{},typeof Yt!="boolean"&&(Yt=Zt instanceof o),this.objectMode=!!Gt.objectMode,Yt&&(this.objectMode=this.objectMode||!!Gt.writableObjectMode),this.highWaterMark=ht(this,Gt,"writableHighWaterMark",Yt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ar=Gt.decodeStrings===!1;this.decodeStrings=!ar,this.defaultEncoding=Gt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(gr){St(Zt,gr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Gt.emitClose!==!1,this.autoDestroy=!!Gt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}Nt.prototype.getBuffer=function(){for(var Zt=this.bufferedRequest,Yt=[];Zt;)Yt.push(Zt),Zt=Zt.next;return Yt},function(){try{Object.defineProperty(Nt.prototype,"buffer",{get:et.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Vt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Vt=Function.prototype[Symbol.hasInstance],Object.defineProperty(jt,Symbol.hasInstance,{value:function(Zt){return Vt.call(this,Zt)?!0:this!==jt?!1:Zt&&Zt._writableState instanceof Nt}})):Vt=function(Zt){return Zt instanceof this};function jt(Gt){o=o||require_stream_duplex();var Zt=this instanceof o;if(!Zt&&!Vt.call(jt,this))return new jt(Gt);this._writableState=new Nt(Gt,this,Zt),this.writable=!0,Gt&&(typeof Gt.write=="function"&&(this._write=Gt.write),typeof Gt.writev=="function"&&(this._writev=Gt.writev),typeof Gt.destroy=="function"&&(this._destroy=Gt.destroy),typeof Gt.final=="function"&&(this._final=Gt.final)),tt.call(this)}jt.prototype.pipe=function(){It(this,new pt)};function zt(Gt,Zt){var Yt=new bt;It(Gt,Yt),process.nextTick(Zt,Yt)}function or(Gt,Zt,Yt,ar){var gr;return Yt===null?gr=new yt:typeof Yt!="string"&&!Zt.objectMode&&(gr=new gt("chunk",["string","Buffer"],Yt)),gr?(It(Gt,gr),process.nextTick(ar,gr),!1):!0}jt.prototype.write=function(Gt,Zt,Yt){var ar=this._writableState,gr=!1,Jt=!ar.objectMode&&st(Gt);return Jt&&!rt.isBuffer(Gt)&&(Gt=it(Gt)),typeof Zt=="function"&&(Yt=Zt,Zt=null),Jt?Zt="buffer":Zt||(Zt=ar.defaultEncoding),typeof Yt!="function"&&(Yt=Ot),ar.ending?zt(this,Yt):(Jt||or(this,ar,Gt,Yt))&&(ar.pendingcb++,gr=Rt(this,ar,Jt,Gt,Zt,Yt)),gr},jt.prototype.cork=function(){this._writableState.corked++},jt.prototype.uncork=function(){var Gt=this._writableState;Gt.corked&&(Gt.corked--,!Gt.writing&&!Gt.corked&&!Gt.bufferProcessing&&Gt.bufferedRequest&&Tt(this,Gt))},jt.prototype.setDefaultEncoding=function(Zt){if(typeof Zt=="string"&&(Zt=Zt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Zt+"").toLowerCase())>-1))throw new kt(Zt);return this._writableState.defaultEncoding=Zt,this},Object.defineProperty(jt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qt(Gt,Zt,Yt){return!Gt.objectMode&&Gt.decodeStrings!==!1&&typeof Zt=="string"&&(Zt=rt.from(Zt,Yt)),Zt}Object.defineProperty(jt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Rt(Gt,Zt,Yt,ar,gr,Jt){if(!Yt){var Xt=qt(Zt,ar,gr);ar!==Xt&&(Yt=!0,gr="buffer",ar=Xt)}var Sr=Zt.objectMode?1:ar.length;Zt.length+=Sr;var br=Zt.length>5===6?2:a>>4===14?3:a>>3===30?4:a>>6===2?-1:-2}function utf8CheckIncomplete(a,o,et){var tt=o.length-1;if(tt=0?(rt>0&&(a.lastNeed=rt-1),rt):--tt=0?(rt>0&&(a.lastNeed=rt-2),rt):--tt=0?(rt>0&&(rt===2?rt=0:a.lastNeed=rt-3),rt):0))}function utf8CheckExtraBytes(a,o,et){if((o[0]&192)!==128)return a.lastNeed=0,"�";if(a.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return a.lastNeed=1,"�";if(a.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return a.lastNeed=2,"�"}}function utf8FillLast(a){var o=this.lastTotal-this.lastNeed,et=utf8CheckExtraBytes(this,a);if(et!==void 0)return et;if(this.lastNeed<=a.length)return a.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,o,0,a.length),this.lastNeed-=a.length}function utf8Text(a,o){var et=utf8CheckIncomplete(this,a,o);if(!this.lastNeed)return a.toString("utf8",o);this.lastTotal=et;var tt=a.length-(et-this.lastNeed);return a.copy(this.lastChar,0,tt),a.toString("utf8",o,tt)}function utf8End(a){var o=a&&a.length?this.write(a):"";return this.lastNeed?o+"�":o}function utf16Text(a,o){if((a.length-o)%2===0){var et=a.toString("utf16le",o);if(et){var tt=et.charCodeAt(et.length-1);if(tt>=55296&&tt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],et.slice(0,-1)}return et}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",o,a.length-1)}function utf16End(a){var o=a&&a.length?this.write(a):"";if(this.lastNeed){var et=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,et)}return o}function base64Text(a,o){var et=(a.length-o)%3;return et===0?a.toString("base64",o):(this.lastNeed=3-et,this.lastTotal=3,et===1?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",o,a.length-et))}function base64End(a){var o=a&&a.length?this.write(a):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function simpleWrite(a){return a.toString(this.encoding)}function simpleEnd(a){return a&&a.length?this.write(a):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(a){var o=!1;return function(){if(!o){o=!0;for(var et=arguments.length,tt=new Array(et),rt=0;rt0)if(typeof Xt!="string"&&!Zr.objectMode&&Object.getPrototypeOf(Xt)!==tt.prototype&&(Xt=nt(Xt)),br)Zr.endEmitted?Ot(Jt,new yt):qt(Jt,Zr,Xt,!0);else if(Zr.ended)Ot(Jt,new pt);else{if(Zr.destroyed)return!1;Zr.reading=!1,Zr.decoder&&!Sr?(Xt=Zr.decoder.write(Xt),Zr.objectMode||Xt.length!==0?qt(Jt,Zr,Xt,!1):Tt(Jt,Zr)):qt(Jt,Zr,Xt,!1)}else br||(Zr.reading=!1,Tt(Jt,Zr))}return!Zr.ended&&(Zr.length=Bt?Jt=Bt:(Jt--,Jt|=Jt>>>1,Jt|=Jt>>>2,Jt|=Jt>>>4,Jt|=Jt>>>8,Jt|=Jt>>>16,Jt++),Jt}function xt(Jt,Xt){return Jt<=0||Xt.length===0&&Xt.ended?0:Xt.objectMode?1:Jt!==Jt?Xt.flowing&&Xt.length?Xt.buffer.head.data.length:Xt.length:(Jt>Xt.highWaterMark&&(Xt.highWaterMark=ct(Jt)),Jt<=Xt.length?Jt:Xt.ended?Xt.length:(Xt.needReadable=!0,0))}zt.prototype.read=function(Jt){at("read",Jt),Jt=parseInt(Jt,10);var Xt=this._readableState,Sr=Jt;if(Jt!==0&&(Xt.emittedReadable=!1),Jt===0&&Xt.needReadable&&((Xt.highWaterMark!==0?Xt.length>=Xt.highWaterMark:Xt.length>0)||Xt.ended))return at("read: emitReadable",Xt.length,Xt.ended),Xt.length===0&&Xt.ended?Yt(this):Mt(this),null;if(Jt=xt(Jt,Xt),Jt===0&&Xt.ended)return Xt.length===0&&Yt(this),null;var br=Xt.needReadable;at("need readable",br),(Xt.length===0||Xt.length-Jt0?Or=Zt(Jt,Xt):Or=null,Or===null?(Xt.needReadable=Xt.length<=Xt.highWaterMark,Jt=0):(Xt.length-=Jt,Xt.awaitDrain=0),Xt.length===0&&(Xt.ended||(Xt.needReadable=!0),Sr!==Jt&&Xt.ended&&Yt(this)),Or!==null&&this.emit("data",Or),Or};function St(Jt,Xt){if(at("onEofChunk"),!Xt.ended){if(Xt.decoder){var Sr=Xt.decoder.end();Sr&&Sr.length&&(Xt.buffer.push(Sr),Xt.length+=Xt.objectMode?1:Sr.length)}Xt.ended=!0,Xt.sync?Mt(Jt):(Xt.needReadable=!1,Xt.emittedReadable||(Xt.emittedReadable=!0,$t(Jt)))}}function Mt(Jt){var Xt=Jt._readableState;at("emitReadable",Xt.needReadable,Xt.emittedReadable),Xt.needReadable=!1,Xt.emittedReadable||(at("emitReadable",Xt.flowing),Xt.emittedReadable=!0,process.nextTick($t,Jt))}function $t(Jt){var Xt=Jt._readableState;at("emitReadable_",Xt.destroyed,Xt.length,Xt.ended),!Xt.destroyed&&(Xt.length||Xt.ended)&&(Jt.emit("readable"),Xt.emittedReadable=!1),Xt.needReadable=!Xt.flowing&&!Xt.ended&&Xt.length<=Xt.highWaterMark,Gt(Jt)}function Tt(Jt,Xt){Xt.readingMore||(Xt.readingMore=!0,process.nextTick(At,Jt,Xt))}function At(Jt,Xt){for(;!Xt.reading&&!Xt.ended&&(Xt.length1&&gr(br.pipes,Jt)!==-1)&&!Pr&&(at("false write response, pause",br.awaitDrain),br.awaitDrain++),Sr.pause())}function Hr(Kt){at("onerror",Kt),Rr(),Jt.removeListener("error",Hr),o(Jt,"error")===0&&Ot(Jt,Kt)}Vt(Jt,"error",Hr);function ur(){Jt.removeListener("finish",wr),Rr()}Jt.once("close",ur);function wr(){at("onfinish"),Jt.removeListener("close",ur),Rr()}Jt.once("finish",wr);function Rr(){at("unpipe"),Sr.unpipe(Jt)}return Jt.emit("pipe",Sr),br.flowing||(at("pipe resume"),Sr.resume()),Jt};function Pt(Jt){return function(){var Sr=Jt._readableState;at("pipeOnDrain",Sr.awaitDrain),Sr.awaitDrain&&Sr.awaitDrain--,Sr.awaitDrain===0&&o(Jt,"data")&&(Sr.flowing=!0,Gt(Jt))}}zt.prototype.unpipe=function(Jt){var Xt=this._readableState,Sr={hasUnpiped:!1};if(Xt.pipesCount===0)return this;if(Xt.pipesCount===1)return Jt&&Jt!==Xt.pipes?this:(Jt||(Jt=Xt.pipes),Xt.pipes=null,Xt.pipesCount=0,Xt.flowing=!1,Jt&&Jt.emit("unpipe",this,Sr),this);if(!Jt){var br=Xt.pipes,Or=Xt.pipesCount;Xt.pipes=null,Xt.pipesCount=0,Xt.flowing=!1;for(var Zr=0;Zr0,br.flowing!==!1&&this.resume()):Jt==="readable"&&!br.endEmitted&&!br.readableListening&&(br.readableListening=br.needReadable=!0,br.flowing=!1,br.emittedReadable=!1,at("on readable",br.length,br.reading),br.length?Mt(this):br.reading||process.nextTick(Ft,this)),Sr},zt.prototype.addListener=zt.prototype.on,zt.prototype.removeListener=function(Jt,Xt){var Sr=et.prototype.removeListener.call(this,Jt,Xt);return Jt==="readable"&&process.nextTick(mt,this),Sr},zt.prototype.removeAllListeners=function(Jt){var Xt=et.prototype.removeAllListeners.apply(this,arguments);return(Jt==="readable"||Jt===void 0)&&process.nextTick(mt,this),Xt};function mt(Jt){var Xt=Jt._readableState;Xt.readableListening=Jt.listenerCount("readable")>0,Xt.resumeScheduled&&!Xt.paused?Xt.flowing=!0:Jt.listenerCount("data")>0&&Jt.resume()}function Ft(Jt){at("readable nexttick read 0"),Jt.read(0)}zt.prototype.resume=function(){var Jt=this._readableState;return Jt.flowing||(at("resume"),Jt.flowing=!Jt.readableListening,Qt(this,Jt)),Jt.paused=!1,this};function Qt(Jt,Xt){Xt.resumeScheduled||(Xt.resumeScheduled=!0,process.nextTick(cr,Jt,Xt))}function cr(Jt,Xt){at("resume",Xt.reading),Xt.reading||Jt.read(0),Xt.resumeScheduled=!1,Jt.emit("resume"),Gt(Jt),Xt.flowing&&!Xt.reading&&Jt.read(0)}zt.prototype.pause=function(){return at("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(at("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Gt(Jt){var Xt=Jt._readableState;for(at("flow",Xt.flowing);Xt.flowing&&Jt.read()!==null;);}zt.prototype.wrap=function(Jt){var Xt=this,Sr=this._readableState,br=!1;Jt.on("end",function(){if(at("wrapped end"),Sr.decoder&&!Sr.ended){var Lr=Sr.decoder.end();Lr&&Lr.length&&Xt.push(Lr)}Xt.push(null)}),Jt.on("data",function(Lr){if(at("wrapped data"),Sr.decoder&&(Lr=Sr.decoder.write(Lr)),!(Sr.objectMode&&Lr==null)&&!(!Sr.objectMode&&(!Lr||!Lr.length))){var yr=Xt.push(Lr);yr||(br=!0,Jt.pause())}});for(var Or in Jt)this[Or]===void 0&&typeof Jt[Or]=="function"&&(this[Or]=function(yr){return function(){return Jt[yr].apply(Jt,arguments)}}(Or));for(var Zr=0;Zr=Xt.length?(Xt.decoder?Sr=Xt.buffer.join(""):Xt.buffer.length===1?Sr=Xt.buffer.first():Sr=Xt.buffer.concat(Xt.length),Xt.buffer.clear()):Sr=Xt.buffer.consume(Jt,Xt.decoder),Sr}function Yt(Jt){var Xt=Jt._readableState;at("endReadable",Xt.endEmitted),Xt.endEmitted||(Xt.ended=!0,process.nextTick(ar,Xt,Jt))}function ar(Jt,Xt){if(at("endReadableNT",Jt.endEmitted,Jt.length),!Jt.endEmitted&&Jt.length===0&&(Jt.endEmitted=!0,Xt.readable=!1,Xt.emit("end"),Jt.autoDestroy)){var Sr=Xt._writableState;(!Sr||Sr.autoDestroy&&Sr.finished)&&Xt.destroy()}}typeof Symbol=="function"&&(zt.from=function(Jt,Xt){return It===void 0&&(It=requireFromBrowser()),It(zt,Jt,Xt)});function gr(Jt,Xt){for(var Sr=0,br=Jt.length;Sr0;return destroyer(it,at,lt,function(ht){rt||(rt=ht),ht&&nt.forEach(call),!at&&(nt.forEach(call),tt(rt))})});return o.reduce(pipe)}var pipeline_1=pipeline;(function(a,o){o=a.exports=require_stream_readable(),o.Stream=o,o.Readable=o,o.Writable=require_stream_writable(),o.Duplex=require_stream_duplex(),o.Transform=_stream_transform,o.PassThrough=_stream_passthrough,o.finished=endOfStream,o.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$F=safeBufferExports.Buffer,Transform$5=readableBrowserExports.Transform,inherits$v=inherits_browserExports;function throwIfNotStringOrBuffer(a,o){if(!Buffer$F.isBuffer(a)&&typeof a!="string")throw new TypeError(o+" must be a string or a buffer")}function HashBase$2(a){Transform$5.call(this),this._block=Buffer$F.allocUnsafe(a),this._blockSize=a,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$v(HashBase$2,Transform$5);HashBase$2.prototype._transform=function(a,o,et){var tt=null;try{this.update(a,o)}catch(rt){tt=rt}et(tt)};HashBase$2.prototype._flush=function(a){var o=null;try{this.push(this.digest())}catch(et){o=et}a(o)};HashBase$2.prototype.update=function(a,o){if(throwIfNotStringOrBuffer(a,"Data"),this._finalized)throw new Error("Digest already called");Buffer$F.isBuffer(a)||(a=Buffer$F.from(a,o));for(var et=this._block,tt=0;this._blockOffset+a.length-tt>=this._blockSize;){for(var rt=this._blockOffset;rt0;++nt)this._length[nt]+=it,it=this._length[nt]/4294967296|0,it>0&&(this._length[nt]-=4294967296*it);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var o=this._digest();a!==void 0&&(o=o.toString(a)),this._block.fill(0),this._blockOffset=0;for(var et=0;et<4;++et)this._length[et]=0;return o};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$u=inherits_browserExports,HashBase$1=hashBase,Buffer$E=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$u(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var a=ARRAY16$1,o=0;o<16;++o)a[o]=this._block.readInt32LE(o*4);var et=this._a,tt=this._b,rt=this._c,nt=this._d;et=fnF(et,tt,rt,nt,a[0],3614090360,7),nt=fnF(nt,et,tt,rt,a[1],3905402710,12),rt=fnF(rt,nt,et,tt,a[2],606105819,17),tt=fnF(tt,rt,nt,et,a[3],3250441966,22),et=fnF(et,tt,rt,nt,a[4],4118548399,7),nt=fnF(nt,et,tt,rt,a[5],1200080426,12),rt=fnF(rt,nt,et,tt,a[6],2821735955,17),tt=fnF(tt,rt,nt,et,a[7],4249261313,22),et=fnF(et,tt,rt,nt,a[8],1770035416,7),nt=fnF(nt,et,tt,rt,a[9],2336552879,12),rt=fnF(rt,nt,et,tt,a[10],4294925233,17),tt=fnF(tt,rt,nt,et,a[11],2304563134,22),et=fnF(et,tt,rt,nt,a[12],1804603682,7),nt=fnF(nt,et,tt,rt,a[13],4254626195,12),rt=fnF(rt,nt,et,tt,a[14],2792965006,17),tt=fnF(tt,rt,nt,et,a[15],1236535329,22),et=fnG(et,tt,rt,nt,a[1],4129170786,5),nt=fnG(nt,et,tt,rt,a[6],3225465664,9),rt=fnG(rt,nt,et,tt,a[11],643717713,14),tt=fnG(tt,rt,nt,et,a[0],3921069994,20),et=fnG(et,tt,rt,nt,a[5],3593408605,5),nt=fnG(nt,et,tt,rt,a[10],38016083,9),rt=fnG(rt,nt,et,tt,a[15],3634488961,14),tt=fnG(tt,rt,nt,et,a[4],3889429448,20),et=fnG(et,tt,rt,nt,a[9],568446438,5),nt=fnG(nt,et,tt,rt,a[14],3275163606,9),rt=fnG(rt,nt,et,tt,a[3],4107603335,14),tt=fnG(tt,rt,nt,et,a[8],1163531501,20),et=fnG(et,tt,rt,nt,a[13],2850285829,5),nt=fnG(nt,et,tt,rt,a[2],4243563512,9),rt=fnG(rt,nt,et,tt,a[7],1735328473,14),tt=fnG(tt,rt,nt,et,a[12],2368359562,20),et=fnH(et,tt,rt,nt,a[5],4294588738,4),nt=fnH(nt,et,tt,rt,a[8],2272392833,11),rt=fnH(rt,nt,et,tt,a[11],1839030562,16),tt=fnH(tt,rt,nt,et,a[14],4259657740,23),et=fnH(et,tt,rt,nt,a[1],2763975236,4),nt=fnH(nt,et,tt,rt,a[4],1272893353,11),rt=fnH(rt,nt,et,tt,a[7],4139469664,16),tt=fnH(tt,rt,nt,et,a[10],3200236656,23),et=fnH(et,tt,rt,nt,a[13],681279174,4),nt=fnH(nt,et,tt,rt,a[0],3936430074,11),rt=fnH(rt,nt,et,tt,a[3],3572445317,16),tt=fnH(tt,rt,nt,et,a[6],76029189,23),et=fnH(et,tt,rt,nt,a[9],3654602809,4),nt=fnH(nt,et,tt,rt,a[12],3873151461,11),rt=fnH(rt,nt,et,tt,a[15],530742520,16),tt=fnH(tt,rt,nt,et,a[2],3299628645,23),et=fnI(et,tt,rt,nt,a[0],4096336452,6),nt=fnI(nt,et,tt,rt,a[7],1126891415,10),rt=fnI(rt,nt,et,tt,a[14],2878612391,15),tt=fnI(tt,rt,nt,et,a[5],4237533241,21),et=fnI(et,tt,rt,nt,a[12],1700485571,6),nt=fnI(nt,et,tt,rt,a[3],2399980690,10),rt=fnI(rt,nt,et,tt,a[10],4293915773,15),tt=fnI(tt,rt,nt,et,a[1],2240044497,21),et=fnI(et,tt,rt,nt,a[8],1873313359,6),nt=fnI(nt,et,tt,rt,a[15],4264355552,10),rt=fnI(rt,nt,et,tt,a[6],2734768916,15),tt=fnI(tt,rt,nt,et,a[13],1309151649,21),et=fnI(et,tt,rt,nt,a[4],4149444226,6),nt=fnI(nt,et,tt,rt,a[11],3174756917,10),rt=fnI(rt,nt,et,tt,a[2],718787259,15),tt=fnI(tt,rt,nt,et,a[9],3951481745,21),this._a=this._a+et|0,this._b=this._b+tt|0,this._c=this._c+rt|0,this._d=this._d+nt|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=Buffer$E.allocUnsafe(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a};function rotl$3(a,o){return a<>>32-o}function fnF(a,o,et,tt,rt,nt,it){return rotl$3(a+(o&et|~o&tt)+rt+nt|0,it)+o|0}function fnG(a,o,et,tt,rt,nt,it){return rotl$3(a+(o&tt|et&~tt)+rt+nt|0,it)+o|0}function fnH(a,o,et,tt,rt,nt,it){return rotl$3(a+(o^et^tt)+rt+nt|0,it)+o|0}function fnI(a,o,et,tt,rt,nt,it){return rotl$3(a+(et^(o|~tt))+rt+nt|0,it)+o|0}var md5_js=MD5$3,Buffer$D=buffer$2.Buffer,inherits$t=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$t(RIPEMD160$5,HashBase);RIPEMD160$5.prototype._update=function(){for(var a=ARRAY16,o=0;o<16;++o)a[o]=this._block.readInt32LE(o*4);for(var et=this._a|0,tt=this._b|0,rt=this._c|0,nt=this._d|0,it=this._e|0,st=this._a|0,at=this._b|0,lt=this._c|0,ht=this._d|0,vt=this._e|0,gt=0;gt<80;gt+=1){var wt,ut;gt<16?(wt=fn1(et,tt,rt,nt,it,a[zl[gt]],hl[0],sl[gt]),ut=fn5(st,at,lt,ht,vt,a[zr[gt]],hr[0],sr[gt])):gt<32?(wt=fn2(et,tt,rt,nt,it,a[zl[gt]],hl[1],sl[gt]),ut=fn4(st,at,lt,ht,vt,a[zr[gt]],hr[1],sr[gt])):gt<48?(wt=fn3(et,tt,rt,nt,it,a[zl[gt]],hl[2],sl[gt]),ut=fn3(st,at,lt,ht,vt,a[zr[gt]],hr[2],sr[gt])):gt<64?(wt=fn4(et,tt,rt,nt,it,a[zl[gt]],hl[3],sl[gt]),ut=fn2(st,at,lt,ht,vt,a[zr[gt]],hr[3],sr[gt])):(wt=fn5(et,tt,rt,nt,it,a[zl[gt]],hl[4],sl[gt]),ut=fn1(st,at,lt,ht,vt,a[zr[gt]],hr[4],sr[gt])),et=it,it=nt,nt=rotl$2(rt,10),rt=tt,tt=wt,st=vt,vt=ht,ht=rotl$2(lt,10),lt=at,at=ut}var pt=this._b+rt+ht|0;this._b=this._c+nt+vt|0,this._c=this._d+it+st|0,this._d=this._e+et+at|0,this._e=this._a+tt+lt|0,this._a=pt};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=Buffer$D.alloc?Buffer$D.alloc(20):new Buffer$D(20);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a.writeInt32LE(this._e,16),a};function rotl$2(a,o){return a<>>32-o}function fn1(a,o,et,tt,rt,nt,it,st){return rotl$2(a+(o^et^tt)+nt+it|0,st)+rt|0}function fn2(a,o,et,tt,rt,nt,it,st){return rotl$2(a+(o&et|~o&tt)+nt+it|0,st)+rt|0}function fn3(a,o,et,tt,rt,nt,it,st){return rotl$2(a+((o|~et)^tt)+nt+it|0,st)+rt|0}function fn4(a,o,et,tt,rt,nt,it,st){return rotl$2(a+(o&tt|et&~tt)+nt+it|0,st)+rt|0}function fn5(a,o,et,tt,rt,nt,it,st){return rotl$2(a+(o^(et|~tt))+nt+it|0,st)+rt|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},Buffer$C=safeBufferExports.Buffer;function Hash$9(a,o){this._block=Buffer$C.alloc(a),this._finalSize=o,this._blockSize=a,this._len=0}Hash$9.prototype.update=function(a,o){typeof a=="string"&&(o=o||"utf8",a=Buffer$C.from(a,o));for(var et=this._block,tt=this._blockSize,rt=a.length,nt=this._len,it=0;it=this._finalSize&&(this._update(this._block),this._block.fill(0));var et=this._len*8;if(et<=4294967295)this._block.writeUInt32BE(et,this._blockSize-4);else{var tt=(et&4294967295)>>>0,rt=(et-tt)/4294967296;this._block.writeUInt32BE(rt,this._blockSize-8),this._block.writeUInt32BE(tt,this._blockSize-4)}this._update(this._block);var nt=this._hash();return a?nt.toString(a):nt};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$5=Hash$9,inherits$s=inherits_browserExports,Hash$8=hash$5,Buffer$B=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$8.call(this,64,56)}inherits$s(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(a){return a<<5|a>>>27}function rotl30$1(a){return a<<30|a>>>2}function ft$1(a,o,et,tt){return a===0?o&et|~o&tt:a===2?o&et|o&tt|et&tt:o^et^tt}Sha.prototype._update=function(a){for(var o=this._w,et=this._a|0,tt=this._b|0,rt=this._c|0,nt=this._d|0,it=this._e|0,st=0;st<16;++st)o[st]=a.readInt32BE(st*4);for(;st<80;++st)o[st]=o[st-3]^o[st-8]^o[st-14]^o[st-16];for(var at=0;at<80;++at){var lt=~~(at/20),ht=rotl5$1(et)+ft$1(lt,tt,rt,nt)+it+o[at]+K$4[lt]|0;it=nt,nt=rt,rt=rotl30$1(tt),tt=et,et=ht}this._a=et+this._a|0,this._b=tt+this._b|0,this._c=rt+this._c|0,this._d=nt+this._d|0,this._e=it+this._e|0};Sha.prototype._hash=function(){var a=Buffer$B.allocUnsafe(20);return a.writeInt32BE(this._a|0,0),a.writeInt32BE(this._b|0,4),a.writeInt32BE(this._c|0,8),a.writeInt32BE(this._d|0,12),a.writeInt32BE(this._e|0,16),a};var sha$4=Sha,inherits$r=inherits_browserExports,Hash$7=hash$5,Buffer$A=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$7.call(this,64,56)}inherits$r(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(a){return a<<1|a>>>31}function rotl5(a){return a<<5|a>>>27}function rotl30(a){return a<<30|a>>>2}function ft(a,o,et,tt){return a===0?o&et|~o&tt:a===2?o&et|o&tt|et&tt:o^et^tt}Sha1.prototype._update=function(a){for(var o=this._w,et=this._a|0,tt=this._b|0,rt=this._c|0,nt=this._d|0,it=this._e|0,st=0;st<16;++st)o[st]=a.readInt32BE(st*4);for(;st<80;++st)o[st]=rotl1(o[st-3]^o[st-8]^o[st-14]^o[st-16]);for(var at=0;at<80;++at){var lt=~~(at/20),ht=rotl5(et)+ft(lt,tt,rt,nt)+it+o[at]+K$3[lt]|0;it=nt,nt=rt,rt=rotl30(tt),tt=et,et=ht}this._a=et+this._a|0,this._b=tt+this._b|0,this._c=rt+this._c|0,this._d=nt+this._d|0,this._e=it+this._e|0};Sha1.prototype._hash=function(){var a=Buffer$A.allocUnsafe(20);return a.writeInt32BE(this._a|0,0),a.writeInt32BE(this._b|0,4),a.writeInt32BE(this._c|0,8),a.writeInt32BE(this._d|0,12),a.writeInt32BE(this._e|0,16),a};var sha1$1=Sha1,inherits$q=inherits_browserExports,Hash$6=hash$5,Buffer$z=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$6.call(this,64,56)}inherits$q(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(a,o,et){return et^a&(o^et)}function maj$1(a,o,et){return a&o|et&(a|o)}function sigma0$1(a){return(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10)}function sigma1$1(a){return(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7)}function gamma0(a){return(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3}function gamma1(a){return(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10}Sha256$1.prototype._update=function(a){for(var o=this._w,et=this._a|0,tt=this._b|0,rt=this._c|0,nt=this._d|0,it=this._e|0,st=this._f|0,at=this._g|0,lt=this._h|0,ht=0;ht<16;++ht)o[ht]=a.readInt32BE(ht*4);for(;ht<64;++ht)o[ht]=gamma1(o[ht-2])+o[ht-7]+gamma0(o[ht-15])+o[ht-16]|0;for(var vt=0;vt<64;++vt){var gt=lt+sigma1$1(it)+ch(it,st,at)+K$2[vt]+o[vt]|0,wt=sigma0$1(et)+maj$1(et,tt,rt)|0;lt=at,at=st,st=it,it=nt+gt|0,nt=rt,rt=tt,tt=et,et=gt+wt|0}this._a=et+this._a|0,this._b=tt+this._b|0,this._c=rt+this._c|0,this._d=nt+this._d|0,this._e=it+this._e|0,this._f=st+this._f|0,this._g=at+this._g|0,this._h=lt+this._h|0};Sha256$1.prototype._hash=function(){var a=Buffer$z.allocUnsafe(32);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a.writeInt32BE(this._h,28),a};var sha256$4=Sha256$1,inherits$p=inherits_browserExports,Sha256=sha256$4,Hash$5=hash$5,Buffer$y=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$5.call(this,64,56)}inherits$p(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var a=Buffer$y.allocUnsafe(28);return a.writeInt32BE(this._a,0),a.writeInt32BE(this._b,4),a.writeInt32BE(this._c,8),a.writeInt32BE(this._d,12),a.writeInt32BE(this._e,16),a.writeInt32BE(this._f,20),a.writeInt32BE(this._g,24),a};var sha224$1=Sha224,inherits$o=inherits_browserExports,Hash$4=hash$5,Buffer$x=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$4.call(this,128,112)}inherits$o(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(a,o,et){return et^a&(o^et)}function maj(a,o,et){return a&o|et&(a|o)}function sigma0(a,o){return(a>>>28|o<<4)^(o>>>2|a<<30)^(o>>>7|a<<25)}function sigma1(a,o){return(a>>>14|o<<18)^(a>>>18|o<<14)^(o>>>9|a<<23)}function Gamma0(a,o){return(a>>>1|o<<31)^(a>>>8|o<<24)^a>>>7}function Gamma0l(a,o){return(a>>>1|o<<31)^(a>>>8|o<<24)^(a>>>7|o<<25)}function Gamma1(a,o){return(a>>>19|o<<13)^(o>>>29|a<<3)^a>>>6}function Gamma1l(a,o){return(a>>>19|o<<13)^(o>>>29|a<<3)^(a>>>6|o<<26)}function getCarry(a,o){return a>>>0>>0?1:0}Sha512.prototype._update=function(a){for(var o=this._w,et=this._ah|0,tt=this._bh|0,rt=this._ch|0,nt=this._dh|0,it=this._eh|0,st=this._fh|0,at=this._gh|0,lt=this._hh|0,ht=this._al|0,vt=this._bl|0,gt=this._cl|0,wt=this._dl|0,ut=this._el|0,pt=this._fl|0,Et=this._gl|0,yt=this._hl|0,bt=0;bt<32;bt+=2)o[bt]=a.readInt32BE(bt*4),o[bt+1]=a.readInt32BE(bt*4+4);for(;bt<160;bt+=2){var kt=o[bt-30],It=o[bt-15*2+1],Ot=Gamma0(kt,It),Nt=Gamma0l(It,kt);kt=o[bt-2*2],It=o[bt-2*2+1];var Vt=Gamma1(kt,It),jt=Gamma1l(It,kt),zt=o[bt-7*2],or=o[bt-7*2+1],qt=o[bt-16*2],Rt=o[bt-16*2+1],Bt=Nt+or|0,ct=Ot+zt+getCarry(Bt,Nt)|0;Bt=Bt+jt|0,ct=ct+Vt+getCarry(Bt,jt)|0,Bt=Bt+Rt|0,ct=ct+qt+getCarry(Bt,Rt)|0,o[bt]=ct,o[bt+1]=Bt}for(var xt=0;xt<160;xt+=2){ct=o[xt],Bt=o[xt+1];var St=maj(et,tt,rt),Mt=maj(ht,vt,gt),$t=sigma0(et,ht),Tt=sigma0(ht,et),At=sigma1(it,ut),Pt=sigma1(ut,it),mt=K$1[xt],Ft=K$1[xt+1],Qt=Ch(it,st,at),cr=Ch(ut,pt,Et),Gt=yt+Pt|0,Zt=lt+At+getCarry(Gt,yt)|0;Gt=Gt+cr|0,Zt=Zt+Qt+getCarry(Gt,cr)|0,Gt=Gt+Ft|0,Zt=Zt+mt+getCarry(Gt,Ft)|0,Gt=Gt+Bt|0,Zt=Zt+ct+getCarry(Gt,Bt)|0;var Yt=Tt+Mt|0,ar=$t+St+getCarry(Yt,Tt)|0;lt=at,yt=Et,at=st,Et=pt,st=it,pt=ut,ut=wt+Gt|0,it=nt+Zt+getCarry(ut,wt)|0,nt=rt,wt=gt,rt=tt,gt=vt,tt=et,vt=ht,ht=Gt+Yt|0,et=Zt+ar+getCarry(ht,Gt)|0}this._al=this._al+ht|0,this._bl=this._bl+vt|0,this._cl=this._cl+gt|0,this._dl=this._dl+wt|0,this._el=this._el+ut|0,this._fl=this._fl+pt|0,this._gl=this._gl+Et|0,this._hl=this._hl+yt|0,this._ah=this._ah+et+getCarry(this._al,ht)|0,this._bh=this._bh+tt+getCarry(this._bl,vt)|0,this._ch=this._ch+rt+getCarry(this._cl,gt)|0,this._dh=this._dh+nt+getCarry(this._dl,wt)|0,this._eh=this._eh+it+getCarry(this._el,ut)|0,this._fh=this._fh+st+getCarry(this._fl,pt)|0,this._gh=this._gh+at+getCarry(this._gl,Et)|0,this._hh=this._hh+lt+getCarry(this._hl,yt)|0};Sha512.prototype._hash=function(){var a=Buffer$x.allocUnsafe(64);function o(et,tt,rt){a.writeInt32BE(et,rt),a.writeInt32BE(tt,rt+4)}return o(this._ah,this._al,0),o(this._bh,this._bl,8),o(this._ch,this._cl,16),o(this._dh,this._dl,24),o(this._eh,this._el,32),o(this._fh,this._fl,40),o(this._gh,this._gl,48),o(this._hh,this._hl,56),a};var sha512$1=Sha512,inherits$n=inherits_browserExports,SHA512$2=sha512$1,Hash$3=hash$5,Buffer$w=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$3.call(this,128,112)}inherits$n(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var a=Buffer$w.allocUnsafe(48);function o(et,tt,rt){a.writeInt32BE(et,rt),a.writeInt32BE(tt,rt+4)}return o(this._ah,this._al,0),o(this._bh,this._bl,8),o(this._ch,this._cl,16),o(this._dh,this._dl,24),o(this._eh,this._el,32),o(this._fh,this._fl,40),a};var sha384$1=Sha384,exports$1=sha_js.exports=function(o){o=o.toLowerCase();var et=exports$1[o];if(!et)throw new Error(o+" is not supported (we accept pull requests)");return new et};exports$1.sha=sha$4;exports$1.sha1=sha1$1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$4;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$m=inherits_browserExports;inherits$m(Stream,EE);Stream.Readable=require_stream_readable();Stream.Writable=require_stream_writable();Stream.Duplex=require_stream_duplex();Stream.Transform=_stream_transform;Stream.PassThrough=_stream_passthrough;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(a,o){var et=this;function tt(ht){a.writable&&a.write(ht)===!1&&et.pause&&et.pause()}et.on("data",tt);function rt(){et.readable&&et.resume&&et.resume()}a.on("drain",rt),!a._isStdio&&(!o||o.end!==!1)&&(et.on("end",it),et.on("close",st));var nt=!1;function it(){nt||(nt=!0,a.end())}function st(){nt||(nt=!0,typeof a.destroy=="function"&&a.destroy())}function at(ht){if(lt(),EE.listenerCount(this,"error")===0)throw ht}et.on("error",at),a.on("error",at);function lt(){et.removeListener("data",tt),a.removeListener("drain",rt),et.removeListener("end",it),et.removeListener("close",st),et.removeListener("error",at),a.removeListener("error",at),et.removeListener("end",lt),et.removeListener("close",lt),a.removeListener("close",lt)}return et.on("end",lt),et.on("close",lt),a.on("close",lt),a.emit("pipe",et),a};var Buffer$v=safeBufferExports.Buffer,Transform$4=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$l=inherits_browserExports;function CipherBase$1(a){Transform$4.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$l(CipherBase$1,Transform$4);CipherBase$1.prototype.update=function(a,o,et){typeof a=="string"&&(a=Buffer$v.from(a,o));var tt=this._update(a);return this.hashMode?this:(et&&(tt=this._toString(tt,et)),tt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(a,o,et){var tt;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(rt){tt=rt}finally{et(tt)}};CipherBase$1.prototype._flush=function(a){var o;try{this.push(this.__final())}catch(et){o=et}a(o)};CipherBase$1.prototype._finalOrDigest=function(a){var o=this.__final()||Buffer$v.alloc(0);return a&&(o=this._toString(o,a,!0)),o};CipherBase$1.prototype._toString=function(a,o,et){if(this._decoder||(this._decoder=new StringDecoder(o),this._encoding=o),this._encoding!==o)throw new Error("can't switch encodings");var tt=this._decoder.write(a);return et&&(tt+=this._decoder.end()),tt};var cipherBase=CipherBase$1,inherits$k=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(a){Base$5.call(this,"digest"),this._hash=a}inherits$k(Hash$2,Base$5);Hash$2.prototype._update=function(a){this._hash.update(a)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$9=function(o){return o=o.toLowerCase(),o==="md5"?new MD5$2:o==="rmd160"||o==="ripemd160"?new RIPEMD160$4:new Hash$2(sha$3(o))},inherits$j=inherits_browserExports,Buffer$u=safeBufferExports.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$u.alloc(128),blocksize=64;function Hmac$3(a,o){Base$4.call(this,"digest"),typeof o=="string"&&(o=Buffer$u.from(o)),this._alg=a,this._key=o,o.length>blocksize?o=a(o):o.lengthet){var tt=a==="rmd160"?new RIPEMD160$3:sha$2(a);o=tt.update(o).digest()}else o.lengthMAX_ALLOC||o!==o)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$s=safeBufferExports.Buffer,toBuffer$3=function(a,o,et){if(Buffer$s.isBuffer(a))return a;if(typeof a=="string")return Buffer$s.from(a,o);if(ArrayBuffer.isView(a))return Buffer$s.from(a.buffer);throw new TypeError(et+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$2=ripemd160$1,sha$1=sha_jsExports,Buffer$r=safeBufferExports.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$2=toBuffer$3,ZEROS=Buffer$r.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(a,o,et){var tt=getDigest(a),rt=a==="sha512"||a==="sha384"?128:64;o.length>rt?o=tt(o):o.length>>0};utils$p.writeUInt32BE=function(o,et,tt){o[0+tt]=et>>>24,o[1+tt]=et>>>16&255,o[2+tt]=et>>>8&255,o[3+tt]=et&255};utils$p.ip=function(o,et,tt,rt){for(var nt=0,it=0,st=6;st>=0;st-=2){for(var at=0;at<=24;at+=8)nt<<=1,nt|=et>>>at+st&1;for(var at=0;at<=24;at+=8)nt<<=1,nt|=o>>>at+st&1}for(var st=6;st>=0;st-=2){for(var at=1;at<=25;at+=8)it<<=1,it|=et>>>at+st&1;for(var at=1;at<=25;at+=8)it<<=1,it|=o>>>at+st&1}tt[rt+0]=nt>>>0,tt[rt+1]=it>>>0};utils$p.rip=function(o,et,tt,rt){for(var nt=0,it=0,st=0;st<4;st++)for(var at=24;at>=0;at-=8)nt<<=1,nt|=et>>>at+st&1,nt<<=1,nt|=o>>>at+st&1;for(var st=4;st<8;st++)for(var at=24;at>=0;at-=8)it<<=1,it|=et>>>at+st&1,it<<=1,it|=o>>>at+st&1;tt[rt+0]=nt>>>0,tt[rt+1]=it>>>0};utils$p.pc1=function(o,et,tt,rt){for(var nt=0,it=0,st=7;st>=5;st--){for(var at=0;at<=24;at+=8)nt<<=1,nt|=et>>at+st&1;for(var at=0;at<=24;at+=8)nt<<=1,nt|=o>>at+st&1}for(var at=0;at<=24;at+=8)nt<<=1,nt|=et>>at+st&1;for(var st=1;st<=3;st++){for(var at=0;at<=24;at+=8)it<<=1,it|=et>>at+st&1;for(var at=0;at<=24;at+=8)it<<=1,it|=o>>at+st&1}for(var at=0;at<=24;at+=8)it<<=1,it|=o>>at+st&1;tt[rt+0]=nt>>>0,tt[rt+1]=it>>>0};utils$p.r28shl=function(o,et){return o<>>28-et};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$p.pc2=function(o,et,tt,rt){for(var nt=0,it=0,st=pc2table.length>>>1,at=0;at>>pc2table[at]&1;for(var at=st;at>>pc2table[at]&1;tt[rt+0]=nt>>>0,tt[rt+1]=it>>>0};utils$p.expand=function(o,et,tt){var rt=0,nt=0;rt=(o&1)<<5|o>>>27;for(var it=23;it>=15;it-=4)rt<<=6,rt|=o>>>it&63;for(var it=11;it>=3;it-=4)nt|=o>>>it&63,nt<<=6;nt|=(o&31)<<1|o>>>31,et[tt+0]=rt>>>0,et[tt+1]=nt>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$p.substitute=function(o,et){for(var tt=0,rt=0;rt<4;rt++){var nt=o>>>18-rt*6&63,it=sTable[rt*64+nt];tt<<=4,tt|=it}for(var rt=0;rt<4;rt++){var nt=et>>>18-rt*6&63,it=sTable[4*64+rt*64+nt];tt<<=4,tt|=it}return tt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$p.permute=function(o){for(var et=0,tt=0;tt>>permuteTable[tt]&1;return et>>>0};utils$p.padSplit=function(o,et,tt){for(var rt=o.toString(2);rt.length0;rt--)et+=this._buffer(o,et),tt+=this._flushBuffer(nt,tt);return et+=this._buffer(o,et),nt};Cipher$3.prototype.final=function(o){var et;o&&(et=this.update(o));var tt;return this.type==="encrypt"?tt=this._finalEncrypt():tt=this._finalDecrypt(),et?et.concat(tt):tt};Cipher$3.prototype._pad=function(o,et){if(et===0)return!1;for(;et>>1];tt=utils$o.r28shl(tt,it),rt=utils$o.r28shl(rt,it),utils$o.pc2(tt,rt,o.keys,nt)}};DES$3.prototype._update=function(o,et,tt,rt){var nt=this._desState,it=utils$o.readUInt32BE(o,et),st=utils$o.readUInt32BE(o,et+4);utils$o.ip(it,st,nt.tmp,0),it=nt.tmp[0],st=nt.tmp[1],this.type==="encrypt"?this._encrypt(nt,it,st,nt.tmp,0):this._decrypt(nt,it,st,nt.tmp,0),it=nt.tmp[0],st=nt.tmp[1],utils$o.writeUInt32BE(tt,it,rt),utils$o.writeUInt32BE(tt,st,rt+4)};DES$3.prototype._pad=function(o,et){if(this.padding===!1)return!1;for(var tt=o.length-et,rt=et;rt>>0,it=wt}utils$o.rip(st,it,rt,nt)};DES$3.prototype._decrypt=function(o,et,tt,rt,nt){for(var it=tt,st=et,at=o.keys.length-2;at>=0;at-=2){var lt=o.keys[at],ht=o.keys[at+1];utils$o.expand(it,o.tmp,0),lt^=o.tmp[0],ht^=o.tmp[1];var vt=utils$o.substitute(lt,ht),gt=utils$o.permute(vt),wt=it;it=(st^gt)>>>0,st=wt}utils$o.rip(it,st,rt,nt)};var cbc$1={},assert$k=minimalisticAssert,inherits$g=inherits_browserExports,proto={};function CBCState(a){assert$k.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var o=0;o>rt%8,a._prev=shiftIn(a._prev,et?st:at);return it}function shiftIn(a,o){var et=a.length,tt=-1,rt=Buffer$m.allocUnsafe(a.length);for(a=Buffer$m.concat([a,Buffer$m.from([o])]);++tt>7;return rt}cfb1.encrypt=function(a,o,et){for(var tt=o.length,rt=Buffer$m.allocUnsafe(tt),nt=-1;++nt>>24]^it[ht>>>16&255]^st[vt>>>8&255]^at[gt&255]^o[yt++],ut=nt[ht>>>24]^it[vt>>>16&255]^st[gt>>>8&255]^at[lt&255]^o[yt++],pt=nt[vt>>>24]^it[gt>>>16&255]^st[lt>>>8&255]^at[ht&255]^o[yt++],Et=nt[gt>>>24]^it[lt>>>16&255]^st[ht>>>8&255]^at[vt&255]^o[yt++],lt=wt,ht=ut,vt=pt,gt=Et;return wt=(tt[lt>>>24]<<24|tt[ht>>>16&255]<<16|tt[vt>>>8&255]<<8|tt[gt&255])^o[yt++],ut=(tt[ht>>>24]<<24|tt[vt>>>16&255]<<16|tt[gt>>>8&255]<<8|tt[lt&255])^o[yt++],pt=(tt[vt>>>24]<<24|tt[gt>>>16&255]<<16|tt[lt>>>8&255]<<8|tt[ht&255])^o[yt++],Et=(tt[gt>>>24]<<24|tt[lt>>>16&255]<<16|tt[ht>>>8&255]<<8|tt[vt&255])^o[yt++],wt=wt>>>0,ut=ut>>>0,pt=pt>>>0,Et=Et>>>0,[wt,ut,pt,Et]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var a=new Array(256),o=0;o<256;o++)o<128?a[o]=o<<1:a[o]=o<<1^283;for(var et=[],tt=[],rt=[[],[],[],[]],nt=[[],[],[],[]],it=0,st=0,at=0;at<256;++at){var lt=st^st<<1^st<<2^st<<3^st<<4;lt=lt>>>8^lt&255^99,et[it]=lt,tt[lt]=it;var ht=a[it],vt=a[ht],gt=a[vt],wt=a[lt]*257^lt*16843008;rt[0][it]=wt<<24|wt>>>8,rt[1][it]=wt<<16|wt>>>16,rt[2][it]=wt<<8|wt>>>24,rt[3][it]=wt,wt=gt*16843009^vt*65537^ht*257^it*16843008,nt[0][lt]=wt<<24|wt>>>8,nt[1][lt]=wt<<16|wt>>>16,nt[2][lt]=wt<<8|wt>>>24,nt[3][lt]=wt,it===0?it=st=1:(it=ht^a[a[a[gt^ht]]],st^=a[a[st]])}return{SBOX:et,INV_SBOX:tt,SUB_MIX:rt,INV_SUB_MIX:nt}}();function AES(a){this._key=asUInt32Array(a),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var a=this._key,o=a.length,et=o+6,tt=(et+1)*4,rt=[],nt=0;nt>>24,it=G.SBOX[it>>>24]<<24|G.SBOX[it>>>16&255]<<16|G.SBOX[it>>>8&255]<<8|G.SBOX[it&255],it^=RCON[nt/o|0]<<24):o>6&&nt%o===4&&(it=G.SBOX[it>>>24]<<24|G.SBOX[it>>>16&255]<<16|G.SBOX[it>>>8&255]<<8|G.SBOX[it&255]),rt[nt]=rt[nt-o]^it}for(var st=[],at=0;at>>24]]^G.INV_SUB_MIX[1][G.SBOX[ht>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[ht>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[ht&255]]}this._nRounds=et,this._keySchedule=rt,this._invKeySchedule=st};AES.prototype.encryptBlockRaw=function(a){return a=asUInt32Array(a),cryptBlock(a,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(a){var o=this.encryptBlockRaw(a),et=Buffer$k.allocUnsafe(16);return et.writeUInt32BE(o[0],0),et.writeUInt32BE(o[1],4),et.writeUInt32BE(o[2],8),et.writeUInt32BE(o[3],12),et};AES.prototype.decryptBlock=function(a){a=asUInt32Array(a);var o=a[1];a[1]=a[3],a[3]=o;var et=cryptBlock(a,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),tt=Buffer$k.allocUnsafe(16);return tt.writeUInt32BE(et[0],0),tt.writeUInt32BE(et[3],4),tt.writeUInt32BE(et[2],8),tt.writeUInt32BE(et[1],12),tt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$j=safeBufferExports.Buffer,ZEROES=Buffer$j.alloc(16,0);function toArray$2(a){return[a.readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)]}function fromArray(a){var o=Buffer$j.allocUnsafe(16);return o.writeUInt32BE(a[0]>>>0,0),o.writeUInt32BE(a[1]>>>0,4),o.writeUInt32BE(a[2]>>>0,8),o.writeUInt32BE(a[3]>>>0,12),o}function GHASH$1(a){this.h=a,this.state=Buffer$j.alloc(16,0),this.cache=Buffer$j.allocUnsafe(0)}GHASH$1.prototype.ghash=function(a){for(var o=-1;++o0;et--)a[et]=a[et]>>>1|(a[et-1]&1)<<31;a[0]=a[0]>>>1,rt&&(a[0]=a[0]^225<<24)}this.state=fromArray(o)};GHASH$1.prototype.update=function(a){this.cache=Buffer$j.concat([this.cache,a]);for(var o;this.cache.length>=16;)o=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(o)};GHASH$1.prototype.final=function(a,o){return this.cache.length&&this.ghash(Buffer$j.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,a,0,o])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$i=safeBufferExports.Buffer,Transform$3=cipherBase,inherits$d=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(a,o){var et=0;a.length!==o.length&&et++;for(var tt=Math.min(a.length,o.length),rt=0;rt0||tt>0;){var at=new MD5;at.update(st),at.update(a),o&&at.update(o),st=at.digest();var lt=0;if(rt>0){var ht=nt.length-rt;lt=Math.min(rt,st.length),st.copy(nt,ht,0,lt),rt-=lt}if(lt0){var vt=it.length-tt,gt=Math.min(tt,st.length-lt);st.copy(it,vt,lt,lt+gt),tt-=gt}}return st.fill(0),{key:nt,iv:it}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$f=safeBufferExports.Buffer,StreamCipher$1=streamCipher,Transform$1=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$b=inherits_browserExports;function Cipher(a,o,et){Transform$1.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(o),this._prev=Buffer$f.from(et),this._mode=a,this._autopadding=!0}inherits$b(Cipher,Transform$1);Cipher.prototype._update=function(a){this._cache.add(a);for(var o,et,tt=[];o=this._cache.get();)et=this._mode.encrypt(this,o),tt.push(et);return Buffer$f.concat(tt)};var PADDING=Buffer$f.alloc(16,16);Cipher.prototype._final=function(){var a=this._cache.flush();if(this._autopadding)return a=this._mode.encrypt(this,a),this._cipher.scrub(),a;if(!a.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(a){return this._autopadding=!!a,this};function Splitter$1(){this.cache=Buffer$f.allocUnsafe(0)}Splitter$1.prototype.add=function(a){this.cache=Buffer$f.concat([this.cache,a])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var a=this.cache.slice(0,16);return this.cache=this.cache.slice(16),a}return null};Splitter$1.prototype.flush=function(){for(var a=16-this.cache.length,o=Buffer$f.allocUnsafe(a),et=-1;++et16)return o=this.cache.slice(0,16),this.cache=this.cache.slice(16),o}else if(this.cache.length>=16)return o=this.cache.slice(0,16),this.cache=this.cache.slice(16),o;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(a){var o=a[15];if(o<1||o>16)throw new Error("unable to decrypt data");for(var et=-1;++et0?Rt:Bt},nt.min=function(Rt,Bt){return Rt.cmp(Bt)<0?Rt:Bt},nt.prototype._init=function(Rt,Bt,ct){if(typeof Rt=="number")return this._initNumber(Rt,Bt,ct);if(typeof Rt=="object")return this._initArray(Rt,Bt,ct);Bt==="hex"&&(Bt=16),tt(Bt===(Bt|0)&&Bt>=2&&Bt<=36),Rt=Rt.toString().replace(/\s+/g,"");var xt=0;Rt[0]==="-"&&(xt++,this.negative=1),xt=0;xt-=3)Mt=Rt[xt]|Rt[xt-1]<<8|Rt[xt-2]<<16,this.words[St]|=Mt<<$t&67108863,this.words[St+1]=Mt>>>26-$t&67108863,$t+=24,$t>=26&&($t-=26,St++);else if(ct==="le")for(xt=0,St=0;xt>>26-$t&67108863,$t+=24,$t>=26&&($t-=26,St++);return this.strip()};function st(qt,Rt){var Bt=qt.charCodeAt(Rt);return Bt>=65&&Bt<=70?Bt-55:Bt>=97&&Bt<=102?Bt-87:Bt-48&15}function at(qt,Rt,Bt){var ct=st(qt,Bt);return Bt-1>=Rt&&(ct|=st(qt,Bt-1)<<4),ct}nt.prototype._parseHex=function(Rt,Bt,ct){this.length=Math.ceil((Rt.length-Bt)/6),this.words=new Array(this.length);for(var xt=0;xt=Bt;xt-=2)$t=at(Rt,Bt,xt)<=18?(St-=18,Mt+=1,this.words[Mt]|=$t>>>26):St+=8;else{var Tt=Rt.length-Bt;for(xt=Tt%2===0?Bt+1:Bt;xt=18?(St-=18,Mt+=1,this.words[Mt]|=$t>>>26):St+=8}this.strip()};function lt(qt,Rt,Bt,ct){for(var xt=0,St=Math.min(qt.length,Bt),Mt=Rt;Mt=49?xt+=$t-49+10:$t>=17?xt+=$t-17+10:xt+=$t}return xt}nt.prototype._parseBase=function(Rt,Bt,ct){this.words=[0],this.length=1;for(var xt=0,St=1;St<=67108863;St*=Bt)xt++;xt--,St=St/Bt|0;for(var Mt=Rt.length-ct,$t=Mt%xt,Tt=Math.min(Mt,Mt-$t)+ct,At=0,Pt=ct;Pt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},nt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},nt.prototype.inspect=function(){return(this.red?""};var ht=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],vt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];nt.prototype.toString=function(Rt,Bt){Rt=Rt||10,Bt=Bt|0||1;var ct;if(Rt===16||Rt==="hex"){ct="";for(var xt=0,St=0,Mt=0;Mt>>24-xt&16777215,St!==0||Mt!==this.length-1?ct=ht[6-Tt.length]+Tt+ct:ct=Tt+ct,xt+=2,xt>=26&&(xt-=26,Mt--)}for(St!==0&&(ct=St.toString(16)+ct);ct.length%Bt!==0;)ct="0"+ct;return this.negative!==0&&(ct="-"+ct),ct}if(Rt===(Rt|0)&&Rt>=2&&Rt<=36){var At=vt[Rt],Pt=gt[Rt];ct="";var mt=this.clone();for(mt.negative=0;!mt.isZero();){var Ft=mt.modn(Pt).toString(Rt);mt=mt.idivn(Pt),mt.isZero()?ct=Ft+ct:ct=ht[At-Ft.length]+Ft+ct}for(this.isZero()&&(ct="0"+ct);ct.length%Bt!==0;)ct="0"+ct;return this.negative!==0&&(ct="-"+ct),ct}tt(!1,"Base should be between 2 and 36")},nt.prototype.toNumber=function(){var Rt=this.words[0];return this.length===2?Rt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Rt+=4503599627370496+this.words[1]*67108864:this.length>2&&tt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Rt:Rt},nt.prototype.toJSON=function(){return this.toString(16)},nt.prototype.toBuffer=function(Rt,Bt){return tt(typeof it<"u"),this.toArrayLike(it,Rt,Bt)},nt.prototype.toArray=function(Rt,Bt){return this.toArrayLike(Array,Rt,Bt)},nt.prototype.toArrayLike=function(Rt,Bt,ct){var xt=this.byteLength(),St=ct||Math.max(1,xt);tt(xt<=St,"byte array longer than desired length"),tt(St>0,"Requested array length <= 0"),this.strip();var Mt=Bt==="le",$t=new Rt(St),Tt,At,Pt=this.clone();if(Mt){for(At=0;!Pt.isZero();At++)Tt=Pt.andln(255),Pt.iushrn(8),$t[At]=Tt;for(;At=4096&&(ct+=13,Bt>>>=13),Bt>=64&&(ct+=7,Bt>>>=7),Bt>=8&&(ct+=4,Bt>>>=4),Bt>=2&&(ct+=2,Bt>>>=2),ct+Bt},nt.prototype._zeroBits=function(Rt){if(Rt===0)return 26;var Bt=Rt,ct=0;return Bt&8191||(ct+=13,Bt>>>=13),Bt&127||(ct+=7,Bt>>>=7),Bt&15||(ct+=4,Bt>>>=4),Bt&3||(ct+=2,Bt>>>=2),Bt&1||ct++,ct},nt.prototype.bitLength=function(){var Rt=this.words[this.length-1],Bt=this._countBits(Rt);return(this.length-1)*26+Bt};function wt(qt){for(var Rt=new Array(qt.bitLength()),Bt=0;Bt>>xt}return Rt}nt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Rt=0,Bt=0;BtRt.length?this.clone().ior(Rt):Rt.clone().ior(this)},nt.prototype.uor=function(Rt){return this.length>Rt.length?this.clone().iuor(Rt):Rt.clone().iuor(this)},nt.prototype.iuand=function(Rt){var Bt;this.length>Rt.length?Bt=Rt:Bt=this;for(var ct=0;ctRt.length?this.clone().iand(Rt):Rt.clone().iand(this)},nt.prototype.uand=function(Rt){return this.length>Rt.length?this.clone().iuand(Rt):Rt.clone().iuand(this)},nt.prototype.iuxor=function(Rt){var Bt,ct;this.length>Rt.length?(Bt=this,ct=Rt):(Bt=Rt,ct=this);for(var xt=0;xtRt.length?this.clone().ixor(Rt):Rt.clone().ixor(this)},nt.prototype.uxor=function(Rt){return this.length>Rt.length?this.clone().iuxor(Rt):Rt.clone().iuxor(this)},nt.prototype.inotn=function(Rt){tt(typeof Rt=="number"&&Rt>=0);var Bt=Math.ceil(Rt/26)|0,ct=Rt%26;this._expand(Bt),ct>0&&Bt--;for(var xt=0;xt0&&(this.words[xt]=~this.words[xt]&67108863>>26-ct),this.strip()},nt.prototype.notn=function(Rt){return this.clone().inotn(Rt)},nt.prototype.setn=function(Rt,Bt){tt(typeof Rt=="number"&&Rt>=0);var ct=Rt/26|0,xt=Rt%26;return this._expand(ct+1),Bt?this.words[ct]=this.words[ct]|1<Rt.length?(ct=this,xt=Rt):(ct=Rt,xt=this);for(var St=0,Mt=0;Mt>>26;for(;St!==0&&Mt>>26;if(this.length=ct.length,St!==0)this.words[this.length]=St,this.length++;else if(ct!==this)for(;MtRt.length?this.clone().iadd(Rt):Rt.clone().iadd(this)},nt.prototype.isub=function(Rt){if(Rt.negative!==0){Rt.negative=0;var Bt=this.iadd(Rt);return Rt.negative=1,Bt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Rt),this.negative=1,this._normSign();var ct=this.cmp(Rt);if(ct===0)return this.negative=0,this.length=1,this.words[0]=0,this;var xt,St;ct>0?(xt=this,St=Rt):(xt=Rt,St=this);for(var Mt=0,$t=0;$t>26,this.words[$t]=Bt&67108863;for(;Mt!==0&&$t>26,this.words[$t]=Bt&67108863;if(Mt===0&&$t>>26,mt=Tt&67108863,Ft=Math.min(At,Rt.length-1),Qt=Math.max(0,At-qt.length+1);Qt<=Ft;Qt++){var cr=At-Qt|0;xt=qt.words[cr]|0,St=Rt.words[Qt]|0,Mt=xt*St+mt,Pt+=Mt/67108864|0,mt=Mt&67108863}Bt.words[At]=mt|0,Tt=Pt|0}return Tt!==0?Bt.words[At]=Tt|0:Bt.length--,Bt.strip()}var pt=function(Rt,Bt,ct){var xt=Rt.words,St=Bt.words,Mt=ct.words,$t=0,Tt,At,Pt,mt=xt[0]|0,Ft=mt&8191,Qt=mt>>>13,cr=xt[1]|0,Gt=cr&8191,Zt=cr>>>13,Yt=xt[2]|0,ar=Yt&8191,gr=Yt>>>13,Jt=xt[3]|0,Xt=Jt&8191,Sr=Jt>>>13,br=xt[4]|0,Or=br&8191,Zr=br>>>13,Lr=xt[5]|0,yr=Lr&8191,pr=Lr>>>13,Pr=xt[6]|0,Cr=Pr&8191,Jr=Pr>>>13,Hr=xt[7]|0,ur=Hr&8191,wr=Hr>>>13,Rr=xt[8]|0,Kt=Rr&8191,Lt=Rr>>>13,Ut=xt[9]|0,rr=Ut&8191,vr=Ut>>>13,kr=St[0]|0,Tr=kr&8191,nn=kr>>>13,cn=St[1]|0,en=cn&8191,kn=cn>>>13,sn=St[2]|0,yn=sn&8191,ss=sn>>>13,Fn=St[3]|0,wn=Fn&8191,ls=Fn>>>13,Bn=St[4]|0,gn=Bn&8191,rs=Bn>>>13,Rn=St[5]|0,xn=Rn&8191,os=Rn>>>13,Dn=St[6]|0,un=Dn&8191,fs=Dn>>>13,Wt=St[7]|0,tr=Wt&8191,nr=Wt>>>13,Dt=St[8]|0,ir=Dt&8191,Ar=Dt>>>13,$r=St[9]|0,Br=$r&8191,Gr=$r>>>13;ct.negative=Rt.negative^Bt.negative,ct.length=19,Tt=Math.imul(Ft,Tr),At=Math.imul(Ft,nn),At=At+Math.imul(Qt,Tr)|0,Pt=Math.imul(Qt,nn);var Qr=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,Tt=Math.imul(Gt,Tr),At=Math.imul(Gt,nn),At=At+Math.imul(Zt,Tr)|0,Pt=Math.imul(Zt,nn),Tt=Tt+Math.imul(Ft,en)|0,At=At+Math.imul(Ft,kn)|0,At=At+Math.imul(Qt,en)|0,Pt=Pt+Math.imul(Qt,kn)|0;var Vr=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Tt=Math.imul(ar,Tr),At=Math.imul(ar,nn),At=At+Math.imul(gr,Tr)|0,Pt=Math.imul(gr,nn),Tt=Tt+Math.imul(Gt,en)|0,At=At+Math.imul(Gt,kn)|0,At=At+Math.imul(Zt,en)|0,Pt=Pt+Math.imul(Zt,kn)|0,Tt=Tt+Math.imul(Ft,yn)|0,At=At+Math.imul(Ft,ss)|0,At=At+Math.imul(Qt,yn)|0,Pt=Pt+Math.imul(Qt,ss)|0;var Un=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Un>>>26)|0,Un&=67108863,Tt=Math.imul(Xt,Tr),At=Math.imul(Xt,nn),At=At+Math.imul(Sr,Tr)|0,Pt=Math.imul(Sr,nn),Tt=Tt+Math.imul(ar,en)|0,At=At+Math.imul(ar,kn)|0,At=At+Math.imul(gr,en)|0,Pt=Pt+Math.imul(gr,kn)|0,Tt=Tt+Math.imul(Gt,yn)|0,At=At+Math.imul(Gt,ss)|0,At=At+Math.imul(Zt,yn)|0,Pt=Pt+Math.imul(Zt,ss)|0,Tt=Tt+Math.imul(Ft,wn)|0,At=At+Math.imul(Ft,ls)|0,At=At+Math.imul(Qt,wn)|0,Pt=Pt+Math.imul(Qt,ls)|0;var ln=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(ln>>>26)|0,ln&=67108863,Tt=Math.imul(Or,Tr),At=Math.imul(Or,nn),At=At+Math.imul(Zr,Tr)|0,Pt=Math.imul(Zr,nn),Tt=Tt+Math.imul(Xt,en)|0,At=At+Math.imul(Xt,kn)|0,At=At+Math.imul(Sr,en)|0,Pt=Pt+Math.imul(Sr,kn)|0,Tt=Tt+Math.imul(ar,yn)|0,At=At+Math.imul(ar,ss)|0,At=At+Math.imul(gr,yn)|0,Pt=Pt+Math.imul(gr,ss)|0,Tt=Tt+Math.imul(Gt,wn)|0,At=At+Math.imul(Gt,ls)|0,At=At+Math.imul(Zt,wn)|0,Pt=Pt+Math.imul(Zt,ls)|0,Tt=Tt+Math.imul(Ft,gn)|0,At=At+Math.imul(Ft,rs)|0,At=At+Math.imul(Qt,gn)|0,Pt=Pt+Math.imul(Qt,rs)|0;var En=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(En>>>26)|0,En&=67108863,Tt=Math.imul(yr,Tr),At=Math.imul(yr,nn),At=At+Math.imul(pr,Tr)|0,Pt=Math.imul(pr,nn),Tt=Tt+Math.imul(Or,en)|0,At=At+Math.imul(Or,kn)|0,At=At+Math.imul(Zr,en)|0,Pt=Pt+Math.imul(Zr,kn)|0,Tt=Tt+Math.imul(Xt,yn)|0,At=At+Math.imul(Xt,ss)|0,At=At+Math.imul(Sr,yn)|0,Pt=Pt+Math.imul(Sr,ss)|0,Tt=Tt+Math.imul(ar,wn)|0,At=At+Math.imul(ar,ls)|0,At=At+Math.imul(gr,wn)|0,Pt=Pt+Math.imul(gr,ls)|0,Tt=Tt+Math.imul(Gt,gn)|0,At=At+Math.imul(Gt,rs)|0,At=At+Math.imul(Zt,gn)|0,Pt=Pt+Math.imul(Zt,rs)|0,Tt=Tt+Math.imul(Ft,xn)|0,At=At+Math.imul(Ft,os)|0,At=At+Math.imul(Qt,xn)|0,Pt=Pt+Math.imul(Qt,os)|0;var $n=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+($n>>>26)|0,$n&=67108863,Tt=Math.imul(Cr,Tr),At=Math.imul(Cr,nn),At=At+Math.imul(Jr,Tr)|0,Pt=Math.imul(Jr,nn),Tt=Tt+Math.imul(yr,en)|0,At=At+Math.imul(yr,kn)|0,At=At+Math.imul(pr,en)|0,Pt=Pt+Math.imul(pr,kn)|0,Tt=Tt+Math.imul(Or,yn)|0,At=At+Math.imul(Or,ss)|0,At=At+Math.imul(Zr,yn)|0,Pt=Pt+Math.imul(Zr,ss)|0,Tt=Tt+Math.imul(Xt,wn)|0,At=At+Math.imul(Xt,ls)|0,At=At+Math.imul(Sr,wn)|0,Pt=Pt+Math.imul(Sr,ls)|0,Tt=Tt+Math.imul(ar,gn)|0,At=At+Math.imul(ar,rs)|0,At=At+Math.imul(gr,gn)|0,Pt=Pt+Math.imul(gr,rs)|0,Tt=Tt+Math.imul(Gt,xn)|0,At=At+Math.imul(Gt,os)|0,At=At+Math.imul(Zt,xn)|0,Pt=Pt+Math.imul(Zt,os)|0,Tt=Tt+Math.imul(Ft,un)|0,At=At+Math.imul(Ft,fs)|0,At=At+Math.imul(Qt,un)|0,Pt=Pt+Math.imul(Qt,fs)|0;var Mn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,Tt=Math.imul(ur,Tr),At=Math.imul(ur,nn),At=At+Math.imul(wr,Tr)|0,Pt=Math.imul(wr,nn),Tt=Tt+Math.imul(Cr,en)|0,At=At+Math.imul(Cr,kn)|0,At=At+Math.imul(Jr,en)|0,Pt=Pt+Math.imul(Jr,kn)|0,Tt=Tt+Math.imul(yr,yn)|0,At=At+Math.imul(yr,ss)|0,At=At+Math.imul(pr,yn)|0,Pt=Pt+Math.imul(pr,ss)|0,Tt=Tt+Math.imul(Or,wn)|0,At=At+Math.imul(Or,ls)|0,At=At+Math.imul(Zr,wn)|0,Pt=Pt+Math.imul(Zr,ls)|0,Tt=Tt+Math.imul(Xt,gn)|0,At=At+Math.imul(Xt,rs)|0,At=At+Math.imul(Sr,gn)|0,Pt=Pt+Math.imul(Sr,rs)|0,Tt=Tt+Math.imul(ar,xn)|0,At=At+Math.imul(ar,os)|0,At=At+Math.imul(gr,xn)|0,Pt=Pt+Math.imul(gr,os)|0,Tt=Tt+Math.imul(Gt,un)|0,At=At+Math.imul(Gt,fs)|0,At=At+Math.imul(Zt,un)|0,Pt=Pt+Math.imul(Zt,fs)|0,Tt=Tt+Math.imul(Ft,tr)|0,At=At+Math.imul(Ft,nr)|0,At=At+Math.imul(Qt,tr)|0,Pt=Pt+Math.imul(Qt,nr)|0;var Tn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Tt=Math.imul(Kt,Tr),At=Math.imul(Kt,nn),At=At+Math.imul(Lt,Tr)|0,Pt=Math.imul(Lt,nn),Tt=Tt+Math.imul(ur,en)|0,At=At+Math.imul(ur,kn)|0,At=At+Math.imul(wr,en)|0,Pt=Pt+Math.imul(wr,kn)|0,Tt=Tt+Math.imul(Cr,yn)|0,At=At+Math.imul(Cr,ss)|0,At=At+Math.imul(Jr,yn)|0,Pt=Pt+Math.imul(Jr,ss)|0,Tt=Tt+Math.imul(yr,wn)|0,At=At+Math.imul(yr,ls)|0,At=At+Math.imul(pr,wn)|0,Pt=Pt+Math.imul(pr,ls)|0,Tt=Tt+Math.imul(Or,gn)|0,At=At+Math.imul(Or,rs)|0,At=At+Math.imul(Zr,gn)|0,Pt=Pt+Math.imul(Zr,rs)|0,Tt=Tt+Math.imul(Xt,xn)|0,At=At+Math.imul(Xt,os)|0,At=At+Math.imul(Sr,xn)|0,Pt=Pt+Math.imul(Sr,os)|0,Tt=Tt+Math.imul(ar,un)|0,At=At+Math.imul(ar,fs)|0,At=At+Math.imul(gr,un)|0,Pt=Pt+Math.imul(gr,fs)|0,Tt=Tt+Math.imul(Gt,tr)|0,At=At+Math.imul(Gt,nr)|0,At=At+Math.imul(Zt,tr)|0,Pt=Pt+Math.imul(Zt,nr)|0,Tt=Tt+Math.imul(Ft,ir)|0,At=At+Math.imul(Ft,Ar)|0,At=At+Math.imul(Qt,ir)|0,Pt=Pt+Math.imul(Qt,Ar)|0;var An=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(An>>>26)|0,An&=67108863,Tt=Math.imul(rr,Tr),At=Math.imul(rr,nn),At=At+Math.imul(vr,Tr)|0,Pt=Math.imul(vr,nn),Tt=Tt+Math.imul(Kt,en)|0,At=At+Math.imul(Kt,kn)|0,At=At+Math.imul(Lt,en)|0,Pt=Pt+Math.imul(Lt,kn)|0,Tt=Tt+Math.imul(ur,yn)|0,At=At+Math.imul(ur,ss)|0,At=At+Math.imul(wr,yn)|0,Pt=Pt+Math.imul(wr,ss)|0,Tt=Tt+Math.imul(Cr,wn)|0,At=At+Math.imul(Cr,ls)|0,At=At+Math.imul(Jr,wn)|0,Pt=Pt+Math.imul(Jr,ls)|0,Tt=Tt+Math.imul(yr,gn)|0,At=At+Math.imul(yr,rs)|0,At=At+Math.imul(pr,gn)|0,Pt=Pt+Math.imul(pr,rs)|0,Tt=Tt+Math.imul(Or,xn)|0,At=At+Math.imul(Or,os)|0,At=At+Math.imul(Zr,xn)|0,Pt=Pt+Math.imul(Zr,os)|0,Tt=Tt+Math.imul(Xt,un)|0,At=At+Math.imul(Xt,fs)|0,At=At+Math.imul(Sr,un)|0,Pt=Pt+Math.imul(Sr,fs)|0,Tt=Tt+Math.imul(ar,tr)|0,At=At+Math.imul(ar,nr)|0,At=At+Math.imul(gr,tr)|0,Pt=Pt+Math.imul(gr,nr)|0,Tt=Tt+Math.imul(Gt,ir)|0,At=At+Math.imul(Gt,Ar)|0,At=At+Math.imul(Zt,ir)|0,Pt=Pt+Math.imul(Zt,Ar)|0,Tt=Tt+Math.imul(Ft,Br)|0,At=At+Math.imul(Ft,Gr)|0,At=At+Math.imul(Qt,Br)|0,Pt=Pt+Math.imul(Qt,Gr)|0;var Sn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Tt=Math.imul(rr,en),At=Math.imul(rr,kn),At=At+Math.imul(vr,en)|0,Pt=Math.imul(vr,kn),Tt=Tt+Math.imul(Kt,yn)|0,At=At+Math.imul(Kt,ss)|0,At=At+Math.imul(Lt,yn)|0,Pt=Pt+Math.imul(Lt,ss)|0,Tt=Tt+Math.imul(ur,wn)|0,At=At+Math.imul(ur,ls)|0,At=At+Math.imul(wr,wn)|0,Pt=Pt+Math.imul(wr,ls)|0,Tt=Tt+Math.imul(Cr,gn)|0,At=At+Math.imul(Cr,rs)|0,At=At+Math.imul(Jr,gn)|0,Pt=Pt+Math.imul(Jr,rs)|0,Tt=Tt+Math.imul(yr,xn)|0,At=At+Math.imul(yr,os)|0,At=At+Math.imul(pr,xn)|0,Pt=Pt+Math.imul(pr,os)|0,Tt=Tt+Math.imul(Or,un)|0,At=At+Math.imul(Or,fs)|0,At=At+Math.imul(Zr,un)|0,Pt=Pt+Math.imul(Zr,fs)|0,Tt=Tt+Math.imul(Xt,tr)|0,At=At+Math.imul(Xt,nr)|0,At=At+Math.imul(Sr,tr)|0,Pt=Pt+Math.imul(Sr,nr)|0,Tt=Tt+Math.imul(ar,ir)|0,At=At+Math.imul(ar,Ar)|0,At=At+Math.imul(gr,ir)|0,Pt=Pt+Math.imul(gr,Ar)|0,Tt=Tt+Math.imul(Gt,Br)|0,At=At+Math.imul(Gt,Gr)|0,At=At+Math.imul(Zt,Br)|0,Pt=Pt+Math.imul(Zt,Gr)|0;var Pn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Tt=Math.imul(rr,yn),At=Math.imul(rr,ss),At=At+Math.imul(vr,yn)|0,Pt=Math.imul(vr,ss),Tt=Tt+Math.imul(Kt,wn)|0,At=At+Math.imul(Kt,ls)|0,At=At+Math.imul(Lt,wn)|0,Pt=Pt+Math.imul(Lt,ls)|0,Tt=Tt+Math.imul(ur,gn)|0,At=At+Math.imul(ur,rs)|0,At=At+Math.imul(wr,gn)|0,Pt=Pt+Math.imul(wr,rs)|0,Tt=Tt+Math.imul(Cr,xn)|0,At=At+Math.imul(Cr,os)|0,At=At+Math.imul(Jr,xn)|0,Pt=Pt+Math.imul(Jr,os)|0,Tt=Tt+Math.imul(yr,un)|0,At=At+Math.imul(yr,fs)|0,At=At+Math.imul(pr,un)|0,Pt=Pt+Math.imul(pr,fs)|0,Tt=Tt+Math.imul(Or,tr)|0,At=At+Math.imul(Or,nr)|0,At=At+Math.imul(Zr,tr)|0,Pt=Pt+Math.imul(Zr,nr)|0,Tt=Tt+Math.imul(Xt,ir)|0,At=At+Math.imul(Xt,Ar)|0,At=At+Math.imul(Sr,ir)|0,Pt=Pt+Math.imul(Sr,Ar)|0,Tt=Tt+Math.imul(ar,Br)|0,At=At+Math.imul(ar,Gr)|0,At=At+Math.imul(gr,Br)|0,Pt=Pt+Math.imul(gr,Gr)|0;var hn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(hn>>>26)|0,hn&=67108863,Tt=Math.imul(rr,wn),At=Math.imul(rr,ls),At=At+Math.imul(vr,wn)|0,Pt=Math.imul(vr,ls),Tt=Tt+Math.imul(Kt,gn)|0,At=At+Math.imul(Kt,rs)|0,At=At+Math.imul(Lt,gn)|0,Pt=Pt+Math.imul(Lt,rs)|0,Tt=Tt+Math.imul(ur,xn)|0,At=At+Math.imul(ur,os)|0,At=At+Math.imul(wr,xn)|0,Pt=Pt+Math.imul(wr,os)|0,Tt=Tt+Math.imul(Cr,un)|0,At=At+Math.imul(Cr,fs)|0,At=At+Math.imul(Jr,un)|0,Pt=Pt+Math.imul(Jr,fs)|0,Tt=Tt+Math.imul(yr,tr)|0,At=At+Math.imul(yr,nr)|0,At=At+Math.imul(pr,tr)|0,Pt=Pt+Math.imul(pr,nr)|0,Tt=Tt+Math.imul(Or,ir)|0,At=At+Math.imul(Or,Ar)|0,At=At+Math.imul(Zr,ir)|0,Pt=Pt+Math.imul(Zr,Ar)|0,Tt=Tt+Math.imul(Xt,Br)|0,At=At+Math.imul(Xt,Gr)|0,At=At+Math.imul(Sr,Br)|0,Pt=Pt+Math.imul(Sr,Gr)|0;var vn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(vn>>>26)|0,vn&=67108863,Tt=Math.imul(rr,gn),At=Math.imul(rr,rs),At=At+Math.imul(vr,gn)|0,Pt=Math.imul(vr,rs),Tt=Tt+Math.imul(Kt,xn)|0,At=At+Math.imul(Kt,os)|0,At=At+Math.imul(Lt,xn)|0,Pt=Pt+Math.imul(Lt,os)|0,Tt=Tt+Math.imul(ur,un)|0,At=At+Math.imul(ur,fs)|0,At=At+Math.imul(wr,un)|0,Pt=Pt+Math.imul(wr,fs)|0,Tt=Tt+Math.imul(Cr,tr)|0,At=At+Math.imul(Cr,nr)|0,At=At+Math.imul(Jr,tr)|0,Pt=Pt+Math.imul(Jr,nr)|0,Tt=Tt+Math.imul(yr,ir)|0,At=At+Math.imul(yr,Ar)|0,At=At+Math.imul(pr,ir)|0,Pt=Pt+Math.imul(pr,Ar)|0,Tt=Tt+Math.imul(Or,Br)|0,At=At+Math.imul(Or,Gr)|0,At=At+Math.imul(Zr,Br)|0,Pt=Pt+Math.imul(Zr,Gr)|0;var fn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(fn>>>26)|0,fn&=67108863,Tt=Math.imul(rr,xn),At=Math.imul(rr,os),At=At+Math.imul(vr,xn)|0,Pt=Math.imul(vr,os),Tt=Tt+Math.imul(Kt,un)|0,At=At+Math.imul(Kt,fs)|0,At=At+Math.imul(Lt,un)|0,Pt=Pt+Math.imul(Lt,fs)|0,Tt=Tt+Math.imul(ur,tr)|0,At=At+Math.imul(ur,nr)|0,At=At+Math.imul(wr,tr)|0,Pt=Pt+Math.imul(wr,nr)|0,Tt=Tt+Math.imul(Cr,ir)|0,At=At+Math.imul(Cr,Ar)|0,At=At+Math.imul(Jr,ir)|0,Pt=Pt+Math.imul(Jr,Ar)|0,Tt=Tt+Math.imul(yr,Br)|0,At=At+Math.imul(yr,Gr)|0,At=At+Math.imul(pr,Br)|0,Pt=Pt+Math.imul(pr,Gr)|0;var dn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(dn>>>26)|0,dn&=67108863,Tt=Math.imul(rr,un),At=Math.imul(rr,fs),At=At+Math.imul(vr,un)|0,Pt=Math.imul(vr,fs),Tt=Tt+Math.imul(Kt,tr)|0,At=At+Math.imul(Kt,nr)|0,At=At+Math.imul(Lt,tr)|0,Pt=Pt+Math.imul(Lt,nr)|0,Tt=Tt+Math.imul(ur,ir)|0,At=At+Math.imul(ur,Ar)|0,At=At+Math.imul(wr,ir)|0,Pt=Pt+Math.imul(wr,Ar)|0,Tt=Tt+Math.imul(Cr,Br)|0,At=At+Math.imul(Cr,Gr)|0,At=At+Math.imul(Jr,Br)|0,Pt=Pt+Math.imul(Jr,Gr)|0;var pn=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(pn>>>26)|0,pn&=67108863,Tt=Math.imul(rr,tr),At=Math.imul(rr,nr),At=At+Math.imul(vr,tr)|0,Pt=Math.imul(vr,nr),Tt=Tt+Math.imul(Kt,ir)|0,At=At+Math.imul(Kt,Ar)|0,At=At+Math.imul(Lt,ir)|0,Pt=Pt+Math.imul(Lt,Ar)|0,Tt=Tt+Math.imul(ur,Br)|0,At=At+Math.imul(ur,Gr)|0,At=At+Math.imul(wr,Br)|0,Pt=Pt+Math.imul(wr,Gr)|0;var an=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(an>>>26)|0,an&=67108863,Tt=Math.imul(rr,ir),At=Math.imul(rr,Ar),At=At+Math.imul(vr,ir)|0,Pt=Math.imul(vr,Ar),Tt=Tt+Math.imul(Kt,Br)|0,At=At+Math.imul(Kt,Gr)|0,At=At+Math.imul(Lt,Br)|0,Pt=Pt+Math.imul(Lt,Gr)|0;var Fr=($t+Tt|0)+((At&8191)<<13)|0;$t=(Pt+(At>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Tt=Math.imul(rr,Br),At=Math.imul(rr,Gr),At=At+Math.imul(vr,Br)|0,Pt=Math.imul(vr,Gr);var Nr=($t+Tt|0)+((At&8191)<<13)|0;return $t=(Pt+(At>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Mt[0]=Qr,Mt[1]=Vr,Mt[2]=Un,Mt[3]=ln,Mt[4]=En,Mt[5]=$n,Mt[6]=Mn,Mt[7]=Tn,Mt[8]=An,Mt[9]=Sn,Mt[10]=Pn,Mt[11]=hn,Mt[12]=vn,Mt[13]=fn,Mt[14]=dn,Mt[15]=pn,Mt[16]=an,Mt[17]=Fr,Mt[18]=Nr,$t!==0&&(Mt[19]=$t,ct.length++),ct};Math.imul||(pt=ut);function Et(qt,Rt,Bt){Bt.negative=Rt.negative^qt.negative,Bt.length=qt.length+Rt.length;for(var ct=0,xt=0,St=0;St>>26)|0,xt+=Mt>>>26,Mt&=67108863}Bt.words[St]=$t,ct=Mt,Mt=xt}return ct!==0?Bt.words[St]=ct:Bt.length--,Bt.strip()}function yt(qt,Rt,Bt){var ct=new bt;return ct.mulp(qt,Rt,Bt)}nt.prototype.mulTo=function(Rt,Bt){var ct,xt=this.length+Rt.length;return this.length===10&&Rt.length===10?ct=pt(this,Rt,Bt):xt<63?ct=ut(this,Rt,Bt):xt<1024?ct=Et(this,Rt,Bt):ct=yt(this,Rt,Bt),ct};function bt(qt,Rt){this.x=qt,this.y=Rt}bt.prototype.makeRBT=function(Rt){for(var Bt=new Array(Rt),ct=nt.prototype._countBits(Rt)-1,xt=0;xt>=1;return xt},bt.prototype.permute=function(Rt,Bt,ct,xt,St,Mt){for(var $t=0;$t>>1)St++;return 1<>>13,ct[2*Mt+1]=St&8191,St=St>>>13;for(Mt=2*Bt;Mt>=26,Bt+=xt/67108864|0,Bt+=St>>>26,this.words[ct]=St&67108863}return Bt!==0&&(this.words[ct]=Bt,this.length++),this},nt.prototype.muln=function(Rt){return this.clone().imuln(Rt)},nt.prototype.sqr=function(){return this.mul(this)},nt.prototype.isqr=function(){return this.imul(this.clone())},nt.prototype.pow=function(Rt){var Bt=wt(Rt);if(Bt.length===0)return new nt(1);for(var ct=this,xt=0;xt=0);var Bt=Rt%26,ct=(Rt-Bt)/26,xt=67108863>>>26-Bt<<26-Bt,St;if(Bt!==0){var Mt=0;for(St=0;St>>26-Bt}Mt&&(this.words[St]=Mt,this.length++)}if(ct!==0){for(St=this.length-1;St>=0;St--)this.words[St+ct]=this.words[St];for(St=0;St=0);var xt;Bt?xt=(Bt-Bt%26)/26:xt=0;var St=Rt%26,Mt=Math.min((Rt-St)/26,this.length),$t=67108863^67108863>>>St<Mt)for(this.length-=Mt,At=0;At=0&&(Pt!==0||At>=xt);At--){var mt=this.words[At]|0;this.words[At]=Pt<<26-St|mt>>>St,Pt=mt&$t}return Tt&&Pt!==0&&(Tt.words[Tt.length++]=Pt),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},nt.prototype.ishrn=function(Rt,Bt,ct){return tt(this.negative===0),this.iushrn(Rt,Bt,ct)},nt.prototype.shln=function(Rt){return this.clone().ishln(Rt)},nt.prototype.ushln=function(Rt){return this.clone().iushln(Rt)},nt.prototype.shrn=function(Rt){return this.clone().ishrn(Rt)},nt.prototype.ushrn=function(Rt){return this.clone().iushrn(Rt)},nt.prototype.testn=function(Rt){tt(typeof Rt=="number"&&Rt>=0);var Bt=Rt%26,ct=(Rt-Bt)/26,xt=1<=0);var Bt=Rt%26,ct=(Rt-Bt)/26;if(tt(this.negative===0,"imaskn works only with positive numbers"),this.length<=ct)return this;if(Bt!==0&&ct++,this.length=Math.min(ct,this.length),Bt!==0){var xt=67108863^67108863>>>Bt<=67108864;Bt++)this.words[Bt]-=67108864,Bt===this.length-1?this.words[Bt+1]=1:this.words[Bt+1]++;return this.length=Math.max(this.length,Bt+1),this},nt.prototype.isubn=function(Rt){if(tt(typeof Rt=="number"),tt(Rt<67108864),Rt<0)return this.iaddn(-Rt);if(this.negative!==0)return this.negative=0,this.iaddn(Rt),this.negative=1,this;if(this.words[0]-=Rt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Bt=0;Bt>26)-(Tt/67108864|0),this.words[St+ct]=Mt&67108863}for(;St>26,this.words[St+ct]=Mt&67108863;if($t===0)return this.strip();for(tt($t===-1),$t=0,St=0;St>26,this.words[St]=Mt&67108863;return this.negative=1,this.strip()},nt.prototype._wordDiv=function(Rt,Bt){var ct=this.length-Rt.length,xt=this.clone(),St=Rt,Mt=St.words[St.length-1]|0,$t=this._countBits(Mt);ct=26-$t,ct!==0&&(St=St.ushln(ct),xt.iushln(ct),Mt=St.words[St.length-1]|0);var Tt=xt.length-St.length,At;if(Bt!=="mod"){At=new nt(null),At.length=Tt+1,At.words=new Array(At.length);for(var Pt=0;Pt=0;Ft--){var Qt=(xt.words[St.length+Ft]|0)*67108864+(xt.words[St.length+Ft-1]|0);for(Qt=Math.min(Qt/Mt|0,67108863),xt._ishlnsubmul(St,Qt,Ft);xt.negative!==0;)Qt--,xt.negative=0,xt._ishlnsubmul(St,1,Ft),xt.isZero()||(xt.negative^=1);At&&(At.words[Ft]=Qt)}return At&&At.strip(),xt.strip(),Bt!=="div"&&ct!==0&&xt.iushrn(ct),{div:At||null,mod:xt}},nt.prototype.divmod=function(Rt,Bt,ct){if(tt(!Rt.isZero()),this.isZero())return{div:new nt(0),mod:new nt(0)};var xt,St,Mt;return this.negative!==0&&Rt.negative===0?(Mt=this.neg().divmod(Rt,Bt),Bt!=="mod"&&(xt=Mt.div.neg()),Bt!=="div"&&(St=Mt.mod.neg(),ct&&St.negative!==0&&St.iadd(Rt)),{div:xt,mod:St}):this.negative===0&&Rt.negative!==0?(Mt=this.divmod(Rt.neg(),Bt),Bt!=="mod"&&(xt=Mt.div.neg()),{div:xt,mod:Mt.mod}):this.negative&Rt.negative?(Mt=this.neg().divmod(Rt.neg(),Bt),Bt!=="div"&&(St=Mt.mod.neg(),ct&&St.negative!==0&&St.isub(Rt)),{div:Mt.div,mod:St}):Rt.length>this.length||this.cmp(Rt)<0?{div:new nt(0),mod:this}:Rt.length===1?Bt==="div"?{div:this.divn(Rt.words[0]),mod:null}:Bt==="mod"?{div:null,mod:new nt(this.modn(Rt.words[0]))}:{div:this.divn(Rt.words[0]),mod:new nt(this.modn(Rt.words[0]))}:this._wordDiv(Rt,Bt)},nt.prototype.div=function(Rt){return this.divmod(Rt,"div",!1).div},nt.prototype.mod=function(Rt){return this.divmod(Rt,"mod",!1).mod},nt.prototype.umod=function(Rt){return this.divmod(Rt,"mod",!0).mod},nt.prototype.divRound=function(Rt){var Bt=this.divmod(Rt);if(Bt.mod.isZero())return Bt.div;var ct=Bt.div.negative!==0?Bt.mod.isub(Rt):Bt.mod,xt=Rt.ushrn(1),St=Rt.andln(1),Mt=ct.cmp(xt);return Mt<0||St===1&&Mt===0?Bt.div:Bt.div.negative!==0?Bt.div.isubn(1):Bt.div.iaddn(1)},nt.prototype.modn=function(Rt){tt(Rt<=67108863);for(var Bt=(1<<26)%Rt,ct=0,xt=this.length-1;xt>=0;xt--)ct=(Bt*ct+(this.words[xt]|0))%Rt;return ct},nt.prototype.idivn=function(Rt){tt(Rt<=67108863);for(var Bt=0,ct=this.length-1;ct>=0;ct--){var xt=(this.words[ct]|0)+Bt*67108864;this.words[ct]=xt/Rt|0,Bt=xt%Rt}return this.strip()},nt.prototype.divn=function(Rt){return this.clone().idivn(Rt)},nt.prototype.egcd=function(Rt){tt(Rt.negative===0),tt(!Rt.isZero());var Bt=this,ct=Rt.clone();Bt.negative!==0?Bt=Bt.umod(Rt):Bt=Bt.clone();for(var xt=new nt(1),St=new nt(0),Mt=new nt(0),$t=new nt(1),Tt=0;Bt.isEven()&&ct.isEven();)Bt.iushrn(1),ct.iushrn(1),++Tt;for(var At=ct.clone(),Pt=Bt.clone();!Bt.isZero();){for(var mt=0,Ft=1;!(Bt.words[0]&Ft)&&mt<26;++mt,Ft<<=1);if(mt>0)for(Bt.iushrn(mt);mt-- >0;)(xt.isOdd()||St.isOdd())&&(xt.iadd(At),St.isub(Pt)),xt.iushrn(1),St.iushrn(1);for(var Qt=0,cr=1;!(ct.words[0]&cr)&&Qt<26;++Qt,cr<<=1);if(Qt>0)for(ct.iushrn(Qt);Qt-- >0;)(Mt.isOdd()||$t.isOdd())&&(Mt.iadd(At),$t.isub(Pt)),Mt.iushrn(1),$t.iushrn(1);Bt.cmp(ct)>=0?(Bt.isub(ct),xt.isub(Mt),St.isub($t)):(ct.isub(Bt),Mt.isub(xt),$t.isub(St))}return{a:Mt,b:$t,gcd:ct.iushln(Tt)}},nt.prototype._invmp=function(Rt){tt(Rt.negative===0),tt(!Rt.isZero());var Bt=this,ct=Rt.clone();Bt.negative!==0?Bt=Bt.umod(Rt):Bt=Bt.clone();for(var xt=new nt(1),St=new nt(0),Mt=ct.clone();Bt.cmpn(1)>0&&ct.cmpn(1)>0;){for(var $t=0,Tt=1;!(Bt.words[0]&Tt)&&$t<26;++$t,Tt<<=1);if($t>0)for(Bt.iushrn($t);$t-- >0;)xt.isOdd()&&xt.iadd(Mt),xt.iushrn(1);for(var At=0,Pt=1;!(ct.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(ct.iushrn(At);At-- >0;)St.isOdd()&&St.iadd(Mt),St.iushrn(1);Bt.cmp(ct)>=0?(Bt.isub(ct),xt.isub(St)):(ct.isub(Bt),St.isub(xt))}var mt;return Bt.cmpn(1)===0?mt=xt:mt=St,mt.cmpn(0)<0&&mt.iadd(Rt),mt},nt.prototype.gcd=function(Rt){if(this.isZero())return Rt.abs();if(Rt.isZero())return this.abs();var Bt=this.clone(),ct=Rt.clone();Bt.negative=0,ct.negative=0;for(var xt=0;Bt.isEven()&&ct.isEven();xt++)Bt.iushrn(1),ct.iushrn(1);do{for(;Bt.isEven();)Bt.iushrn(1);for(;ct.isEven();)ct.iushrn(1);var St=Bt.cmp(ct);if(St<0){var Mt=Bt;Bt=ct,ct=Mt}else if(St===0||ct.cmpn(1)===0)break;Bt.isub(ct)}while(!0);return ct.iushln(xt)},nt.prototype.invm=function(Rt){return this.egcd(Rt).a.umod(Rt)},nt.prototype.isEven=function(){return(this.words[0]&1)===0},nt.prototype.isOdd=function(){return(this.words[0]&1)===1},nt.prototype.andln=function(Rt){return this.words[0]&Rt},nt.prototype.bincn=function(Rt){tt(typeof Rt=="number");var Bt=Rt%26,ct=(Rt-Bt)/26,xt=1<>>26,$t&=67108863,this.words[Mt]=$t}return St!==0&&(this.words[Mt]=St,this.length++),this},nt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},nt.prototype.cmpn=function(Rt){var Bt=Rt<0;if(this.negative!==0&&!Bt)return-1;if(this.negative===0&&Bt)return 1;this.strip();var ct;if(this.length>1)ct=1;else{Bt&&(Rt=-Rt),tt(Rt<=67108863,"Number is too big");var xt=this.words[0]|0;ct=xt===Rt?0:xtRt.length)return 1;if(this.length=0;ct--){var xt=this.words[ct]|0,St=Rt.words[ct]|0;if(xt!==St){xtSt&&(Bt=1);break}}return Bt},nt.prototype.gtn=function(Rt){return this.cmpn(Rt)===1},nt.prototype.gt=function(Rt){return this.cmp(Rt)===1},nt.prototype.gten=function(Rt){return this.cmpn(Rt)>=0},nt.prototype.gte=function(Rt){return this.cmp(Rt)>=0},nt.prototype.ltn=function(Rt){return this.cmpn(Rt)===-1},nt.prototype.lt=function(Rt){return this.cmp(Rt)===-1},nt.prototype.lten=function(Rt){return this.cmpn(Rt)<=0},nt.prototype.lte=function(Rt){return this.cmp(Rt)<=0},nt.prototype.eqn=function(Rt){return this.cmpn(Rt)===0},nt.prototype.eq=function(Rt){return this.cmp(Rt)===0},nt.red=function(Rt){return new zt(Rt)},nt.prototype.toRed=function(Rt){return tt(!this.red,"Already a number in reduction context"),tt(this.negative===0,"red works only with positives"),Rt.convertTo(this)._forceRed(Rt)},nt.prototype.fromRed=function(){return tt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},nt.prototype._forceRed=function(Rt){return this.red=Rt,this},nt.prototype.forceRed=function(Rt){return tt(!this.red,"Already a number in reduction context"),this._forceRed(Rt)},nt.prototype.redAdd=function(Rt){return tt(this.red,"redAdd works only with red numbers"),this.red.add(this,Rt)},nt.prototype.redIAdd=function(Rt){return tt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Rt)},nt.prototype.redSub=function(Rt){return tt(this.red,"redSub works only with red numbers"),this.red.sub(this,Rt)},nt.prototype.redISub=function(Rt){return tt(this.red,"redISub works only with red numbers"),this.red.isub(this,Rt)},nt.prototype.redShl=function(Rt){return tt(this.red,"redShl works only with red numbers"),this.red.shl(this,Rt)},nt.prototype.redMul=function(Rt){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rt),this.red.mul(this,Rt)},nt.prototype.redIMul=function(Rt){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Rt),this.red.imul(this,Rt)},nt.prototype.redSqr=function(){return tt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},nt.prototype.redISqr=function(){return tt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},nt.prototype.redSqrt=function(){return tt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},nt.prototype.redInvm=function(){return tt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},nt.prototype.redNeg=function(){return tt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},nt.prototype.redPow=function(Rt){return tt(this.red&&!Rt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Rt)};var kt={k256:null,p224:null,p192:null,p25519:null};function It(qt,Rt){this.name=qt,this.p=new nt(Rt,16),this.n=this.p.bitLength(),this.k=new nt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}It.prototype._tmp=function(){var Rt=new nt(null);return Rt.words=new Array(Math.ceil(this.n/13)),Rt},It.prototype.ireduce=function(Rt){var Bt=Rt,ct;do this.split(Bt,this.tmp),Bt=this.imulK(Bt),Bt=Bt.iadd(this.tmp),ct=Bt.bitLength();while(ct>this.n);var xt=ct0?Bt.isub(this.p):Bt.strip!==void 0?Bt.strip():Bt._strip(),Bt},It.prototype.split=function(Rt,Bt){Rt.iushrn(this.n,0,Bt)},It.prototype.imulK=function(Rt){return Rt.imul(this.k)};function Ot(){It.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}rt(Ot,It),Ot.prototype.split=function(Rt,Bt){for(var ct=4194303,xt=Math.min(Rt.length,9),St=0;St>>22,Mt=$t}Mt>>>=22,Rt.words[St-10]=Mt,Mt===0&&Rt.length>10?Rt.length-=10:Rt.length-=9},Ot.prototype.imulK=function(Rt){Rt.words[Rt.length]=0,Rt.words[Rt.length+1]=0,Rt.length+=2;for(var Bt=0,ct=0;ct>>=26,Rt.words[ct]=St,Bt=xt}return Bt!==0&&(Rt.words[Rt.length++]=Bt),Rt},nt._prime=function(Rt){if(kt[Rt])return kt[Rt];var Bt;if(Rt==="k256")Bt=new Ot;else if(Rt==="p224")Bt=new Nt;else if(Rt==="p192")Bt=new Vt;else if(Rt==="p25519")Bt=new jt;else throw new Error("Unknown prime "+Rt);return kt[Rt]=Bt,Bt};function zt(qt){if(typeof qt=="string"){var Rt=nt._prime(qt);this.m=Rt.p,this.prime=Rt}else tt(qt.gtn(1),"modulus must be greater than 1"),this.m=qt,this.prime=null}zt.prototype._verify1=function(Rt){tt(Rt.negative===0,"red works only with positives"),tt(Rt.red,"red works only with red numbers")},zt.prototype._verify2=function(Rt,Bt){tt((Rt.negative|Bt.negative)===0,"red works only with positives"),tt(Rt.red&&Rt.red===Bt.red,"red works only with red numbers")},zt.prototype.imod=function(Rt){return this.prime?this.prime.ireduce(Rt)._forceRed(this):Rt.umod(this.m)._forceRed(this)},zt.prototype.neg=function(Rt){return Rt.isZero()?Rt.clone():this.m.sub(Rt)._forceRed(this)},zt.prototype.add=function(Rt,Bt){this._verify2(Rt,Bt);var ct=Rt.add(Bt);return ct.cmp(this.m)>=0&&ct.isub(this.m),ct._forceRed(this)},zt.prototype.iadd=function(Rt,Bt){this._verify2(Rt,Bt);var ct=Rt.iadd(Bt);return ct.cmp(this.m)>=0&&ct.isub(this.m),ct},zt.prototype.sub=function(Rt,Bt){this._verify2(Rt,Bt);var ct=Rt.sub(Bt);return ct.cmpn(0)<0&&ct.iadd(this.m),ct._forceRed(this)},zt.prototype.isub=function(Rt,Bt){this._verify2(Rt,Bt);var ct=Rt.isub(Bt);return ct.cmpn(0)<0&&ct.iadd(this.m),ct},zt.prototype.shl=function(Rt,Bt){return this._verify1(Rt),this.imod(Rt.ushln(Bt))},zt.prototype.imul=function(Rt,Bt){return this._verify2(Rt,Bt),this.imod(Rt.imul(Bt))},zt.prototype.mul=function(Rt,Bt){return this._verify2(Rt,Bt),this.imod(Rt.mul(Bt))},zt.prototype.isqr=function(Rt){return this.imul(Rt,Rt.clone())},zt.prototype.sqr=function(Rt){return this.mul(Rt,Rt)},zt.prototype.sqrt=function(Rt){if(Rt.isZero())return Rt.clone();var Bt=this.m.andln(3);if(tt(Bt%2===1),Bt===3){var ct=this.m.add(new nt(1)).iushrn(2);return this.pow(Rt,ct)}for(var xt=this.m.subn(1),St=0;!xt.isZero()&&xt.andln(1)===0;)St++,xt.iushrn(1);tt(!xt.isZero());var Mt=new nt(1).toRed(this),$t=Mt.redNeg(),Tt=this.m.subn(1).iushrn(1),At=this.m.bitLength();for(At=new nt(2*At*At).toRed(this);this.pow(At,Tt).cmp($t)!==0;)At.redIAdd($t);for(var Pt=this.pow(At,xt),mt=this.pow(Rt,xt.addn(1).iushrn(1)),Ft=this.pow(Rt,xt),Qt=St;Ft.cmp(Mt)!==0;){for(var cr=Ft,Gt=0;cr.cmp(Mt)!==0;Gt++)cr=cr.redSqr();tt(Gt=0;St--){for(var Pt=Bt.words[St],mt=At-1;mt>=0;mt--){var Ft=Pt>>mt&1;if(Mt!==xt[0]&&(Mt=this.sqr(Mt)),Ft===0&&$t===0){Tt=0;continue}$t<<=1,$t|=Ft,Tt++,!(Tt!==ct&&(St!==0||mt!==0))&&(Mt=this.mul(Mt,xt[$t]),Tt=0,$t=0)}At=26}return Mt},zt.prototype.convertTo=function(Rt){var Bt=Rt.umod(this.m);return Bt===Rt?Bt.clone():Bt},zt.prototype.convertFrom=function(Rt){var Bt=Rt.clone();return Bt.red=null,Bt},nt.mont=function(Rt){return new or(Rt)};function or(qt){zt.call(this,qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new nt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}rt(or,zt),or.prototype.convertTo=function(Rt){return this.imod(Rt.ushln(this.shift))},or.prototype.convertFrom=function(Rt){var Bt=this.imod(Rt.mul(this.rinv));return Bt.red=null,Bt},or.prototype.imul=function(Rt,Bt){if(Rt.isZero()||Bt.isZero())return Rt.words[0]=0,Rt.length=1,Rt;var ct=Rt.imul(Bt),xt=ct.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),St=ct.isub(xt).iushrn(this.shift),Mt=St;return St.cmp(this.m)>=0?Mt=St.isub(this.m):St.cmpn(0)<0&&(Mt=St.iadd(this.m)),Mt._forceRed(this)},or.prototype.mul=function(Rt,Bt){if(Rt.isZero()||Bt.isZero())return new nt(0)._forceRed(this);var ct=Rt.mul(Bt),xt=ct.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),St=ct.isub(xt).iushrn(this.shift),Mt=St;return St.cmp(this.m)>=0?Mt=St.isub(this.m):St.cmpn(0)<0&&(Mt=St.iadd(this.m)),Mt._forceRed(this)},or.prototype.invm=function(Rt){var Bt=this.imod(Rt._invmp(this.m).mul(this.r2));return Bt._forceRed(this)}})(a,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var a;brorand.exports=function(rt){return a||(a=new o(null)),a.generate(rt)};function o(tt){this.rand=tt}if(brorand.exports.Rand=o,o.prototype.generate=function(rt){return this._rand(rt)},o.prototype._rand=function(rt){if(this.rand.getBytes)return this.rand.getBytes(rt);for(var nt=new Uint8Array(rt),it=0;it=0);return st},et.prototype._randrange=function(rt,nt){var it=nt.sub(rt);return rt.add(this._randbelow(it))},et.prototype.test=function(rt,nt,it){var st=rt.bitLength(),at=a.mont(rt),lt=new a(1).toRed(at);nt||(nt=Math.max(1,st/48|0));for(var ht=rt.subn(1),vt=0;!ht.testn(vt);vt++);for(var gt=rt.shrn(vt),wt=ht.toRed(at),ut=!0;nt>0;nt--){var pt=this._randrange(new a(2),ht);it&&it(pt);var Et=pt.toRed(at).redPow(gt);if(!(Et.cmp(lt)===0||Et.cmp(wt)===0)){for(var yt=1;yt0;nt--){var wt=this._randrange(new a(2),lt),ut=rt.gcd(wt);if(ut.cmpn(1)!==0)return ut;var pt=wt.toRed(st).redPow(vt);if(!(pt.cmp(at)===0||pt.cmp(gt)===0)){for(var Et=1;Etyt;)kt.ishrn(1);if(kt.isEven()&&kt.iadd(nt),kt.testn(1)||kt.iadd(it),bt.cmp(it)){if(!bt.cmp(st))for(;kt.mod(at).cmp(lt);)kt.iadd(vt)}else for(;kt.mod(et).cmp(ht);)kt.iadd(vt);if(It=kt.shrn(1),ut(It)&&ut(kt)&&pt(It)&&pt(kt)&&rt.test(It)&&rt.test(kt))return kt}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var a=bnExports$2,o=requireMr(),et=new o,tt=new a(24),rt=new a(11),nt=new a(10),it=new a(3),st=new a(7),at=requireGeneratePrime(),lt=browserExports;dh=ut;function ht(Et,yt){return yt=yt||"utf8",Buffer.isBuffer(Et)||(Et=new Buffer(Et,yt)),this._pub=new a(Et),this}function vt(Et,yt){return yt=yt||"utf8",Buffer.isBuffer(Et)||(Et=new Buffer(Et,yt)),this._priv=new a(Et),this}var gt={};function wt(Et,yt){var bt=yt.toString("hex"),kt=[bt,Et.toString(16)].join("_");if(kt in gt)return gt[kt];var It=0;if(Et.isEven()||!at.simpleSieve||!at.fermatTest(Et)||!et.test(Et))return It+=1,bt==="02"||bt==="05"?It+=8:It+=4,gt[kt]=It,It;et.test(Et.shrn(1))||(It+=2);var Ot;switch(bt){case"02":Et.mod(tt).cmp(rt)&&(It+=8);break;case"05":Ot=Et.mod(nt),Ot.cmp(it)&&Ot.cmp(st)&&(It+=8);break;default:It+=4}return gt[kt]=It,It}function ut(Et,yt,bt){this.setGenerator(yt),this.__prime=new a(Et),this._prime=a.mont(this.__prime),this._primeLen=Et.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,bt?(this.setPublicKey=ht,this.setPrivateKey=vt):this._primeCode=8}Object.defineProperty(ut.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=wt(this.__prime,this.__gen)),this._primeCode}}),ut.prototype.generateKeys=function(){return this._priv||(this._priv=new a(lt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},ut.prototype.computeSecret=function(Et){Et=new a(Et),Et=Et.toRed(this._prime);var yt=Et.redPow(this._priv).fromRed(),bt=new Buffer(yt.toArray()),kt=this.getPrime();if(bt.length0?ct:xt},nt.min=function(ct,xt){return ct.cmp(xt)<0?ct:xt},nt.prototype._init=function(ct,xt,St){if(typeof ct=="number")return this._initNumber(ct,xt,St);if(typeof ct=="object")return this._initArray(ct,xt,St);xt==="hex"&&(xt=16),tt(xt===(xt|0)&&xt>=2&&xt<=36),ct=ct.toString().replace(/\s+/g,"");var Mt=0;ct[0]==="-"&&(Mt++,this.negative=1),Mt=0;Mt-=3)Tt=ct[Mt]|ct[Mt-1]<<8|ct[Mt-2]<<16,this.words[$t]|=Tt<>>26-At&67108863,At+=24,At>=26&&(At-=26,$t++);else if(St==="le")for(Mt=0,$t=0;Mt>>26-At&67108863,At+=24,At>=26&&(At-=26,$t++);return this._strip()};function st(Bt,ct){var xt=Bt.charCodeAt(ct);if(xt>=48&&xt<=57)return xt-48;if(xt>=65&&xt<=70)return xt-55;if(xt>=97&&xt<=102)return xt-87;tt(!1,"Invalid character in "+Bt)}function at(Bt,ct,xt){var St=st(Bt,xt);return xt-1>=ct&&(St|=st(Bt,xt-1)<<4),St}nt.prototype._parseHex=function(ct,xt,St){this.length=Math.ceil((ct.length-xt)/6),this.words=new Array(this.length);for(var Mt=0;Mt=xt;Mt-=2)At=at(ct,xt,Mt)<<$t,this.words[Tt]|=At&67108863,$t>=18?($t-=18,Tt+=1,this.words[Tt]|=At>>>26):$t+=8;else{var Pt=ct.length-xt;for(Mt=Pt%2===0?xt+1:xt;Mt=18?($t-=18,Tt+=1,this.words[Tt]|=At>>>26):$t+=8}this._strip()};function lt(Bt,ct,xt,St){for(var Mt=0,$t=0,Tt=Math.min(Bt.length,xt),At=ct;At=49?$t=Pt-49+10:Pt>=17?$t=Pt-17+10:$t=Pt,tt(Pt>=0&&$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},nt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{nt.prototype[Symbol.for("nodejs.util.inspect.custom")]=vt}catch{nt.prototype.inspect=vt}else nt.prototype.inspect=vt;function vt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],wt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ut=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];nt.prototype.toString=function(ct,xt){ct=ct||10,xt=xt|0||1;var St;if(ct===16||ct==="hex"){St="";for(var Mt=0,$t=0,Tt=0;Tt>>24-Mt&16777215,Mt+=2,Mt>=26&&(Mt-=26,Tt--),$t!==0||Tt!==this.length-1?St=gt[6-Pt.length]+Pt+St:St=Pt+St}for($t!==0&&(St=$t.toString(16)+St);St.length%xt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}if(ct===(ct|0)&&ct>=2&&ct<=36){var mt=wt[ct],Ft=ut[ct];St="";var Qt=this.clone();for(Qt.negative=0;!Qt.isZero();){var cr=Qt.modrn(Ft).toString(ct);Qt=Qt.idivn(Ft),Qt.isZero()?St=cr+St:St=gt[mt-cr.length]+cr+St}for(this.isZero()&&(St="0"+St);St.length%xt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}tt(!1,"Base should be between 2 and 36")},nt.prototype.toNumber=function(){var ct=this.words[0];return this.length===2?ct+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ct+=4503599627370496+this.words[1]*67108864:this.length>2&&tt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ct:ct},nt.prototype.toJSON=function(){return this.toString(16,2)},it&&(nt.prototype.toBuffer=function(ct,xt){return this.toArrayLike(it,ct,xt)}),nt.prototype.toArray=function(ct,xt){return this.toArrayLike(Array,ct,xt)};var pt=function(ct,xt){return ct.allocUnsafe?ct.allocUnsafe(xt):new ct(xt)};nt.prototype.toArrayLike=function(ct,xt,St){this._strip();var Mt=this.byteLength(),$t=St||Math.max(1,Mt);tt(Mt<=$t,"byte array longer than desired length"),tt($t>0,"Requested array length <= 0");var Tt=pt(ct,$t),At=xt==="le"?"LE":"BE";return this["_toArrayLike"+At](Tt,Mt),Tt},nt.prototype._toArrayLikeLE=function(ct,xt){for(var St=0,Mt=0,$t=0,Tt=0;$t>8&255),St>16&255),Tt===6?(St>24&255),Mt=0,Tt=0):(Mt=At>>>24,Tt+=2)}if(St=0&&(ct[St--]=At>>8&255),St>=0&&(ct[St--]=At>>16&255),Tt===6?(St>=0&&(ct[St--]=At>>24&255),Mt=0,Tt=0):(Mt=At>>>24,Tt+=2)}if(St>=0)for(ct[St--]=Mt;St>=0;)ct[St--]=0},Math.clz32?nt.prototype._countBits=function(ct){return 32-Math.clz32(ct)}:nt.prototype._countBits=function(ct){var xt=ct,St=0;return xt>=4096&&(St+=13,xt>>>=13),xt>=64&&(St+=7,xt>>>=7),xt>=8&&(St+=4,xt>>>=4),xt>=2&&(St+=2,xt>>>=2),St+xt},nt.prototype._zeroBits=function(ct){if(ct===0)return 26;var xt=ct,St=0;return xt&8191||(St+=13,xt>>>=13),xt&127||(St+=7,xt>>>=7),xt&15||(St+=4,xt>>>=4),xt&3||(St+=2,xt>>>=2),xt&1||St++,St},nt.prototype.bitLength=function(){var ct=this.words[this.length-1],xt=this._countBits(ct);return(this.length-1)*26+xt};function Et(Bt){for(var ct=new Array(Bt.bitLength()),xt=0;xt>>Mt&1}return ct}nt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ct=0,xt=0;xtct.length?this.clone().ior(ct):ct.clone().ior(this)},nt.prototype.uor=function(ct){return this.length>ct.length?this.clone().iuor(ct):ct.clone().iuor(this)},nt.prototype.iuand=function(ct){var xt;this.length>ct.length?xt=ct:xt=this;for(var St=0;Stct.length?this.clone().iand(ct):ct.clone().iand(this)},nt.prototype.uand=function(ct){return this.length>ct.length?this.clone().iuand(ct):ct.clone().iuand(this)},nt.prototype.iuxor=function(ct){var xt,St;this.length>ct.length?(xt=this,St=ct):(xt=ct,St=this);for(var Mt=0;Mtct.length?this.clone().ixor(ct):ct.clone().ixor(this)},nt.prototype.uxor=function(ct){return this.length>ct.length?this.clone().iuxor(ct):ct.clone().iuxor(this)},nt.prototype.inotn=function(ct){tt(typeof ct=="number"&&ct>=0);var xt=Math.ceil(ct/26)|0,St=ct%26;this._expand(xt),St>0&&xt--;for(var Mt=0;Mt0&&(this.words[Mt]=~this.words[Mt]&67108863>>26-St),this._strip()},nt.prototype.notn=function(ct){return this.clone().inotn(ct)},nt.prototype.setn=function(ct,xt){tt(typeof ct=="number"&&ct>=0);var St=ct/26|0,Mt=ct%26;return this._expand(St+1),xt?this.words[St]=this.words[St]|1<ct.length?(St=this,Mt=ct):(St=ct,Mt=this);for(var $t=0,Tt=0;Tt>>26;for(;$t!==0&&Tt>>26;if(this.length=St.length,$t!==0)this.words[this.length]=$t,this.length++;else if(St!==this)for(;Ttct.length?this.clone().iadd(ct):ct.clone().iadd(this)},nt.prototype.isub=function(ct){if(ct.negative!==0){ct.negative=0;var xt=this.iadd(ct);return ct.negative=1,xt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ct),this.negative=1,this._normSign();var St=this.cmp(ct);if(St===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Mt,$t;St>0?(Mt=this,$t=ct):(Mt=ct,$t=this);for(var Tt=0,At=0;At<$t.length;At++)xt=(Mt.words[At]|0)-($t.words[At]|0)+Tt,Tt=xt>>26,this.words[At]=xt&67108863;for(;Tt!==0&&At>26,this.words[At]=xt&67108863;if(Tt===0&&At>>26,Qt=Pt&67108863,cr=Math.min(mt,ct.length-1),Gt=Math.max(0,mt-Bt.length+1);Gt<=cr;Gt++){var Zt=mt-Gt|0;Mt=Bt.words[Zt]|0,$t=ct.words[Gt]|0,Tt=Mt*$t+Qt,Ft+=Tt/67108864|0,Qt=Tt&67108863}xt.words[mt]=Qt|0,Pt=Ft|0}return Pt!==0?xt.words[mt]=Pt|0:xt.length--,xt._strip()}var bt=function(ct,xt,St){var Mt=ct.words,$t=xt.words,Tt=St.words,At=0,Pt,mt,Ft,Qt=Mt[0]|0,cr=Qt&8191,Gt=Qt>>>13,Zt=Mt[1]|0,Yt=Zt&8191,ar=Zt>>>13,gr=Mt[2]|0,Jt=gr&8191,Xt=gr>>>13,Sr=Mt[3]|0,br=Sr&8191,Or=Sr>>>13,Zr=Mt[4]|0,Lr=Zr&8191,yr=Zr>>>13,pr=Mt[5]|0,Pr=pr&8191,Cr=pr>>>13,Jr=Mt[6]|0,Hr=Jr&8191,ur=Jr>>>13,wr=Mt[7]|0,Rr=wr&8191,Kt=wr>>>13,Lt=Mt[8]|0,Ut=Lt&8191,rr=Lt>>>13,vr=Mt[9]|0,kr=vr&8191,Tr=vr>>>13,nn=$t[0]|0,cn=nn&8191,en=nn>>>13,kn=$t[1]|0,sn=kn&8191,yn=kn>>>13,ss=$t[2]|0,Fn=ss&8191,wn=ss>>>13,ls=$t[3]|0,Bn=ls&8191,gn=ls>>>13,rs=$t[4]|0,Rn=rs&8191,xn=rs>>>13,os=$t[5]|0,Dn=os&8191,un=os>>>13,fs=$t[6]|0,Wt=fs&8191,tr=fs>>>13,nr=$t[7]|0,Dt=nr&8191,ir=nr>>>13,Ar=$t[8]|0,$r=Ar&8191,Br=Ar>>>13,Gr=$t[9]|0,Qr=Gr&8191,Vr=Gr>>>13;St.negative=ct.negative^xt.negative,St.length=19,Pt=Math.imul(cr,cn),mt=Math.imul(cr,en),mt=mt+Math.imul(Gt,cn)|0,Ft=Math.imul(Gt,en);var Un=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Un>>>26)|0,Un&=67108863,Pt=Math.imul(Yt,cn),mt=Math.imul(Yt,en),mt=mt+Math.imul(ar,cn)|0,Ft=Math.imul(ar,en),Pt=Pt+Math.imul(cr,sn)|0,mt=mt+Math.imul(cr,yn)|0,mt=mt+Math.imul(Gt,sn)|0,Ft=Ft+Math.imul(Gt,yn)|0;var ln=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Pt=Math.imul(Jt,cn),mt=Math.imul(Jt,en),mt=mt+Math.imul(Xt,cn)|0,Ft=Math.imul(Xt,en),Pt=Pt+Math.imul(Yt,sn)|0,mt=mt+Math.imul(Yt,yn)|0,mt=mt+Math.imul(ar,sn)|0,Ft=Ft+Math.imul(ar,yn)|0,Pt=Pt+Math.imul(cr,Fn)|0,mt=mt+Math.imul(cr,wn)|0,mt=mt+Math.imul(Gt,Fn)|0,Ft=Ft+Math.imul(Gt,wn)|0;var En=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(En>>>26)|0,En&=67108863,Pt=Math.imul(br,cn),mt=Math.imul(br,en),mt=mt+Math.imul(Or,cn)|0,Ft=Math.imul(Or,en),Pt=Pt+Math.imul(Jt,sn)|0,mt=mt+Math.imul(Jt,yn)|0,mt=mt+Math.imul(Xt,sn)|0,Ft=Ft+Math.imul(Xt,yn)|0,Pt=Pt+Math.imul(Yt,Fn)|0,mt=mt+Math.imul(Yt,wn)|0,mt=mt+Math.imul(ar,Fn)|0,Ft=Ft+Math.imul(ar,wn)|0,Pt=Pt+Math.imul(cr,Bn)|0,mt=mt+Math.imul(cr,gn)|0,mt=mt+Math.imul(Gt,Bn)|0,Ft=Ft+Math.imul(Gt,gn)|0;var $n=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(Lr,cn),mt=Math.imul(Lr,en),mt=mt+Math.imul(yr,cn)|0,Ft=Math.imul(yr,en),Pt=Pt+Math.imul(br,sn)|0,mt=mt+Math.imul(br,yn)|0,mt=mt+Math.imul(Or,sn)|0,Ft=Ft+Math.imul(Or,yn)|0,Pt=Pt+Math.imul(Jt,Fn)|0,mt=mt+Math.imul(Jt,wn)|0,mt=mt+Math.imul(Xt,Fn)|0,Ft=Ft+Math.imul(Xt,wn)|0,Pt=Pt+Math.imul(Yt,Bn)|0,mt=mt+Math.imul(Yt,gn)|0,mt=mt+Math.imul(ar,Bn)|0,Ft=Ft+Math.imul(ar,gn)|0,Pt=Pt+Math.imul(cr,Rn)|0,mt=mt+Math.imul(cr,xn)|0,mt=mt+Math.imul(Gt,Rn)|0,Ft=Ft+Math.imul(Gt,xn)|0;var Mn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,Pt=Math.imul(Pr,cn),mt=Math.imul(Pr,en),mt=mt+Math.imul(Cr,cn)|0,Ft=Math.imul(Cr,en),Pt=Pt+Math.imul(Lr,sn)|0,mt=mt+Math.imul(Lr,yn)|0,mt=mt+Math.imul(yr,sn)|0,Ft=Ft+Math.imul(yr,yn)|0,Pt=Pt+Math.imul(br,Fn)|0,mt=mt+Math.imul(br,wn)|0,mt=mt+Math.imul(Or,Fn)|0,Ft=Ft+Math.imul(Or,wn)|0,Pt=Pt+Math.imul(Jt,Bn)|0,mt=mt+Math.imul(Jt,gn)|0,mt=mt+Math.imul(Xt,Bn)|0,Ft=Ft+Math.imul(Xt,gn)|0,Pt=Pt+Math.imul(Yt,Rn)|0,mt=mt+Math.imul(Yt,xn)|0,mt=mt+Math.imul(ar,Rn)|0,Ft=Ft+Math.imul(ar,xn)|0,Pt=Pt+Math.imul(cr,Dn)|0,mt=mt+Math.imul(cr,un)|0,mt=mt+Math.imul(Gt,Dn)|0,Ft=Ft+Math.imul(Gt,un)|0;var Tn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(Hr,cn),mt=Math.imul(Hr,en),mt=mt+Math.imul(ur,cn)|0,Ft=Math.imul(ur,en),Pt=Pt+Math.imul(Pr,sn)|0,mt=mt+Math.imul(Pr,yn)|0,mt=mt+Math.imul(Cr,sn)|0,Ft=Ft+Math.imul(Cr,yn)|0,Pt=Pt+Math.imul(Lr,Fn)|0,mt=mt+Math.imul(Lr,wn)|0,mt=mt+Math.imul(yr,Fn)|0,Ft=Ft+Math.imul(yr,wn)|0,Pt=Pt+Math.imul(br,Bn)|0,mt=mt+Math.imul(br,gn)|0,mt=mt+Math.imul(Or,Bn)|0,Ft=Ft+Math.imul(Or,gn)|0,Pt=Pt+Math.imul(Jt,Rn)|0,mt=mt+Math.imul(Jt,xn)|0,mt=mt+Math.imul(Xt,Rn)|0,Ft=Ft+Math.imul(Xt,xn)|0,Pt=Pt+Math.imul(Yt,Dn)|0,mt=mt+Math.imul(Yt,un)|0,mt=mt+Math.imul(ar,Dn)|0,Ft=Ft+Math.imul(ar,un)|0,Pt=Pt+Math.imul(cr,Wt)|0,mt=mt+Math.imul(cr,tr)|0,mt=mt+Math.imul(Gt,Wt)|0,Ft=Ft+Math.imul(Gt,tr)|0;var An=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(Rr,cn),mt=Math.imul(Rr,en),mt=mt+Math.imul(Kt,cn)|0,Ft=Math.imul(Kt,en),Pt=Pt+Math.imul(Hr,sn)|0,mt=mt+Math.imul(Hr,yn)|0,mt=mt+Math.imul(ur,sn)|0,Ft=Ft+Math.imul(ur,yn)|0,Pt=Pt+Math.imul(Pr,Fn)|0,mt=mt+Math.imul(Pr,wn)|0,mt=mt+Math.imul(Cr,Fn)|0,Ft=Ft+Math.imul(Cr,wn)|0,Pt=Pt+Math.imul(Lr,Bn)|0,mt=mt+Math.imul(Lr,gn)|0,mt=mt+Math.imul(yr,Bn)|0,Ft=Ft+Math.imul(yr,gn)|0,Pt=Pt+Math.imul(br,Rn)|0,mt=mt+Math.imul(br,xn)|0,mt=mt+Math.imul(Or,Rn)|0,Ft=Ft+Math.imul(Or,xn)|0,Pt=Pt+Math.imul(Jt,Dn)|0,mt=mt+Math.imul(Jt,un)|0,mt=mt+Math.imul(Xt,Dn)|0,Ft=Ft+Math.imul(Xt,un)|0,Pt=Pt+Math.imul(Yt,Wt)|0,mt=mt+Math.imul(Yt,tr)|0,mt=mt+Math.imul(ar,Wt)|0,Ft=Ft+Math.imul(ar,tr)|0,Pt=Pt+Math.imul(cr,Dt)|0,mt=mt+Math.imul(cr,ir)|0,mt=mt+Math.imul(Gt,Dt)|0,Ft=Ft+Math.imul(Gt,ir)|0;var Sn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Pt=Math.imul(Ut,cn),mt=Math.imul(Ut,en),mt=mt+Math.imul(rr,cn)|0,Ft=Math.imul(rr,en),Pt=Pt+Math.imul(Rr,sn)|0,mt=mt+Math.imul(Rr,yn)|0,mt=mt+Math.imul(Kt,sn)|0,Ft=Ft+Math.imul(Kt,yn)|0,Pt=Pt+Math.imul(Hr,Fn)|0,mt=mt+Math.imul(Hr,wn)|0,mt=mt+Math.imul(ur,Fn)|0,Ft=Ft+Math.imul(ur,wn)|0,Pt=Pt+Math.imul(Pr,Bn)|0,mt=mt+Math.imul(Pr,gn)|0,mt=mt+Math.imul(Cr,Bn)|0,Ft=Ft+Math.imul(Cr,gn)|0,Pt=Pt+Math.imul(Lr,Rn)|0,mt=mt+Math.imul(Lr,xn)|0,mt=mt+Math.imul(yr,Rn)|0,Ft=Ft+Math.imul(yr,xn)|0,Pt=Pt+Math.imul(br,Dn)|0,mt=mt+Math.imul(br,un)|0,mt=mt+Math.imul(Or,Dn)|0,Ft=Ft+Math.imul(Or,un)|0,Pt=Pt+Math.imul(Jt,Wt)|0,mt=mt+Math.imul(Jt,tr)|0,mt=mt+Math.imul(Xt,Wt)|0,Ft=Ft+Math.imul(Xt,tr)|0,Pt=Pt+Math.imul(Yt,Dt)|0,mt=mt+Math.imul(Yt,ir)|0,mt=mt+Math.imul(ar,Dt)|0,Ft=Ft+Math.imul(ar,ir)|0,Pt=Pt+Math.imul(cr,$r)|0,mt=mt+Math.imul(cr,Br)|0,mt=mt+Math.imul(Gt,$r)|0,Ft=Ft+Math.imul(Gt,Br)|0;var Pn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(kr,cn),mt=Math.imul(kr,en),mt=mt+Math.imul(Tr,cn)|0,Ft=Math.imul(Tr,en),Pt=Pt+Math.imul(Ut,sn)|0,mt=mt+Math.imul(Ut,yn)|0,mt=mt+Math.imul(rr,sn)|0,Ft=Ft+Math.imul(rr,yn)|0,Pt=Pt+Math.imul(Rr,Fn)|0,mt=mt+Math.imul(Rr,wn)|0,mt=mt+Math.imul(Kt,Fn)|0,Ft=Ft+Math.imul(Kt,wn)|0,Pt=Pt+Math.imul(Hr,Bn)|0,mt=mt+Math.imul(Hr,gn)|0,mt=mt+Math.imul(ur,Bn)|0,Ft=Ft+Math.imul(ur,gn)|0,Pt=Pt+Math.imul(Pr,Rn)|0,mt=mt+Math.imul(Pr,xn)|0,mt=mt+Math.imul(Cr,Rn)|0,Ft=Ft+Math.imul(Cr,xn)|0,Pt=Pt+Math.imul(Lr,Dn)|0,mt=mt+Math.imul(Lr,un)|0,mt=mt+Math.imul(yr,Dn)|0,Ft=Ft+Math.imul(yr,un)|0,Pt=Pt+Math.imul(br,Wt)|0,mt=mt+Math.imul(br,tr)|0,mt=mt+Math.imul(Or,Wt)|0,Ft=Ft+Math.imul(Or,tr)|0,Pt=Pt+Math.imul(Jt,Dt)|0,mt=mt+Math.imul(Jt,ir)|0,mt=mt+Math.imul(Xt,Dt)|0,Ft=Ft+Math.imul(Xt,ir)|0,Pt=Pt+Math.imul(Yt,$r)|0,mt=mt+Math.imul(Yt,Br)|0,mt=mt+Math.imul(ar,$r)|0,Ft=Ft+Math.imul(ar,Br)|0,Pt=Pt+Math.imul(cr,Qr)|0,mt=mt+Math.imul(cr,Vr)|0,mt=mt+Math.imul(Gt,Qr)|0,Ft=Ft+Math.imul(Gt,Vr)|0;var hn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(kr,sn),mt=Math.imul(kr,yn),mt=mt+Math.imul(Tr,sn)|0,Ft=Math.imul(Tr,yn),Pt=Pt+Math.imul(Ut,Fn)|0,mt=mt+Math.imul(Ut,wn)|0,mt=mt+Math.imul(rr,Fn)|0,Ft=Ft+Math.imul(rr,wn)|0,Pt=Pt+Math.imul(Rr,Bn)|0,mt=mt+Math.imul(Rr,gn)|0,mt=mt+Math.imul(Kt,Bn)|0,Ft=Ft+Math.imul(Kt,gn)|0,Pt=Pt+Math.imul(Hr,Rn)|0,mt=mt+Math.imul(Hr,xn)|0,mt=mt+Math.imul(ur,Rn)|0,Ft=Ft+Math.imul(ur,xn)|0,Pt=Pt+Math.imul(Pr,Dn)|0,mt=mt+Math.imul(Pr,un)|0,mt=mt+Math.imul(Cr,Dn)|0,Ft=Ft+Math.imul(Cr,un)|0,Pt=Pt+Math.imul(Lr,Wt)|0,mt=mt+Math.imul(Lr,tr)|0,mt=mt+Math.imul(yr,Wt)|0,Ft=Ft+Math.imul(yr,tr)|0,Pt=Pt+Math.imul(br,Dt)|0,mt=mt+Math.imul(br,ir)|0,mt=mt+Math.imul(Or,Dt)|0,Ft=Ft+Math.imul(Or,ir)|0,Pt=Pt+Math.imul(Jt,$r)|0,mt=mt+Math.imul(Jt,Br)|0,mt=mt+Math.imul(Xt,$r)|0,Ft=Ft+Math.imul(Xt,Br)|0,Pt=Pt+Math.imul(Yt,Qr)|0,mt=mt+Math.imul(Yt,Vr)|0,mt=mt+Math.imul(ar,Qr)|0,Ft=Ft+Math.imul(ar,Vr)|0;var vn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(vn>>>26)|0,vn&=67108863,Pt=Math.imul(kr,Fn),mt=Math.imul(kr,wn),mt=mt+Math.imul(Tr,Fn)|0,Ft=Math.imul(Tr,wn),Pt=Pt+Math.imul(Ut,Bn)|0,mt=mt+Math.imul(Ut,gn)|0,mt=mt+Math.imul(rr,Bn)|0,Ft=Ft+Math.imul(rr,gn)|0,Pt=Pt+Math.imul(Rr,Rn)|0,mt=mt+Math.imul(Rr,xn)|0,mt=mt+Math.imul(Kt,Rn)|0,Ft=Ft+Math.imul(Kt,xn)|0,Pt=Pt+Math.imul(Hr,Dn)|0,mt=mt+Math.imul(Hr,un)|0,mt=mt+Math.imul(ur,Dn)|0,Ft=Ft+Math.imul(ur,un)|0,Pt=Pt+Math.imul(Pr,Wt)|0,mt=mt+Math.imul(Pr,tr)|0,mt=mt+Math.imul(Cr,Wt)|0,Ft=Ft+Math.imul(Cr,tr)|0,Pt=Pt+Math.imul(Lr,Dt)|0,mt=mt+Math.imul(Lr,ir)|0,mt=mt+Math.imul(yr,Dt)|0,Ft=Ft+Math.imul(yr,ir)|0,Pt=Pt+Math.imul(br,$r)|0,mt=mt+Math.imul(br,Br)|0,mt=mt+Math.imul(Or,$r)|0,Ft=Ft+Math.imul(Or,Br)|0,Pt=Pt+Math.imul(Jt,Qr)|0,mt=mt+Math.imul(Jt,Vr)|0,mt=mt+Math.imul(Xt,Qr)|0,Ft=Ft+Math.imul(Xt,Vr)|0;var fn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Pt=Math.imul(kr,Bn),mt=Math.imul(kr,gn),mt=mt+Math.imul(Tr,Bn)|0,Ft=Math.imul(Tr,gn),Pt=Pt+Math.imul(Ut,Rn)|0,mt=mt+Math.imul(Ut,xn)|0,mt=mt+Math.imul(rr,Rn)|0,Ft=Ft+Math.imul(rr,xn)|0,Pt=Pt+Math.imul(Rr,Dn)|0,mt=mt+Math.imul(Rr,un)|0,mt=mt+Math.imul(Kt,Dn)|0,Ft=Ft+Math.imul(Kt,un)|0,Pt=Pt+Math.imul(Hr,Wt)|0,mt=mt+Math.imul(Hr,tr)|0,mt=mt+Math.imul(ur,Wt)|0,Ft=Ft+Math.imul(ur,tr)|0,Pt=Pt+Math.imul(Pr,Dt)|0,mt=mt+Math.imul(Pr,ir)|0,mt=mt+Math.imul(Cr,Dt)|0,Ft=Ft+Math.imul(Cr,ir)|0,Pt=Pt+Math.imul(Lr,$r)|0,mt=mt+Math.imul(Lr,Br)|0,mt=mt+Math.imul(yr,$r)|0,Ft=Ft+Math.imul(yr,Br)|0,Pt=Pt+Math.imul(br,Qr)|0,mt=mt+Math.imul(br,Vr)|0,mt=mt+Math.imul(Or,Qr)|0,Ft=Ft+Math.imul(Or,Vr)|0;var dn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Pt=Math.imul(kr,Rn),mt=Math.imul(kr,xn),mt=mt+Math.imul(Tr,Rn)|0,Ft=Math.imul(Tr,xn),Pt=Pt+Math.imul(Ut,Dn)|0,mt=mt+Math.imul(Ut,un)|0,mt=mt+Math.imul(rr,Dn)|0,Ft=Ft+Math.imul(rr,un)|0,Pt=Pt+Math.imul(Rr,Wt)|0,mt=mt+Math.imul(Rr,tr)|0,mt=mt+Math.imul(Kt,Wt)|0,Ft=Ft+Math.imul(Kt,tr)|0,Pt=Pt+Math.imul(Hr,Dt)|0,mt=mt+Math.imul(Hr,ir)|0,mt=mt+Math.imul(ur,Dt)|0,Ft=Ft+Math.imul(ur,ir)|0,Pt=Pt+Math.imul(Pr,$r)|0,mt=mt+Math.imul(Pr,Br)|0,mt=mt+Math.imul(Cr,$r)|0,Ft=Ft+Math.imul(Cr,Br)|0,Pt=Pt+Math.imul(Lr,Qr)|0,mt=mt+Math.imul(Lr,Vr)|0,mt=mt+Math.imul(yr,Qr)|0,Ft=Ft+Math.imul(yr,Vr)|0;var pn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(kr,Dn),mt=Math.imul(kr,un),mt=mt+Math.imul(Tr,Dn)|0,Ft=Math.imul(Tr,un),Pt=Pt+Math.imul(Ut,Wt)|0,mt=mt+Math.imul(Ut,tr)|0,mt=mt+Math.imul(rr,Wt)|0,Ft=Ft+Math.imul(rr,tr)|0,Pt=Pt+Math.imul(Rr,Dt)|0,mt=mt+Math.imul(Rr,ir)|0,mt=mt+Math.imul(Kt,Dt)|0,Ft=Ft+Math.imul(Kt,ir)|0,Pt=Pt+Math.imul(Hr,$r)|0,mt=mt+Math.imul(Hr,Br)|0,mt=mt+Math.imul(ur,$r)|0,Ft=Ft+Math.imul(ur,Br)|0,Pt=Pt+Math.imul(Pr,Qr)|0,mt=mt+Math.imul(Pr,Vr)|0,mt=mt+Math.imul(Cr,Qr)|0,Ft=Ft+Math.imul(Cr,Vr)|0;var an=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(an>>>26)|0,an&=67108863,Pt=Math.imul(kr,Wt),mt=Math.imul(kr,tr),mt=mt+Math.imul(Tr,Wt)|0,Ft=Math.imul(Tr,tr),Pt=Pt+Math.imul(Ut,Dt)|0,mt=mt+Math.imul(Ut,ir)|0,mt=mt+Math.imul(rr,Dt)|0,Ft=Ft+Math.imul(rr,ir)|0,Pt=Pt+Math.imul(Rr,$r)|0,mt=mt+Math.imul(Rr,Br)|0,mt=mt+Math.imul(Kt,$r)|0,Ft=Ft+Math.imul(Kt,Br)|0,Pt=Pt+Math.imul(Hr,Qr)|0,mt=mt+Math.imul(Hr,Vr)|0,mt=mt+Math.imul(ur,Qr)|0,Ft=Ft+Math.imul(ur,Vr)|0;var Fr=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Pt=Math.imul(kr,Dt),mt=Math.imul(kr,ir),mt=mt+Math.imul(Tr,Dt)|0,Ft=Math.imul(Tr,ir),Pt=Pt+Math.imul(Ut,$r)|0,mt=mt+Math.imul(Ut,Br)|0,mt=mt+Math.imul(rr,$r)|0,Ft=Ft+Math.imul(rr,Br)|0,Pt=Pt+Math.imul(Rr,Qr)|0,mt=mt+Math.imul(Rr,Vr)|0,mt=mt+Math.imul(Kt,Qr)|0,Ft=Ft+Math.imul(Kt,Vr)|0;var Nr=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Pt=Math.imul(kr,$r),mt=Math.imul(kr,Br),mt=mt+Math.imul(Tr,$r)|0,Ft=Math.imul(Tr,Br),Pt=Pt+Math.imul(Ut,Qr)|0,mt=mt+Math.imul(Ut,Vr)|0,mt=mt+Math.imul(rr,Qr)|0,Ft=Ft+Math.imul(rr,Vr)|0;var Xr=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,Pt=Math.imul(kr,Qr),mt=Math.imul(kr,Vr),mt=mt+Math.imul(Tr,Qr)|0,Ft=Math.imul(Tr,Vr);var Ur=(At+Pt|0)+((mt&8191)<<13)|0;return At=(Ft+(mt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Tt[0]=Un,Tt[1]=ln,Tt[2]=En,Tt[3]=$n,Tt[4]=Mn,Tt[5]=Tn,Tt[6]=An,Tt[7]=Sn,Tt[8]=Pn,Tt[9]=hn,Tt[10]=vn,Tt[11]=fn,Tt[12]=dn,Tt[13]=pn,Tt[14]=an,Tt[15]=Fr,Tt[16]=Nr,Tt[17]=Xr,Tt[18]=Ur,At!==0&&(Tt[19]=At,St.length++),St};Math.imul||(bt=yt);function kt(Bt,ct,xt){xt.negative=ct.negative^Bt.negative,xt.length=Bt.length+ct.length;for(var St=0,Mt=0,$t=0;$t>>26)|0,Mt+=Tt>>>26,Tt&=67108863}xt.words[$t]=At,St=Tt,Tt=Mt}return St!==0?xt.words[$t]=St:xt.length--,xt._strip()}function It(Bt,ct,xt){return kt(Bt,ct,xt)}nt.prototype.mulTo=function(ct,xt){var St,Mt=this.length+ct.length;return this.length===10&&ct.length===10?St=bt(this,ct,xt):Mt<63?St=yt(this,ct,xt):Mt<1024?St=kt(this,ct,xt):St=It(this,ct,xt),St},nt.prototype.mul=function(ct){var xt=new nt(null);return xt.words=new Array(this.length+ct.length),this.mulTo(ct,xt)},nt.prototype.mulf=function(ct){var xt=new nt(null);return xt.words=new Array(this.length+ct.length),It(this,ct,xt)},nt.prototype.imul=function(ct){return this.clone().mulTo(ct,this)},nt.prototype.imuln=function(ct){var xt=ct<0;xt&&(ct=-ct),tt(typeof ct=="number"),tt(ct<67108864);for(var St=0,Mt=0;Mt>=26,St+=$t/67108864|0,St+=Tt>>>26,this.words[Mt]=Tt&67108863}return St!==0&&(this.words[Mt]=St,this.length++),xt?this.ineg():this},nt.prototype.muln=function(ct){return this.clone().imuln(ct)},nt.prototype.sqr=function(){return this.mul(this)},nt.prototype.isqr=function(){return this.imul(this.clone())},nt.prototype.pow=function(ct){var xt=Et(ct);if(xt.length===0)return new nt(1);for(var St=this,Mt=0;Mt=0);var xt=ct%26,St=(ct-xt)/26,Mt=67108863>>>26-xt<<26-xt,$t;if(xt!==0){var Tt=0;for($t=0;$t>>26-xt}Tt&&(this.words[$t]=Tt,this.length++)}if(St!==0){for($t=this.length-1;$t>=0;$t--)this.words[$t+St]=this.words[$t];for($t=0;$t=0);var Mt;xt?Mt=(xt-xt%26)/26:Mt=0;var $t=ct%26,Tt=Math.min((ct-$t)/26,this.length),At=67108863^67108863>>>$t<<$t,Pt=St;if(Mt-=Tt,Mt=Math.max(0,Mt),Pt){for(var mt=0;mtTt)for(this.length-=Tt,mt=0;mt=0&&(Ft!==0||mt>=Mt);mt--){var Qt=this.words[mt]|0;this.words[mt]=Ft<<26-$t|Qt>>>$t,Ft=Qt&At}return Pt&&Ft!==0&&(Pt.words[Pt.length++]=Ft),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},nt.prototype.ishrn=function(ct,xt,St){return tt(this.negative===0),this.iushrn(ct,xt,St)},nt.prototype.shln=function(ct){return this.clone().ishln(ct)},nt.prototype.ushln=function(ct){return this.clone().iushln(ct)},nt.prototype.shrn=function(ct){return this.clone().ishrn(ct)},nt.prototype.ushrn=function(ct){return this.clone().iushrn(ct)},nt.prototype.testn=function(ct){tt(typeof ct=="number"&&ct>=0);var xt=ct%26,St=(ct-xt)/26,Mt=1<=0);var xt=ct%26,St=(ct-xt)/26;if(tt(this.negative===0,"imaskn works only with positive numbers"),this.length<=St)return this;if(xt!==0&&St++,this.length=Math.min(St,this.length),xt!==0){var Mt=67108863^67108863>>>xt<=67108864;xt++)this.words[xt]-=67108864,xt===this.length-1?this.words[xt+1]=1:this.words[xt+1]++;return this.length=Math.max(this.length,xt+1),this},nt.prototype.isubn=function(ct){if(tt(typeof ct=="number"),tt(ct<67108864),ct<0)return this.iaddn(-ct);if(this.negative!==0)return this.negative=0,this.iaddn(ct),this.negative=1,this;if(this.words[0]-=ct,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var xt=0;xt>26)-(Pt/67108864|0),this.words[$t+St]=Tt&67108863}for(;$t>26,this.words[$t+St]=Tt&67108863;if(At===0)return this._strip();for(tt(At===-1),At=0,$t=0;$t>26,this.words[$t]=Tt&67108863;return this.negative=1,this._strip()},nt.prototype._wordDiv=function(ct,xt){var St=this.length-ct.length,Mt=this.clone(),$t=ct,Tt=$t.words[$t.length-1]|0,At=this._countBits(Tt);St=26-At,St!==0&&($t=$t.ushln(St),Mt.iushln(St),Tt=$t.words[$t.length-1]|0);var Pt=Mt.length-$t.length,mt;if(xt!=="mod"){mt=new nt(null),mt.length=Pt+1,mt.words=new Array(mt.length);for(var Ft=0;Ft=0;cr--){var Gt=(Mt.words[$t.length+cr]|0)*67108864+(Mt.words[$t.length+cr-1]|0);for(Gt=Math.min(Gt/Tt|0,67108863),Mt._ishlnsubmul($t,Gt,cr);Mt.negative!==0;)Gt--,Mt.negative=0,Mt._ishlnsubmul($t,1,cr),Mt.isZero()||(Mt.negative^=1);mt&&(mt.words[cr]=Gt)}return mt&&mt._strip(),Mt._strip(),xt!=="div"&&St!==0&&Mt.iushrn(St),{div:mt||null,mod:Mt}},nt.prototype.divmod=function(ct,xt,St){if(tt(!ct.isZero()),this.isZero())return{div:new nt(0),mod:new nt(0)};var Mt,$t,Tt;return this.negative!==0&&ct.negative===0?(Tt=this.neg().divmod(ct,xt),xt!=="mod"&&(Mt=Tt.div.neg()),xt!=="div"&&($t=Tt.mod.neg(),St&&$t.negative!==0&&$t.iadd(ct)),{div:Mt,mod:$t}):this.negative===0&&ct.negative!==0?(Tt=this.divmod(ct.neg(),xt),xt!=="mod"&&(Mt=Tt.div.neg()),{div:Mt,mod:Tt.mod}):this.negative&ct.negative?(Tt=this.neg().divmod(ct.neg(),xt),xt!=="div"&&($t=Tt.mod.neg(),St&&$t.negative!==0&&$t.isub(ct)),{div:Tt.div,mod:$t}):ct.length>this.length||this.cmp(ct)<0?{div:new nt(0),mod:this}:ct.length===1?xt==="div"?{div:this.divn(ct.words[0]),mod:null}:xt==="mod"?{div:null,mod:new nt(this.modrn(ct.words[0]))}:{div:this.divn(ct.words[0]),mod:new nt(this.modrn(ct.words[0]))}:this._wordDiv(ct,xt)},nt.prototype.div=function(ct){return this.divmod(ct,"div",!1).div},nt.prototype.mod=function(ct){return this.divmod(ct,"mod",!1).mod},nt.prototype.umod=function(ct){return this.divmod(ct,"mod",!0).mod},nt.prototype.divRound=function(ct){var xt=this.divmod(ct);if(xt.mod.isZero())return xt.div;var St=xt.div.negative!==0?xt.mod.isub(ct):xt.mod,Mt=ct.ushrn(1),$t=ct.andln(1),Tt=St.cmp(Mt);return Tt<0||$t===1&&Tt===0?xt.div:xt.div.negative!==0?xt.div.isubn(1):xt.div.iaddn(1)},nt.prototype.modrn=function(ct){var xt=ct<0;xt&&(ct=-ct),tt(ct<=67108863);for(var St=(1<<26)%ct,Mt=0,$t=this.length-1;$t>=0;$t--)Mt=(St*Mt+(this.words[$t]|0))%ct;return xt?-Mt:Mt},nt.prototype.modn=function(ct){return this.modrn(ct)},nt.prototype.idivn=function(ct){var xt=ct<0;xt&&(ct=-ct),tt(ct<=67108863);for(var St=0,Mt=this.length-1;Mt>=0;Mt--){var $t=(this.words[Mt]|0)+St*67108864;this.words[Mt]=$t/ct|0,St=$t%ct}return this._strip(),xt?this.ineg():this},nt.prototype.divn=function(ct){return this.clone().idivn(ct)},nt.prototype.egcd=function(ct){tt(ct.negative===0),tt(!ct.isZero());var xt=this,St=ct.clone();xt.negative!==0?xt=xt.umod(ct):xt=xt.clone();for(var Mt=new nt(1),$t=new nt(0),Tt=new nt(0),At=new nt(1),Pt=0;xt.isEven()&&St.isEven();)xt.iushrn(1),St.iushrn(1),++Pt;for(var mt=St.clone(),Ft=xt.clone();!xt.isZero();){for(var Qt=0,cr=1;!(xt.words[0]&cr)&&Qt<26;++Qt,cr<<=1);if(Qt>0)for(xt.iushrn(Qt);Qt-- >0;)(Mt.isOdd()||$t.isOdd())&&(Mt.iadd(mt),$t.isub(Ft)),Mt.iushrn(1),$t.iushrn(1);for(var Gt=0,Zt=1;!(St.words[0]&Zt)&&Gt<26;++Gt,Zt<<=1);if(Gt>0)for(St.iushrn(Gt);Gt-- >0;)(Tt.isOdd()||At.isOdd())&&(Tt.iadd(mt),At.isub(Ft)),Tt.iushrn(1),At.iushrn(1);xt.cmp(St)>=0?(xt.isub(St),Mt.isub(Tt),$t.isub(At)):(St.isub(xt),Tt.isub(Mt),At.isub($t))}return{a:Tt,b:At,gcd:St.iushln(Pt)}},nt.prototype._invmp=function(ct){tt(ct.negative===0),tt(!ct.isZero());var xt=this,St=ct.clone();xt.negative!==0?xt=xt.umod(ct):xt=xt.clone();for(var Mt=new nt(1),$t=new nt(0),Tt=St.clone();xt.cmpn(1)>0&&St.cmpn(1)>0;){for(var At=0,Pt=1;!(xt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(xt.iushrn(At);At-- >0;)Mt.isOdd()&&Mt.iadd(Tt),Mt.iushrn(1);for(var mt=0,Ft=1;!(St.words[0]&Ft)&&mt<26;++mt,Ft<<=1);if(mt>0)for(St.iushrn(mt);mt-- >0;)$t.isOdd()&&$t.iadd(Tt),$t.iushrn(1);xt.cmp(St)>=0?(xt.isub(St),Mt.isub($t)):(St.isub(xt),$t.isub(Mt))}var Qt;return xt.cmpn(1)===0?Qt=Mt:Qt=$t,Qt.cmpn(0)<0&&Qt.iadd(ct),Qt},nt.prototype.gcd=function(ct){if(this.isZero())return ct.abs();if(ct.isZero())return this.abs();var xt=this.clone(),St=ct.clone();xt.negative=0,St.negative=0;for(var Mt=0;xt.isEven()&&St.isEven();Mt++)xt.iushrn(1),St.iushrn(1);do{for(;xt.isEven();)xt.iushrn(1);for(;St.isEven();)St.iushrn(1);var $t=xt.cmp(St);if($t<0){var Tt=xt;xt=St,St=Tt}else if($t===0||St.cmpn(1)===0)break;xt.isub(St)}while(!0);return St.iushln(Mt)},nt.prototype.invm=function(ct){return this.egcd(ct).a.umod(ct)},nt.prototype.isEven=function(){return(this.words[0]&1)===0},nt.prototype.isOdd=function(){return(this.words[0]&1)===1},nt.prototype.andln=function(ct){return this.words[0]&ct},nt.prototype.bincn=function(ct){tt(typeof ct=="number");var xt=ct%26,St=(ct-xt)/26,Mt=1<>>26,At&=67108863,this.words[Tt]=At}return $t!==0&&(this.words[Tt]=$t,this.length++),this},nt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},nt.prototype.cmpn=function(ct){var xt=ct<0;if(this.negative!==0&&!xt)return-1;if(this.negative===0&&xt)return 1;this._strip();var St;if(this.length>1)St=1;else{xt&&(ct=-ct),tt(ct<=67108863,"Number is too big");var Mt=this.words[0]|0;St=Mt===ct?0:Mtct.length)return 1;if(this.length=0;St--){var Mt=this.words[St]|0,$t=ct.words[St]|0;if(Mt!==$t){Mt<$t?xt=-1:Mt>$t&&(xt=1);break}}return xt},nt.prototype.gtn=function(ct){return this.cmpn(ct)===1},nt.prototype.gt=function(ct){return this.cmp(ct)===1},nt.prototype.gten=function(ct){return this.cmpn(ct)>=0},nt.prototype.gte=function(ct){return this.cmp(ct)>=0},nt.prototype.ltn=function(ct){return this.cmpn(ct)===-1},nt.prototype.lt=function(ct){return this.cmp(ct)===-1},nt.prototype.lten=function(ct){return this.cmpn(ct)<=0},nt.prototype.lte=function(ct){return this.cmp(ct)<=0},nt.prototype.eqn=function(ct){return this.cmpn(ct)===0},nt.prototype.eq=function(ct){return this.cmp(ct)===0},nt.red=function(ct){return new qt(ct)},nt.prototype.toRed=function(ct){return tt(!this.red,"Already a number in reduction context"),tt(this.negative===0,"red works only with positives"),ct.convertTo(this)._forceRed(ct)},nt.prototype.fromRed=function(){return tt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},nt.prototype._forceRed=function(ct){return this.red=ct,this},nt.prototype.forceRed=function(ct){return tt(!this.red,"Already a number in reduction context"),this._forceRed(ct)},nt.prototype.redAdd=function(ct){return tt(this.red,"redAdd works only with red numbers"),this.red.add(this,ct)},nt.prototype.redIAdd=function(ct){return tt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ct)},nt.prototype.redSub=function(ct){return tt(this.red,"redSub works only with red numbers"),this.red.sub(this,ct)},nt.prototype.redISub=function(ct){return tt(this.red,"redISub works only with red numbers"),this.red.isub(this,ct)},nt.prototype.redShl=function(ct){return tt(this.red,"redShl works only with red numbers"),this.red.shl(this,ct)},nt.prototype.redMul=function(ct){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ct),this.red.mul(this,ct)},nt.prototype.redIMul=function(ct){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ct),this.red.imul(this,ct)},nt.prototype.redSqr=function(){return tt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},nt.prototype.redISqr=function(){return tt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},nt.prototype.redSqrt=function(){return tt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},nt.prototype.redInvm=function(){return tt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},nt.prototype.redNeg=function(){return tt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},nt.prototype.redPow=function(ct){return tt(this.red&&!ct.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ct)};var Ot={k256:null,p224:null,p192:null,p25519:null};function Nt(Bt,ct){this.name=Bt,this.p=new nt(ct,16),this.n=this.p.bitLength(),this.k=new nt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Nt.prototype._tmp=function(){var ct=new nt(null);return ct.words=new Array(Math.ceil(this.n/13)),ct},Nt.prototype.ireduce=function(ct){var xt=ct,St;do this.split(xt,this.tmp),xt=this.imulK(xt),xt=xt.iadd(this.tmp),St=xt.bitLength();while(St>this.n);var Mt=St0?xt.isub(this.p):xt.strip!==void 0?xt.strip():xt._strip(),xt},Nt.prototype.split=function(ct,xt){ct.iushrn(this.n,0,xt)},Nt.prototype.imulK=function(ct){return ct.imul(this.k)};function Vt(){Nt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}rt(Vt,Nt),Vt.prototype.split=function(ct,xt){for(var St=4194303,Mt=Math.min(ct.length,9),$t=0;$t>>22,Tt=At}Tt>>>=22,ct.words[$t-10]=Tt,Tt===0&&ct.length>10?ct.length-=10:ct.length-=9},Vt.prototype.imulK=function(ct){ct.words[ct.length]=0,ct.words[ct.length+1]=0,ct.length+=2;for(var xt=0,St=0;St>>=26,ct.words[St]=$t,xt=Mt}return xt!==0&&(ct.words[ct.length++]=xt),ct},nt._prime=function(ct){if(Ot[ct])return Ot[ct];var xt;if(ct==="k256")xt=new Vt;else if(ct==="p224")xt=new jt;else if(ct==="p192")xt=new zt;else if(ct==="p25519")xt=new or;else throw new Error("Unknown prime "+ct);return Ot[ct]=xt,xt};function qt(Bt){if(typeof Bt=="string"){var ct=nt._prime(Bt);this.m=ct.p,this.prime=ct}else tt(Bt.gtn(1),"modulus must be greater than 1"),this.m=Bt,this.prime=null}qt.prototype._verify1=function(ct){tt(ct.negative===0,"red works only with positives"),tt(ct.red,"red works only with red numbers")},qt.prototype._verify2=function(ct,xt){tt((ct.negative|xt.negative)===0,"red works only with positives"),tt(ct.red&&ct.red===xt.red,"red works only with red numbers")},qt.prototype.imod=function(ct){return this.prime?this.prime.ireduce(ct)._forceRed(this):(ht(ct,ct.umod(this.m)._forceRed(this)),ct)},qt.prototype.neg=function(ct){return ct.isZero()?ct.clone():this.m.sub(ct)._forceRed(this)},qt.prototype.add=function(ct,xt){this._verify2(ct,xt);var St=ct.add(xt);return St.cmp(this.m)>=0&&St.isub(this.m),St._forceRed(this)},qt.prototype.iadd=function(ct,xt){this._verify2(ct,xt);var St=ct.iadd(xt);return St.cmp(this.m)>=0&&St.isub(this.m),St},qt.prototype.sub=function(ct,xt){this._verify2(ct,xt);var St=ct.sub(xt);return St.cmpn(0)<0&&St.iadd(this.m),St._forceRed(this)},qt.prototype.isub=function(ct,xt){this._verify2(ct,xt);var St=ct.isub(xt);return St.cmpn(0)<0&&St.iadd(this.m),St},qt.prototype.shl=function(ct,xt){return this._verify1(ct),this.imod(ct.ushln(xt))},qt.prototype.imul=function(ct,xt){return this._verify2(ct,xt),this.imod(ct.imul(xt))},qt.prototype.mul=function(ct,xt){return this._verify2(ct,xt),this.imod(ct.mul(xt))},qt.prototype.isqr=function(ct){return this.imul(ct,ct.clone())},qt.prototype.sqr=function(ct){return this.mul(ct,ct)},qt.prototype.sqrt=function(ct){if(ct.isZero())return ct.clone();var xt=this.m.andln(3);if(tt(xt%2===1),xt===3){var St=this.m.add(new nt(1)).iushrn(2);return this.pow(ct,St)}for(var Mt=this.m.subn(1),$t=0;!Mt.isZero()&&Mt.andln(1)===0;)$t++,Mt.iushrn(1);tt(!Mt.isZero());var Tt=new nt(1).toRed(this),At=Tt.redNeg(),Pt=this.m.subn(1).iushrn(1),mt=this.m.bitLength();for(mt=new nt(2*mt*mt).toRed(this);this.pow(mt,Pt).cmp(At)!==0;)mt.redIAdd(At);for(var Ft=this.pow(mt,Mt),Qt=this.pow(ct,Mt.addn(1).iushrn(1)),cr=this.pow(ct,Mt),Gt=$t;cr.cmp(Tt)!==0;){for(var Zt=cr,Yt=0;Zt.cmp(Tt)!==0;Yt++)Zt=Zt.redSqr();tt(Yt=0;$t--){for(var Ft=xt.words[$t],Qt=mt-1;Qt>=0;Qt--){var cr=Ft>>Qt&1;if(Tt!==Mt[0]&&(Tt=this.sqr(Tt)),cr===0&&At===0){Pt=0;continue}At<<=1,At|=cr,Pt++,!(Pt!==St&&($t!==0||Qt!==0))&&(Tt=this.mul(Tt,Mt[At]),Pt=0,At=0)}mt=26}return Tt},qt.prototype.convertTo=function(ct){var xt=ct.umod(this.m);return xt===ct?xt.clone():xt},qt.prototype.convertFrom=function(ct){var xt=ct.clone();return xt.red=null,xt},nt.mont=function(ct){return new Rt(ct)};function Rt(Bt){qt.call(this,Bt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new nt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}rt(Rt,qt),Rt.prototype.convertTo=function(ct){return this.imod(ct.ushln(this.shift))},Rt.prototype.convertFrom=function(ct){var xt=this.imod(ct.mul(this.rinv));return xt.red=null,xt},Rt.prototype.imul=function(ct,xt){if(ct.isZero()||xt.isZero())return ct.words[0]=0,ct.length=1,ct;var St=ct.imul(xt),Mt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=St.isub(Mt).iushrn(this.shift),Tt=$t;return $t.cmp(this.m)>=0?Tt=$t.isub(this.m):$t.cmpn(0)<0&&(Tt=$t.iadd(this.m)),Tt._forceRed(this)},Rt.prototype.mul=function(ct,xt){if(ct.isZero()||xt.isZero())return new nt(0)._forceRed(this);var St=ct.mul(xt),Mt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=St.isub(Mt).iushrn(this.shift),Tt=$t;return $t.cmp(this.m)>=0?Tt=$t.isub(this.m):$t.cmpn(0)<0&&(Tt=$t.iadd(this.m)),Tt._forceRed(this)},Rt.prototype.invm=function(ct){var xt=this.imod(ct._invmp(this.m).mul(this.r2));return xt._forceRed(this)}})(a,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,BN$c=bnExports$1,randomBytes$1=browserExports;function blind(a){var o=getr(a),et=o.toRed(BN$c.mont(a.modulus)).redPow(new BN$c(a.publicExponent)).fromRed();return{blinder:et,unblinder:o.invm(a.modulus)}}function getr(a){var o=a.modulus.byteLength(),et;do et=new BN$c(randomBytes$1(o));while(et.cmp(a.modulus)>=0||!et.umod(a.prime1)||!et.umod(a.prime2));return et}function crt$2(a,o){var et=blind(o),tt=o.modulus.byteLength(),rt=new BN$c(a).mul(et.blinder).umod(o.modulus),nt=rt.toRed(BN$c.mont(o.prime1)),it=rt.toRed(BN$c.mont(o.prime2)),st=o.coefficient,at=o.prime1,lt=o.prime2,ht=nt.redPow(o.exponent1).fromRed(),vt=it.redPow(o.exponent2).fromRed(),gt=ht.isub(vt).imul(st).umod(at).imul(lt);return vt.iadd(gt).imul(et.unblinder).umod(o.modulus).toArrayLike(Buffer,"be",tt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$2={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$n={},utils$m={};(function(a){var o=a;function et(nt,it){if(Array.isArray(nt))return nt.slice();if(!nt)return[];var st=[];if(typeof nt!="string"){for(var at=0;at>8,vt=lt&255;ht?st.push(ht,vt):st.push(vt)}return st}o.toArray=et;function tt(nt){return nt.length===1?"0"+nt:nt}o.zero2=tt;function rt(nt){for(var it="",st=0;st(ut>>1)-1?yt=(ut>>1)-bt:yt=bt,pt.isubn(yt)):yt=0,wt[Et]=yt,pt.iushrn(1)}return wt}o.getNAF=nt;function it(ht,vt){var gt=[[],[]];ht=ht.clone(),vt=vt.clone();for(var wt=0,ut=0,pt;ht.cmpn(-wt)>0||vt.cmpn(-ut)>0;){var Et=ht.andln(3)+wt&3,yt=vt.andln(3)+ut&3;Et===3&&(Et=-1),yt===3&&(yt=-1);var bt;Et&1?(pt=ht.andln(7)+wt&7,(pt===3||pt===5)&&yt===2?bt=-Et:bt=Et):bt=0,gt[0].push(bt);var kt;yt&1?(pt=vt.andln(7)+ut&7,(pt===3||pt===5)&&Et===2?kt=-yt:kt=yt):kt=0,gt[1].push(kt),2*wt===bt+1&&(wt=1-wt),2*ut===kt+1&&(ut=1-ut),ht.iushrn(1),vt.iushrn(1)}return gt}o.getJSF=it;function st(ht,vt,gt){var wt="_"+vt;ht.prototype[vt]=function(){return this[wt]!==void 0?this[wt]:this[wt]=gt.call(this)}}o.cachedProperty=st;function at(ht){return typeof ht=="string"?o.toArray(ht,"hex"):ht}o.parseBytes=at;function lt(ht){return new et(ht,"hex","le")}o.intFromLE=lt})(utils$n);var curve={},BN$b=bnExports$2,utils$l=utils$n,getNAF=utils$l.getNAF,getJSF=utils$l.getJSF,assert$i=utils$l.assert;function BaseCurve(a,o){this.type=a,this.p=new BN$b(o.p,16),this.red=o.prime?BN$b.red(o.prime):BN$b.mont(this.p),this.zero=new BN$b(0).toRed(this.red),this.one=new BN$b(1).toRed(this.red),this.two=new BN$b(2).toRed(this.red),this.n=o.n&&new BN$b(o.n,16),this.g=o.g&&this.pointFromJSON(o.g,o.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var et=this.n&&this.p.div(this.n);!et||et.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(o,et){assert$i(o.precomputed);var tt=o._getDoubles(),rt=getNAF(et,1,this._bitLength),nt=(1<=st;lt--)at=(at<<1)+rt[lt];it.push(at)}for(var ht=this.jpoint(null,null,null),vt=this.jpoint(null,null,null),gt=nt;gt>0;gt--){for(st=0;st=0;at--){for(var lt=0;at>=0&&it[at]===0;at--)lt++;if(at>=0&<++,st=st.dblp(lt),at<0)break;var ht=it[at];assert$i(ht!==0),o.type==="affine"?ht>0?st=st.mixedAdd(nt[ht-1>>1]):st=st.mixedAdd(nt[-ht-1>>1].neg()):ht>0?st=st.add(nt[ht-1>>1]):st=st.add(nt[-ht-1>>1].neg())}return o.type==="affine"?st.toP():st};BaseCurve.prototype._wnafMulAdd=function(o,et,tt,rt,nt){var it=this._wnafT1,st=this._wnafT2,at=this._wnafT3,lt=0,ht,vt,gt;for(ht=0;ht=1;ht-=2){var ut=ht-1,pt=ht;if(it[ut]!==1||it[pt]!==1){at[ut]=getNAF(tt[ut],it[ut],this._bitLength),at[pt]=getNAF(tt[pt],it[pt],this._bitLength),lt=Math.max(at[ut].length,lt),lt=Math.max(at[pt].length,lt);continue}var Et=[et[ut],null,null,et[pt]];et[ut].y.cmp(et[pt].y)===0?(Et[1]=et[ut].add(et[pt]),Et[2]=et[ut].toJ().mixedAdd(et[pt].neg())):et[ut].y.cmp(et[pt].y.redNeg())===0?(Et[1]=et[ut].toJ().mixedAdd(et[pt]),Et[2]=et[ut].add(et[pt].neg())):(Et[1]=et[ut].toJ().mixedAdd(et[pt]),Et[2]=et[ut].toJ().mixedAdd(et[pt].neg()));var yt=[-3,-1,-5,-7,0,7,5,1,3],bt=getJSF(tt[ut],tt[pt]);for(lt=Math.max(bt[0].length,lt),at[ut]=new Array(lt),at[pt]=new Array(lt),vt=0;vt=0;ht--){for(var Vt=0;ht>=0;){var jt=!0;for(vt=0;vt=0&&Vt++,Ot=Ot.dblp(Vt),ht<0)break;for(vt=0;vt0?gt=st[vt][zt-1>>1]:zt<0&&(gt=st[vt][-zt-1>>1].neg()),gt.type==="affine"?Ot=Ot.mixedAdd(gt):Ot=Ot.add(gt))}}for(ht=0;ht=Math.ceil((o.bitLength()+1)/et.step):!1};BasePoint.prototype._getDoubles=function(o,et){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var tt=[this],rt=this,nt=0;nt=0&&(wt=lt,ut=ht),vt.negative&&(vt=vt.neg(),gt=gt.neg()),wt.negative&&(wt=wt.neg(),ut=ut.neg()),[{a:vt,b:gt},{a:wt,b:ut}]};ShortCurve.prototype._endoSplit=function(o){var et=this.endo.basis,tt=et[0],rt=et[1],nt=rt.b.mul(o).divRound(this.n),it=tt.b.neg().mul(o).divRound(this.n),st=nt.mul(tt.a),at=it.mul(rt.a),lt=nt.mul(tt.b),ht=it.mul(rt.b),vt=o.sub(st).sub(at),gt=lt.add(ht).neg();return{k1:vt,k2:gt}};ShortCurve.prototype.pointFromX=function(o,et){o=new BN$a(o,16),o.red||(o=o.toRed(this.red));var tt=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),rt=tt.redSqrt();if(rt.redSqr().redSub(tt).cmp(this.zero)!==0)throw new Error("invalid point");var nt=rt.fromRed().isOdd();return(et&&!nt||!et&&nt)&&(rt=rt.redNeg()),this.point(o,rt)};ShortCurve.prototype.validate=function(o){if(o.inf)return!0;var et=o.x,tt=o.y,rt=this.a.redMul(et),nt=et.redSqr().redMul(et).redIAdd(rt).redIAdd(this.b);return tt.redSqr().redISub(nt).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(o,et,tt){for(var rt=this._endoWnafT1,nt=this._endoWnafT2,it=0;it":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var et=this.y.redSub(o.y);et.cmpn(0)!==0&&(et=et.redMul(this.x.redSub(o.x).redInvm()));var tt=et.redSqr().redISub(this.x).redISub(o.x),rt=et.redMul(this.x.redSub(tt)).redISub(this.y);return this.curve.point(tt,rt)};Point$2.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var et=this.curve.a,tt=this.x.redSqr(),rt=o.redInvm(),nt=tt.redAdd(tt).redIAdd(tt).redIAdd(et).redMul(rt),it=nt.redSqr().redISub(this.x.redAdd(this.x)),st=nt.redMul(this.x.redSub(it)).redISub(this.y);return this.curve.point(it,st)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(o){return o=new BN$a(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)};Point$2.prototype.mulAdd=function(o,et,tt){var rt=[this,et],nt=[o,tt];return this.curve.endo?this.curve._endoWnafMulAdd(rt,nt):this.curve._wnafMulAdd(1,rt,nt,2)};Point$2.prototype.jmulAdd=function(o,et,tt){var rt=[this,et],nt=[o,tt];return this.curve.endo?this.curve._endoWnafMulAdd(rt,nt,!0):this.curve._wnafMulAdd(1,rt,nt,2,!0)};Point$2.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)};Point$2.prototype.neg=function(o){if(this.inf)return this;var et=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var tt=this.precomputed,rt=function(nt){return nt.neg()};et.precomputed={naf:tt.naf&&{wnd:tt.naf.wnd,points:tt.naf.points.map(rt)},doubles:tt.doubles&&{step:tt.doubles.step,points:tt.doubles.points.map(rt)}}}return et};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var o=this.curve.jpoint(this.x,this.y,this.curve.one);return o};function JPoint(a,o,et,tt){Base$2.BasePoint.call(this,a,"jacobian"),o===null&&et===null&&tt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$a(0)):(this.x=new BN$a(o,16),this.y=new BN$a(et,16),this.z=new BN$a(tt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$9(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(o,et,tt){return new JPoint(this,o,et,tt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),et=o.redSqr(),tt=this.x.redMul(et),rt=this.y.redMul(et).redMul(o);return this.curve.point(tt,rt)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var et=o.z.redSqr(),tt=this.z.redSqr(),rt=this.x.redMul(et),nt=o.x.redMul(tt),it=this.y.redMul(et.redMul(o.z)),st=o.y.redMul(tt.redMul(this.z)),at=rt.redSub(nt),lt=it.redSub(st);if(at.cmpn(0)===0)return lt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ht=at.redSqr(),vt=ht.redMul(at),gt=rt.redMul(ht),wt=lt.redSqr().redIAdd(vt).redISub(gt).redISub(gt),ut=lt.redMul(gt.redISub(wt)).redISub(it.redMul(vt)),pt=this.z.redMul(o.z).redMul(at);return this.curve.jpoint(wt,ut,pt)};JPoint.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var et=this.z.redSqr(),tt=this.x,rt=o.x.redMul(et),nt=this.y,it=o.y.redMul(et).redMul(this.z),st=tt.redSub(rt),at=nt.redSub(it);if(st.cmpn(0)===0)return at.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var lt=st.redSqr(),ht=lt.redMul(st),vt=tt.redMul(lt),gt=at.redSqr().redIAdd(ht).redISub(vt).redISub(vt),wt=at.redMul(vt.redISub(gt)).redISub(nt.redMul(ht)),ut=this.z.redMul(st);return this.curve.jpoint(gt,wt,ut)};JPoint.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var et;if(this.curve.zeroA||this.curve.threeA){var tt=this;for(et=0;et=0)return!1;if(tt.redIAdd(nt),this.x.cmp(tt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$9=bnExports$2,inherits$8=inherits_browserExports,Base$1=base$3,utils$j=utils$n;function MontCurve(a){Base$1.call(this,"mont",a),this.a=new BN$9(a.a,16).toRed(this.red),this.b=new BN$9(a.b,16).toRed(this.red),this.i4=new BN$9(4).toRed(this.red).redInvm(),this.two=new BN$9(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$8(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(o){var et=o.normalize().x,tt=et.redSqr(),rt=tt.redMul(et).redAdd(tt.redMul(this.a)).redAdd(et),nt=rt.redSqrt();return nt.redSqr().cmp(rt)===0};function Point$1(a,o,et){Base$1.BasePoint.call(this,a,"projective"),o===null&&et===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$9(o,16),this.z=new BN$9(et,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$8(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(o,et){return this.point(utils$j.toArray(o,et),1)};MontCurve.prototype.point=function(o,et){return new Point$1(this,o,et)};MontCurve.prototype.pointFromJSON=function(o){return Point$1.fromJSON(this,o)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(o,et){return new Point$1(o,et[0],et[1]||o.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var o=this.x.redAdd(this.z),et=o.redSqr(),tt=this.x.redSub(this.z),rt=tt.redSqr(),nt=et.redSub(rt),it=et.redMul(rt),st=nt.redMul(rt.redAdd(this.curve.a24.redMul(nt)));return this.curve.point(it,st)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(o,et){var tt=this.x.redAdd(this.z),rt=this.x.redSub(this.z),nt=o.x.redAdd(o.z),it=o.x.redSub(o.z),st=it.redMul(tt),at=nt.redMul(rt),lt=et.z.redMul(st.redAdd(at).redSqr()),ht=et.x.redMul(st.redISub(at).redSqr());return this.curve.point(lt,ht)};Point$1.prototype.mul=function(o){for(var et=o.clone(),tt=this,rt=this.curve.point(null,null),nt=this,it=[];et.cmpn(0)!==0;et.iushrn(1))it.push(et.andln(1));for(var st=it.length-1;st>=0;st--)it[st]===0?(tt=tt.diffAdd(rt,nt),rt=rt.dbl()):(rt=tt.diffAdd(rt,nt),tt=tt.dbl());return rt};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(o){return this.getX().cmp(o.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$i=utils$n,BN$8=bnExports$2,inherits$7=inherits_browserExports,Base=base$3,assert$g=utils$i.assert;function EdwardsCurve(a){this.twisted=(a.a|0)!==1,this.mOneA=this.twisted&&(a.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",a),this.a=new BN$8(a.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$8(a.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$8(a.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$g(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(a.c|0)===1}inherits$7(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(o){return this.mOneA?o.redNeg():this.a.redMul(o)};EdwardsCurve.prototype._mulC=function(o){return this.oneC?o:this.c.redMul(o)};EdwardsCurve.prototype.jpoint=function(o,et,tt,rt){return this.point(o,et,tt,rt)};EdwardsCurve.prototype.pointFromX=function(o,et){o=new BN$8(o,16),o.red||(o=o.toRed(this.red));var tt=o.redSqr(),rt=this.c2.redSub(this.a.redMul(tt)),nt=this.one.redSub(this.c2.redMul(this.d).redMul(tt)),it=rt.redMul(nt.redInvm()),st=it.redSqrt();if(st.redSqr().redSub(it).cmp(this.zero)!==0)throw new Error("invalid point");var at=st.fromRed().isOdd();return(et&&!at||!et&&at)&&(st=st.redNeg()),this.point(o,st)};EdwardsCurve.prototype.pointFromY=function(o,et){o=new BN$8(o,16),o.red||(o=o.toRed(this.red));var tt=o.redSqr(),rt=tt.redSub(this.c2),nt=tt.redMul(this.d).redMul(this.c2).redSub(this.a),it=rt.redMul(nt.redInvm());if(it.cmp(this.zero)===0){if(et)throw new Error("invalid point");return this.point(this.zero,o)}var st=it.redSqrt();if(st.redSqr().redSub(it).cmp(this.zero)!==0)throw new Error("invalid point");return st.fromRed().isOdd()!==et&&(st=st.redNeg()),this.point(st,o)};EdwardsCurve.prototype.validate=function(o){if(o.isInfinity())return!0;o.normalize();var et=o.x.redSqr(),tt=o.y.redSqr(),rt=et.redMul(this.a).redAdd(tt),nt=this.c2.redMul(this.one.redAdd(this.d.redMul(et).redMul(tt)));return rt.cmp(nt)===0};function Point(a,o,et,tt,rt){Base.BasePoint.call(this,a,"projective"),o===null&&et===null&&tt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$8(o,16),this.y=new BN$8(et,16),this.z=tt?new BN$8(tt,16):this.curve.one,this.t=rt&&new BN$8(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$7(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(o){return Point.fromJSON(this,o)};EdwardsCurve.prototype.point=function(o,et,tt,rt){return new Point(this,o,et,tt,rt)};Point.fromJSON=function(o,et){return new Point(o,et[0],et[1],et[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var o=this.x.redSqr(),et=this.y.redSqr(),tt=this.z.redSqr();tt=tt.redIAdd(tt);var rt=this.curve._mulA(o),nt=this.x.redAdd(this.y).redSqr().redISub(o).redISub(et),it=rt.redAdd(et),st=it.redSub(tt),at=rt.redSub(et),lt=nt.redMul(st),ht=it.redMul(at),vt=nt.redMul(at),gt=st.redMul(it);return this.curve.point(lt,ht,gt,vt)};Point.prototype._projDbl=function(){var o=this.x.redAdd(this.y).redSqr(),et=this.x.redSqr(),tt=this.y.redSqr(),rt,nt,it,st,at,lt;if(this.curve.twisted){st=this.curve._mulA(et);var ht=st.redAdd(tt);this.zOne?(rt=o.redSub(et).redSub(tt).redMul(ht.redSub(this.curve.two)),nt=ht.redMul(st.redSub(tt)),it=ht.redSqr().redSub(ht).redSub(ht)):(at=this.z.redSqr(),lt=ht.redSub(at).redISub(at),rt=o.redSub(et).redISub(tt).redMul(lt),nt=ht.redMul(st.redSub(tt)),it=ht.redMul(lt))}else st=et.redAdd(tt),at=this.curve._mulC(this.z).redSqr(),lt=st.redSub(at).redSub(at),rt=this.curve._mulC(o.redISub(st)).redMul(lt),nt=this.curve._mulC(st).redMul(et.redISub(tt)),it=st.redMul(lt);return this.curve.point(rt,nt,it)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(o){var et=this.y.redSub(this.x).redMul(o.y.redSub(o.x)),tt=this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)),rt=this.t.redMul(this.curve.dd).redMul(o.t),nt=this.z.redMul(o.z.redAdd(o.z)),it=tt.redSub(et),st=nt.redSub(rt),at=nt.redAdd(rt),lt=tt.redAdd(et),ht=it.redMul(st),vt=at.redMul(lt),gt=it.redMul(lt),wt=st.redMul(at);return this.curve.point(ht,vt,wt,gt)};Point.prototype._projAdd=function(o){var et=this.z.redMul(o.z),tt=et.redSqr(),rt=this.x.redMul(o.x),nt=this.y.redMul(o.y),it=this.curve.d.redMul(rt).redMul(nt),st=tt.redSub(it),at=tt.redAdd(it),lt=this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub(rt).redISub(nt),ht=et.redMul(st).redMul(lt),vt,gt;return this.curve.twisted?(vt=et.redMul(at).redMul(nt.redSub(this.curve._mulA(rt))),gt=st.redMul(at)):(vt=et.redMul(at).redMul(nt.redSub(rt)),gt=this.curve._mulC(st).redMul(at)),this.curve.point(ht,vt,gt)};Point.prototype.add=function(o){return this.isInfinity()?o:o.isInfinity()?this:this.curve.extended?this._extAdd(o):this._projAdd(o)};Point.prototype.mul=function(o){return this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve._wnafMul(this,o)};Point.prototype.mulAdd=function(o,et,tt){return this.curve._wnafMulAdd(1,[this,et],[o,tt],2,!1)};Point.prototype.jmulAdd=function(o,et,tt){return this.curve._wnafMulAdd(1,[this,et],[o,tt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var o=this.z.redInvm();return this.x=this.x.redMul(o),this.y=this.y.redMul(o),this.t&&(this.t=this.t.redMul(o)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(o){return this===o||this.getX().cmp(o.getX())===0&&this.getY().cmp(o.getY())===0};Point.prototype.eqXToP=function(o){var et=o.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(et)===0)return!0;for(var tt=o.clone(),rt=this.curve.redN.redMul(this.z);;){if(tt.iadd(this.curve.n),tt.cmp(this.curve.p)>=0)return!1;if(et.redIAdd(rt),this.x.cmp(et)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(a){var o=a;o.base=base$3,o.short=short,o.mont=mont,o.edwards=edwards})(curve);var curves$1={},hash$4={},utils$h={},assert$f=minimalisticAssert,inherits$6=inherits_browserExports;utils$h.inherits=inherits$6;function isSurrogatePair(a,o){return(a.charCodeAt(o)&64512)!==55296||o<0||o+1>=a.length?!1:(a.charCodeAt(o+1)&64512)===56320}function toArray$1(a,o){if(Array.isArray(a))return a.slice();if(!a)return[];var et=[];if(typeof a=="string")if(o){if(o==="hex")for(a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a),rt=0;rt>6|192,et[tt++]=nt&63|128):isSurrogatePair(a,rt)?(nt=65536+((nt&1023)<<10)+(a.charCodeAt(++rt)&1023),et[tt++]=nt>>18|240,et[tt++]=nt>>12&63|128,et[tt++]=nt>>6&63|128,et[tt++]=nt&63|128):(et[tt++]=nt>>12|224,et[tt++]=nt>>6&63|128,et[tt++]=nt&63|128)}else for(rt=0;rt>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24;return o>>>0}utils$h.htonl=htonl;function toHex32(a,o){for(var et="",tt=0;tt>>0}return nt}utils$h.join32=join32;function split32(a,o){for(var et=new Array(a.length*4),tt=0,rt=0;tt>>24,et[rt+1]=nt>>>16&255,et[rt+2]=nt>>>8&255,et[rt+3]=nt&255):(et[rt+3]=nt>>>24,et[rt+2]=nt>>>16&255,et[rt+1]=nt>>>8&255,et[rt]=nt&255)}return et}utils$h.split32=split32;function rotr32$1(a,o){return a>>>o|a<<32-o}utils$h.rotr32=rotr32$1;function rotl32$2(a,o){return a<>>32-o}utils$h.rotl32=rotl32$2;function sum32$3(a,o){return a+o>>>0}utils$h.sum32=sum32$3;function sum32_3$1(a,o,et){return a+o+et>>>0}utils$h.sum32_3=sum32_3$1;function sum32_4$2(a,o,et,tt){return a+o+et+tt>>>0}utils$h.sum32_4=sum32_4$2;function sum32_5$2(a,o,et,tt,rt){return a+o+et+tt+rt>>>0}utils$h.sum32_5=sum32_5$2;function sum64$1(a,o,et,tt){var rt=a[o],nt=a[o+1],it=tt+nt>>>0,st=(it>>0,a[o+1]=it}utils$h.sum64=sum64$1;function sum64_hi$1(a,o,et,tt){var rt=o+tt>>>0,nt=(rt>>0}utils$h.sum64_hi=sum64_hi$1;function sum64_lo$1(a,o,et,tt){var rt=o+tt;return rt>>>0}utils$h.sum64_lo=sum64_lo$1;function sum64_4_hi$1(a,o,et,tt,rt,nt,it,st){var at=0,lt=o;lt=lt+tt>>>0,at+=lt>>0,at+=lt>>0,at+=lt>>0}utils$h.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(a,o,et,tt,rt,nt,it,st){var at=o+tt+nt+st;return at>>>0}utils$h.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(a,o,et,tt,rt,nt,it,st,at,lt){var ht=0,vt=o;vt=vt+tt>>>0,ht+=vt>>0,ht+=vt>>0,ht+=vt>>0,ht+=vt>>0}utils$h.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(a,o,et,tt,rt,nt,it,st,at,lt){var ht=o+tt+nt+st+lt;return ht>>>0}utils$h.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(a,o,et){var tt=o<<32-et|a>>>et;return tt>>>0}utils$h.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(a,o,et){var tt=a<<32-et|o>>>et;return tt>>>0}utils$h.rotr64_lo=rotr64_lo$1;function shr64_hi$1(a,o,et){return a>>>et}utils$h.shr64_hi=shr64_hi$1;function shr64_lo$1(a,o,et){var tt=a<<32-et|o>>>et;return tt>>>0}utils$h.shr64_lo=shr64_lo$1;var common$7={},utils$g=utils$h,assert$e=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(o,et){if(o=utils$g.toArray(o,et),this.pending?this.pending=this.pending.concat(o):this.pending=o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){o=this.pending;var tt=o.length%this._delta8;this.pending=o.slice(o.length-tt,o.length),this.pending.length===0&&(this.pending=null),o=utils$g.join32(o,0,o.length-tt,this.endian);for(var rt=0;rt>>24&255,rt[nt++]=o>>>16&255,rt[nt++]=o>>>8&255,rt[nt++]=o&255}else for(rt[nt++]=o&255,rt[nt++]=o>>>8&255,rt[nt++]=o>>>16&255,rt[nt++]=o>>>24&255,rt[nt++]=0,rt[nt++]=0,rt[nt++]=0,rt[nt++]=0,it=8;it>>3}common$6.g0_256=g0_256$1;function g1_256$1(a){return rotr32(a,17)^rotr32(a,19)^a>>>10}common$6.g1_256=g1_256$1;var utils$e=utils$h,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$e.rotl32,sum32$2=utils$e.sum32,sum32_5$1=utils$e.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1$1(){if(!(this instanceof SHA1$1))return new SHA1$1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$e.inherits(SHA1$1,BlockHash$3);var _1=SHA1$1;SHA1$1.blockSize=512;SHA1$1.outSize=160;SHA1$1.hmacStrength=80;SHA1$1.padLength=64;SHA1$1.prototype._update=function(o,et){for(var tt=this.W,rt=0;rt<16;rt++)tt[rt]=o[et+rt];for(;rtthis.blockSize&&(o=new this.Hash().update(o).digest()),assert$b(o.length<=this.blockSize);for(var et=o.length;et=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,et,tt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(o,et,tt){var rt=o.concat(et).concat(tt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var nt=0;nt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(o.concat(tt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(o,et,tt,rt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof et!="string"&&(rt=tt,tt=et,et=null),tt&&(tt=utils$7.toArray(tt,rt||"hex"),this._update(tt));for(var nt=[];nt.length"};var BN$6=bnExports$2,utils$5=utils$n,assert$8=utils$5.assert;function Signature$2(a,o){if(a instanceof Signature$2)return a;this._importDER(a,o)||(assert$8(a.r&&a.s,"Signature without r or s"),this.r=new BN$6(a.r,16),this.s=new BN$6(a.s,16),a.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=a.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(a,o){var et=a[o.place++];if(!(et&128))return et;var tt=et&15;if(tt===0||tt>4)return!1;for(var rt=0,nt=0,it=o.place;nt>>=0;return rt<=127?!1:(o.place=it,rt)}function rmPadding(a){for(var o=0,et=a.length-1;!a[o]&&!(a[o+1]&128)&&o>>3);for(a.push(et|128);--et;)a.push(o>>>(et<<3)&255);a.push(o)}Signature$2.prototype.toDER=function(o){var et=this.r.toArray(),tt=this.s.toArray();for(et[0]&128&&(et=[0].concat(et)),tt[0]&128&&(tt=[0].concat(tt)),et=rmPadding(et),tt=rmPadding(tt);!tt[0]&&!(tt[1]&128);)tt=tt.slice(1);var rt=[2];constructLength(rt,et.length),rt=rt.concat(et),rt.push(2),constructLength(rt,tt.length);var nt=rt.concat(tt),it=[48];return constructLength(it,nt.length),it=it.concat(nt),utils$5.encode(it,o)};var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var a=bnExports$2,o=hmacDrbg,et=utils$n,tt=curves$1,rt=requireBrorand(),nt=et.assert,it=key$2,st=signature$1;function at(lt){if(!(this instanceof at))return new at(lt);typeof lt=="string"&&(nt(Object.prototype.hasOwnProperty.call(tt,lt),"Unknown curve "+lt),lt=tt[lt]),lt instanceof tt.PresetCurve&&(lt={curve:lt}),this.curve=lt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=lt.curve.g,this.g.precompute(lt.curve.n.bitLength()+1),this.hash=lt.hash||lt.curve.hash}return ec$1=at,at.prototype.keyPair=function(ht){return new it(this,ht)},at.prototype.keyFromPrivate=function(ht,vt){return it.fromPrivate(this,ht,vt)},at.prototype.keyFromPublic=function(ht,vt){return it.fromPublic(this,ht,vt)},at.prototype.genKeyPair=function(ht){ht||(ht={});for(var vt=new o({hash:this.hash,pers:ht.pers,persEnc:ht.persEnc||"utf8",entropy:ht.entropy||rt(this.hash.hmacStrength),entropyEnc:ht.entropy&&ht.entropyEnc||"utf8",nonce:this.n.toArray()}),gt=this.n.byteLength(),wt=this.n.sub(new a(2));;){var ut=new a(vt.generate(gt));if(!(ut.cmp(wt)>0))return ut.iaddn(1),this.keyFromPrivate(ut)}},at.prototype._truncateToN=function(ht,vt){var gt=ht.byteLength()*8-this.n.bitLength();return gt>0&&(ht=ht.ushrn(gt)),!vt&&ht.cmp(this.n)>=0?ht.sub(this.n):ht},at.prototype.sign=function(ht,vt,gt,wt){typeof gt=="object"&&(wt=gt,gt=null),wt||(wt={}),vt=this.keyFromPrivate(vt,gt),ht=this._truncateToN(new a(ht,16));for(var ut=this.n.byteLength(),pt=vt.getPrivate().toArray("be",ut),Et=ht.toArray("be",ut),yt=new o({hash:this.hash,entropy:pt,nonce:Et,pers:wt.pers,persEnc:wt.persEnc||"utf8"}),bt=this.n.sub(new a(1)),kt=0;;kt++){var It=wt.k?wt.k(kt):new a(yt.generate(this.n.byteLength()));if(It=this._truncateToN(It,!0),!(It.cmpn(1)<=0||It.cmp(bt)>=0)){var Ot=this.g.mul(It);if(!Ot.isInfinity()){var Nt=Ot.getX(),Vt=Nt.umod(this.n);if(Vt.cmpn(0)!==0){var jt=It.invm(this.n).mul(Vt.mul(vt.getPrivate()).iadd(ht));if(jt=jt.umod(this.n),jt.cmpn(0)!==0){var zt=(Ot.getY().isOdd()?1:0)|(Nt.cmp(Vt)!==0?2:0);return wt.canonical&&jt.cmp(this.nh)>0&&(jt=this.n.sub(jt),zt^=1),new st({r:Vt,s:jt,recoveryParam:zt})}}}}}},at.prototype.verify=function(ht,vt,gt,wt){ht=this._truncateToN(new a(ht,16)),gt=this.keyFromPublic(gt,wt),vt=new st(vt,"hex");var ut=vt.r,pt=vt.s;if(ut.cmpn(1)<0||ut.cmp(this.n)>=0||pt.cmpn(1)<0||pt.cmp(this.n)>=0)return!1;var Et=pt.invm(this.n),yt=Et.mul(ht).umod(this.n),bt=Et.mul(ut).umod(this.n),kt;return this.curve._maxwellTrick?(kt=this.g.jmulAdd(yt,gt.getPublic(),bt),kt.isInfinity()?!1:kt.eqXToP(ut)):(kt=this.g.mulAdd(yt,gt.getPublic(),bt),kt.isInfinity()?!1:kt.getX().umod(this.n).cmp(ut)===0)},at.prototype.recoverPubKey=function(lt,ht,vt,gt){nt((3&vt)===vt,"The recovery param is more than two bits"),ht=new st(ht,gt);var wt=this.n,ut=new a(lt),pt=ht.r,Et=ht.s,yt=vt&1,bt=vt>>1;if(pt.cmp(this.curve.p.umod(this.curve.n))>=0&&bt)throw new Error("Unable to find sencond key candinate");bt?pt=this.curve.pointFromX(pt.add(this.curve.n),yt):pt=this.curve.pointFromX(pt,yt);var kt=ht.r.invm(wt),It=wt.sub(ut).mul(kt).umod(wt),Ot=Et.mul(kt).umod(wt);return this.g.mulAdd(It,pt,Ot)},at.prototype.getKeyRecoveryParam=function(lt,ht,vt,gt){if(ht=new st(ht,gt),ht.recoveryParam!==null)return ht.recoveryParam;for(var wt=0;wt<4;wt++){var ut;try{ut=this.recoverPubKey(lt,ht,wt)}catch{continue}if(ut.eq(vt))return wt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$4=utils$n,assert$7=utils$4.assert,parseBytes$2=utils$4.parseBytes,cachedProperty$1=utils$4.cachedProperty;function KeyPair$1(a,o){this.eddsa=a,this._secret=parseBytes$2(o.secret),a.isPoint(o.pub)?this._pub=o.pub:this._pubBytes=parseBytes$2(o.pub)}KeyPair$1.fromPublic=function(o,et){return et instanceof KeyPair$1?et:new KeyPair$1(o,{pub:et})};KeyPair$1.fromSecret=function(o,et){return et instanceof KeyPair$1?et:new KeyPair$1(o,{secret:et})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var o=this.eddsa,et=this.hash(),tt=o.encodingLength-1,rt=et.slice(0,o.encodingLength);return rt[0]&=248,rt[tt]&=127,rt[tt]|=64,rt});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(o){return assert$7(this._secret,"KeyPair can only verify"),this.eddsa.sign(o,this)};KeyPair$1.prototype.verify=function(o,et){return this.eddsa.verify(o,et,this)};KeyPair$1.prototype.getSecret=function(o){return assert$7(this._secret,"KeyPair is public only"),utils$4.encode(this.secret(),o)};KeyPair$1.prototype.getPublic=function(o){return utils$4.encode(this.pubBytes(),o)};var key$1=KeyPair$1,BN$5=bnExports$2,utils$3=utils$n,assert$6=utils$3.assert,cachedProperty=utils$3.cachedProperty,parseBytes$1=utils$3.parseBytes;function Signature$1(a,o){this.eddsa=a,typeof o!="object"&&(o=parseBytes$1(o)),Array.isArray(o)&&(o={R:o.slice(0,a.encodingLength),S:o.slice(a.encodingLength)}),assert$6(o.R&&o.S,"Signature without R or S"),a.isPoint(o.R)&&(this._R=o.R),o.S instanceof BN$5&&(this._S=o.S),this._Rencoded=Array.isArray(o.R)?o.R:o.Rencoded,this._Sencoded=Array.isArray(o.S)?o.S:o.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$3.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$1,utils$2=utils$n,assert$5=utils$2.assert,parseBytes=utils$2.parseBytes,KeyPair=key$1,Signature=signature;function EDDSA(a){if(assert$5(a==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(a);a=curves[a].curve,this.curve=a,this.g=a.g,this.g.precompute(a.n.bitLength()+1),this.pointClass=a.point().constructor,this.encodingLength=Math.ceil(a.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(o,et){o=parseBytes(o);var tt=this.keyFromSecret(et),rt=this.hashInt(tt.messagePrefix(),o),nt=this.g.mul(rt),it=this.encodePoint(nt),st=this.hashInt(it,tt.pubBytes(),o).mul(tt.priv()),at=rt.add(st).umod(this.curve.n);return this.makeSignature({R:nt,S:at,Rencoded:it})};EDDSA.prototype.verify=function(o,et,tt){o=parseBytes(o),et=this.makeSignature(et);var rt=this.keyFromPublic(tt),nt=this.hashInt(et.Rencoded(),rt.pubBytes(),o),it=this.g.mul(et.S()),st=et.R().add(rt.pub().mul(nt));return st.eq(it)};EDDSA.prototype.hashInt=function(){for(var o=this.hash(),et=0;et0?ct:xt},nt.min=function(ct,xt){return ct.cmp(xt)<0?ct:xt},nt.prototype._init=function(ct,xt,St){if(typeof ct=="number")return this._initNumber(ct,xt,St);if(typeof ct=="object")return this._initArray(ct,xt,St);xt==="hex"&&(xt=16),tt(xt===(xt|0)&&xt>=2&&xt<=36),ct=ct.toString().replace(/\s+/g,"");var Mt=0;ct[0]==="-"&&(Mt++,this.negative=1),Mt=0;Mt-=3)Tt=ct[Mt]|ct[Mt-1]<<8|ct[Mt-2]<<16,this.words[$t]|=Tt<>>26-At&67108863,At+=24,At>=26&&(At-=26,$t++);else if(St==="le")for(Mt=0,$t=0;Mt>>26-At&67108863,At+=24,At>=26&&(At-=26,$t++);return this._strip()};function st(Bt,ct){var xt=Bt.charCodeAt(ct);if(xt>=48&&xt<=57)return xt-48;if(xt>=65&&xt<=70)return xt-55;if(xt>=97&&xt<=102)return xt-87;tt(!1,"Invalid character in "+Bt)}function at(Bt,ct,xt){var St=st(Bt,xt);return xt-1>=ct&&(St|=st(Bt,xt-1)<<4),St}nt.prototype._parseHex=function(ct,xt,St){this.length=Math.ceil((ct.length-xt)/6),this.words=new Array(this.length);for(var Mt=0;Mt=xt;Mt-=2)At=at(ct,xt,Mt)<<$t,this.words[Tt]|=At&67108863,$t>=18?($t-=18,Tt+=1,this.words[Tt]|=At>>>26):$t+=8;else{var Pt=ct.length-xt;for(Mt=Pt%2===0?xt+1:xt;Mt=18?($t-=18,Tt+=1,this.words[Tt]|=At>>>26):$t+=8}this._strip()};function lt(Bt,ct,xt,St){for(var Mt=0,$t=0,Tt=Math.min(Bt.length,xt),At=ct;At=49?$t=Pt-49+10:Pt>=17?$t=Pt-17+10:$t=Pt,tt(Pt>=0&&$t1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},nt.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{nt.prototype[Symbol.for("nodejs.util.inspect.custom")]=vt}catch{nt.prototype.inspect=vt}else nt.prototype.inspect=vt;function vt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],wt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ut=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];nt.prototype.toString=function(ct,xt){ct=ct||10,xt=xt|0||1;var St;if(ct===16||ct==="hex"){St="";for(var Mt=0,$t=0,Tt=0;Tt>>24-Mt&16777215,Mt+=2,Mt>=26&&(Mt-=26,Tt--),$t!==0||Tt!==this.length-1?St=gt[6-Pt.length]+Pt+St:St=Pt+St}for($t!==0&&(St=$t.toString(16)+St);St.length%xt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}if(ct===(ct|0)&&ct>=2&&ct<=36){var mt=wt[ct],Ft=ut[ct];St="";var Qt=this.clone();for(Qt.negative=0;!Qt.isZero();){var cr=Qt.modrn(Ft).toString(ct);Qt=Qt.idivn(Ft),Qt.isZero()?St=cr+St:St=gt[mt-cr.length]+cr+St}for(this.isZero()&&(St="0"+St);St.length%xt!==0;)St="0"+St;return this.negative!==0&&(St="-"+St),St}tt(!1,"Base should be between 2 and 36")},nt.prototype.toNumber=function(){var ct=this.words[0];return this.length===2?ct+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ct+=4503599627370496+this.words[1]*67108864:this.length>2&&tt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ct:ct},nt.prototype.toJSON=function(){return this.toString(16,2)},it&&(nt.prototype.toBuffer=function(ct,xt){return this.toArrayLike(it,ct,xt)}),nt.prototype.toArray=function(ct,xt){return this.toArrayLike(Array,ct,xt)};var pt=function(ct,xt){return ct.allocUnsafe?ct.allocUnsafe(xt):new ct(xt)};nt.prototype.toArrayLike=function(ct,xt,St){this._strip();var Mt=this.byteLength(),$t=St||Math.max(1,Mt);tt(Mt<=$t,"byte array longer than desired length"),tt($t>0,"Requested array length <= 0");var Tt=pt(ct,$t),At=xt==="le"?"LE":"BE";return this["_toArrayLike"+At](Tt,Mt),Tt},nt.prototype._toArrayLikeLE=function(ct,xt){for(var St=0,Mt=0,$t=0,Tt=0;$t>8&255),St>16&255),Tt===6?(St>24&255),Mt=0,Tt=0):(Mt=At>>>24,Tt+=2)}if(St=0&&(ct[St--]=At>>8&255),St>=0&&(ct[St--]=At>>16&255),Tt===6?(St>=0&&(ct[St--]=At>>24&255),Mt=0,Tt=0):(Mt=At>>>24,Tt+=2)}if(St>=0)for(ct[St--]=Mt;St>=0;)ct[St--]=0},Math.clz32?nt.prototype._countBits=function(ct){return 32-Math.clz32(ct)}:nt.prototype._countBits=function(ct){var xt=ct,St=0;return xt>=4096&&(St+=13,xt>>>=13),xt>=64&&(St+=7,xt>>>=7),xt>=8&&(St+=4,xt>>>=4),xt>=2&&(St+=2,xt>>>=2),St+xt},nt.prototype._zeroBits=function(ct){if(ct===0)return 26;var xt=ct,St=0;return xt&8191||(St+=13,xt>>>=13),xt&127||(St+=7,xt>>>=7),xt&15||(St+=4,xt>>>=4),xt&3||(St+=2,xt>>>=2),xt&1||St++,St},nt.prototype.bitLength=function(){var ct=this.words[this.length-1],xt=this._countBits(ct);return(this.length-1)*26+xt};function Et(Bt){for(var ct=new Array(Bt.bitLength()),xt=0;xt>>Mt&1}return ct}nt.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ct=0,xt=0;xtct.length?this.clone().ior(ct):ct.clone().ior(this)},nt.prototype.uor=function(ct){return this.length>ct.length?this.clone().iuor(ct):ct.clone().iuor(this)},nt.prototype.iuand=function(ct){var xt;this.length>ct.length?xt=ct:xt=this;for(var St=0;Stct.length?this.clone().iand(ct):ct.clone().iand(this)},nt.prototype.uand=function(ct){return this.length>ct.length?this.clone().iuand(ct):ct.clone().iuand(this)},nt.prototype.iuxor=function(ct){var xt,St;this.length>ct.length?(xt=this,St=ct):(xt=ct,St=this);for(var Mt=0;Mtct.length?this.clone().ixor(ct):ct.clone().ixor(this)},nt.prototype.uxor=function(ct){return this.length>ct.length?this.clone().iuxor(ct):ct.clone().iuxor(this)},nt.prototype.inotn=function(ct){tt(typeof ct=="number"&&ct>=0);var xt=Math.ceil(ct/26)|0,St=ct%26;this._expand(xt),St>0&&xt--;for(var Mt=0;Mt0&&(this.words[Mt]=~this.words[Mt]&67108863>>26-St),this._strip()},nt.prototype.notn=function(ct){return this.clone().inotn(ct)},nt.prototype.setn=function(ct,xt){tt(typeof ct=="number"&&ct>=0);var St=ct/26|0,Mt=ct%26;return this._expand(St+1),xt?this.words[St]=this.words[St]|1<ct.length?(St=this,Mt=ct):(St=ct,Mt=this);for(var $t=0,Tt=0;Tt>>26;for(;$t!==0&&Tt>>26;if(this.length=St.length,$t!==0)this.words[this.length]=$t,this.length++;else if(St!==this)for(;Ttct.length?this.clone().iadd(ct):ct.clone().iadd(this)},nt.prototype.isub=function(ct){if(ct.negative!==0){ct.negative=0;var xt=this.iadd(ct);return ct.negative=1,xt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ct),this.negative=1,this._normSign();var St=this.cmp(ct);if(St===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Mt,$t;St>0?(Mt=this,$t=ct):(Mt=ct,$t=this);for(var Tt=0,At=0;At<$t.length;At++)xt=(Mt.words[At]|0)-($t.words[At]|0)+Tt,Tt=xt>>26,this.words[At]=xt&67108863;for(;Tt!==0&&At>26,this.words[At]=xt&67108863;if(Tt===0&&At>>26,Qt=Pt&67108863,cr=Math.min(mt,ct.length-1),Gt=Math.max(0,mt-Bt.length+1);Gt<=cr;Gt++){var Zt=mt-Gt|0;Mt=Bt.words[Zt]|0,$t=ct.words[Gt]|0,Tt=Mt*$t+Qt,Ft+=Tt/67108864|0,Qt=Tt&67108863}xt.words[mt]=Qt|0,Pt=Ft|0}return Pt!==0?xt.words[mt]=Pt|0:xt.length--,xt._strip()}var bt=function(ct,xt,St){var Mt=ct.words,$t=xt.words,Tt=St.words,At=0,Pt,mt,Ft,Qt=Mt[0]|0,cr=Qt&8191,Gt=Qt>>>13,Zt=Mt[1]|0,Yt=Zt&8191,ar=Zt>>>13,gr=Mt[2]|0,Jt=gr&8191,Xt=gr>>>13,Sr=Mt[3]|0,br=Sr&8191,Or=Sr>>>13,Zr=Mt[4]|0,Lr=Zr&8191,yr=Zr>>>13,pr=Mt[5]|0,Pr=pr&8191,Cr=pr>>>13,Jr=Mt[6]|0,Hr=Jr&8191,ur=Jr>>>13,wr=Mt[7]|0,Rr=wr&8191,Kt=wr>>>13,Lt=Mt[8]|0,Ut=Lt&8191,rr=Lt>>>13,vr=Mt[9]|0,kr=vr&8191,Tr=vr>>>13,nn=$t[0]|0,cn=nn&8191,en=nn>>>13,kn=$t[1]|0,sn=kn&8191,yn=kn>>>13,ss=$t[2]|0,Fn=ss&8191,wn=ss>>>13,ls=$t[3]|0,Bn=ls&8191,gn=ls>>>13,rs=$t[4]|0,Rn=rs&8191,xn=rs>>>13,os=$t[5]|0,Dn=os&8191,un=os>>>13,fs=$t[6]|0,Wt=fs&8191,tr=fs>>>13,nr=$t[7]|0,Dt=nr&8191,ir=nr>>>13,Ar=$t[8]|0,$r=Ar&8191,Br=Ar>>>13,Gr=$t[9]|0,Qr=Gr&8191,Vr=Gr>>>13;St.negative=ct.negative^xt.negative,St.length=19,Pt=Math.imul(cr,cn),mt=Math.imul(cr,en),mt=mt+Math.imul(Gt,cn)|0,Ft=Math.imul(Gt,en);var Un=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Un>>>26)|0,Un&=67108863,Pt=Math.imul(Yt,cn),mt=Math.imul(Yt,en),mt=mt+Math.imul(ar,cn)|0,Ft=Math.imul(ar,en),Pt=Pt+Math.imul(cr,sn)|0,mt=mt+Math.imul(cr,yn)|0,mt=mt+Math.imul(Gt,sn)|0,Ft=Ft+Math.imul(Gt,yn)|0;var ln=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Pt=Math.imul(Jt,cn),mt=Math.imul(Jt,en),mt=mt+Math.imul(Xt,cn)|0,Ft=Math.imul(Xt,en),Pt=Pt+Math.imul(Yt,sn)|0,mt=mt+Math.imul(Yt,yn)|0,mt=mt+Math.imul(ar,sn)|0,Ft=Ft+Math.imul(ar,yn)|0,Pt=Pt+Math.imul(cr,Fn)|0,mt=mt+Math.imul(cr,wn)|0,mt=mt+Math.imul(Gt,Fn)|0,Ft=Ft+Math.imul(Gt,wn)|0;var En=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(En>>>26)|0,En&=67108863,Pt=Math.imul(br,cn),mt=Math.imul(br,en),mt=mt+Math.imul(Or,cn)|0,Ft=Math.imul(Or,en),Pt=Pt+Math.imul(Jt,sn)|0,mt=mt+Math.imul(Jt,yn)|0,mt=mt+Math.imul(Xt,sn)|0,Ft=Ft+Math.imul(Xt,yn)|0,Pt=Pt+Math.imul(Yt,Fn)|0,mt=mt+Math.imul(Yt,wn)|0,mt=mt+Math.imul(ar,Fn)|0,Ft=Ft+Math.imul(ar,wn)|0,Pt=Pt+Math.imul(cr,Bn)|0,mt=mt+Math.imul(cr,gn)|0,mt=mt+Math.imul(Gt,Bn)|0,Ft=Ft+Math.imul(Gt,gn)|0;var $n=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(Lr,cn),mt=Math.imul(Lr,en),mt=mt+Math.imul(yr,cn)|0,Ft=Math.imul(yr,en),Pt=Pt+Math.imul(br,sn)|0,mt=mt+Math.imul(br,yn)|0,mt=mt+Math.imul(Or,sn)|0,Ft=Ft+Math.imul(Or,yn)|0,Pt=Pt+Math.imul(Jt,Fn)|0,mt=mt+Math.imul(Jt,wn)|0,mt=mt+Math.imul(Xt,Fn)|0,Ft=Ft+Math.imul(Xt,wn)|0,Pt=Pt+Math.imul(Yt,Bn)|0,mt=mt+Math.imul(Yt,gn)|0,mt=mt+Math.imul(ar,Bn)|0,Ft=Ft+Math.imul(ar,gn)|0,Pt=Pt+Math.imul(cr,Rn)|0,mt=mt+Math.imul(cr,xn)|0,mt=mt+Math.imul(Gt,Rn)|0,Ft=Ft+Math.imul(Gt,xn)|0;var Mn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,Pt=Math.imul(Pr,cn),mt=Math.imul(Pr,en),mt=mt+Math.imul(Cr,cn)|0,Ft=Math.imul(Cr,en),Pt=Pt+Math.imul(Lr,sn)|0,mt=mt+Math.imul(Lr,yn)|0,mt=mt+Math.imul(yr,sn)|0,Ft=Ft+Math.imul(yr,yn)|0,Pt=Pt+Math.imul(br,Fn)|0,mt=mt+Math.imul(br,wn)|0,mt=mt+Math.imul(Or,Fn)|0,Ft=Ft+Math.imul(Or,wn)|0,Pt=Pt+Math.imul(Jt,Bn)|0,mt=mt+Math.imul(Jt,gn)|0,mt=mt+Math.imul(Xt,Bn)|0,Ft=Ft+Math.imul(Xt,gn)|0,Pt=Pt+Math.imul(Yt,Rn)|0,mt=mt+Math.imul(Yt,xn)|0,mt=mt+Math.imul(ar,Rn)|0,Ft=Ft+Math.imul(ar,xn)|0,Pt=Pt+Math.imul(cr,Dn)|0,mt=mt+Math.imul(cr,un)|0,mt=mt+Math.imul(Gt,Dn)|0,Ft=Ft+Math.imul(Gt,un)|0;var Tn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(Hr,cn),mt=Math.imul(Hr,en),mt=mt+Math.imul(ur,cn)|0,Ft=Math.imul(ur,en),Pt=Pt+Math.imul(Pr,sn)|0,mt=mt+Math.imul(Pr,yn)|0,mt=mt+Math.imul(Cr,sn)|0,Ft=Ft+Math.imul(Cr,yn)|0,Pt=Pt+Math.imul(Lr,Fn)|0,mt=mt+Math.imul(Lr,wn)|0,mt=mt+Math.imul(yr,Fn)|0,Ft=Ft+Math.imul(yr,wn)|0,Pt=Pt+Math.imul(br,Bn)|0,mt=mt+Math.imul(br,gn)|0,mt=mt+Math.imul(Or,Bn)|0,Ft=Ft+Math.imul(Or,gn)|0,Pt=Pt+Math.imul(Jt,Rn)|0,mt=mt+Math.imul(Jt,xn)|0,mt=mt+Math.imul(Xt,Rn)|0,Ft=Ft+Math.imul(Xt,xn)|0,Pt=Pt+Math.imul(Yt,Dn)|0,mt=mt+Math.imul(Yt,un)|0,mt=mt+Math.imul(ar,Dn)|0,Ft=Ft+Math.imul(ar,un)|0,Pt=Pt+Math.imul(cr,Wt)|0,mt=mt+Math.imul(cr,tr)|0,mt=mt+Math.imul(Gt,Wt)|0,Ft=Ft+Math.imul(Gt,tr)|0;var An=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(Rr,cn),mt=Math.imul(Rr,en),mt=mt+Math.imul(Kt,cn)|0,Ft=Math.imul(Kt,en),Pt=Pt+Math.imul(Hr,sn)|0,mt=mt+Math.imul(Hr,yn)|0,mt=mt+Math.imul(ur,sn)|0,Ft=Ft+Math.imul(ur,yn)|0,Pt=Pt+Math.imul(Pr,Fn)|0,mt=mt+Math.imul(Pr,wn)|0,mt=mt+Math.imul(Cr,Fn)|0,Ft=Ft+Math.imul(Cr,wn)|0,Pt=Pt+Math.imul(Lr,Bn)|0,mt=mt+Math.imul(Lr,gn)|0,mt=mt+Math.imul(yr,Bn)|0,Ft=Ft+Math.imul(yr,gn)|0,Pt=Pt+Math.imul(br,Rn)|0,mt=mt+Math.imul(br,xn)|0,mt=mt+Math.imul(Or,Rn)|0,Ft=Ft+Math.imul(Or,xn)|0,Pt=Pt+Math.imul(Jt,Dn)|0,mt=mt+Math.imul(Jt,un)|0,mt=mt+Math.imul(Xt,Dn)|0,Ft=Ft+Math.imul(Xt,un)|0,Pt=Pt+Math.imul(Yt,Wt)|0,mt=mt+Math.imul(Yt,tr)|0,mt=mt+Math.imul(ar,Wt)|0,Ft=Ft+Math.imul(ar,tr)|0,Pt=Pt+Math.imul(cr,Dt)|0,mt=mt+Math.imul(cr,ir)|0,mt=mt+Math.imul(Gt,Dt)|0,Ft=Ft+Math.imul(Gt,ir)|0;var Sn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,Pt=Math.imul(Ut,cn),mt=Math.imul(Ut,en),mt=mt+Math.imul(rr,cn)|0,Ft=Math.imul(rr,en),Pt=Pt+Math.imul(Rr,sn)|0,mt=mt+Math.imul(Rr,yn)|0,mt=mt+Math.imul(Kt,sn)|0,Ft=Ft+Math.imul(Kt,yn)|0,Pt=Pt+Math.imul(Hr,Fn)|0,mt=mt+Math.imul(Hr,wn)|0,mt=mt+Math.imul(ur,Fn)|0,Ft=Ft+Math.imul(ur,wn)|0,Pt=Pt+Math.imul(Pr,Bn)|0,mt=mt+Math.imul(Pr,gn)|0,mt=mt+Math.imul(Cr,Bn)|0,Ft=Ft+Math.imul(Cr,gn)|0,Pt=Pt+Math.imul(Lr,Rn)|0,mt=mt+Math.imul(Lr,xn)|0,mt=mt+Math.imul(yr,Rn)|0,Ft=Ft+Math.imul(yr,xn)|0,Pt=Pt+Math.imul(br,Dn)|0,mt=mt+Math.imul(br,un)|0,mt=mt+Math.imul(Or,Dn)|0,Ft=Ft+Math.imul(Or,un)|0,Pt=Pt+Math.imul(Jt,Wt)|0,mt=mt+Math.imul(Jt,tr)|0,mt=mt+Math.imul(Xt,Wt)|0,Ft=Ft+Math.imul(Xt,tr)|0,Pt=Pt+Math.imul(Yt,Dt)|0,mt=mt+Math.imul(Yt,ir)|0,mt=mt+Math.imul(ar,Dt)|0,Ft=Ft+Math.imul(ar,ir)|0,Pt=Pt+Math.imul(cr,$r)|0,mt=mt+Math.imul(cr,Br)|0,mt=mt+Math.imul(Gt,$r)|0,Ft=Ft+Math.imul(Gt,Br)|0;var Pn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(kr,cn),mt=Math.imul(kr,en),mt=mt+Math.imul(Tr,cn)|0,Ft=Math.imul(Tr,en),Pt=Pt+Math.imul(Ut,sn)|0,mt=mt+Math.imul(Ut,yn)|0,mt=mt+Math.imul(rr,sn)|0,Ft=Ft+Math.imul(rr,yn)|0,Pt=Pt+Math.imul(Rr,Fn)|0,mt=mt+Math.imul(Rr,wn)|0,mt=mt+Math.imul(Kt,Fn)|0,Ft=Ft+Math.imul(Kt,wn)|0,Pt=Pt+Math.imul(Hr,Bn)|0,mt=mt+Math.imul(Hr,gn)|0,mt=mt+Math.imul(ur,Bn)|0,Ft=Ft+Math.imul(ur,gn)|0,Pt=Pt+Math.imul(Pr,Rn)|0,mt=mt+Math.imul(Pr,xn)|0,mt=mt+Math.imul(Cr,Rn)|0,Ft=Ft+Math.imul(Cr,xn)|0,Pt=Pt+Math.imul(Lr,Dn)|0,mt=mt+Math.imul(Lr,un)|0,mt=mt+Math.imul(yr,Dn)|0,Ft=Ft+Math.imul(yr,un)|0,Pt=Pt+Math.imul(br,Wt)|0,mt=mt+Math.imul(br,tr)|0,mt=mt+Math.imul(Or,Wt)|0,Ft=Ft+Math.imul(Or,tr)|0,Pt=Pt+Math.imul(Jt,Dt)|0,mt=mt+Math.imul(Jt,ir)|0,mt=mt+Math.imul(Xt,Dt)|0,Ft=Ft+Math.imul(Xt,ir)|0,Pt=Pt+Math.imul(Yt,$r)|0,mt=mt+Math.imul(Yt,Br)|0,mt=mt+Math.imul(ar,$r)|0,Ft=Ft+Math.imul(ar,Br)|0,Pt=Pt+Math.imul(cr,Qr)|0,mt=mt+Math.imul(cr,Vr)|0,mt=mt+Math.imul(Gt,Qr)|0,Ft=Ft+Math.imul(Gt,Vr)|0;var hn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(kr,sn),mt=Math.imul(kr,yn),mt=mt+Math.imul(Tr,sn)|0,Ft=Math.imul(Tr,yn),Pt=Pt+Math.imul(Ut,Fn)|0,mt=mt+Math.imul(Ut,wn)|0,mt=mt+Math.imul(rr,Fn)|0,Ft=Ft+Math.imul(rr,wn)|0,Pt=Pt+Math.imul(Rr,Bn)|0,mt=mt+Math.imul(Rr,gn)|0,mt=mt+Math.imul(Kt,Bn)|0,Ft=Ft+Math.imul(Kt,gn)|0,Pt=Pt+Math.imul(Hr,Rn)|0,mt=mt+Math.imul(Hr,xn)|0,mt=mt+Math.imul(ur,Rn)|0,Ft=Ft+Math.imul(ur,xn)|0,Pt=Pt+Math.imul(Pr,Dn)|0,mt=mt+Math.imul(Pr,un)|0,mt=mt+Math.imul(Cr,Dn)|0,Ft=Ft+Math.imul(Cr,un)|0,Pt=Pt+Math.imul(Lr,Wt)|0,mt=mt+Math.imul(Lr,tr)|0,mt=mt+Math.imul(yr,Wt)|0,Ft=Ft+Math.imul(yr,tr)|0,Pt=Pt+Math.imul(br,Dt)|0,mt=mt+Math.imul(br,ir)|0,mt=mt+Math.imul(Or,Dt)|0,Ft=Ft+Math.imul(Or,ir)|0,Pt=Pt+Math.imul(Jt,$r)|0,mt=mt+Math.imul(Jt,Br)|0,mt=mt+Math.imul(Xt,$r)|0,Ft=Ft+Math.imul(Xt,Br)|0,Pt=Pt+Math.imul(Yt,Qr)|0,mt=mt+Math.imul(Yt,Vr)|0,mt=mt+Math.imul(ar,Qr)|0,Ft=Ft+Math.imul(ar,Vr)|0;var vn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(vn>>>26)|0,vn&=67108863,Pt=Math.imul(kr,Fn),mt=Math.imul(kr,wn),mt=mt+Math.imul(Tr,Fn)|0,Ft=Math.imul(Tr,wn),Pt=Pt+Math.imul(Ut,Bn)|0,mt=mt+Math.imul(Ut,gn)|0,mt=mt+Math.imul(rr,Bn)|0,Ft=Ft+Math.imul(rr,gn)|0,Pt=Pt+Math.imul(Rr,Rn)|0,mt=mt+Math.imul(Rr,xn)|0,mt=mt+Math.imul(Kt,Rn)|0,Ft=Ft+Math.imul(Kt,xn)|0,Pt=Pt+Math.imul(Hr,Dn)|0,mt=mt+Math.imul(Hr,un)|0,mt=mt+Math.imul(ur,Dn)|0,Ft=Ft+Math.imul(ur,un)|0,Pt=Pt+Math.imul(Pr,Wt)|0,mt=mt+Math.imul(Pr,tr)|0,mt=mt+Math.imul(Cr,Wt)|0,Ft=Ft+Math.imul(Cr,tr)|0,Pt=Pt+Math.imul(Lr,Dt)|0,mt=mt+Math.imul(Lr,ir)|0,mt=mt+Math.imul(yr,Dt)|0,Ft=Ft+Math.imul(yr,ir)|0,Pt=Pt+Math.imul(br,$r)|0,mt=mt+Math.imul(br,Br)|0,mt=mt+Math.imul(Or,$r)|0,Ft=Ft+Math.imul(Or,Br)|0,Pt=Pt+Math.imul(Jt,Qr)|0,mt=mt+Math.imul(Jt,Vr)|0,mt=mt+Math.imul(Xt,Qr)|0,Ft=Ft+Math.imul(Xt,Vr)|0;var fn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(fn>>>26)|0,fn&=67108863,Pt=Math.imul(kr,Bn),mt=Math.imul(kr,gn),mt=mt+Math.imul(Tr,Bn)|0,Ft=Math.imul(Tr,gn),Pt=Pt+Math.imul(Ut,Rn)|0,mt=mt+Math.imul(Ut,xn)|0,mt=mt+Math.imul(rr,Rn)|0,Ft=Ft+Math.imul(rr,xn)|0,Pt=Pt+Math.imul(Rr,Dn)|0,mt=mt+Math.imul(Rr,un)|0,mt=mt+Math.imul(Kt,Dn)|0,Ft=Ft+Math.imul(Kt,un)|0,Pt=Pt+Math.imul(Hr,Wt)|0,mt=mt+Math.imul(Hr,tr)|0,mt=mt+Math.imul(ur,Wt)|0,Ft=Ft+Math.imul(ur,tr)|0,Pt=Pt+Math.imul(Pr,Dt)|0,mt=mt+Math.imul(Pr,ir)|0,mt=mt+Math.imul(Cr,Dt)|0,Ft=Ft+Math.imul(Cr,ir)|0,Pt=Pt+Math.imul(Lr,$r)|0,mt=mt+Math.imul(Lr,Br)|0,mt=mt+Math.imul(yr,$r)|0,Ft=Ft+Math.imul(yr,Br)|0,Pt=Pt+Math.imul(br,Qr)|0,mt=mt+Math.imul(br,Vr)|0,mt=mt+Math.imul(Or,Qr)|0,Ft=Ft+Math.imul(Or,Vr)|0;var dn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(dn>>>26)|0,dn&=67108863,Pt=Math.imul(kr,Rn),mt=Math.imul(kr,xn),mt=mt+Math.imul(Tr,Rn)|0,Ft=Math.imul(Tr,xn),Pt=Pt+Math.imul(Ut,Dn)|0,mt=mt+Math.imul(Ut,un)|0,mt=mt+Math.imul(rr,Dn)|0,Ft=Ft+Math.imul(rr,un)|0,Pt=Pt+Math.imul(Rr,Wt)|0,mt=mt+Math.imul(Rr,tr)|0,mt=mt+Math.imul(Kt,Wt)|0,Ft=Ft+Math.imul(Kt,tr)|0,Pt=Pt+Math.imul(Hr,Dt)|0,mt=mt+Math.imul(Hr,ir)|0,mt=mt+Math.imul(ur,Dt)|0,Ft=Ft+Math.imul(ur,ir)|0,Pt=Pt+Math.imul(Pr,$r)|0,mt=mt+Math.imul(Pr,Br)|0,mt=mt+Math.imul(Cr,$r)|0,Ft=Ft+Math.imul(Cr,Br)|0,Pt=Pt+Math.imul(Lr,Qr)|0,mt=mt+Math.imul(Lr,Vr)|0,mt=mt+Math.imul(yr,Qr)|0,Ft=Ft+Math.imul(yr,Vr)|0;var pn=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(kr,Dn),mt=Math.imul(kr,un),mt=mt+Math.imul(Tr,Dn)|0,Ft=Math.imul(Tr,un),Pt=Pt+Math.imul(Ut,Wt)|0,mt=mt+Math.imul(Ut,tr)|0,mt=mt+Math.imul(rr,Wt)|0,Ft=Ft+Math.imul(rr,tr)|0,Pt=Pt+Math.imul(Rr,Dt)|0,mt=mt+Math.imul(Rr,ir)|0,mt=mt+Math.imul(Kt,Dt)|0,Ft=Ft+Math.imul(Kt,ir)|0,Pt=Pt+Math.imul(Hr,$r)|0,mt=mt+Math.imul(Hr,Br)|0,mt=mt+Math.imul(ur,$r)|0,Ft=Ft+Math.imul(ur,Br)|0,Pt=Pt+Math.imul(Pr,Qr)|0,mt=mt+Math.imul(Pr,Vr)|0,mt=mt+Math.imul(Cr,Qr)|0,Ft=Ft+Math.imul(Cr,Vr)|0;var an=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(an>>>26)|0,an&=67108863,Pt=Math.imul(kr,Wt),mt=Math.imul(kr,tr),mt=mt+Math.imul(Tr,Wt)|0,Ft=Math.imul(Tr,tr),Pt=Pt+Math.imul(Ut,Dt)|0,mt=mt+Math.imul(Ut,ir)|0,mt=mt+Math.imul(rr,Dt)|0,Ft=Ft+Math.imul(rr,ir)|0,Pt=Pt+Math.imul(Rr,$r)|0,mt=mt+Math.imul(Rr,Br)|0,mt=mt+Math.imul(Kt,$r)|0,Ft=Ft+Math.imul(Kt,Br)|0,Pt=Pt+Math.imul(Hr,Qr)|0,mt=mt+Math.imul(Hr,Vr)|0,mt=mt+Math.imul(ur,Qr)|0,Ft=Ft+Math.imul(ur,Vr)|0;var Fr=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,Pt=Math.imul(kr,Dt),mt=Math.imul(kr,ir),mt=mt+Math.imul(Tr,Dt)|0,Ft=Math.imul(Tr,ir),Pt=Pt+Math.imul(Ut,$r)|0,mt=mt+Math.imul(Ut,Br)|0,mt=mt+Math.imul(rr,$r)|0,Ft=Ft+Math.imul(rr,Br)|0,Pt=Pt+Math.imul(Rr,Qr)|0,mt=mt+Math.imul(Rr,Vr)|0,mt=mt+Math.imul(Kt,Qr)|0,Ft=Ft+Math.imul(Kt,Vr)|0;var Nr=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Pt=Math.imul(kr,$r),mt=Math.imul(kr,Br),mt=mt+Math.imul(Tr,$r)|0,Ft=Math.imul(Tr,Br),Pt=Pt+Math.imul(Ut,Qr)|0,mt=mt+Math.imul(Ut,Vr)|0,mt=mt+Math.imul(rr,Qr)|0,Ft=Ft+Math.imul(rr,Vr)|0;var Xr=(At+Pt|0)+((mt&8191)<<13)|0;At=(Ft+(mt>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,Pt=Math.imul(kr,Qr),mt=Math.imul(kr,Vr),mt=mt+Math.imul(Tr,Qr)|0,Ft=Math.imul(Tr,Vr);var Ur=(At+Pt|0)+((mt&8191)<<13)|0;return At=(Ft+(mt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Tt[0]=Un,Tt[1]=ln,Tt[2]=En,Tt[3]=$n,Tt[4]=Mn,Tt[5]=Tn,Tt[6]=An,Tt[7]=Sn,Tt[8]=Pn,Tt[9]=hn,Tt[10]=vn,Tt[11]=fn,Tt[12]=dn,Tt[13]=pn,Tt[14]=an,Tt[15]=Fr,Tt[16]=Nr,Tt[17]=Xr,Tt[18]=Ur,At!==0&&(Tt[19]=At,St.length++),St};Math.imul||(bt=yt);function kt(Bt,ct,xt){xt.negative=ct.negative^Bt.negative,xt.length=Bt.length+ct.length;for(var St=0,Mt=0,$t=0;$t>>26)|0,Mt+=Tt>>>26,Tt&=67108863}xt.words[$t]=At,St=Tt,Tt=Mt}return St!==0?xt.words[$t]=St:xt.length--,xt._strip()}function It(Bt,ct,xt){return kt(Bt,ct,xt)}nt.prototype.mulTo=function(ct,xt){var St,Mt=this.length+ct.length;return this.length===10&&ct.length===10?St=bt(this,ct,xt):Mt<63?St=yt(this,ct,xt):Mt<1024?St=kt(this,ct,xt):St=It(this,ct,xt),St},nt.prototype.mul=function(ct){var xt=new nt(null);return xt.words=new Array(this.length+ct.length),this.mulTo(ct,xt)},nt.prototype.mulf=function(ct){var xt=new nt(null);return xt.words=new Array(this.length+ct.length),It(this,ct,xt)},nt.prototype.imul=function(ct){return this.clone().mulTo(ct,this)},nt.prototype.imuln=function(ct){var xt=ct<0;xt&&(ct=-ct),tt(typeof ct=="number"),tt(ct<67108864);for(var St=0,Mt=0;Mt>=26,St+=$t/67108864|0,St+=Tt>>>26,this.words[Mt]=Tt&67108863}return St!==0&&(this.words[Mt]=St,this.length++),xt?this.ineg():this},nt.prototype.muln=function(ct){return this.clone().imuln(ct)},nt.prototype.sqr=function(){return this.mul(this)},nt.prototype.isqr=function(){return this.imul(this.clone())},nt.prototype.pow=function(ct){var xt=Et(ct);if(xt.length===0)return new nt(1);for(var St=this,Mt=0;Mt=0);var xt=ct%26,St=(ct-xt)/26,Mt=67108863>>>26-xt<<26-xt,$t;if(xt!==0){var Tt=0;for($t=0;$t>>26-xt}Tt&&(this.words[$t]=Tt,this.length++)}if(St!==0){for($t=this.length-1;$t>=0;$t--)this.words[$t+St]=this.words[$t];for($t=0;$t=0);var Mt;xt?Mt=(xt-xt%26)/26:Mt=0;var $t=ct%26,Tt=Math.min((ct-$t)/26,this.length),At=67108863^67108863>>>$t<<$t,Pt=St;if(Mt-=Tt,Mt=Math.max(0,Mt),Pt){for(var mt=0;mtTt)for(this.length-=Tt,mt=0;mt=0&&(Ft!==0||mt>=Mt);mt--){var Qt=this.words[mt]|0;this.words[mt]=Ft<<26-$t|Qt>>>$t,Ft=Qt&At}return Pt&&Ft!==0&&(Pt.words[Pt.length++]=Ft),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},nt.prototype.ishrn=function(ct,xt,St){return tt(this.negative===0),this.iushrn(ct,xt,St)},nt.prototype.shln=function(ct){return this.clone().ishln(ct)},nt.prototype.ushln=function(ct){return this.clone().iushln(ct)},nt.prototype.shrn=function(ct){return this.clone().ishrn(ct)},nt.prototype.ushrn=function(ct){return this.clone().iushrn(ct)},nt.prototype.testn=function(ct){tt(typeof ct=="number"&&ct>=0);var xt=ct%26,St=(ct-xt)/26,Mt=1<=0);var xt=ct%26,St=(ct-xt)/26;if(tt(this.negative===0,"imaskn works only with positive numbers"),this.length<=St)return this;if(xt!==0&&St++,this.length=Math.min(St,this.length),xt!==0){var Mt=67108863^67108863>>>xt<=67108864;xt++)this.words[xt]-=67108864,xt===this.length-1?this.words[xt+1]=1:this.words[xt+1]++;return this.length=Math.max(this.length,xt+1),this},nt.prototype.isubn=function(ct){if(tt(typeof ct=="number"),tt(ct<67108864),ct<0)return this.iaddn(-ct);if(this.negative!==0)return this.negative=0,this.iaddn(ct),this.negative=1,this;if(this.words[0]-=ct,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var xt=0;xt>26)-(Pt/67108864|0),this.words[$t+St]=Tt&67108863}for(;$t>26,this.words[$t+St]=Tt&67108863;if(At===0)return this._strip();for(tt(At===-1),At=0,$t=0;$t>26,this.words[$t]=Tt&67108863;return this.negative=1,this._strip()},nt.prototype._wordDiv=function(ct,xt){var St=this.length-ct.length,Mt=this.clone(),$t=ct,Tt=$t.words[$t.length-1]|0,At=this._countBits(Tt);St=26-At,St!==0&&($t=$t.ushln(St),Mt.iushln(St),Tt=$t.words[$t.length-1]|0);var Pt=Mt.length-$t.length,mt;if(xt!=="mod"){mt=new nt(null),mt.length=Pt+1,mt.words=new Array(mt.length);for(var Ft=0;Ft=0;cr--){var Gt=(Mt.words[$t.length+cr]|0)*67108864+(Mt.words[$t.length+cr-1]|0);for(Gt=Math.min(Gt/Tt|0,67108863),Mt._ishlnsubmul($t,Gt,cr);Mt.negative!==0;)Gt--,Mt.negative=0,Mt._ishlnsubmul($t,1,cr),Mt.isZero()||(Mt.negative^=1);mt&&(mt.words[cr]=Gt)}return mt&&mt._strip(),Mt._strip(),xt!=="div"&&St!==0&&Mt.iushrn(St),{div:mt||null,mod:Mt}},nt.prototype.divmod=function(ct,xt,St){if(tt(!ct.isZero()),this.isZero())return{div:new nt(0),mod:new nt(0)};var Mt,$t,Tt;return this.negative!==0&&ct.negative===0?(Tt=this.neg().divmod(ct,xt),xt!=="mod"&&(Mt=Tt.div.neg()),xt!=="div"&&($t=Tt.mod.neg(),St&&$t.negative!==0&&$t.iadd(ct)),{div:Mt,mod:$t}):this.negative===0&&ct.negative!==0?(Tt=this.divmod(ct.neg(),xt),xt!=="mod"&&(Mt=Tt.div.neg()),{div:Mt,mod:Tt.mod}):this.negative&ct.negative?(Tt=this.neg().divmod(ct.neg(),xt),xt!=="div"&&($t=Tt.mod.neg(),St&&$t.negative!==0&&$t.isub(ct)),{div:Tt.div,mod:$t}):ct.length>this.length||this.cmp(ct)<0?{div:new nt(0),mod:this}:ct.length===1?xt==="div"?{div:this.divn(ct.words[0]),mod:null}:xt==="mod"?{div:null,mod:new nt(this.modrn(ct.words[0]))}:{div:this.divn(ct.words[0]),mod:new nt(this.modrn(ct.words[0]))}:this._wordDiv(ct,xt)},nt.prototype.div=function(ct){return this.divmod(ct,"div",!1).div},nt.prototype.mod=function(ct){return this.divmod(ct,"mod",!1).mod},nt.prototype.umod=function(ct){return this.divmod(ct,"mod",!0).mod},nt.prototype.divRound=function(ct){var xt=this.divmod(ct);if(xt.mod.isZero())return xt.div;var St=xt.div.negative!==0?xt.mod.isub(ct):xt.mod,Mt=ct.ushrn(1),$t=ct.andln(1),Tt=St.cmp(Mt);return Tt<0||$t===1&&Tt===0?xt.div:xt.div.negative!==0?xt.div.isubn(1):xt.div.iaddn(1)},nt.prototype.modrn=function(ct){var xt=ct<0;xt&&(ct=-ct),tt(ct<=67108863);for(var St=(1<<26)%ct,Mt=0,$t=this.length-1;$t>=0;$t--)Mt=(St*Mt+(this.words[$t]|0))%ct;return xt?-Mt:Mt},nt.prototype.modn=function(ct){return this.modrn(ct)},nt.prototype.idivn=function(ct){var xt=ct<0;xt&&(ct=-ct),tt(ct<=67108863);for(var St=0,Mt=this.length-1;Mt>=0;Mt--){var $t=(this.words[Mt]|0)+St*67108864;this.words[Mt]=$t/ct|0,St=$t%ct}return this._strip(),xt?this.ineg():this},nt.prototype.divn=function(ct){return this.clone().idivn(ct)},nt.prototype.egcd=function(ct){tt(ct.negative===0),tt(!ct.isZero());var xt=this,St=ct.clone();xt.negative!==0?xt=xt.umod(ct):xt=xt.clone();for(var Mt=new nt(1),$t=new nt(0),Tt=new nt(0),At=new nt(1),Pt=0;xt.isEven()&&St.isEven();)xt.iushrn(1),St.iushrn(1),++Pt;for(var mt=St.clone(),Ft=xt.clone();!xt.isZero();){for(var Qt=0,cr=1;!(xt.words[0]&cr)&&Qt<26;++Qt,cr<<=1);if(Qt>0)for(xt.iushrn(Qt);Qt-- >0;)(Mt.isOdd()||$t.isOdd())&&(Mt.iadd(mt),$t.isub(Ft)),Mt.iushrn(1),$t.iushrn(1);for(var Gt=0,Zt=1;!(St.words[0]&Zt)&&Gt<26;++Gt,Zt<<=1);if(Gt>0)for(St.iushrn(Gt);Gt-- >0;)(Tt.isOdd()||At.isOdd())&&(Tt.iadd(mt),At.isub(Ft)),Tt.iushrn(1),At.iushrn(1);xt.cmp(St)>=0?(xt.isub(St),Mt.isub(Tt),$t.isub(At)):(St.isub(xt),Tt.isub(Mt),At.isub($t))}return{a:Tt,b:At,gcd:St.iushln(Pt)}},nt.prototype._invmp=function(ct){tt(ct.negative===0),tt(!ct.isZero());var xt=this,St=ct.clone();xt.negative!==0?xt=xt.umod(ct):xt=xt.clone();for(var Mt=new nt(1),$t=new nt(0),Tt=St.clone();xt.cmpn(1)>0&&St.cmpn(1)>0;){for(var At=0,Pt=1;!(xt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(xt.iushrn(At);At-- >0;)Mt.isOdd()&&Mt.iadd(Tt),Mt.iushrn(1);for(var mt=0,Ft=1;!(St.words[0]&Ft)&&mt<26;++mt,Ft<<=1);if(mt>0)for(St.iushrn(mt);mt-- >0;)$t.isOdd()&&$t.iadd(Tt),$t.iushrn(1);xt.cmp(St)>=0?(xt.isub(St),Mt.isub($t)):(St.isub(xt),$t.isub(Mt))}var Qt;return xt.cmpn(1)===0?Qt=Mt:Qt=$t,Qt.cmpn(0)<0&&Qt.iadd(ct),Qt},nt.prototype.gcd=function(ct){if(this.isZero())return ct.abs();if(ct.isZero())return this.abs();var xt=this.clone(),St=ct.clone();xt.negative=0,St.negative=0;for(var Mt=0;xt.isEven()&&St.isEven();Mt++)xt.iushrn(1),St.iushrn(1);do{for(;xt.isEven();)xt.iushrn(1);for(;St.isEven();)St.iushrn(1);var $t=xt.cmp(St);if($t<0){var Tt=xt;xt=St,St=Tt}else if($t===0||St.cmpn(1)===0)break;xt.isub(St)}while(!0);return St.iushln(Mt)},nt.prototype.invm=function(ct){return this.egcd(ct).a.umod(ct)},nt.prototype.isEven=function(){return(this.words[0]&1)===0},nt.prototype.isOdd=function(){return(this.words[0]&1)===1},nt.prototype.andln=function(ct){return this.words[0]&ct},nt.prototype.bincn=function(ct){tt(typeof ct=="number");var xt=ct%26,St=(ct-xt)/26,Mt=1<>>26,At&=67108863,this.words[Tt]=At}return $t!==0&&(this.words[Tt]=$t,this.length++),this},nt.prototype.isZero=function(){return this.length===1&&this.words[0]===0},nt.prototype.cmpn=function(ct){var xt=ct<0;if(this.negative!==0&&!xt)return-1;if(this.negative===0&&xt)return 1;this._strip();var St;if(this.length>1)St=1;else{xt&&(ct=-ct),tt(ct<=67108863,"Number is too big");var Mt=this.words[0]|0;St=Mt===ct?0:Mtct.length)return 1;if(this.length=0;St--){var Mt=this.words[St]|0,$t=ct.words[St]|0;if(Mt!==$t){Mt<$t?xt=-1:Mt>$t&&(xt=1);break}}return xt},nt.prototype.gtn=function(ct){return this.cmpn(ct)===1},nt.prototype.gt=function(ct){return this.cmp(ct)===1},nt.prototype.gten=function(ct){return this.cmpn(ct)>=0},nt.prototype.gte=function(ct){return this.cmp(ct)>=0},nt.prototype.ltn=function(ct){return this.cmpn(ct)===-1},nt.prototype.lt=function(ct){return this.cmp(ct)===-1},nt.prototype.lten=function(ct){return this.cmpn(ct)<=0},nt.prototype.lte=function(ct){return this.cmp(ct)<=0},nt.prototype.eqn=function(ct){return this.cmpn(ct)===0},nt.prototype.eq=function(ct){return this.cmp(ct)===0},nt.red=function(ct){return new qt(ct)},nt.prototype.toRed=function(ct){return tt(!this.red,"Already a number in reduction context"),tt(this.negative===0,"red works only with positives"),ct.convertTo(this)._forceRed(ct)},nt.prototype.fromRed=function(){return tt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},nt.prototype._forceRed=function(ct){return this.red=ct,this},nt.prototype.forceRed=function(ct){return tt(!this.red,"Already a number in reduction context"),this._forceRed(ct)},nt.prototype.redAdd=function(ct){return tt(this.red,"redAdd works only with red numbers"),this.red.add(this,ct)},nt.prototype.redIAdd=function(ct){return tt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ct)},nt.prototype.redSub=function(ct){return tt(this.red,"redSub works only with red numbers"),this.red.sub(this,ct)},nt.prototype.redISub=function(ct){return tt(this.red,"redISub works only with red numbers"),this.red.isub(this,ct)},nt.prototype.redShl=function(ct){return tt(this.red,"redShl works only with red numbers"),this.red.shl(this,ct)},nt.prototype.redMul=function(ct){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ct),this.red.mul(this,ct)},nt.prototype.redIMul=function(ct){return tt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ct),this.red.imul(this,ct)},nt.prototype.redSqr=function(){return tt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},nt.prototype.redISqr=function(){return tt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},nt.prototype.redSqrt=function(){return tt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},nt.prototype.redInvm=function(){return tt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},nt.prototype.redNeg=function(){return tt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},nt.prototype.redPow=function(ct){return tt(this.red&&!ct.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ct)};var Ot={k256:null,p224:null,p192:null,p25519:null};function Nt(Bt,ct){this.name=Bt,this.p=new nt(ct,16),this.n=this.p.bitLength(),this.k=new nt(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Nt.prototype._tmp=function(){var ct=new nt(null);return ct.words=new Array(Math.ceil(this.n/13)),ct},Nt.prototype.ireduce=function(ct){var xt=ct,St;do this.split(xt,this.tmp),xt=this.imulK(xt),xt=xt.iadd(this.tmp),St=xt.bitLength();while(St>this.n);var Mt=St0?xt.isub(this.p):xt.strip!==void 0?xt.strip():xt._strip(),xt},Nt.prototype.split=function(ct,xt){ct.iushrn(this.n,0,xt)},Nt.prototype.imulK=function(ct){return ct.imul(this.k)};function Vt(){Nt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}rt(Vt,Nt),Vt.prototype.split=function(ct,xt){for(var St=4194303,Mt=Math.min(ct.length,9),$t=0;$t>>22,Tt=At}Tt>>>=22,ct.words[$t-10]=Tt,Tt===0&&ct.length>10?ct.length-=10:ct.length-=9},Vt.prototype.imulK=function(ct){ct.words[ct.length]=0,ct.words[ct.length+1]=0,ct.length+=2;for(var xt=0,St=0;St>>=26,ct.words[St]=$t,xt=Mt}return xt!==0&&(ct.words[ct.length++]=xt),ct},nt._prime=function(ct){if(Ot[ct])return Ot[ct];var xt;if(ct==="k256")xt=new Vt;else if(ct==="p224")xt=new jt;else if(ct==="p192")xt=new zt;else if(ct==="p25519")xt=new or;else throw new Error("Unknown prime "+ct);return Ot[ct]=xt,xt};function qt(Bt){if(typeof Bt=="string"){var ct=nt._prime(Bt);this.m=ct.p,this.prime=ct}else tt(Bt.gtn(1),"modulus must be greater than 1"),this.m=Bt,this.prime=null}qt.prototype._verify1=function(ct){tt(ct.negative===0,"red works only with positives"),tt(ct.red,"red works only with red numbers")},qt.prototype._verify2=function(ct,xt){tt((ct.negative|xt.negative)===0,"red works only with positives"),tt(ct.red&&ct.red===xt.red,"red works only with red numbers")},qt.prototype.imod=function(ct){return this.prime?this.prime.ireduce(ct)._forceRed(this):(ht(ct,ct.umod(this.m)._forceRed(this)),ct)},qt.prototype.neg=function(ct){return ct.isZero()?ct.clone():this.m.sub(ct)._forceRed(this)},qt.prototype.add=function(ct,xt){this._verify2(ct,xt);var St=ct.add(xt);return St.cmp(this.m)>=0&&St.isub(this.m),St._forceRed(this)},qt.prototype.iadd=function(ct,xt){this._verify2(ct,xt);var St=ct.iadd(xt);return St.cmp(this.m)>=0&&St.isub(this.m),St},qt.prototype.sub=function(ct,xt){this._verify2(ct,xt);var St=ct.sub(xt);return St.cmpn(0)<0&&St.iadd(this.m),St._forceRed(this)},qt.prototype.isub=function(ct,xt){this._verify2(ct,xt);var St=ct.isub(xt);return St.cmpn(0)<0&&St.iadd(this.m),St},qt.prototype.shl=function(ct,xt){return this._verify1(ct),this.imod(ct.ushln(xt))},qt.prototype.imul=function(ct,xt){return this._verify2(ct,xt),this.imod(ct.imul(xt))},qt.prototype.mul=function(ct,xt){return this._verify2(ct,xt),this.imod(ct.mul(xt))},qt.prototype.isqr=function(ct){return this.imul(ct,ct.clone())},qt.prototype.sqr=function(ct){return this.mul(ct,ct)},qt.prototype.sqrt=function(ct){if(ct.isZero())return ct.clone();var xt=this.m.andln(3);if(tt(xt%2===1),xt===3){var St=this.m.add(new nt(1)).iushrn(2);return this.pow(ct,St)}for(var Mt=this.m.subn(1),$t=0;!Mt.isZero()&&Mt.andln(1)===0;)$t++,Mt.iushrn(1);tt(!Mt.isZero());var Tt=new nt(1).toRed(this),At=Tt.redNeg(),Pt=this.m.subn(1).iushrn(1),mt=this.m.bitLength();for(mt=new nt(2*mt*mt).toRed(this);this.pow(mt,Pt).cmp(At)!==0;)mt.redIAdd(At);for(var Ft=this.pow(mt,Mt),Qt=this.pow(ct,Mt.addn(1).iushrn(1)),cr=this.pow(ct,Mt),Gt=$t;cr.cmp(Tt)!==0;){for(var Zt=cr,Yt=0;Zt.cmp(Tt)!==0;Yt++)Zt=Zt.redSqr();tt(Yt=0;$t--){for(var Ft=xt.words[$t],Qt=mt-1;Qt>=0;Qt--){var cr=Ft>>Qt&1;if(Tt!==Mt[0]&&(Tt=this.sqr(Tt)),cr===0&&At===0){Pt=0;continue}At<<=1,At|=cr,Pt++,!(Pt!==St&&($t!==0||Qt!==0))&&(Tt=this.mul(Tt,Mt[At]),Pt=0,At=0)}mt=26}return Tt},qt.prototype.convertTo=function(ct){var xt=ct.umod(this.m);return xt===ct?xt.clone():xt},qt.prototype.convertFrom=function(ct){var xt=ct.clone();return xt.red=null,xt},nt.mont=function(ct){return new Rt(ct)};function Rt(Bt){qt.call(this,Bt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new nt(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}rt(Rt,qt),Rt.prototype.convertTo=function(ct){return this.imod(ct.ushln(this.shift))},Rt.prototype.convertFrom=function(ct){var xt=this.imod(ct.mul(this.rinv));return xt.red=null,xt},Rt.prototype.imul=function(ct,xt){if(ct.isZero()||xt.isZero())return ct.words[0]=0,ct.length=1,ct;var St=ct.imul(xt),Mt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=St.isub(Mt).iushrn(this.shift),Tt=$t;return $t.cmp(this.m)>=0?Tt=$t.isub(this.m):$t.cmpn(0)<0&&(Tt=$t.iadd(this.m)),Tt._forceRed(this)},Rt.prototype.mul=function(ct,xt){if(ct.isZero()||xt.isZero())return new nt(0)._forceRed(this);var St=ct.mul(xt),Mt=St.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$t=St.isub(Mt).iushrn(this.shift),Tt=$t;return $t.cmp(this.m)>=0?Tt=$t.isub(this.m):$t.cmpn(0)<0&&(Tt=$t.iadd(this.m)),Tt._forceRed(this)},Rt.prototype.invm=function(ct){var xt=this.imod(ct._invmp(this.m).mul(this.r2));return xt._forceRed(this)}})(a,commonjsGlobal)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},encoders={},buffer$1=buffer$2,Buffer$d=buffer$1.Buffer,safer={},key;for(key in buffer$1)buffer$1.hasOwnProperty(key)&&(key==="SlowBuffer"||key==="Buffer"||(safer[key]=buffer$1[key]));var Safer=safer.Buffer={};for(key in Buffer$d)Buffer$d.hasOwnProperty(key)&&(key==="allocUnsafe"||key==="allocUnsafeSlow"||(Safer[key]=Buffer$d[key]));safer.Buffer.prototype=Buffer$d.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(a,o,et){if(typeof a=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof a);if(a&&typeof a.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);return Buffer$d(a,o,et)});Safer.alloc||(Safer.alloc=function(a,o,et){if(typeof a!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof a);if(a<0||a>=2*(1<<30))throw new RangeError('The value "'+a+'" is invalid for option "size"');var tt=Buffer$d(a);return!o||o.length===0?tt.fill(0):typeof et=="string"?tt.fill(o,et):tt.fill(o),tt});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,reporter={};const inherits$5=inherits_browserExports;function Reporter$2(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}reporter.Reporter=Reporter$2;Reporter$2.prototype.isError=function(o){return o instanceof ReporterError};Reporter$2.prototype.save=function(){const o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}};Reporter$2.prototype.restore=function(o){const et=this._reporterState;et.obj=o.obj,et.path=et.path.slice(0,o.pathLen)};Reporter$2.prototype.enterKey=function(o){return this._reporterState.path.push(o)};Reporter$2.prototype.exitKey=function(o){const et=this._reporterState;et.path=et.path.slice(0,o-1)};Reporter$2.prototype.leaveKey=function(o,et,tt){const rt=this._reporterState;this.exitKey(o),rt.obj!==null&&(rt.obj[et]=tt)};Reporter$2.prototype.path=function(){return this._reporterState.path.join("/")};Reporter$2.prototype.enterObject=function(){const o=this._reporterState,et=o.obj;return o.obj={},et};Reporter$2.prototype.leaveObject=function(o){const et=this._reporterState,tt=et.obj;return et.obj=o,tt};Reporter$2.prototype.error=function(o){let et;const tt=this._reporterState,rt=o instanceof ReporterError;if(rt?et=o:et=new ReporterError(tt.path.map(function(nt){return"["+JSON.stringify(nt)+"]"}).join(""),o.message||o,o.stack),!tt.options.partial)throw et;return rt||tt.errors.push(et),et};Reporter$2.prototype.wrapResult=function(o){const et=this._reporterState;return et.options.partial?{result:this.isError(o)?null:o,errors:et.errors}:o};function ReporterError(a,o){this.path=a,this.rethrow(o)}inherits$5(ReporterError,Error);ReporterError.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(et){this.stack=et.stack}return this};var buffer={};const inherits$4=inherits_browserExports,Reporter$1=reporter.Reporter,Buffer$c=safer_1.Buffer;function DecoderBuffer$2(a,o){if(Reporter$1.call(this,o),!Buffer$c.isBuffer(a)){this.error("Input not Buffer");return}this.base=a,this.offset=0,this.length=a.length}inherits$4(DecoderBuffer$2,Reporter$1);buffer.DecoderBuffer=DecoderBuffer$2;DecoderBuffer$2.isDecoderBuffer=function(o){return o instanceof DecoderBuffer$2?!0:typeof o=="object"&&Buffer$c.isBuffer(o.base)&&o.constructor.name==="DecoderBuffer"&&typeof o.offset=="number"&&typeof o.length=="number"&&typeof o.save=="function"&&typeof o.restore=="function"&&typeof o.isEmpty=="function"&&typeof o.readUInt8=="function"&&typeof o.skip=="function"&&typeof o.raw=="function"};DecoderBuffer$2.prototype.save=function(){return{offset:this.offset,reporter:Reporter$1.prototype.save.call(this)}};DecoderBuffer$2.prototype.restore=function(o){const et=new DecoderBuffer$2(this.base);return et.offset=o.offset,et.length=this.offset,this.offset=o.offset,Reporter$1.prototype.restore.call(this,o.reporter),et};DecoderBuffer$2.prototype.isEmpty=function(){return this.offset===this.length};DecoderBuffer$2.prototype.readUInt8=function(o){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(o||"DecoderBuffer overrun")};DecoderBuffer$2.prototype.skip=function(o,et){if(!(this.offset+o<=this.length))return this.error(et||"DecoderBuffer overrun");const tt=new DecoderBuffer$2(this.base);return tt._reporterState=this._reporterState,tt.offset=this.offset,tt.length=this.offset+o,this.offset+=o,tt};DecoderBuffer$2.prototype.raw=function(o){return this.base.slice(o?o.offset:this.offset,this.length)};function EncoderBuffer$1(a,o){if(Array.isArray(a))this.length=0,this.value=a.map(function(et){return EncoderBuffer$1.isEncoderBuffer(et)||(et=new EncoderBuffer$1(et,o)),this.length+=et.length,et},this);else if(typeof a=="number"){if(!(0<=a&&a<=255))return o.error("non-byte EncoderBuffer value");this.value=a,this.length=1}else if(typeof a=="string")this.value=a,this.length=Buffer$c.byteLength(a);else if(Buffer$c.isBuffer(a))this.value=a,this.length=a.length;else return o.error("Unsupported type: "+typeof a)}buffer.EncoderBuffer=EncoderBuffer$1;EncoderBuffer$1.isEncoderBuffer=function(o){return o instanceof EncoderBuffer$1?!0:typeof o=="object"&&o.constructor.name==="EncoderBuffer"&&typeof o.length=="number"&&typeof o.join=="function"};EncoderBuffer$1.prototype.join=function(o,et){return o||(o=Buffer$c.alloc(this.length)),et||(et=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(tt){tt.join(o,et),et+=tt.length}):(typeof this.value=="number"?o[et]=this.value:typeof this.value=="string"?o.write(this.value,et):Buffer$c.isBuffer(this.value)&&this.value.copy(o,et),et+=this.length)),o};const Reporter=reporter.Reporter,EncoderBuffer=buffer.EncoderBuffer,DecoderBuffer$1=buffer.DecoderBuffer,assert$4=minimalisticAssert,tags$1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],methods=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tags$1),overrided=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node$2(a,o,et){const tt={};this._baseState=tt,tt.name=et,tt.enc=a,tt.parent=o||null,tt.children=null,tt.tag=null,tt.args=null,tt.reverseArgs=null,tt.choice=null,tt.optional=!1,tt.any=!1,tt.obj=!1,tt.use=null,tt.useDecoder=null,tt.key=null,tt.default=null,tt.explicit=null,tt.implicit=null,tt.contains=null,tt.parent||(tt.children=[],this._wrap())}var node$1=Node$2;const stateProps=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node$2.prototype.clone=function(){const o=this._baseState,et={};stateProps.forEach(function(rt){et[rt]=o[rt]});const tt=new this.constructor(et.parent);return tt._baseState=et,tt};Node$2.prototype._wrap=function(){const o=this._baseState;methods.forEach(function(et){this[et]=function(){const rt=new this.constructor(this);return o.children.push(rt),rt[et].apply(rt,arguments)}},this)};Node$2.prototype._init=function(o){const et=this._baseState;assert$4(et.parent===null),o.call(this),et.children=et.children.filter(function(tt){return tt._baseState.parent===this},this),assert$4.equal(et.children.length,1,"Root node can have only one child")};Node$2.prototype._useArgs=function(o){const et=this._baseState,tt=o.filter(function(rt){return rt instanceof this.constructor},this);o=o.filter(function(rt){return!(rt instanceof this.constructor)},this),tt.length!==0&&(assert$4(et.children===null),et.children=tt,tt.forEach(function(rt){rt._baseState.parent=this},this)),o.length!==0&&(assert$4(et.args===null),et.args=o,et.reverseArgs=o.map(function(rt){if(typeof rt!="object"||rt.constructor!==Object)return rt;const nt={};return Object.keys(rt).forEach(function(it){it==(it|0)&&(it|=0);const st=rt[it];nt[st]=it}),nt}))};overrided.forEach(function(a){Node$2.prototype[a]=function(){const et=this._baseState;throw new Error(a+" not implemented for encoding: "+et.enc)}});tags$1.forEach(function(a){Node$2.prototype[a]=function(){const et=this._baseState,tt=Array.prototype.slice.call(arguments);return assert$4(et.tag===null),et.tag=a,this._useArgs(tt),this}});Node$2.prototype.use=function(o){assert$4(o);const et=this._baseState;return assert$4(et.use===null),et.use=o,this};Node$2.prototype.optional=function(){const o=this._baseState;return o.optional=!0,this};Node$2.prototype.def=function(o){const et=this._baseState;return assert$4(et.default===null),et.default=o,et.optional=!0,this};Node$2.prototype.explicit=function(o){const et=this._baseState;return assert$4(et.explicit===null&&et.implicit===null),et.explicit=o,this};Node$2.prototype.implicit=function(o){const et=this._baseState;return assert$4(et.explicit===null&&et.implicit===null),et.implicit=o,this};Node$2.prototype.obj=function(){const o=this._baseState,et=Array.prototype.slice.call(arguments);return o.obj=!0,et.length!==0&&this._useArgs(et),this};Node$2.prototype.key=function(o){const et=this._baseState;return assert$4(et.key===null),et.key=o,this};Node$2.prototype.any=function(){const o=this._baseState;return o.any=!0,this};Node$2.prototype.choice=function(o){const et=this._baseState;return assert$4(et.choice===null),et.choice=o,this._useArgs(Object.keys(o).map(function(tt){return o[tt]})),this};Node$2.prototype.contains=function(o){const et=this._baseState;return assert$4(et.use===null),et.contains=o,this};Node$2.prototype._decode=function(o,et){const tt=this._baseState;if(tt.parent===null)return o.wrapResult(tt.children[0]._decode(o,et));let rt=tt.default,nt=!0,it=null;if(tt.key!==null&&(it=o.enterKey(tt.key)),tt.optional){let at=null;if(tt.explicit!==null?at=tt.explicit:tt.implicit!==null?at=tt.implicit:tt.tag!==null&&(at=tt.tag),at===null&&!tt.any){const lt=o.save();try{tt.choice===null?this._decodeGeneric(tt.tag,o,et):this._decodeChoice(o,et),nt=!0}catch{nt=!1}o.restore(lt)}else if(nt=this._peekTag(o,at,tt.any),o.isError(nt))return nt}let st;if(tt.obj&&nt&&(st=o.enterObject()),nt){if(tt.explicit!==null){const lt=this._decodeTag(o,tt.explicit);if(o.isError(lt))return lt;o=lt}const at=o.offset;if(tt.use===null&&tt.choice===null){let lt;tt.any&&(lt=o.save());const ht=this._decodeTag(o,tt.implicit!==null?tt.implicit:tt.tag,tt.any);if(o.isError(ht))return ht;tt.any?rt=o.raw(lt):o=ht}if(et&&et.track&&tt.tag!==null&&et.track(o.path(),at,o.length,"tagged"),et&&et.track&&tt.tag!==null&&et.track(o.path(),o.offset,o.length,"content"),tt.any||(tt.choice===null?rt=this._decodeGeneric(tt.tag,o,et):rt=this._decodeChoice(o,et)),o.isError(rt))return rt;if(!tt.any&&tt.choice===null&&tt.children!==null&&tt.children.forEach(function(ht){ht._decode(o,et)}),tt.contains&&(tt.tag==="octstr"||tt.tag==="bitstr")){const lt=new DecoderBuffer$1(rt);rt=this._getUse(tt.contains,o._reporterState.obj)._decode(lt,et)}}return tt.obj&&nt&&(rt=o.leaveObject(st)),tt.key!==null&&(rt!==null||nt===!0)?o.leaveKey(it,tt.key,rt):it!==null&&o.exitKey(it),rt};Node$2.prototype._decodeGeneric=function(o,et,tt){const rt=this._baseState;return o==="seq"||o==="set"?null:o==="seqof"||o==="setof"?this._decodeList(et,o,rt.args[0],tt):/str$/.test(o)?this._decodeStr(et,o,tt):o==="objid"&&rt.args?this._decodeObjid(et,rt.args[0],rt.args[1],tt):o==="objid"?this._decodeObjid(et,null,null,tt):o==="gentime"||o==="utctime"?this._decodeTime(et,o,tt):o==="null_"?this._decodeNull(et,tt):o==="bool"?this._decodeBool(et,tt):o==="objDesc"?this._decodeStr(et,o,tt):o==="int"||o==="enum"?this._decodeInt(et,rt.args&&rt.args[0],tt):rt.use!==null?this._getUse(rt.use,et._reporterState.obj)._decode(et,tt):et.error("unknown tag: "+o)};Node$2.prototype._getUse=function(o,et){const tt=this._baseState;return tt.useDecoder=this._use(o,et),assert$4(tt.useDecoder._baseState.parent===null),tt.useDecoder=tt.useDecoder._baseState.children[0],tt.implicit!==tt.useDecoder._baseState.implicit&&(tt.useDecoder=tt.useDecoder.clone(),tt.useDecoder._baseState.implicit=tt.implicit),tt.useDecoder};Node$2.prototype._decodeChoice=function(o,et){const tt=this._baseState;let rt=null,nt=!1;return Object.keys(tt.choice).some(function(it){const st=o.save(),at=tt.choice[it];try{const lt=at._decode(o,et);if(o.isError(lt))return!1;rt={type:it,value:lt},nt=!0}catch{return o.restore(st),!1}return!0},this),nt?rt:o.error("Choice not matched")};Node$2.prototype._createEncoderBuffer=function(o){return new EncoderBuffer(o,this.reporter)};Node$2.prototype._encode=function(o,et,tt){const rt=this._baseState;if(rt.default!==null&&rt.default===o)return;const nt=this._encodeValue(o,et,tt);if(nt!==void 0&&!this._skipDefault(nt,et,tt))return nt};Node$2.prototype._encodeValue=function(o,et,tt){const rt=this._baseState;if(rt.parent===null)return rt.children[0]._encode(o,et||new Reporter);let nt=null;if(this.reporter=et,rt.optional&&o===void 0)if(rt.default!==null)o=rt.default;else return;let it=null,st=!1;if(rt.any)nt=this._createEncoderBuffer(o);else if(rt.choice)nt=this._encodeChoice(o,et);else if(rt.contains)it=this._getUse(rt.contains,tt)._encode(o,et),st=!0;else if(rt.children)it=rt.children.map(function(at){if(at._baseState.tag==="null_")return at._encode(null,et,o);if(at._baseState.key===null)return et.error("Child should have a key");const lt=et.enterKey(at._baseState.key);if(typeof o!="object")return et.error("Child expected, but input is not object");const ht=at._encode(o[at._baseState.key],et,o);return et.leaveKey(lt),ht},this).filter(function(at){return at}),it=this._createEncoderBuffer(it);else if(rt.tag==="seqof"||rt.tag==="setof"){if(!(rt.args&&rt.args.length===1))return et.error("Too many args for : "+rt.tag);if(!Array.isArray(o))return et.error("seqof/setof, but data is not Array");const at=this.clone();at._baseState.implicit=null,it=this._createEncoderBuffer(o.map(function(lt){const ht=this._baseState;return this._getUse(ht.args[0],o)._encode(lt,et)},at))}else rt.use!==null?nt=this._getUse(rt.use,tt)._encode(o,et):(it=this._encodePrimitive(rt.tag,o),st=!0);if(!rt.any&&rt.choice===null){const at=rt.implicit!==null?rt.implicit:rt.tag,lt=rt.implicit===null?"universal":"context";at===null?rt.use===null&&et.error("Tag could be omitted only for .use()"):rt.use===null&&(nt=this._encodeComposite(at,st,lt,it))}return rt.explicit!==null&&(nt=this._encodeComposite(rt.explicit,!1,"context",nt)),nt};Node$2.prototype._encodeChoice=function(o,et){const tt=this._baseState,rt=tt.choice[o.type];return rt||assert$4(!1,o.type+" not found in "+JSON.stringify(Object.keys(tt.choice))),rt._encode(o.value,et)};Node$2.prototype._encodePrimitive=function(o,et){const tt=this._baseState;if(/str$/.test(o))return this._encodeStr(et,o);if(o==="objid"&&tt.args)return this._encodeObjid(et,tt.reverseArgs[0],tt.args[1]);if(o==="objid")return this._encodeObjid(et,null,null);if(o==="gentime"||o==="utctime")return this._encodeTime(et,o);if(o==="null_")return this._encodeNull();if(o==="int"||o==="enum")return this._encodeInt(et,tt.args&&tt.reverseArgs[0]);if(o==="bool")return this._encodeBool(et);if(o==="objDesc")return this._encodeStr(et,o);throw new Error("Unsupported tag: "+o)};Node$2.prototype._isNumstr=function(o){return/^[0-9 ]*$/.test(o)};Node$2.prototype._isPrintstr=function(o){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(o)};var der$2={};(function(a){function o(et){const tt={};return Object.keys(et).forEach(function(rt){(rt|0)==rt&&(rt=rt|0);const nt=et[rt];tt[nt]=rt}),tt}a.tagClass={0:"universal",1:"application",2:"context",3:"private"},a.tagClassByName=o(a.tagClass),a.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},a.tagByName=o(a.tag)})(der$2);const inherits$3=inherits_browserExports,Buffer$b=safer_1.Buffer,Node$1=node$1,der$1=der$2;function DEREncoder$1(a){this.enc="der",this.name=a.name,this.entity=a,this.tree=new DERNode$1,this.tree._init(a.body)}var der_1$1=DEREncoder$1;DEREncoder$1.prototype.encode=function(o,et){return this.tree._encode(o,et).join()};function DERNode$1(a){Node$1.call(this,"der",a)}inherits$3(DERNode$1,Node$1);DERNode$1.prototype._encodeComposite=function(o,et,tt,rt){const nt=encodeTag(o,et,tt,this.reporter);if(rt.length<128){const at=Buffer$b.alloc(2);return at[0]=nt,at[1]=rt.length,this._createEncoderBuffer([at,rt])}let it=1;for(let at=rt.length;at>=256;at>>=8)it++;const st=Buffer$b.alloc(1+1+it);st[0]=nt,st[1]=128|it;for(let at=1+it,lt=rt.length;lt>0;at--,lt>>=8)st[at]=lt&255;return this._createEncoderBuffer([st,rt])};DERNode$1.prototype._encodeStr=function(o,et){if(et==="bitstr")return this._createEncoderBuffer([o.unused|0,o.data]);if(et==="bmpstr"){const tt=Buffer$b.alloc(o.length*2);for(let rt=0;rt=40)return this.reporter.error("Second objid identifier OOB");o.splice(0,2,o[0]*40+o[1])}let rt=0;for(let st=0;st=128;at>>=7)rt++}const nt=Buffer$b.alloc(rt);let it=nt.length-1;for(let st=o.length-1;st>=0;st--){let at=o[st];for(nt[it--]=at&127;(at>>=7)>0;)nt[it--]=128|at&127}return this._createEncoderBuffer(nt)};function two(a){return a<10?"0"+a:a}DERNode$1.prototype._encodeTime=function(o,et){let tt;const rt=new Date(o);return et==="gentime"?tt=[two(rt.getUTCFullYear()),two(rt.getUTCMonth()+1),two(rt.getUTCDate()),two(rt.getUTCHours()),two(rt.getUTCMinutes()),two(rt.getUTCSeconds()),"Z"].join(""):et==="utctime"?tt=[two(rt.getUTCFullYear()%100),two(rt.getUTCMonth()+1),two(rt.getUTCDate()),two(rt.getUTCHours()),two(rt.getUTCMinutes()),two(rt.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+et+" time is not supported yet"),this._encodeStr(tt,"octstr")};DERNode$1.prototype._encodeNull=function(){return this._createEncoderBuffer("")};DERNode$1.prototype._encodeInt=function(o,et){if(typeof o=="string"){if(!et)return this.reporter.error("String int or enum given, but no values map");if(!et.hasOwnProperty(o))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(o));o=et[o]}if(typeof o!="number"&&!Buffer$b.isBuffer(o)){const nt=o.toArray();!o.sign&&nt[0]&128&&nt.unshift(0),o=Buffer$b.from(nt)}if(Buffer$b.isBuffer(o)){let nt=o.length;o.length===0&&nt++;const it=Buffer$b.alloc(nt);return o.copy(it),o.length===0&&(it[0]=0),this._createEncoderBuffer(it)}if(o<128)return this._createEncoderBuffer(o);if(o<256)return this._createEncoderBuffer([0,o]);let tt=1;for(let nt=o;nt>=256;nt>>=8)tt++;const rt=new Array(tt);for(let nt=rt.length-1;nt>=0;nt--)rt[nt]=o&255,o>>=8;return rt[0]&128&&rt.unshift(0),this._createEncoderBuffer(Buffer$b.from(rt))};DERNode$1.prototype._encodeBool=function(o){return this._createEncoderBuffer(o?255:0)};DERNode$1.prototype._use=function(o,et){return typeof o=="function"&&(o=o(et)),o._getEncoder("der").tree};DERNode$1.prototype._skipDefault=function(o,et,tt){const rt=this._baseState;let nt;if(rt.default===null)return!1;const it=o.join();if(rt.defaultBuffer===void 0&&(rt.defaultBuffer=this._encodeValue(rt.default,et,tt).join()),it.length!==rt.defaultBuffer.length)return!1;for(nt=0;nt=31?tt.error("Multi-octet tag encoding unsupported"):(o||(rt|=32),rt|=der$1.tagClassByName[et||"universal"]<<6,rt)}const inherits$2=inherits_browserExports,DEREncoder=der_1$1;function PEMEncoder(a){DEREncoder.call(this,a),this.enc="pem"}inherits$2(PEMEncoder,DEREncoder);var pem$1=PEMEncoder;PEMEncoder.prototype.encode=function(o,et){const rt=DEREncoder.prototype.encode.call(this,o).toString("base64"),nt=["-----BEGIN "+et.label+"-----"];for(let it=0;it>6],rt=(et&32)===0;if((et&31)===31){let it=et;for(et=0;(it&128)===128;){if(it=a.readUInt8(o),a.isError(it))return it;et<<=7,et|=it&127}}else et&=31;const nt=der.tag[et];return{cls:tt,primitive:rt,tag:et,tagStr:nt}}function derDecodeLen(a,o,et){let tt=a.readUInt8(et);if(a.isError(tt))return tt;if(!o&&tt===128)return null;if(!(tt&128))return tt;const rt=tt&127;if(rt>4)return a.error("length octect is too long");tt=0;for(let nt=0;nt0&&kt.ishrn(It),kt}function ut(yt,bt){yt=wt(yt,bt),yt=yt.mod(bt);var kt=a.from(yt.toArray());if(kt.length=0)throw new Error("invalid sig")}return verify_1=nt,verify_1}var browser$3,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$3;hasRequiredBrowser$1=1;var a=safeBufferExports.Buffer,o=browser$9,et=readableBrowserExports,tt=inherits_browserExports,rt=requireSign(),nt=requireVerify(),it=require$$6;Object.keys(it).forEach(function(vt){it[vt].id=a.from(it[vt].id,"hex"),it[vt.toLowerCase()]=it[vt]});function st(vt){et.Writable.call(this);var gt=it[vt];if(!gt)throw new Error("Unknown message digest");this._hashType=gt.hash,this._hash=o(gt.hash),this._tag=gt.id,this._signType=gt.sign}tt(st,et.Writable),st.prototype._write=function(gt,wt,ut){this._hash.update(gt),ut()},st.prototype.update=function(gt,wt){return this._hash.update(typeof gt=="string"?a.from(gt,wt):gt),this},st.prototype.sign=function(gt,wt){this.end();var ut=this._hash.digest(),pt=rt(ut,gt,this._hashType,this._signType,this._tag);return wt?pt.toString(wt):pt};function at(vt){et.Writable.call(this);var gt=it[vt];if(!gt)throw new Error("Unknown message digest");this._hash=o(gt.hash),this._tag=gt.id,this._signType=gt.sign}tt(at,et.Writable),at.prototype._write=function(gt,wt,ut){this._hash.update(gt),ut()},at.prototype.update=function(gt,wt){return this._hash.update(typeof gt=="string"?a.from(gt,wt):gt),this},at.prototype.verify=function(gt,wt,ut){var pt=typeof wt=="string"?a.from(wt,ut):wt;this.end();var Et=this._hash.digest();return nt(pt,Et,gt,this._signType,this._tag)};function lt(vt){return new st(vt)}function ht(vt){return new at(vt)}return browser$3={Sign:lt,Verify:ht,createSign:lt,createVerify:ht},browser$3}var browser$2,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$2;hasRequiredBrowser=1;var a=requireElliptic(),o=bnExports$2;browser$2=function(it){return new tt(it)};var et={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};et.p224=et.secp224r1,et.p256=et.secp256r1=et.prime256v1,et.p192=et.secp192r1=et.prime192v1,et.p384=et.secp384r1,et.p521=et.secp521r1;function tt(nt){this.curveType=et[nt],this.curveType||(this.curveType={name:nt}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}tt.prototype.generateKeys=function(nt,it){return this.keys=this.curve.genKeyPair(),this.getPublicKey(nt,it)},tt.prototype.computeSecret=function(nt,it,st){it=it||"utf8",Buffer.isBuffer(nt)||(nt=new Buffer(nt,it));var at=this.curve.keyFromPublic(nt).getPublic(),lt=at.mul(this.keys.getPrivate()).getX();return rt(lt,st,this.curveType.byteLength)},tt.prototype.getPublicKey=function(nt,it){var st=this.keys.getPublic(it==="compressed",!0);return it==="hybrid"&&(st[st.length-1]%2?st[0]=7:st[0]=6),rt(st,nt)},tt.prototype.getPrivateKey=function(nt){return rt(this.keys.getPrivate(),nt)},tt.prototype.setPublicKey=function(nt,it){return it=it||"utf8",Buffer.isBuffer(nt)||(nt=new Buffer(nt,it)),this.keys._importPublic(nt),this},tt.prototype.setPrivateKey=function(nt,it){it=it||"utf8",Buffer.isBuffer(nt)||(nt=new Buffer(nt,it));var st=new o(nt);return st=st.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(st),this};function rt(nt,it,st){Array.isArray(nt)||(nt=nt.toArray());var at=new Buffer(nt);if(st&&at.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return tt?crt$1(it,nt):withPublic$1(it,nt)};function oaep$1(a,o){var et=a.modulus.byteLength(),tt=o.length,rt=createHash$2("sha1").update(Buffer$5.alloc(0)).digest(),nt=rt.length,it=2*nt;if(tt>et-it-2)throw new Error("message too long");var st=Buffer$5.alloc(et-tt-it-2),at=et-nt-1,lt=randomBytes(nt),ht=xor$1(Buffer$5.concat([rt,st,Buffer$5.alloc(1,1),o],at),mgf$1(lt,at)),vt=xor$1(lt,mgf$1(ht,nt));return new BN$3(Buffer$5.concat([Buffer$5.alloc(1),vt,ht],et))}function pkcs1$1(a,o,et){var tt=o.length,rt=a.modulus.byteLength();if(tt>rt-11)throw new Error("message too long");var nt;return et?nt=Buffer$5.alloc(rt-tt-3,255):nt=nonZero(rt-tt-3),new BN$3(Buffer$5.concat([Buffer$5.from([0,et?1:2]),nt,Buffer$5.alloc(1),o],rt))}function nonZero(a){for(var o=Buffer$5.allocUnsafe(a),et=0,tt=randomBytes(a*2),rt=0,nt;etit||new BN$2(et).cmp(nt.modulus)>=0)throw new Error("decryption error");var st;tt?st=withPublic(new BN$2(et),nt):st=crt(et,nt);var at=Buffer$4.alloc(it-st.length);if(st=Buffer$4.concat([at,st],it),rt===4)return oaep(nt,st);if(rt===1)return pkcs1(nt,st,tt);if(rt===3)return st;throw new Error("unknown padding")};function oaep(a,o){var et=a.modulus.byteLength(),tt=createHash$1("sha1").update(Buffer$4.alloc(0)).digest(),rt=tt.length;if(o[0]!==0)throw new Error("decryption error");var nt=o.slice(1,rt+1),it=o.slice(rt+1),st=xor(nt,mgf(it,rt)),at=xor(it,mgf(st,et-rt-1));if(compare$1(tt,at.slice(0,rt)))throw new Error("decryption error");for(var lt=rt;at[lt]===0;)lt++;if(at[lt++]!==1)throw new Error("decryption error");return at.slice(lt)}function pkcs1(a,o,et){for(var tt=o.slice(0,2),rt=2,nt=0;o[rt++]!==0;)if(rt>=o.length){nt++;break}var it=o.slice(2,rt-1);if((tt.toString("hex")!=="0002"&&!et||tt.toString("hex")!=="0001"&&et)&&nt++,it.length<8&&nt++,nt)throw new Error("decryption error");return o.slice(rt)}function compare$1(a,o){a=Buffer$4.from(a),o=Buffer$4.from(o);var et=0,tt=a.length;a.length!==o.length&&(et++,tt=Math.min(a.length,o.length));for(var rt=-1;++rtkMaxUint32||a<0)throw new TypeError("offset must be a uint32");if(a>kBufferMaxLength||a>o)throw new RangeError("offset out of range")}function assertSize(a,o,et){if(typeof a!="number"||a!==a)throw new TypeError("size must be a number");if(a>kMaxUint32||a<0)throw new TypeError("size must be a uint32");if(a+o>et||a>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$3&&crypto$3.getRandomValues||!process.browser?(browser.randomFill=randomFill,browser.randomFillSync=randomFillSync):(browser.randomFill=oldBrowser,browser.randomFillSync=oldBrowser);function randomFill(a,o,et,tt){if(!Buffer$3.isBuffer(a)&&!(a instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof o=="function")tt=o,o=0,et=a.length;else if(typeof et=="function")tt=et,et=a.length-o;else if(typeof tt!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(o,a.length),assertSize(et,o,a.length),actualFill(a,o,et,tt)}function actualFill(a,o,et,tt){if(process.browser){var rt=a.buffer,nt=new Uint8Array(rt,o,et);if(crypto$3.getRandomValues(nt),tt){process.nextTick(function(){tt(null,a)});return}return a}if(tt){randombytes(et,function(st,at){if(st)return tt(st);at.copy(a,o),tt(null,a)});return}var it=randombytes(et);return it.copy(a,o),a}function randomFillSync(a,o,et){if(typeof o>"u"&&(o=0),!Buffer$3.isBuffer(a)&&!(a instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(o,a.length),et===void 0&&(et=a.length-o),assertSize(et,o,a.length),actualFill(a,o,et)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$9,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$8;var a=algos,o=Object.keys(a),et=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);cryptoBrowserify.getHashes=function(){return et};var tt=browser$7;cryptoBrowserify.pbkdf2=tt.pbkdf2,cryptoBrowserify.pbkdf2Sync=tt.pbkdf2Sync;var rt=browser$6;cryptoBrowserify.Cipher=rt.Cipher,cryptoBrowserify.createCipher=rt.createCipher,cryptoBrowserify.Cipheriv=rt.Cipheriv,cryptoBrowserify.createCipheriv=rt.createCipheriv,cryptoBrowserify.Decipher=rt.Decipher,cryptoBrowserify.createDecipher=rt.createDecipher,cryptoBrowserify.Decipheriv=rt.Decipheriv,cryptoBrowserify.createDecipheriv=rt.createDecipheriv,cryptoBrowserify.getCiphers=rt.getCiphers,cryptoBrowserify.listCiphers=rt.listCiphers;var nt=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=nt.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=nt.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=nt.getDiffieHellman,cryptoBrowserify.createDiffieHellman=nt.createDiffieHellman,cryptoBrowserify.DiffieHellman=nt.DiffieHellman;var it=requireBrowser$1();cryptoBrowserify.createSign=it.createSign,cryptoBrowserify.Sign=it.Sign,cryptoBrowserify.createVerify=it.createVerify,cryptoBrowserify.Verify=it.Verify,cryptoBrowserify.createECDH=requireBrowser();var st=browser$1;cryptoBrowserify.publicEncrypt=st.publicEncrypt,cryptoBrowserify.privateEncrypt=st.privateEncrypt,cryptoBrowserify.publicDecrypt=st.publicDecrypt,cryptoBrowserify.privateDecrypt=st.privateDecrypt;var at=browser;return cryptoBrowserify.randomFill=at.randomFill,cryptoBrowserify.randomFillSync=at.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var rngBrowser={exports:{}},getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var o=0,et;o<16;o++)o&3||(et=Math.random()*4294967296),rnds[o]=et>>>((o&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex=[];for(var i$1=0;i$1<256;++i$1)byteToHex[i$1]=(i$1+256).toString(16).substr(1);function bytesToUuid$1(a,o){var et=o||0,tt=byteToHex;return[tt[a[et++]],tt[a[et++]],tt[a[et++]],tt[a[et++]],"-",tt[a[et++]],tt[a[et++]],"-",tt[a[et++]],tt[a[et++]],"-",tt[a[et++]],tt[a[et++]],"-",tt[a[et++]],tt[a[et++]],tt[a[et++]],tt[a[et++]],tt[a[et++]],tt[a[et++]]].join("")}var bytesToUuid_1=bytesToUuid$1,rng=rngBrowserExports,bytesToUuid=bytesToUuid_1;function v4(a,o,et){var tt=o&&et||0;typeof a=="string"&&(o=a==="binary"?new Array(16):null,a=null),a=a||{};var rt=a.random||(a.rng||rng)();if(rt[6]=rt[6]&15|64,rt[8]=rt[8]&63|128,o)for(var nt=0;nt<16;++nt)o[tt+nt]=rt[nt];return o||bytesToUuid(rt)}var v4_1=v4,macaroon$1={},sjcl={exports:{}};(function(a){var o={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(ut){this.toString=function(){return"CORRUPT: "+this.message},this.message=ut},invalid:function(ut){this.toString=function(){return"INVALID: "+this.message},this.message=ut},bug:function(ut){this.toString=function(){return"BUG: "+this.message},this.message=ut},notReady:function(ut){this.toString=function(){return"NOT READY: "+this.message},this.message=ut}}};o.cipher.aes=function(ut){this.s[0][0][0]||this.O();var pt,Et,yt,bt,kt=this.s[0][4],It=this.s[1];pt=ut.length;var Ot=1;if(pt!==4&&pt!==6&&pt!==8)throw new o.exception.invalid("invalid aes key size");for(this.b=[yt=ut.slice(0),bt=[]],ut=pt;ut<4*pt+28;ut++)Et=yt[ut-1],(ut%pt===0||pt===8&&ut%pt===4)&&(Et=kt[Et>>>24]<<24^kt[Et>>16&255]<<16^kt[Et>>8&255]<<8^kt[Et&255],ut%pt===0&&(Et=Et<<8^Et>>>24^Ot<<24,Ot=Ot<<1^283*(Ot>>7))),yt[ut]=yt[ut-pt]^Et;for(pt=0;ut;pt++,ut--)Et=yt[pt&3?ut:ut-4],bt[pt]=4>=ut||4>pt?Et:It[0][kt[Et>>>24]]^It[1][kt[Et>>16&255]]^It[2][kt[Et>>8&255]]^It[3][kt[Et&255]]},o.cipher.aes.prototype={encrypt:function(ut){return et(this,ut,0)},decrypt:function(ut){return et(this,ut,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var ut=this.s[0],pt=this.s[1],Et=ut[4],yt=pt[4],bt,kt,It,Ot=[],Nt=[],Vt,jt,zt,or;for(bt=0;256>bt;bt++)Nt[(Ot[bt]=bt<<1^283*(bt>>7))^bt]=bt;for(kt=It=0;!Et[kt];kt^=Vt||1,It=Nt[It]||1)for(zt=It^It<<1^It<<2^It<<3^It<<4,zt=zt>>8^zt&255^99,Et[kt]=zt,yt[zt]=kt,jt=Ot[bt=Ot[Vt=Ot[kt]]],or=16843009*jt^65537*bt^257*Vt^16843008*kt,jt=257*Ot[zt]^16843008*zt,bt=0;4>bt;bt++)ut[bt][kt]=jt=jt<<24^jt>>>8,pt[bt][zt]=or=or<<24^or>>>8;for(bt=0;5>bt;bt++)ut[bt]=ut[bt].slice(0),pt[bt]=pt[bt].slice(0)}};function et(ut,pt,Et){if(pt.length!==4)throw new o.exception.invalid("invalid aes block size");var yt=ut.b[Et],bt=pt[0]^yt[0],kt=pt[Et?3:1]^yt[1],It=pt[2]^yt[2];pt=pt[Et?1:3]^yt[3];var Ot,Nt,Vt,jt=yt.length/4-2,zt,or=4,qt=[0,0,0,0];Ot=ut.s[Et],ut=Ot[0];var Rt=Ot[1],Bt=Ot[2],ct=Ot[3],xt=Ot[4];for(zt=0;zt>>24]^Rt[kt>>16&255]^Bt[It>>8&255]^ct[pt&255]^yt[or],Nt=ut[kt>>>24]^Rt[It>>16&255]^Bt[pt>>8&255]^ct[bt&255]^yt[or+1],Vt=ut[It>>>24]^Rt[pt>>16&255]^Bt[bt>>8&255]^ct[kt&255]^yt[or+2],pt=ut[pt>>>24]^Rt[bt>>16&255]^Bt[kt>>8&255]^ct[It&255]^yt[or+3],or+=4,bt=Ot,kt=Nt,It=Vt;for(zt=0;4>zt;zt++)qt[Et?3&-zt:zt]=xt[bt>>>24]<<24^xt[kt>>16&255]<<16^xt[It>>8&255]<<8^xt[pt&255]^yt[or++],Ot=bt,bt=kt,kt=It,It=pt,pt=Ot;return qt}o.bitArray={bitSlice:function(ut,pt,Et){return ut=o.bitArray.$(ut.slice(pt/32),32-(pt&31)).slice(1),Et===void 0?ut:o.bitArray.clamp(ut,Et-pt)},extract:function(ut,pt,Et){var yt=Math.floor(-pt-Et&31);return((pt+Et-1^pt)&-32?ut[pt/32|0]<<32-yt^ut[pt/32+1|0]>>>yt:ut[pt/32|0]>>>yt)&(1<>pt-1,1)),ut},partial:function(ut,pt,Et){return ut===32?pt:(Et?pt|0:pt<<32-ut)+1099511627776*ut},getPartial:function(ut){return Math.round(ut/1099511627776)||32},equal:function(ut,pt){if(o.bitArray.bitLength(ut)!==o.bitArray.bitLength(pt))return!1;var Et=0,yt;for(yt=0;yt>>pt),Et=ut[bt]<<32-pt;return bt=ut.length?ut[ut.length-1]:0,ut=o.bitArray.getPartial(bt),yt.push(o.bitArray.partial(pt+ut&31,32>>24|Et>>>8&65280|(Et&65280)<<8|Et<<24;return ut}},o.codec.utf8String={fromBits:function(ut){var pt="",Et=o.bitArray.bitLength(ut),yt,bt;for(yt=0;yt>>8>>>8>>>8),bt<<=8;return decodeURIComponent(escape(pt))},toBits:function(ut){ut=unescape(encodeURIComponent(ut));var pt=[],Et,yt=0;for(Et=0;Et>>It)>>>bt),Itjt){if(!pt)try{return o.codec.base32hex.toBits(ut)}catch{}throw new o.exception.invalid("this isn't "+zt+"!")}Ot>bt?(Ot-=bt,kt.push(Vt^jt>>>Ot),Vt=jt<>>bt)>>>26),6>bt?(It=ut[Et]<<6-bt,bt+=26,Et++):(It<<=6,bt-=6);for(;yt.length&3&&!pt;)yt+="=";return yt},toBits:function(ut,pt){ut=ut.replace(/\s|=/g,"");var Et=[],yt,bt=0,kt=o.codec.base64.B,It=0,Ot;for(pt&&(kt=kt.substr(0,62)+"-_"),yt=0;ytOt)throw new o.exception.invalid("this isn't base64!");26>>bt),It=Ot<<32-bt):(bt+=6,It^=Ot<<32-bt)}return bt&56&&Et.push(o.bitArray.partial(bt&56,It,1)),Et}},o.codec.base64url={fromBits:function(ut){return o.codec.base64.fromBits(ut,1,1)},toBits:function(ut){return o.codec.base64.toBits(ut,1)}},o.hash.sha256=function(ut){this.b[0]||this.O(),ut?(this.F=ut.F.slice(0),this.A=ut.A.slice(0),this.l=ut.l):this.reset()},o.hash.sha256.hash=function(ut){return new o.hash.sha256().update(ut).finalize()},o.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(ut){typeof ut=="string"&&(ut=o.codec.utf8String.toBits(ut));var pt,Et=this.A=o.bitArray.concat(this.A,ut);if(pt=this.l,ut=this.l=pt+o.bitArray.bitLength(ut),9007199254740991pt;Et++){for(bt=!0,yt=2;yt*yt<=Et;yt++)if(Et%yt===0){bt=!1;break}bt&&(8>pt&&(this.Y[pt]=ut(Math.pow(Et,.5))),this.b[pt]=ut(Math.pow(Et,1/3)),pt++)}}};function tt(ut,pt){var Et,yt,bt,kt=ut.F,It=ut.b,Ot=kt[0],Nt=kt[1],Vt=kt[2],jt=kt[3],zt=kt[4],or=kt[5],qt=kt[6],Rt=kt[7];for(Et=0;64>Et;Et++)16>Et?yt=pt[Et]:(yt=pt[Et+1&15],bt=pt[Et+14&15],yt=pt[Et&15]=(yt>>>7^yt>>>18^yt>>>3^yt<<25^yt<<14)+(bt>>>17^bt>>>19^bt>>>10^bt<<15^bt<<13)+pt[Et&15]+pt[Et+9&15]|0),yt=yt+Rt+(zt>>>6^zt>>>11^zt>>>25^zt<<26^zt<<21^zt<<7)+(qt^zt&(or^qt))+It[Et],Rt=qt,qt=or,or=zt,zt=jt+yt|0,jt=Vt,Vt=Nt,Nt=Ot,Ot=yt+(Nt&Vt^jt&(Nt^Vt))+(Nt>>>2^Nt>>>13^Nt>>>22^Nt<<30^Nt<<19^Nt<<10)|0;kt[0]=kt[0]+Ot|0,kt[1]=kt[1]+Nt|0,kt[2]=kt[2]+Vt|0,kt[3]=kt[3]+jt|0,kt[4]=kt[4]+zt|0,kt[5]=kt[5]+or|0,kt[6]=kt[6]+qt|0,kt[7]=kt[7]+Rt|0}o.mode.ccm={name:"ccm",G:[],listenProgress:function(ut){o.mode.ccm.G.push(ut)},unListenProgress:function(ut){ut=o.mode.ccm.G.indexOf(ut),-1Nt)throw new o.exception.invalid("ccm: iv must be at least 7 bytes");for(kt=2;4>kt&&Vt>>>8*kt;kt++);return kt<15-Nt&&(kt=15-Nt),Et=Ot.clamp(Et,8*(15-kt)),pt=o.mode.ccm.V(ut,pt,Et,yt,bt,kt),It=o.mode.ccm.C(ut,It,Et,pt,bt,kt),Ot.concat(It.data,It.tag)},decrypt:function(ut,pt,Et,yt,bt){bt=bt||64,yt=yt||[];var kt=o.bitArray,It=kt.bitLength(Et)/8,Vt=kt.bitLength(pt),Ot=kt.clamp(pt,Vt-bt),Nt=kt.bitSlice(pt,Vt-bt),Vt=(Vt-bt)/8;if(7>It)throw new o.exception.invalid("ccm: iv must be at least 7 bytes");for(pt=2;4>pt&&Vt>>>8*pt;pt++);if(pt<15-It&&(pt=15-It),Et=kt.clamp(Et,8*(15-pt)),Ot=o.mode.ccm.C(ut,Ot,Et,Nt,bt,pt),ut=o.mode.ccm.V(ut,Ot.data,Et,yt,bt,pt),!kt.equal(Ot.tag,ut))throw new o.exception.corrupt("ccm: tag doesn't match");return Ot.data},na:function(ut,pt,Et,yt,bt,kt){var It=[],Ot=o.bitArray,Nt=Ot.i;if(yt=[Ot.partial(8,(pt.length?64:0)|yt-2<<2|kt-1)],yt=Ot.concat(yt,Et),yt[3]|=bt,yt=ut.encrypt(yt),pt.length)for(Et=Ot.bitLength(pt)/8,65279>=Et?It=[Ot.partial(16,Et)]:4294967295>=Et&&(It=Ot.concat([Ot.partial(16,65534)],[Et])),It=Ot.concat(It,pt),pt=0;ptbt||16jt&&(o.mode.ccm.fa(It/Nt),jt+=zt),Et[3]++,bt=ut.encrypt(Et),pt[It]^=bt[0],pt[It+1]^=bt[1],pt[It+2]^=bt[2],pt[It+3]^=bt[3];return{tag:yt,data:Ot.clamp(pt,Vt)}}},o.mode.ocb2={name:"ocb2",encrypt:function(ut,pt,Et,yt,bt,kt){if(o.bitArray.bitLength(Et)!==128)throw new o.exception.invalid("ocb iv must be 128 bits");var It,Ot=o.mode.ocb2.S,Nt=o.bitArray,Vt=Nt.i,jt=[0,0,0,0];Et=Ot(ut.encrypt(Et));var zt,or=[];for(yt=yt||[],bt=bt||64,It=0;It+4bt.bitLength(Et)&&(Ot=kt(Ot,yt(Ot)),Et=bt.concat(Et,[-2147483648,0,0,0])),It=kt(It,Et),ut.encrypt(kt(yt(kt(Ot,yt(Ot))),It))},S:function(ut){return[ut[0]<<1^ut[1]>>>31,ut[1]<<1^ut[2]>>>31,ut[2]<<1^ut[3]>>>31,ut[3]<<1^135*(ut[0]>>>31)]}},o.mode.gcm={name:"gcm",encrypt:function(ut,pt,Et,yt,bt){var kt=pt.slice(0);return pt=o.bitArray,yt=yt||[],ut=o.mode.gcm.C(!0,ut,kt,yt,Et,bt||128),pt.concat(ut.data,ut.tag)},decrypt:function(ut,pt,Et,yt,bt){var kt=pt.slice(0),It=o.bitArray,Ot=It.bitLength(kt);if(bt=bt||128,yt=yt||[],bt<=Ot?(pt=It.bitSlice(kt,Ot-bt),kt=It.bitSlice(kt,0,Ot-bt)):(pt=kt,kt=[]),ut=o.mode.gcm.C(!1,ut,kt,yt,Et,bt),!It.equal(ut.tag,pt))throw new o.exception.corrupt("gcm: tag doesn't match");return ut.data},ka:function(ut,pt){var Et,yt,bt,kt,It,Ot=o.bitArray.i;for(bt=[0,0,0,0],kt=pt.slice(0),Et=0;128>Et;Et++){for((yt=(ut[Math.floor(Et/32)]&1<<31-Et%32)!==0)&&(bt=Ot(bt,kt)),It=(kt[3]&1)!==0,yt=3;0>>1|(kt[yt-1]&1)<<31;kt[0]>>>=1,It&&(kt[0]^=-520093696)}return bt},j:function(ut,pt,Et){var yt,bt=Et.length;for(pt=pt.slice(0),yt=0;ytbt&&(ut=pt.hash(ut)),yt=0;ytyt||0>Et)throw new o.exception.invalid("invalid params to pbkdf2");typeof ut=="string"&&(ut=o.codec.utf8String.toBits(ut)),typeof pt=="string"&&(pt=o.codec.utf8String.toBits(pt)),bt=bt||o.misc.hmac,ut=new bt(ut);var kt,It,Ot,Nt,Vt=[],jt=o.bitArray;for(Nt=1;32*Vt.length<(yt||1);Nt++){for(bt=kt=ut.encrypt(jt.concat(pt,[Nt])),It=1;ItIt;It++)bt.push(4294967296*Math.random()|0);for(It=0;It=1<this.o&&(this.o=kt),this.P++,this.b=o.hash.sha256.hash(this.b.concat(bt)),this.L=new o.cipher.aes(this.b),yt=0;4>yt&&(this.h[yt]=this.h[yt]+1|0,!this.h[yt]);yt++);}for(yt=0;yt>>1;this.c[It].update([yt,this.N++,2,pt,kt,ut.length].concat(ut))}break;case"string":pt===void 0&&(pt=ut.length),this.c[It].update([yt,this.N++,3,pt,kt,ut.length]),this.c[It].update(ut);break;default:Nt=1}if(Nt)throw new o.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[It]+=pt,this.f+=pt,Ot===this.u&&(this.isReady()!==this.u&&rt("seeded",Math.max(this.o,this.f)),rt("progress",this.getProgress()))},isReady:function(ut){return ut=this.T[ut!==void 0?ut:this.M],this.o&&this.o>=ut?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=ut?this.J|this.u:this.u},getProgress:function(ut){return ut=this.T[ut||this.M],this.o>=ut||this.f>ut?1:this.f/ut},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:at(this,this.ma),mouseCollector:at(this,this.oa),keyboardCollector:at(this,this.la),accelerometerCollector:at(this,this.ea),touchCollector:at(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new o.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(ut,pt){this.K[ut][this.ga++]=pt},removeEventListener:function(ut,pt){var Et,yt,bt=this.K[ut],kt=[];for(yt in bt)bt.hasOwnProperty(yt)&&bt[yt]===pt&&kt.push(yt);for(Et=0;Etpt&&(ut.h[pt]=ut.h[pt]+1|0,!ut.h[pt]);pt++);return ut.L.encrypt(ut.h)}function at(ut,pt){return function(){pt.apply(ut,arguments)}}o.random=new o.prng(6);e:try{var lt,ht,vt,gt;if(gt=a.exports){var wt;try{wt=requireCryptoBrowserify()}catch{wt=null}gt=ht=wt}if(gt&&ht.randomBytes)lt=ht.randomBytes(128),lt=new Uint32Array(new Uint8Array(lt).buffer),o.random.addEntropy(lt,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(vt=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(vt);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(vt);else break e;o.random.addEntropy(vt,1024,"crypto['getRandomValues']")}}catch(ut){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(ut))}o.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(ut,pt,Et,yt){Et=Et||{},yt=yt||{};var bt=o.json,kt=bt.g({iv:o.random.randomWords(4,0)},bt.defaults),It;if(bt.g(kt,Et),Et=kt.adata,typeof kt.salt=="string"&&(kt.salt=o.codec.base64.toBits(kt.salt)),typeof kt.iv=="string"&&(kt.iv=o.codec.base64.toBits(kt.iv)),!o.mode[kt.mode]||!o.cipher[kt.cipher]||typeof ut=="string"&&100>=kt.iter||kt.ts!==64&&kt.ts!==96&&kt.ts!==128||kt.ks!==128&&kt.ks!==192&&kt.ks!==256||2>kt.iv.length||4=pt.iter||pt.ts!==64&&pt.ts!==96&&pt.ts!==128||pt.ks!==128&&pt.ks!==192&&pt.ks!==256||!pt.iv||2>pt.iv.length||4>24&255,Wt[tr+1]=nr>>16&255,Wt[tr+2]=nr>>8&255,Wt[tr+3]=nr&255,Wt[tr+4]=Dt>>24&255,Wt[tr+5]=Dt>>16&255,Wt[tr+6]=Dt>>8&255,Wt[tr+7]=Dt&255}function pt(Wt,tr,nr,Dt,ir){var Ar,$r=0;for(Ar=0;Ar>>8)-1}function Et(Wt,tr,nr,Dt){return pt(Wt,tr,nr,Dt,16)}function yt(Wt,tr,nr,Dt){return pt(Wt,tr,nr,Dt,32)}function bt(Wt,tr,nr,Dt){for(var ir=Dt[0]&255|(Dt[1]&255)<<8|(Dt[2]&255)<<16|(Dt[3]&255)<<24,Ar=nr[0]&255|(nr[1]&255)<<8|(nr[2]&255)<<16|(nr[3]&255)<<24,$r=nr[4]&255|(nr[5]&255)<<8|(nr[6]&255)<<16|(nr[7]&255)<<24,Br=nr[8]&255|(nr[9]&255)<<8|(nr[10]&255)<<16|(nr[11]&255)<<24,Gr=nr[12]&255|(nr[13]&255)<<8|(nr[14]&255)<<16|(nr[15]&255)<<24,Qr=Dt[4]&255|(Dt[5]&255)<<8|(Dt[6]&255)<<16|(Dt[7]&255)<<24,Vr=tr[0]&255|(tr[1]&255)<<8|(tr[2]&255)<<16|(tr[3]&255)<<24,Un=tr[4]&255|(tr[5]&255)<<8|(tr[6]&255)<<16|(tr[7]&255)<<24,ln=tr[8]&255|(tr[9]&255)<<8|(tr[10]&255)<<16|(tr[11]&255)<<24,En=tr[12]&255|(tr[13]&255)<<8|(tr[14]&255)<<16|(tr[15]&255)<<24,$n=Dt[8]&255|(Dt[9]&255)<<8|(Dt[10]&255)<<16|(Dt[11]&255)<<24,Mn=nr[16]&255|(nr[17]&255)<<8|(nr[18]&255)<<16|(nr[19]&255)<<24,Tn=nr[20]&255|(nr[21]&255)<<8|(nr[22]&255)<<16|(nr[23]&255)<<24,An=nr[24]&255|(nr[25]&255)<<8|(nr[26]&255)<<16|(nr[27]&255)<<24,Sn=nr[28]&255|(nr[29]&255)<<8|(nr[30]&255)<<16|(nr[31]&255)<<24,Pn=Dt[12]&255|(Dt[13]&255)<<8|(Dt[14]&255)<<16|(Dt[15]&255)<<24,hn=ir,vn=Ar,fn=$r,dn=Br,pn=Gr,an=Qr,Fr=Vr,Nr=Un,Xr=ln,Ur=En,Wr=$n,rn=Mn,Cn=Tn,Hn=An,Vn=Sn,jn=Pn,_r,qn=0;qn<20;qn+=2)_r=hn+Cn|0,pn^=_r<<7|_r>>>32-7,_r=pn+hn|0,Xr^=_r<<9|_r>>>32-9,_r=Xr+pn|0,Cn^=_r<<13|_r>>>32-13,_r=Cn+Xr|0,hn^=_r<<18|_r>>>32-18,_r=an+vn|0,Ur^=_r<<7|_r>>>32-7,_r=Ur+an|0,Hn^=_r<<9|_r>>>32-9,_r=Hn+Ur|0,vn^=_r<<13|_r>>>32-13,_r=vn+Hn|0,an^=_r<<18|_r>>>32-18,_r=Wr+Fr|0,Vn^=_r<<7|_r>>>32-7,_r=Vn+Wr|0,fn^=_r<<9|_r>>>32-9,_r=fn+Vn|0,Fr^=_r<<13|_r>>>32-13,_r=Fr+fn|0,Wr^=_r<<18|_r>>>32-18,_r=jn+rn|0,dn^=_r<<7|_r>>>32-7,_r=dn+jn|0,Nr^=_r<<9|_r>>>32-9,_r=Nr+dn|0,rn^=_r<<13|_r>>>32-13,_r=rn+Nr|0,jn^=_r<<18|_r>>>32-18,_r=hn+dn|0,vn^=_r<<7|_r>>>32-7,_r=vn+hn|0,fn^=_r<<9|_r>>>32-9,_r=fn+vn|0,dn^=_r<<13|_r>>>32-13,_r=dn+fn|0,hn^=_r<<18|_r>>>32-18,_r=an+pn|0,Fr^=_r<<7|_r>>>32-7,_r=Fr+an|0,Nr^=_r<<9|_r>>>32-9,_r=Nr+Fr|0,pn^=_r<<13|_r>>>32-13,_r=pn+Nr|0,an^=_r<<18|_r>>>32-18,_r=Wr+Ur|0,rn^=_r<<7|_r>>>32-7,_r=rn+Wr|0,Xr^=_r<<9|_r>>>32-9,_r=Xr+rn|0,Ur^=_r<<13|_r>>>32-13,_r=Ur+Xr|0,Wr^=_r<<18|_r>>>32-18,_r=jn+Vn|0,Cn^=_r<<7|_r>>>32-7,_r=Cn+jn|0,Hn^=_r<<9|_r>>>32-9,_r=Hn+Cn|0,Vn^=_r<<13|_r>>>32-13,_r=Vn+Hn|0,jn^=_r<<18|_r>>>32-18;hn=hn+ir|0,vn=vn+Ar|0,fn=fn+$r|0,dn=dn+Br|0,pn=pn+Gr|0,an=an+Qr|0,Fr=Fr+Vr|0,Nr=Nr+Un|0,Xr=Xr+ln|0,Ur=Ur+En|0,Wr=Wr+$n|0,rn=rn+Mn|0,Cn=Cn+Tn|0,Hn=Hn+An|0,Vn=Vn+Sn|0,jn=jn+Pn|0,Wt[0]=hn>>>0&255,Wt[1]=hn>>>8&255,Wt[2]=hn>>>16&255,Wt[3]=hn>>>24&255,Wt[4]=vn>>>0&255,Wt[5]=vn>>>8&255,Wt[6]=vn>>>16&255,Wt[7]=vn>>>24&255,Wt[8]=fn>>>0&255,Wt[9]=fn>>>8&255,Wt[10]=fn>>>16&255,Wt[11]=fn>>>24&255,Wt[12]=dn>>>0&255,Wt[13]=dn>>>8&255,Wt[14]=dn>>>16&255,Wt[15]=dn>>>24&255,Wt[16]=pn>>>0&255,Wt[17]=pn>>>8&255,Wt[18]=pn>>>16&255,Wt[19]=pn>>>24&255,Wt[20]=an>>>0&255,Wt[21]=an>>>8&255,Wt[22]=an>>>16&255,Wt[23]=an>>>24&255,Wt[24]=Fr>>>0&255,Wt[25]=Fr>>>8&255,Wt[26]=Fr>>>16&255,Wt[27]=Fr>>>24&255,Wt[28]=Nr>>>0&255,Wt[29]=Nr>>>8&255,Wt[30]=Nr>>>16&255,Wt[31]=Nr>>>24&255,Wt[32]=Xr>>>0&255,Wt[33]=Xr>>>8&255,Wt[34]=Xr>>>16&255,Wt[35]=Xr>>>24&255,Wt[36]=Ur>>>0&255,Wt[37]=Ur>>>8&255,Wt[38]=Ur>>>16&255,Wt[39]=Ur>>>24&255,Wt[40]=Wr>>>0&255,Wt[41]=Wr>>>8&255,Wt[42]=Wr>>>16&255,Wt[43]=Wr>>>24&255,Wt[44]=rn>>>0&255,Wt[45]=rn>>>8&255,Wt[46]=rn>>>16&255,Wt[47]=rn>>>24&255,Wt[48]=Cn>>>0&255,Wt[49]=Cn>>>8&255,Wt[50]=Cn>>>16&255,Wt[51]=Cn>>>24&255,Wt[52]=Hn>>>0&255,Wt[53]=Hn>>>8&255,Wt[54]=Hn>>>16&255,Wt[55]=Hn>>>24&255,Wt[56]=Vn>>>0&255,Wt[57]=Vn>>>8&255,Wt[58]=Vn>>>16&255,Wt[59]=Vn>>>24&255,Wt[60]=jn>>>0&255,Wt[61]=jn>>>8&255,Wt[62]=jn>>>16&255,Wt[63]=jn>>>24&255}function kt(Wt,tr,nr,Dt){for(var ir=Dt[0]&255|(Dt[1]&255)<<8|(Dt[2]&255)<<16|(Dt[3]&255)<<24,Ar=nr[0]&255|(nr[1]&255)<<8|(nr[2]&255)<<16|(nr[3]&255)<<24,$r=nr[4]&255|(nr[5]&255)<<8|(nr[6]&255)<<16|(nr[7]&255)<<24,Br=nr[8]&255|(nr[9]&255)<<8|(nr[10]&255)<<16|(nr[11]&255)<<24,Gr=nr[12]&255|(nr[13]&255)<<8|(nr[14]&255)<<16|(nr[15]&255)<<24,Qr=Dt[4]&255|(Dt[5]&255)<<8|(Dt[6]&255)<<16|(Dt[7]&255)<<24,Vr=tr[0]&255|(tr[1]&255)<<8|(tr[2]&255)<<16|(tr[3]&255)<<24,Un=tr[4]&255|(tr[5]&255)<<8|(tr[6]&255)<<16|(tr[7]&255)<<24,ln=tr[8]&255|(tr[9]&255)<<8|(tr[10]&255)<<16|(tr[11]&255)<<24,En=tr[12]&255|(tr[13]&255)<<8|(tr[14]&255)<<16|(tr[15]&255)<<24,$n=Dt[8]&255|(Dt[9]&255)<<8|(Dt[10]&255)<<16|(Dt[11]&255)<<24,Mn=nr[16]&255|(nr[17]&255)<<8|(nr[18]&255)<<16|(nr[19]&255)<<24,Tn=nr[20]&255|(nr[21]&255)<<8|(nr[22]&255)<<16|(nr[23]&255)<<24,An=nr[24]&255|(nr[25]&255)<<8|(nr[26]&255)<<16|(nr[27]&255)<<24,Sn=nr[28]&255|(nr[29]&255)<<8|(nr[30]&255)<<16|(nr[31]&255)<<24,Pn=Dt[12]&255|(Dt[13]&255)<<8|(Dt[14]&255)<<16|(Dt[15]&255)<<24,hn=ir,vn=Ar,fn=$r,dn=Br,pn=Gr,an=Qr,Fr=Vr,Nr=Un,Xr=ln,Ur=En,Wr=$n,rn=Mn,Cn=Tn,Hn=An,Vn=Sn,jn=Pn,_r,qn=0;qn<20;qn+=2)_r=hn+Cn|0,pn^=_r<<7|_r>>>32-7,_r=pn+hn|0,Xr^=_r<<9|_r>>>32-9,_r=Xr+pn|0,Cn^=_r<<13|_r>>>32-13,_r=Cn+Xr|0,hn^=_r<<18|_r>>>32-18,_r=an+vn|0,Ur^=_r<<7|_r>>>32-7,_r=Ur+an|0,Hn^=_r<<9|_r>>>32-9,_r=Hn+Ur|0,vn^=_r<<13|_r>>>32-13,_r=vn+Hn|0,an^=_r<<18|_r>>>32-18,_r=Wr+Fr|0,Vn^=_r<<7|_r>>>32-7,_r=Vn+Wr|0,fn^=_r<<9|_r>>>32-9,_r=fn+Vn|0,Fr^=_r<<13|_r>>>32-13,_r=Fr+fn|0,Wr^=_r<<18|_r>>>32-18,_r=jn+rn|0,dn^=_r<<7|_r>>>32-7,_r=dn+jn|0,Nr^=_r<<9|_r>>>32-9,_r=Nr+dn|0,rn^=_r<<13|_r>>>32-13,_r=rn+Nr|0,jn^=_r<<18|_r>>>32-18,_r=hn+dn|0,vn^=_r<<7|_r>>>32-7,_r=vn+hn|0,fn^=_r<<9|_r>>>32-9,_r=fn+vn|0,dn^=_r<<13|_r>>>32-13,_r=dn+fn|0,hn^=_r<<18|_r>>>32-18,_r=an+pn|0,Fr^=_r<<7|_r>>>32-7,_r=Fr+an|0,Nr^=_r<<9|_r>>>32-9,_r=Nr+Fr|0,pn^=_r<<13|_r>>>32-13,_r=pn+Nr|0,an^=_r<<18|_r>>>32-18,_r=Wr+Ur|0,rn^=_r<<7|_r>>>32-7,_r=rn+Wr|0,Xr^=_r<<9|_r>>>32-9,_r=Xr+rn|0,Ur^=_r<<13|_r>>>32-13,_r=Ur+Xr|0,Wr^=_r<<18|_r>>>32-18,_r=jn+Vn|0,Cn^=_r<<7|_r>>>32-7,_r=Cn+jn|0,Hn^=_r<<9|_r>>>32-9,_r=Hn+Cn|0,Vn^=_r<<13|_r>>>32-13,_r=Vn+Hn|0,jn^=_r<<18|_r>>>32-18;Wt[0]=hn>>>0&255,Wt[1]=hn>>>8&255,Wt[2]=hn>>>16&255,Wt[3]=hn>>>24&255,Wt[4]=an>>>0&255,Wt[5]=an>>>8&255,Wt[6]=an>>>16&255,Wt[7]=an>>>24&255,Wt[8]=Wr>>>0&255,Wt[9]=Wr>>>8&255,Wt[10]=Wr>>>16&255,Wt[11]=Wr>>>24&255,Wt[12]=jn>>>0&255,Wt[13]=jn>>>8&255,Wt[14]=jn>>>16&255,Wt[15]=jn>>>24&255,Wt[16]=Fr>>>0&255,Wt[17]=Fr>>>8&255,Wt[18]=Fr>>>16&255,Wt[19]=Fr>>>24&255,Wt[20]=Nr>>>0&255,Wt[21]=Nr>>>8&255,Wt[22]=Nr>>>16&255,Wt[23]=Nr>>>24&255,Wt[24]=Xr>>>0&255,Wt[25]=Xr>>>8&255,Wt[26]=Xr>>>16&255,Wt[27]=Xr>>>24&255,Wt[28]=Ur>>>0&255,Wt[29]=Ur>>>8&255,Wt[30]=Ur>>>16&255,Wt[31]=Ur>>>24&255}function It(Wt,tr,nr,Dt){bt(Wt,tr,nr,Dt)}function Ot(Wt,tr,nr,Dt){kt(Wt,tr,nr,Dt)}var Nt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Vt(Wt,tr,nr,Dt,ir,Ar,$r){var Br=new Uint8Array(16),Gr=new Uint8Array(64),Qr,Vr;for(Vr=0;Vr<16;Vr++)Br[Vr]=0;for(Vr=0;Vr<8;Vr++)Br[Vr]=Ar[Vr];for(;ir>=64;){for(It(Gr,Br,$r,Nt),Vr=0;Vr<64;Vr++)Wt[tr+Vr]=nr[Dt+Vr]^Gr[Vr];for(Qr=1,Vr=8;Vr<16;Vr++)Qr=Qr+(Br[Vr]&255)|0,Br[Vr]=Qr&255,Qr>>>=8;ir-=64,tr+=64,Dt+=64}if(ir>0)for(It(Gr,Br,$r,Nt),Vr=0;Vr=64;){for(It($r,Ar,ir,Nt),Gr=0;Gr<64;Gr++)Wt[tr+Gr]=$r[Gr];for(Br=1,Gr=8;Gr<16;Gr++)Br=Br+(Ar[Gr]&255)|0,Ar[Gr]=Br&255,Br>>>=8;nr-=64,tr+=64}if(nr>0)for(It($r,Ar,ir,Nt),Gr=0;Gr>>13|nr<<3)&8191,Dt=Wt[4]&255|(Wt[5]&255)<<8,this.r[2]=(nr>>>10|Dt<<6)&7939,ir=Wt[6]&255|(Wt[7]&255)<<8,this.r[3]=(Dt>>>7|ir<<9)&8191,Ar=Wt[8]&255|(Wt[9]&255)<<8,this.r[4]=(ir>>>4|Ar<<12)&255,this.r[5]=Ar>>>1&8190,$r=Wt[10]&255|(Wt[11]&255)<<8,this.r[6]=(Ar>>>14|$r<<2)&8191,Br=Wt[12]&255|(Wt[13]&255)<<8,this.r[7]=($r>>>11|Br<<5)&8065,Gr=Wt[14]&255|(Wt[15]&255)<<8,this.r[8]=(Br>>>8|Gr<<8)&8191,this.r[9]=Gr>>>5&127,this.pad[0]=Wt[16]&255|(Wt[17]&255)<<8,this.pad[1]=Wt[18]&255|(Wt[19]&255)<<8,this.pad[2]=Wt[20]&255|(Wt[21]&255)<<8,this.pad[3]=Wt[22]&255|(Wt[23]&255)<<8,this.pad[4]=Wt[24]&255|(Wt[25]&255)<<8,this.pad[5]=Wt[26]&255|(Wt[27]&255)<<8,this.pad[6]=Wt[28]&255|(Wt[29]&255)<<8,this.pad[7]=Wt[30]&255|(Wt[31]&255)<<8};qt.prototype.blocks=function(Wt,tr,nr){for(var Dt=this.fin?0:2048,ir,Ar,$r,Br,Gr,Qr,Vr,Un,ln,En,$n,Mn,Tn,An,Sn,Pn,hn,vn,fn,dn=this.h[0],pn=this.h[1],an=this.h[2],Fr=this.h[3],Nr=this.h[4],Xr=this.h[5],Ur=this.h[6],Wr=this.h[7],rn=this.h[8],Cn=this.h[9],Hn=this.r[0],Vn=this.r[1],jn=this.r[2],_r=this.r[3],qn=this.r[4],Qn=this.r[5],_i=this.r[6],Gn=this.r[7],es=this.r[8],Zn=this.r[9];nr>=16;)ir=Wt[tr+0]&255|(Wt[tr+1]&255)<<8,dn+=ir&8191,Ar=Wt[tr+2]&255|(Wt[tr+3]&255)<<8,pn+=(ir>>>13|Ar<<3)&8191,$r=Wt[tr+4]&255|(Wt[tr+5]&255)<<8,an+=(Ar>>>10|$r<<6)&8191,Br=Wt[tr+6]&255|(Wt[tr+7]&255)<<8,Fr+=($r>>>7|Br<<9)&8191,Gr=Wt[tr+8]&255|(Wt[tr+9]&255)<<8,Nr+=(Br>>>4|Gr<<12)&8191,Xr+=Gr>>>1&8191,Qr=Wt[tr+10]&255|(Wt[tr+11]&255)<<8,Ur+=(Gr>>>14|Qr<<2)&8191,Vr=Wt[tr+12]&255|(Wt[tr+13]&255)<<8,Wr+=(Qr>>>11|Vr<<5)&8191,Un=Wt[tr+14]&255|(Wt[tr+15]&255)<<8,rn+=(Vr>>>8|Un<<8)&8191,Cn+=Un>>>5|Dt,ln=0,En=ln,En+=dn*Hn,En+=pn*(5*Zn),En+=an*(5*es),En+=Fr*(5*Gn),En+=Nr*(5*_i),ln=En>>>13,En&=8191,En+=Xr*(5*Qn),En+=Ur*(5*qn),En+=Wr*(5*_r),En+=rn*(5*jn),En+=Cn*(5*Vn),ln+=En>>>13,En&=8191,$n=ln,$n+=dn*Vn,$n+=pn*Hn,$n+=an*(5*Zn),$n+=Fr*(5*es),$n+=Nr*(5*Gn),ln=$n>>>13,$n&=8191,$n+=Xr*(5*_i),$n+=Ur*(5*Qn),$n+=Wr*(5*qn),$n+=rn*(5*_r),$n+=Cn*(5*jn),ln+=$n>>>13,$n&=8191,Mn=ln,Mn+=dn*jn,Mn+=pn*Vn,Mn+=an*Hn,Mn+=Fr*(5*Zn),Mn+=Nr*(5*es),ln=Mn>>>13,Mn&=8191,Mn+=Xr*(5*Gn),Mn+=Ur*(5*_i),Mn+=Wr*(5*Qn),Mn+=rn*(5*qn),Mn+=Cn*(5*_r),ln+=Mn>>>13,Mn&=8191,Tn=ln,Tn+=dn*_r,Tn+=pn*jn,Tn+=an*Vn,Tn+=Fr*Hn,Tn+=Nr*(5*Zn),ln=Tn>>>13,Tn&=8191,Tn+=Xr*(5*es),Tn+=Ur*(5*Gn),Tn+=Wr*(5*_i),Tn+=rn*(5*Qn),Tn+=Cn*(5*qn),ln+=Tn>>>13,Tn&=8191,An=ln,An+=dn*qn,An+=pn*_r,An+=an*jn,An+=Fr*Vn,An+=Nr*Hn,ln=An>>>13,An&=8191,An+=Xr*(5*Zn),An+=Ur*(5*es),An+=Wr*(5*Gn),An+=rn*(5*_i),An+=Cn*(5*Qn),ln+=An>>>13,An&=8191,Sn=ln,Sn+=dn*Qn,Sn+=pn*qn,Sn+=an*_r,Sn+=Fr*jn,Sn+=Nr*Vn,ln=Sn>>>13,Sn&=8191,Sn+=Xr*Hn,Sn+=Ur*(5*Zn),Sn+=Wr*(5*es),Sn+=rn*(5*Gn),Sn+=Cn*(5*_i),ln+=Sn>>>13,Sn&=8191,Pn=ln,Pn+=dn*_i,Pn+=pn*Qn,Pn+=an*qn,Pn+=Fr*_r,Pn+=Nr*jn,ln=Pn>>>13,Pn&=8191,Pn+=Xr*Vn,Pn+=Ur*Hn,Pn+=Wr*(5*Zn),Pn+=rn*(5*es),Pn+=Cn*(5*Gn),ln+=Pn>>>13,Pn&=8191,hn=ln,hn+=dn*Gn,hn+=pn*_i,hn+=an*Qn,hn+=Fr*qn,hn+=Nr*_r,ln=hn>>>13,hn&=8191,hn+=Xr*jn,hn+=Ur*Vn,hn+=Wr*Hn,hn+=rn*(5*Zn),hn+=Cn*(5*es),ln+=hn>>>13,hn&=8191,vn=ln,vn+=dn*es,vn+=pn*Gn,vn+=an*_i,vn+=Fr*Qn,vn+=Nr*qn,ln=vn>>>13,vn&=8191,vn+=Xr*_r,vn+=Ur*jn,vn+=Wr*Vn,vn+=rn*Hn,vn+=Cn*(5*Zn),ln+=vn>>>13,vn&=8191,fn=ln,fn+=dn*Zn,fn+=pn*es,fn+=an*Gn,fn+=Fr*_i,fn+=Nr*Qn,ln=fn>>>13,fn&=8191,fn+=Xr*qn,fn+=Ur*_r,fn+=Wr*jn,fn+=rn*Vn,fn+=Cn*Hn,ln+=fn>>>13,fn&=8191,ln=(ln<<2)+ln|0,ln=ln+En|0,En=ln&8191,ln=ln>>>13,$n+=ln,dn=En,pn=$n,an=Mn,Fr=Tn,Nr=An,Xr=Sn,Ur=Pn,Wr=hn,rn=vn,Cn=fn,tr+=16,nr-=16;this.h[0]=dn,this.h[1]=pn,this.h[2]=an,this.h[3]=Fr,this.h[4]=Nr,this.h[5]=Xr,this.h[6]=Ur,this.h[7]=Wr,this.h[8]=rn,this.h[9]=Cn},qt.prototype.finish=function(Wt,tr){var nr=new Uint16Array(10),Dt,ir,Ar,$r;if(this.leftover){for($r=this.leftover,this.buffer[$r++]=1;$r<16;$r++)this.buffer[$r]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(Dt=this.h[1]>>>13,this.h[1]&=8191,$r=2;$r<10;$r++)this.h[$r]+=Dt,Dt=this.h[$r]>>>13,this.h[$r]&=8191;for(this.h[0]+=Dt*5,Dt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=Dt,Dt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=Dt,nr[0]=this.h[0]+5,Dt=nr[0]>>>13,nr[0]&=8191,$r=1;$r<10;$r++)nr[$r]=this.h[$r]+Dt,Dt=nr[$r]>>>13,nr[$r]&=8191;for(nr[9]-=8192,ir=(Dt^1)-1,$r=0;$r<10;$r++)nr[$r]&=ir;for(ir=~ir,$r=0;$r<10;$r++)this.h[$r]=this.h[$r]&ir|nr[$r];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Ar=this.h[0]+this.pad[0],this.h[0]=Ar&65535,$r=1;$r<8;$r++)Ar=(this.h[$r]+this.pad[$r]|0)+(Ar>>>16)|0,this.h[$r]=Ar&65535;Wt[tr+0]=this.h[0]>>>0&255,Wt[tr+1]=this.h[0]>>>8&255,Wt[tr+2]=this.h[1]>>>0&255,Wt[tr+3]=this.h[1]>>>8&255,Wt[tr+4]=this.h[2]>>>0&255,Wt[tr+5]=this.h[2]>>>8&255,Wt[tr+6]=this.h[3]>>>0&255,Wt[tr+7]=this.h[3]>>>8&255,Wt[tr+8]=this.h[4]>>>0&255,Wt[tr+9]=this.h[4]>>>8&255,Wt[tr+10]=this.h[5]>>>0&255,Wt[tr+11]=this.h[5]>>>8&255,Wt[tr+12]=this.h[6]>>>0&255,Wt[tr+13]=this.h[6]>>>8&255,Wt[tr+14]=this.h[7]>>>0&255,Wt[tr+15]=this.h[7]>>>8&255},qt.prototype.update=function(Wt,tr,nr){var Dt,ir;if(this.leftover){for(ir=16-this.leftover,ir>nr&&(ir=nr),Dt=0;Dt=16&&(ir=nr-nr%16,this.blocks(Wt,tr,ir),tr+=ir,nr-=ir),nr){for(Dt=0;Dt>16&1),Ar[nr-1]&=65535;Ar[15]=$r[15]-32767-(Ar[14]>>16&1),ir=Ar[15]>>16&1,Ar[14]&=65535,$t($r,Ar,1-ir)}for(nr=0;nr<16;nr++)Wt[2*nr]=$r[nr]&255,Wt[2*nr+1]=$r[nr]>>8}function At(Wt,tr){var nr=new Uint8Array(32),Dt=new Uint8Array(32);return Tt(nr,Wt),Tt(Dt,tr),yt(nr,0,Dt,0)}function Pt(Wt){var tr=new Uint8Array(32);return Tt(tr,Wt),tr[0]&1}function mt(Wt,tr){var nr;for(nr=0;nr<16;nr++)Wt[nr]=tr[2*nr]+(tr[2*nr+1]<<8);Wt[15]&=32767}function Ft(Wt,tr,nr){for(var Dt=0;Dt<16;Dt++)Wt[Dt]=tr[Dt]+nr[Dt]}function Qt(Wt,tr,nr){for(var Dt=0;Dt<16;Dt++)Wt[Dt]=tr[Dt]-nr[Dt]}function cr(Wt,tr,nr){var Dt,ir,Ar=0,$r=0,Br=0,Gr=0,Qr=0,Vr=0,Un=0,ln=0,En=0,$n=0,Mn=0,Tn=0,An=0,Sn=0,Pn=0,hn=0,vn=0,fn=0,dn=0,pn=0,an=0,Fr=0,Nr=0,Xr=0,Ur=0,Wr=0,rn=0,Cn=0,Hn=0,Vn=0,jn=0,_r=nr[0],qn=nr[1],Qn=nr[2],_i=nr[3],Gn=nr[4],es=nr[5],Zn=nr[6],ms=nr[7],is=nr[8],hs=nr[9],gs=nr[10],vs=nr[11],ks=nr[12],$s=nr[13],Ts=nr[14],As=nr[15];Dt=tr[0],Ar+=Dt*_r,$r+=Dt*qn,Br+=Dt*Qn,Gr+=Dt*_i,Qr+=Dt*Gn,Vr+=Dt*es,Un+=Dt*Zn,ln+=Dt*ms,En+=Dt*is,$n+=Dt*hs,Mn+=Dt*gs,Tn+=Dt*vs,An+=Dt*ks,Sn+=Dt*$s,Pn+=Dt*Ts,hn+=Dt*As,Dt=tr[1],$r+=Dt*_r,Br+=Dt*qn,Gr+=Dt*Qn,Qr+=Dt*_i,Vr+=Dt*Gn,Un+=Dt*es,ln+=Dt*Zn,En+=Dt*ms,$n+=Dt*is,Mn+=Dt*hs,Tn+=Dt*gs,An+=Dt*vs,Sn+=Dt*ks,Pn+=Dt*$s,hn+=Dt*Ts,vn+=Dt*As,Dt=tr[2],Br+=Dt*_r,Gr+=Dt*qn,Qr+=Dt*Qn,Vr+=Dt*_i,Un+=Dt*Gn,ln+=Dt*es,En+=Dt*Zn,$n+=Dt*ms,Mn+=Dt*is,Tn+=Dt*hs,An+=Dt*gs,Sn+=Dt*vs,Pn+=Dt*ks,hn+=Dt*$s,vn+=Dt*Ts,fn+=Dt*As,Dt=tr[3],Gr+=Dt*_r,Qr+=Dt*qn,Vr+=Dt*Qn,Un+=Dt*_i,ln+=Dt*Gn,En+=Dt*es,$n+=Dt*Zn,Mn+=Dt*ms,Tn+=Dt*is,An+=Dt*hs,Sn+=Dt*gs,Pn+=Dt*vs,hn+=Dt*ks,vn+=Dt*$s,fn+=Dt*Ts,dn+=Dt*As,Dt=tr[4],Qr+=Dt*_r,Vr+=Dt*qn,Un+=Dt*Qn,ln+=Dt*_i,En+=Dt*Gn,$n+=Dt*es,Mn+=Dt*Zn,Tn+=Dt*ms,An+=Dt*is,Sn+=Dt*hs,Pn+=Dt*gs,hn+=Dt*vs,vn+=Dt*ks,fn+=Dt*$s,dn+=Dt*Ts,pn+=Dt*As,Dt=tr[5],Vr+=Dt*_r,Un+=Dt*qn,ln+=Dt*Qn,En+=Dt*_i,$n+=Dt*Gn,Mn+=Dt*es,Tn+=Dt*Zn,An+=Dt*ms,Sn+=Dt*is,Pn+=Dt*hs,hn+=Dt*gs,vn+=Dt*vs,fn+=Dt*ks,dn+=Dt*$s,pn+=Dt*Ts,an+=Dt*As,Dt=tr[6],Un+=Dt*_r,ln+=Dt*qn,En+=Dt*Qn,$n+=Dt*_i,Mn+=Dt*Gn,Tn+=Dt*es,An+=Dt*Zn,Sn+=Dt*ms,Pn+=Dt*is,hn+=Dt*hs,vn+=Dt*gs,fn+=Dt*vs,dn+=Dt*ks,pn+=Dt*$s,an+=Dt*Ts,Fr+=Dt*As,Dt=tr[7],ln+=Dt*_r,En+=Dt*qn,$n+=Dt*Qn,Mn+=Dt*_i,Tn+=Dt*Gn,An+=Dt*es,Sn+=Dt*Zn,Pn+=Dt*ms,hn+=Dt*is,vn+=Dt*hs,fn+=Dt*gs,dn+=Dt*vs,pn+=Dt*ks,an+=Dt*$s,Fr+=Dt*Ts,Nr+=Dt*As,Dt=tr[8],En+=Dt*_r,$n+=Dt*qn,Mn+=Dt*Qn,Tn+=Dt*_i,An+=Dt*Gn,Sn+=Dt*es,Pn+=Dt*Zn,hn+=Dt*ms,vn+=Dt*is,fn+=Dt*hs,dn+=Dt*gs,pn+=Dt*vs,an+=Dt*ks,Fr+=Dt*$s,Nr+=Dt*Ts,Xr+=Dt*As,Dt=tr[9],$n+=Dt*_r,Mn+=Dt*qn,Tn+=Dt*Qn,An+=Dt*_i,Sn+=Dt*Gn,Pn+=Dt*es,hn+=Dt*Zn,vn+=Dt*ms,fn+=Dt*is,dn+=Dt*hs,pn+=Dt*gs,an+=Dt*vs,Fr+=Dt*ks,Nr+=Dt*$s,Xr+=Dt*Ts,Ur+=Dt*As,Dt=tr[10],Mn+=Dt*_r,Tn+=Dt*qn,An+=Dt*Qn,Sn+=Dt*_i,Pn+=Dt*Gn,hn+=Dt*es,vn+=Dt*Zn,fn+=Dt*ms,dn+=Dt*is,pn+=Dt*hs,an+=Dt*gs,Fr+=Dt*vs,Nr+=Dt*ks,Xr+=Dt*$s,Ur+=Dt*Ts,Wr+=Dt*As,Dt=tr[11],Tn+=Dt*_r,An+=Dt*qn,Sn+=Dt*Qn,Pn+=Dt*_i,hn+=Dt*Gn,vn+=Dt*es,fn+=Dt*Zn,dn+=Dt*ms,pn+=Dt*is,an+=Dt*hs,Fr+=Dt*gs,Nr+=Dt*vs,Xr+=Dt*ks,Ur+=Dt*$s,Wr+=Dt*Ts,rn+=Dt*As,Dt=tr[12],An+=Dt*_r,Sn+=Dt*qn,Pn+=Dt*Qn,hn+=Dt*_i,vn+=Dt*Gn,fn+=Dt*es,dn+=Dt*Zn,pn+=Dt*ms,an+=Dt*is,Fr+=Dt*hs,Nr+=Dt*gs,Xr+=Dt*vs,Ur+=Dt*ks,Wr+=Dt*$s,rn+=Dt*Ts,Cn+=Dt*As,Dt=tr[13],Sn+=Dt*_r,Pn+=Dt*qn,hn+=Dt*Qn,vn+=Dt*_i,fn+=Dt*Gn,dn+=Dt*es,pn+=Dt*Zn,an+=Dt*ms,Fr+=Dt*is,Nr+=Dt*hs,Xr+=Dt*gs,Ur+=Dt*vs,Wr+=Dt*ks,rn+=Dt*$s,Cn+=Dt*Ts,Hn+=Dt*As,Dt=tr[14],Pn+=Dt*_r,hn+=Dt*qn,vn+=Dt*Qn,fn+=Dt*_i,dn+=Dt*Gn,pn+=Dt*es,an+=Dt*Zn,Fr+=Dt*ms,Nr+=Dt*is,Xr+=Dt*hs,Ur+=Dt*gs,Wr+=Dt*vs,rn+=Dt*ks,Cn+=Dt*$s,Hn+=Dt*Ts,Vn+=Dt*As,Dt=tr[15],hn+=Dt*_r,vn+=Dt*qn,fn+=Dt*Qn,dn+=Dt*_i,pn+=Dt*Gn,an+=Dt*es,Fr+=Dt*Zn,Nr+=Dt*ms,Xr+=Dt*is,Ur+=Dt*hs,Wr+=Dt*gs,rn+=Dt*vs,Cn+=Dt*ks,Hn+=Dt*$s,Vn+=Dt*Ts,jn+=Dt*As,Ar+=38*vn,$r+=38*fn,Br+=38*dn,Gr+=38*pn,Qr+=38*an,Vr+=38*Fr,Un+=38*Nr,ln+=38*Xr,En+=38*Ur,$n+=38*Wr,Mn+=38*rn,Tn+=38*Cn,An+=38*Hn,Sn+=38*Vn,Pn+=38*jn,ir=1,Dt=Ar+ir+65535,ir=Math.floor(Dt/65536),Ar=Dt-ir*65536,Dt=$r+ir+65535,ir=Math.floor(Dt/65536),$r=Dt-ir*65536,Dt=Br+ir+65535,ir=Math.floor(Dt/65536),Br=Dt-ir*65536,Dt=Gr+ir+65535,ir=Math.floor(Dt/65536),Gr=Dt-ir*65536,Dt=Qr+ir+65535,ir=Math.floor(Dt/65536),Qr=Dt-ir*65536,Dt=Vr+ir+65535,ir=Math.floor(Dt/65536),Vr=Dt-ir*65536,Dt=Un+ir+65535,ir=Math.floor(Dt/65536),Un=Dt-ir*65536,Dt=ln+ir+65535,ir=Math.floor(Dt/65536),ln=Dt-ir*65536,Dt=En+ir+65535,ir=Math.floor(Dt/65536),En=Dt-ir*65536,Dt=$n+ir+65535,ir=Math.floor(Dt/65536),$n=Dt-ir*65536,Dt=Mn+ir+65535,ir=Math.floor(Dt/65536),Mn=Dt-ir*65536,Dt=Tn+ir+65535,ir=Math.floor(Dt/65536),Tn=Dt-ir*65536,Dt=An+ir+65535,ir=Math.floor(Dt/65536),An=Dt-ir*65536,Dt=Sn+ir+65535,ir=Math.floor(Dt/65536),Sn=Dt-ir*65536,Dt=Pn+ir+65535,ir=Math.floor(Dt/65536),Pn=Dt-ir*65536,Dt=hn+ir+65535,ir=Math.floor(Dt/65536),hn=Dt-ir*65536,Ar+=ir-1+37*(ir-1),ir=1,Dt=Ar+ir+65535,ir=Math.floor(Dt/65536),Ar=Dt-ir*65536,Dt=$r+ir+65535,ir=Math.floor(Dt/65536),$r=Dt-ir*65536,Dt=Br+ir+65535,ir=Math.floor(Dt/65536),Br=Dt-ir*65536,Dt=Gr+ir+65535,ir=Math.floor(Dt/65536),Gr=Dt-ir*65536,Dt=Qr+ir+65535,ir=Math.floor(Dt/65536),Qr=Dt-ir*65536,Dt=Vr+ir+65535,ir=Math.floor(Dt/65536),Vr=Dt-ir*65536,Dt=Un+ir+65535,ir=Math.floor(Dt/65536),Un=Dt-ir*65536,Dt=ln+ir+65535,ir=Math.floor(Dt/65536),ln=Dt-ir*65536,Dt=En+ir+65535,ir=Math.floor(Dt/65536),En=Dt-ir*65536,Dt=$n+ir+65535,ir=Math.floor(Dt/65536),$n=Dt-ir*65536,Dt=Mn+ir+65535,ir=Math.floor(Dt/65536),Mn=Dt-ir*65536,Dt=Tn+ir+65535,ir=Math.floor(Dt/65536),Tn=Dt-ir*65536,Dt=An+ir+65535,ir=Math.floor(Dt/65536),An=Dt-ir*65536,Dt=Sn+ir+65535,ir=Math.floor(Dt/65536),Sn=Dt-ir*65536,Dt=Pn+ir+65535,ir=Math.floor(Dt/65536),Pn=Dt-ir*65536,Dt=hn+ir+65535,ir=Math.floor(Dt/65536),hn=Dt-ir*65536,Ar+=ir-1+37*(ir-1),Wt[0]=Ar,Wt[1]=$r,Wt[2]=Br,Wt[3]=Gr,Wt[4]=Qr,Wt[5]=Vr,Wt[6]=Un,Wt[7]=ln,Wt[8]=En,Wt[9]=$n,Wt[10]=Mn,Wt[11]=Tn,Wt[12]=An,Wt[13]=Sn,Wt[14]=Pn,Wt[15]=hn}function Gt(Wt,tr){cr(Wt,tr,tr)}function Zt(Wt,tr){var nr=et(),Dt;for(Dt=0;Dt<16;Dt++)nr[Dt]=tr[Dt];for(Dt=253;Dt>=0;Dt--)Gt(nr,nr),Dt!==2&&Dt!==4&&cr(nr,nr,tr);for(Dt=0;Dt<16;Dt++)Wt[Dt]=nr[Dt]}function Yt(Wt,tr){var nr=et(),Dt;for(Dt=0;Dt<16;Dt++)nr[Dt]=tr[Dt];for(Dt=250;Dt>=0;Dt--)Gt(nr,nr),Dt!==1&&cr(nr,nr,tr);for(Dt=0;Dt<16;Dt++)Wt[Dt]=nr[Dt]}function ar(Wt,tr,nr){var Dt=new Uint8Array(32),ir=new Float64Array(80),Ar,$r,Br=et(),Gr=et(),Qr=et(),Vr=et(),Un=et(),ln=et();for($r=0;$r<31;$r++)Dt[$r]=tr[$r];for(Dt[31]=tr[31]&127|64,Dt[0]&=248,mt(ir,nr),$r=0;$r<16;$r++)Gr[$r]=ir[$r],Vr[$r]=Br[$r]=Qr[$r]=0;for(Br[0]=Vr[0]=1,$r=254;$r>=0;--$r)Ar=Dt[$r>>>3]>>>($r&7)&1,$t(Br,Gr,Ar),$t(Qr,Vr,Ar),Ft(Un,Br,Qr),Qt(Br,Br,Qr),Ft(Qr,Gr,Vr),Qt(Gr,Gr,Vr),Gt(Vr,Un),Gt(ln,Br),cr(Br,Qr,Br),cr(Qr,Gr,Un),Ft(Un,Br,Qr),Qt(Br,Br,Qr),Gt(Gr,Br),Qt(Qr,Vr,ln),cr(Br,Qr,at),Ft(Br,Br,Vr),cr(Qr,Qr,Br),cr(Br,Vr,ln),cr(Vr,Gr,ir),Gt(Gr,Un),$t(Br,Gr,Ar),$t(Qr,Vr,Ar);for($r=0;$r<16;$r++)ir[$r+16]=Br[$r],ir[$r+32]=Qr[$r],ir[$r+48]=Gr[$r],ir[$r+64]=Vr[$r];var En=ir.subarray(32),$n=ir.subarray(16);return Zt(En,En),cr($n,$n,En),Tt(Wt,$n),0}function gr(Wt,tr){return ar(Wt,tr,nt)}function Jt(Wt,tr){return tt(tr,32),gr(Wt,tr)}function Xt(Wt,tr,nr){var Dt=new Uint8Array(32);return ar(Dt,nr,tr),Ot(Wt,rt,Dt,Nt)}var Sr=ct,br=xt;function Or(Wt,tr,nr,Dt,ir,Ar){var $r=new Uint8Array(32);return Xt($r,ir,Ar),Sr(Wt,tr,nr,Dt,$r)}function Zr(Wt,tr,nr,Dt,ir,Ar){var $r=new Uint8Array(32);return Xt($r,ir,Ar),br(Wt,tr,nr,Dt,$r)}var Lr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function yr(Wt,tr,nr,Dt){for(var ir=new Int32Array(16),Ar=new Int32Array(16),$r,Br,Gr,Qr,Vr,Un,ln,En,$n,Mn,Tn,An,Sn,Pn,hn,vn,fn,dn,pn,an,Fr,Nr,Xr,Ur,Wr,rn,Cn=Wt[0],Hn=Wt[1],Vn=Wt[2],jn=Wt[3],_r=Wt[4],qn=Wt[5],Qn=Wt[6],_i=Wt[7],Gn=tr[0],es=tr[1],Zn=tr[2],ms=tr[3],is=tr[4],hs=tr[5],gs=tr[6],vs=tr[7],ks=0;Dt>=128;){for(pn=0;pn<16;pn++)an=8*pn+ks,ir[pn]=nr[an+0]<<24|nr[an+1]<<16|nr[an+2]<<8|nr[an+3],Ar[pn]=nr[an+4]<<24|nr[an+5]<<16|nr[an+6]<<8|nr[an+7];for(pn=0;pn<80;pn++)if($r=Cn,Br=Hn,Gr=Vn,Qr=jn,Vr=_r,Un=qn,ln=Qn,En=_i,$n=Gn,Mn=es,Tn=Zn,An=ms,Sn=is,Pn=hs,hn=gs,vn=vs,Fr=_i,Nr=vs,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=(_r>>>14|is<<32-14)^(_r>>>18|is<<32-18)^(is>>>41-32|_r<<32-(41-32)),Nr=(is>>>14|_r<<32-14)^(is>>>18|_r<<32-18)^(_r>>>41-32|is<<32-(41-32)),Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Fr=_r&qn^~_r&Qn,Nr=is&hs^~is&gs,Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Fr=Lr[pn*2],Nr=Lr[pn*2+1],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Fr=ir[pn%16],Nr=Ar[pn%16],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,fn=Wr&65535|rn<<16,dn=Xr&65535|Ur<<16,Fr=fn,Nr=dn,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=(Cn>>>28|Gn<<32-28)^(Gn>>>34-32|Cn<<32-(34-32))^(Gn>>>39-32|Cn<<32-(39-32)),Nr=(Gn>>>28|Cn<<32-28)^(Cn>>>34-32|Gn<<32-(34-32))^(Cn>>>39-32|Gn<<32-(39-32)),Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Fr=Cn&Hn^Cn&Vn^Hn&Vn,Nr=Gn&es^Gn&Zn^es&Zn,Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,En=Wr&65535|rn<<16,vn=Xr&65535|Ur<<16,Fr=Qr,Nr=An,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=fn,Nr=dn,Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Qr=Wr&65535|rn<<16,An=Xr&65535|Ur<<16,Hn=$r,Vn=Br,jn=Gr,_r=Qr,qn=Vr,Qn=Un,_i=ln,Cn=En,es=$n,Zn=Mn,ms=Tn,is=An,hs=Sn,gs=Pn,vs=hn,Gn=vn,pn%16===15)for(an=0;an<16;an++)Fr=ir[an],Nr=Ar[an],Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=ir[(an+9)%16],Nr=Ar[(an+9)%16],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,fn=ir[(an+1)%16],dn=Ar[(an+1)%16],Fr=(fn>>>1|dn<<32-1)^(fn>>>8|dn<<32-8)^fn>>>7,Nr=(dn>>>1|fn<<32-1)^(dn>>>8|fn<<32-8)^(dn>>>7|fn<<32-7),Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,fn=ir[(an+14)%16],dn=Ar[(an+14)%16],Fr=(fn>>>19|dn<<32-19)^(dn>>>61-32|fn<<32-(61-32))^fn>>>6,Nr=(dn>>>19|fn<<32-19)^(fn>>>61-32|dn<<32-(61-32))^(dn>>>6|fn<<32-6),Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,ir[an]=Wr&65535|rn<<16,Ar[an]=Xr&65535|Ur<<16;Fr=Cn,Nr=Gn,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[0],Nr=tr[0],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[0]=Cn=Wr&65535|rn<<16,tr[0]=Gn=Xr&65535|Ur<<16,Fr=Hn,Nr=es,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[1],Nr=tr[1],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[1]=Hn=Wr&65535|rn<<16,tr[1]=es=Xr&65535|Ur<<16,Fr=Vn,Nr=Zn,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[2],Nr=tr[2],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[2]=Vn=Wr&65535|rn<<16,tr[2]=Zn=Xr&65535|Ur<<16,Fr=jn,Nr=ms,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[3],Nr=tr[3],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[3]=jn=Wr&65535|rn<<16,tr[3]=ms=Xr&65535|Ur<<16,Fr=_r,Nr=is,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[4],Nr=tr[4],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[4]=_r=Wr&65535|rn<<16,tr[4]=is=Xr&65535|Ur<<16,Fr=qn,Nr=hs,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[5],Nr=tr[5],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[5]=qn=Wr&65535|rn<<16,tr[5]=hs=Xr&65535|Ur<<16,Fr=Qn,Nr=gs,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[6],Nr=tr[6],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[6]=Qn=Wr&65535|rn<<16,tr[6]=gs=Xr&65535|Ur<<16,Fr=_i,Nr=vs,Xr=Nr&65535,Ur=Nr>>>16,Wr=Fr&65535,rn=Fr>>>16,Fr=Wt[7],Nr=tr[7],Xr+=Nr&65535,Ur+=Nr>>>16,Wr+=Fr&65535,rn+=Fr>>>16,Ur+=Xr>>>16,Wr+=Ur>>>16,rn+=Wr>>>16,Wt[7]=_i=Wr&65535|rn<<16,tr[7]=vs=Xr&65535|Ur<<16,ks+=128,Dt-=128}return Dt}function pr(Wt,tr,nr){var Dt=new Int32Array(8),ir=new Int32Array(8),Ar=new Uint8Array(256),$r,Br=nr;for(Dt[0]=1779033703,Dt[1]=3144134277,Dt[2]=1013904242,Dt[3]=2773480762,Dt[4]=1359893119,Dt[5]=2600822924,Dt[6]=528734635,Dt[7]=1541459225,ir[0]=4089235720,ir[1]=2227873595,ir[2]=4271175723,ir[3]=1595750129,ir[4]=2917565137,ir[5]=725511199,ir[6]=4215389547,ir[7]=327033209,yr(Dt,ir,tr,nr),nr%=128,$r=0;$r=0;--ir)Dt=nr[ir/8|0]>>(ir&7)&1,Cr(Wt,tr,Dt),Pr(tr,Wt),Pr(Wt,Wt),Cr(Wt,tr,Dt)}function ur(Wt,tr){var nr=[et(),et(),et(),et()];St(nr[0],vt),St(nr[1],gt),St(nr[2],st),cr(nr[3],vt,gt),Hr(Wt,nr,tr)}function wr(Wt,tr,nr){var Dt=new Uint8Array(64),ir=[et(),et(),et(),et()],Ar;for(nr||tt(tr,32),pr(Dt,tr,32),Dt[0]&=248,Dt[31]&=127,Dt[31]|=64,ur(ir,Dt),Jr(Wt,ir),Ar=0;Ar<32;Ar++)tr[Ar+32]=Wt[Ar];return 0}var Rr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Kt(Wt,tr){var nr,Dt,ir,Ar;for(Dt=63;Dt>=32;--Dt){for(nr=0,ir=Dt-32,Ar=Dt-12;ir>4)*Rr[ir],nr=tr[ir]>>8,tr[ir]&=255;for(ir=0;ir<32;ir++)tr[ir]-=nr*Rr[ir];for(Dt=0;Dt<32;Dt++)tr[Dt+1]+=tr[Dt]>>8,Wt[Dt]=tr[Dt]&255}function Lt(Wt){var tr=new Float64Array(64),nr;for(nr=0;nr<64;nr++)tr[nr]=Wt[nr];for(nr=0;nr<64;nr++)Wt[nr]=0;Kt(Wt,tr)}function Ut(Wt,tr,nr,Dt){var ir=new Uint8Array(64),Ar=new Uint8Array(64),$r=new Uint8Array(64),Br,Gr,Qr=new Float64Array(64),Vr=[et(),et(),et(),et()];pr(ir,Dt,32),ir[0]&=248,ir[31]&=127,ir[31]|=64;var Un=nr+64;for(Br=0;Br>7&&Qt(Wt[0],it,Wt[0]),cr(Wt[3],Wt[0],Wt[1]),0)}function vr(Wt,tr,nr,Dt){var ir,Ar=new Uint8Array(32),$r=new Uint8Array(64),Br=[et(),et(),et(),et()],Gr=[et(),et(),et(),et()];if(nr<64||rr(Gr,Dt))return-1;for(ir=0;ir=0},o.sign.keyPair=function(){var Wt=new Uint8Array(gn),tr=new Uint8Array(rs);return wr(Wt,tr),{publicKey:Wt,secretKey:tr}},o.sign.keyPair.fromSecretKey=function(Wt){if(un(Wt),Wt.length!==rs)throw new Error("bad secret key size");for(var tr=new Uint8Array(gn),nr=0;nr"u"?typeof Buffer.from<"u"?(o.encodeBase64=function(tt){return Buffer.from(tt).toString("base64")},o.decodeBase64=function(tt){return et(tt),new Uint8Array(Array.prototype.slice.call(Buffer.from(tt,"base64"),0))}):(o.encodeBase64=function(tt){return new Buffer(tt).toString("base64")},o.decodeBase64=function(tt){return et(tt),new Uint8Array(Array.prototype.slice.call(new Buffer(tt,"base64"),0))}):(o.encodeBase64=function(tt){var rt,nt=[],it=tt.length;for(rt=0;rtpt||pr<0)throw new RangeError(`varint ${pr} out of range`);this._grow(this._length+bt);let Pr=this._length;for(;pr>=128;)this._buf[Pr++]=pr&255|128,pr>>>=7;this._buf[Pr++]=pr|0,this._length=Pr}get bytes(){return this._buf.subarray(0,this._length)}_grow(pr){const Pr=this._buf.length;if(pr<=Pr)return;const Cr=Pr*2,Jr=pr>Cr?pr:Cr,Hr=new Uint8Array(Jr);Hr.set(this._buf.subarray(0,this._length)),this._buf=Hr}}const bt=5;class kt{constructor(pr){this._buf=pr,this._index=0}readByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index++]}peekByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index]}readN(pr){if(this.lengthbt||ur===bt&&Hr>1)throw new RangeError("Overflow error decoding varint");return(Pr|Hr<>>0}Pr|=(Hr&127)<yr!=null,Ot=yr=>It(yr)?st.encode(yr):yr,Nt=yr=>It(yr)?at.decode(yr):yr,Vt=yr=>et.default.codec.utf8String.fromBits(yr);a.base64ToBytes=function(yr){return yr=yr.replace(/-/g,"+").replace(/_/g,"/"),yr.length%4!==0&&!yr.match(/=$/)&&(yr+="=".repeat(4-yr.length%4)),rt.default.decodeBase64(yr)},a.bytesToBase64=function(yr){return rt.default.encodeBase64(yr).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")};const jt=function(yr){return et.default.codec.base64.toBits(rt.default.encodeBase64(yr))},zt=function(yr){return rt.default.decodeBase64(et.default.codec.base64.fromBits(yr))},or=function(yr){const pr=new Uint8Array(Math.ceil(yr.length/2));for(let Pr=0;PrIt(yr)?Rt(yr,pr):"",ct=function(yr,pr){if(yr instanceof Uint8Array)return yr;if(typeof yr=="string")return Ot(yr);throw new TypeError(`${pr} has the wrong type; want string or Uint8Array, got ${typeof yr}.`)},xt=new Uint8Array,St=function(yr,pr){const Pr=yr.readByte();if(Pr!==pr)throw new Error(`Unexpected field type, got ${Pr} want ${pr}`);return Pr===ht?xt:yr.readN(yr.readUvarint())},Mt=function(yr,pr,Pr){yr.appendByte(pr),pr!==ht&&(yr.appendUvarint(Pr.length),yr.appendBytes(Pr))},$t=function(yr,pr){return yr.peekByte()!==pr?null:St(yr,pr)},Tt=function(yr,pr,Pr){qt(Pr)?yr[pr]=Nt(Pr):yr[pr+"64"]=a.bytesToBase64(Pr)},At=function(yr,pr){const Pr=new et.default.misc.hmac(yr,et.default.hash.sha256);return Pr.update(pr),Pr.digest()},Pt=function(yr,pr,Pr){const Cr=At(yr,pr),Jr=At(yr,Pr);return At(yr,et.default.bitArray.concat(Cr,Jr))},mt=jt(Ot("macaroons-key-generator")),Ft=function(yr){return At(mt,yr)},Qt=function(){return tt.default.randomBytes(lt)},cr=function(yr,pr){const Pr=zt(yr),Cr=zt(pr),Jr=Qt(),Hr=tt.default.secretbox(Cr,Jr,Pr),ur=new Uint8Array(Jr.length+Hr.length);return ur.set(Jr,0),ur.set(Hr,Jr.length),jt(ur)},Gt=function(yr,pr){const Pr=zt(yr),Cr=zt(pr),Jr=Cr.slice(0,lt),Hr=Cr.slice(lt);let ur=tt.default.secretbox.open(Hr,Jr,Pr);if(!ur)throw new Error("decryption failed");return jt(ur)},Zt=jt(Ot("\0".repeat(32))),Yt=function(yr,pr){return et.default.bitArray.equal(yr,pr)?yr:Pt(Zt,yr,pr)};class ar{constructor(pr){if(!pr)return;let{version:Pr,identifierBytes:Cr,locationStr:Jr,caveats:Hr,signatureBytes:ur}=pr;if(Pr!==1&&Pr!==2)throw new Error(`Unexpected version ${Pr}`);if(this._version=Pr,this._locationStr=Jr,Cr=ct(Cr,"Identifier"),Pr===1&&!qt(Cr))throw new Error("Version 1 macaroon identifier must be well-formed UTF-8");this._identifierBits=Cr&&jt(Cr),this._signatureBits=ur&&jt(ct(ur,"Signature")),this._caveats=Hr?Hr.map(wr=>{const Rr=ct(wr.identifierBytes,"Caveat identifier");if(Pr===1&&!qt(Rr))throw new Error("Version 1 caveat identifier must be well-formed UTF-8");return{_locationStr:Bt(wr.locationStr),_identifierBits:jt(Rr),_vidBits:wr.vidBytes&&jt(ct(wr.vidBytes,"Verification ID"))}}):[]}get caveats(){return this._caveats.map(pr=>It(pr._vidBits)?{identifier:zt(pr._identifierBits),location:pr._locationStr,vid:zt(pr._vidBits)}:{identifier:zt(pr._identifierBits)})}get location(){return this._locationStr}get identifier(){return zt(this._identifierBits)}get signature(){return zt(this._signatureBits)}addThirdPartyCaveat(pr,Pr,Cr){const Jr={_identifierBits:jt(ct(Pr,"Caveat id")),_vidBits:cr(this._signatureBits,Ft(jt(ct(pr,"Caveat root key")))),_locationStr:Bt(Cr)};this._signatureBits=Pt(this._signatureBits,Jr._vidBits,Jr._identifierBits),this._caveats.push(Jr)}addFirstPartyCaveat(pr){const Pr=jt(ct(pr,"Condition"));this._caveats.push({_identifierBits:Pr}),this._signatureBits=At(this._signatureBits,Pr)}bindToRoot(pr){const Pr=jt(ct(pr,"Primary macaroon signature"));this._signatureBits=Yt(Pr,this._signatureBits)}clone(){const pr=new ar;return pr._version=this._version,pr._signatureBits=this._signatureBits,pr._identifierBits=this._identifierBits,pr._locationStr=this._locationStr,pr._caveats=this._caveats.slice(),pr}verify(pr,Pr,Cr=[]){const Jr=Ft(jt(ct(pr,"Root key"))),Hr=Cr.map(ur=>0);this._verify(this._signatureBits,Jr,Pr,Cr,Hr),Cr.forEach((ur,wr)=>{if(Hr[wr]===0)throw new Error(`discharge macaroon ${Et(ur.identifier)} was not used`);if(Hr[wr]!==1)throw new Error(`discharge macaroon ${Et(ur.identifier)} was used more than once`)})}_verify(pr,Pr,Cr,Jr,Hr){let ur=At(Pr,this._identifierBits);this._caveats.forEach(Rr=>{if(Rr._vidBits){const Kt=Gt(ur,Rr._vidBits);let Lt=!1,Ut,rr;for(Ut=0;Ut1)throw new Error(`discharge macaroon ${Et(rr.identifier)} was used more than once`);rr._verify(pr,Kt,Cr,Jr,Hr);break}if(!Lt)throw new Error(`cannot find discharge macaroon for caveat ${Et(Rr._identifierBits)}`);ur=Pt(ur,Rr._vidBits,Rr._identifierBits)}else{const Kt=Vt(Rr._identifierBits),Lt=Cr(Kt);if(Lt)throw new Error(`caveat check failed (${Kt}): ${Lt}`);ur=At(ur,Rr._identifierBits)}});const wr=Yt(pr,ur);if(!et.default.bitArray.equal(wr,this._signatureBits))throw new Error("signature mismatch after caveat verification")}exportJSON(){switch(this._version){case 1:return this._exportAsJSONObjectV1();case 2:return this._exportAsJSONObjectV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}_exportAsJSONObjectV1(){const pr={identifier:Vt(this._identifierBits),signature:et.default.codec.hex.fromBits(this._signatureBits)};return this._locationStr&&(pr.location=this._locationStr),this._caveats.length>0&&(pr.caveats=this._caveats.map(Pr=>{const Cr={cid:Vt(Pr._identifierBits)};return Pr._vidBits&&(Cr.vid=et.default.codec.base64.fromBits(Pr._vidBits,!0,!0),Cr.cl=Pr._locationStr),Cr})),pr}_exportAsJSONObjectV2(){const pr={v:2};return Tt(pr,"s",zt(this._signatureBits)),Tt(pr,"i",zt(this._identifierBits)),this._locationStr&&(pr.l=this._locationStr),this._caveats&&this._caveats.length>0&&(pr.c=this._caveats.map(Pr=>{const Cr={};return Tt(Cr,"i",zt(Pr._identifierBits)),Pr._vidBits&&(Tt(Cr,"v",zt(Pr._vidBits)),Cr.l=Pr._locationStr),Cr})),pr}_exportBinaryV1(){throw new Error("V1 binary export not supported")}_exportBinaryV2(){const pr=new yt(200);return pr.appendByte(2),this._locationStr&&Mt(pr,vt,Ot(this._locationStr)),Mt(pr,gt,zt(this._identifierBits)),Mt(pr,ht),this._caveats.forEach(function(Pr){Pr._locationStr&&Mt(pr,vt,Ot(Pr._locationStr)),Mt(pr,gt,zt(Pr._identifierBits)),Pr._vidBits&&Mt(pr,wt,zt(Pr._vidBits)),Mt(pr,ht)}),Mt(pr,ht),Mt(pr,ut,zt(this._signatureBits)),pr.bytes}exportBinary(){switch(this._version){case 1:return this._exportBinaryV1();case 2:return this._exportBinaryV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}}a.importMacaroon=function(yr){if(typeof yr=="string"&&(yr=a.base64ToBytes(yr)),yr instanceof Uint8Array){const pr=new kt(yr),Pr=Lr(pr);if(pr.length!==0)throw new TypeError("extra data found at end of serialized macaroon");return Pr}if(Array.isArray(yr))throw new TypeError("cannot import an array of macaroons as a single macaroon");return gr(yr)},a.importMacaroons=function(yr){if(typeof yr=="string"&&(yr=a.base64ToBytes(yr)),yr instanceof Uint8Array){if(yr.length===0)throw new TypeError("empty macaroon data");const pr=new kt(yr),Pr=[];do Pr.push(Lr(pr));while(pr.length>0);return Pr}return Array.isArray(yr)?yr.map(pr=>gr(pr)):[gr(yr)]};const gr=function(yr){return Jt(yr)?Xt(yr):Sr(yr)};function Jt(yr){return It(yr.signature)}const Xt=function(yr){const pr=yr.caveats&&yr.caveats.map(Pr=>{const Cr={identifierBytes:Ot(Rt(Pr.cid,"Caveat id")),locationStr:Bt(Pr.cl,"Caveat location")};return Pr.vid&&(Cr.vidBytes=a.base64ToBytes(Rt(Pr.vid,"Caveat verification id"))),Cr});return new ar({version:1,locationStr:Bt(yr.location,"Macaroon location"),identifierBytes:Ot(Rt(yr.identifier,"Macaroon identifier")),caveats:pr,signatureBytes:or(yr.signature)})},Sr=function(yr){if(yr.v!==2&&yr.v!==void 0)throw new Error(`Unsupported macaroon version ${yr.v}`);const pr={version:2,signatureBytes:br(yr,"s",!0),locationStr:Nt(br(yr,"l",!1)),identifierBytes:br(yr,"i",!0)};if(yr.c){if(!Array.isArray(yr.c))throw new Error("caveats field does not hold an array");pr.caveats=yr.c.map(Pr=>({identifierBytes:br(Pr,"i",!0),locationStr:Nt(br(Pr,"l")),vidBytes:br(Pr,"v",!1)}))}return new ar(pr)};function br(yr,pr,Pr){if(yr.hasOwnProperty(pr))return Ot(yr[pr]);const Cr=pr+"64";if(yr.hasOwnProperty(Cr))return a.base64ToBytes(yr[Cr]);if(Pr)throw new Error("Expected key: "+pr);return null}const Or=function(yr){const pr=yr.readByte();if(pr!==2)throw new Error(`Only version 2 is supported, found version ${pr}`);const Pr=Nt($t(yr,vt)),Cr=St(yr,gt),Jr=[];for(St(yr,ht);!$t(yr,ht);){const ur={locationStr:Nt($t(yr,vt)),identifierBytes:St(yr,gt),vidBytes:$t(yr,wt)};St(yr,ht),Jr.push(ur)}const Hr=St(yr,ut);if(yr.length!==0)throw new Error("unexpected extra data at end of macaroon");return new ar({version:pr,locationStr:Pr,identifierBytes:Cr,signatureBytes:Hr,caveats:Jr})},Zr=function(yr){return 48<=yr&&yr<=58||97<=yr&&yr<=102},Lr=function(yr){if(yr.length===0)throw new Error("Empty macaroon data");const pr=yr.peekByte();if(pr===2)return Or(yr);throw Zr(pr)?new Error("Version 1 binary format not supported"):new Error("Cannot determine data format of binary-encoded macaroon")};a.newMacaroon=function({identifier:yr,location:pr,rootKey:Pr,version:Cr}){const Jr=ct(yr,"Macaroon identifier"),Hr=ct(Pr,"Macaroon root key");return new ar({version:Cr===void 0?2:Cr,identifierBytes:Jr,locationStr:Bt(pr,"Macaroon location"),signatureBytes:zt(At(Ft(jt(Hr)),jt(Jr)))})},a.dischargeMacaroon=function(yr,pr,Pr,Cr){const Jr=yr.signature,Hr=[yr];let ur=0,wr=!1;const Rr=yr.location,Kt=rr=>{wr||(rr.bindToRoot(Jr),Hr.push(rr),ur--,Ut(rr))},Lt=rr=>{wr||(Cr(rr),wr=!0)},Ut=rr=>{let vr,kr;for(kr=0;kra.LATEST_VERSION)throw new ht(ut.version);if(ut.version&&(this.version=ut.version),nt(typeof this.version=="number","Identifier version must be a number"),nt(ut.paymentHash.length===32,`Expected 32-byte hash, instead got ${ut.paymentHash.length}`),this.paymentHash=ut.paymentHash,ut.tokenId)this.tokenId=ut.tokenId;else{const pt=(0,at.default)();this.tokenId=st.default.createHash("sha256").update(Buffer.from(pt)).digest()}return nt(this.tokenId.length===a.TOKEN_ID_SIZE,"Token Id of unexpected size"),this}toString(){return this.toHex()}static fromString(ut){try{return new this().fromHex(ut)}catch{return new this().fromBase64(ut)}}write(ut){switch(ut.writeU16BE(this.version),this.version){case 0:return ut.writeHash(this.paymentHash),nt(Buffer.isBuffer(this.tokenId)&&this.tokenId.length===a.TOKEN_ID_SIZE,`Token ID must be ${a.TOKEN_ID_SIZE}-byte hash`),ut.writeBytes(this.tokenId),this;default:throw new ht(this.version)}}read(ut){switch(this.version=ut.readU16BE(),this.version){case 0:return this.paymentHash=ut.readHash(),this.tokenId=ut.readBytes(a.TOKEN_ID_SIZE),this;default:throw new ht(this.version)}}}a.Identifier=vt;const gt=wt=>{const ut=lt.importMacaroon(wt);let pt=ut._exportAsJSONObjectV2().i;if(pt==null&&(pt=ut._exportAsJSONObjectV2().i64,pt==null))throw new Error("Problem parsing macaroon identifier");return pt};a.decodeIdentifierFromMacaroon=gt})(identifier$1);var caveat={};/*! - * assert.js - assertions for javascript - * Copyright (c) 2018, Christopher Jeffrey (MIT License). - * https://github.com/chjj/bsert - */class AssertionError extends Error{constructor(o){typeof o=="string"&&(o={message:o}),(o===null||typeof o!="object")&&(o={});let et=null,tt="fail",rt=!!o.generatedMessage;if(o.message!=null&&(et=toString$1(o.message)),typeof o.operator=="string"&&(tt=o.operator),et==null){if(tt==="fail")et="Assertion failed.";else{const it=stringify$1(o.actual),st=stringify$1(o.expected);et=`${it} ${tt} ${st}`}rt=!0}super(et);let nt=this.constructor;typeof o.stackStartFunction=="function"?nt=o.stackStartFunction:typeof o.stackStartFn=="function"&&(nt=o.stackStartFn),this.type="AssertionError",this.name="AssertionError [ERR_ASSERTION]",this.code="ERR_ASSERTION",this.generatedMessage=rt,this.actual=o.actual,this.expected=o.expected,this.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(this,nt)}}function assert$3(a,o){if(!a){let et=!1;if(arguments.length===0)o="No value argument passed to `assert()`.",et=!0;else if(o==null)o="Assertion failed.",et=!0;else if(isError(o))throw o;throw new AssertionError({message:o,actual:a,expected:!0,operator:"==",generatedMessage:et,stackStartFn:assert$3})}}function equal(a,o,et){if(!Object.is(a,o))throw isError(et)?et:new AssertionError({message:et,actual:a,expected:o,operator:"strictEqual",stackStartFn:equal})}function notEqual(a,o,et){if(Object.is(a,o))throw isError(et)?et:new AssertionError({message:et,actual:a,expected:o,operator:"notStrictEqual",stackStartFn:notEqual})}function fail(a){let o=!1;throw isError(a)?a:(a==null&&(a="Assertion failed.",o=!0),new AssertionError({message:a,actual:!1,expected:!0,operator:"fail",generatedMessage:o,stackStartFn:fail}))}function throws(a,o,et){typeof o=="string"&&(et=o,o=void 0);let tt=!1,rt=null;enforce(typeof a=="function","func","function");try{a()}catch(nt){tt=!0,rt=nt}if(!tt){let nt=!1;throw et==null&&(et="Missing expected exception.",nt=!0),new AssertionError({message:et,actual:void 0,expected:o,operator:"throws",generatedMessage:nt,stackStartFn:throws})}if(!testError(rt,o,et,throws))throw rt}function doesNotThrow(a,o,et){typeof o=="string"&&(et=o,o=void 0);let tt=!1,rt=null;enforce(typeof a=="function","func","function");try{a()}catch(nt){tt=!0,rt=nt}if(tt){if(testError(rt,o,et,doesNotThrow)){let nt=!1;throw et==null&&(et="Got unwanted exception.",nt=!0),new AssertionError({message:et,actual:rt,expected:o,operator:"doesNotThrow",generatedMessage:nt,stackStartFn:doesNotThrow})}throw rt}}async function rejects(a,o,et){typeof o=="string"&&(et=o,o=void 0);let tt=!1,rt=null;typeof a!="function"&&enforce(isPromise(a),"func","promise");try{isPromise(a)?await a:await a()}catch(nt){tt=!0,rt=nt}if(!tt){let nt=!1;throw et==null&&(et="Missing expected rejection.",nt=!0),new AssertionError({message:et,actual:void 0,expected:o,operator:"rejects",generatedMessage:nt,stackStartFn:rejects})}if(!testError(rt,o,et,rejects))throw rt}async function doesNotReject(a,o,et){typeof o=="string"&&(et=o,o=void 0);let tt=!1,rt=null;typeof a!="function"&&enforce(isPromise(a),"func","promise");try{isPromise(a)?await a:await a()}catch(nt){tt=!0,rt=nt}if(tt){if(testError(rt,o,et,doesNotReject)){let nt=!1;throw et==null&&(et="Got unwanted rejection.",nt=!0),new AssertionError({message:et,actual:void 0,expected:o,operator:"doesNotReject",generatedMessage:nt,stackStartFn:doesNotReject})}throw rt}}function ifError(a){if(a!=null){let o="ifError got unwanted exception: ";throw typeof a=="object"&&typeof a.message=="string"?a.message.length===0&&a.constructor?o+=a.constructor.name:o+=a.message:o+=stringify$1(a),new AssertionError({message:o,actual:a,expected:null,operator:"ifError",generatedMessage:!0,stackStartFn:ifError})}}function deepEqual(a,o,et){if(!isDeepEqual(a,o,!1))throw isError(et)?et:new AssertionError({message:et,actual:a,expected:o,operator:"deepStrictEqual",stackStartFn:deepEqual})}function notDeepEqual(a,o,et){if(isDeepEqual(a,o,!0))throw isError(et)?et:new AssertionError({message:et,actual:a,expected:o,operator:"notDeepStrictEqual",stackStartFn:notDeepEqual})}function bufferEqual(a,o,et,tt){if(isEncoding(et)||(tt=et,et=null),et==null&&(et="hex"),o=bufferize(a,o,et),enforce(isBuffer$3(a),"actual","buffer"),enforce(isBuffer$3(o),"expected","buffer"),a!==o&&!a.equals(o))throw isError(tt)?tt:new AssertionError({message:tt,actual:a.toString(et),expected:o.toString(et),operator:"bufferEqual",stackStartFn:bufferEqual})}function notBufferEqual(a,o,et,tt){if(isEncoding(et)||(tt=et,et=null),et==null&&(et="hex"),o=bufferize(a,o,et),enforce(isBuffer$3(a),"actual","buffer"),enforce(isBuffer$3(o),"expected","buffer"),a===o||a.equals(o))throw isError(tt)?tt:new AssertionError({message:tt,actual:a.toString(et),expected:o.toString(et),operator:"notBufferEqual",stackStartFn:notBufferEqual})}function enforce(a,o,et){if(!a){let tt;o==null?tt="Invalid type for parameter.":et==null?tt=`Invalid type for "${o}".`:tt=`"${o}" must be a(n) ${et}.`;const rt=new TypeError(tt);throw Error.captureStackTrace&&Error.captureStackTrace(rt,enforce),rt}}function range$3(a,o){if(!a){const et=o!=null?`"${o}" is out of range.`:"Parameter is out of range.",tt=new RangeError(et);throw Error.captureStackTrace&&Error.captureStackTrace(tt,range$3),tt}}function stringify$1(a){switch(typeof a){case"undefined":return"undefined";case"object":return a===null?"null":`[${objectName(a)}]`;case"boolean":return`${a}`;case"number":return`${a}`;case"string":return a.length>80&&(a=`${a.substring(0,77)}...`),JSON.stringify(a);case"symbol":return tryString(a);case"function":return`[${funcName(a)}]`;case"bigint":return`${a}n`;default:return`[${typeof a}]`}}function toString$1(a){return typeof a=="string"?a:isError(a)?tryString(a):stringify$1(a)}function tryString(a){try{return String(a)}catch{return"Object"}}function testError(a,o,et,tt){if(o==null)return!0;if(isRegExp(o))return o.test(a);if(typeof o!="function"){if(tt===doesNotThrow||tt===doesNotReject)throw new TypeError('"expected" must not be an object.');if(typeof o!="object")throw new TypeError('"expected" must be an object.');let rt=!1;if(et==null&&(et=`Missing expected ${tt===rejects?"rejection":"exception"}.`,rt=!0),a==null||typeof a!="object")throw new AssertionError({actual:a,expected:o,message:et,operator:tt.name,generatedMessage:rt,stackStartFn:tt});const nt=Object.keys(o);if(isError(o)&&nt.push("name","message"),nt.length===0)throw new TypeError('"expected" may not be an empty object.');for(const it of nt){const st=o[it],at=a[it];if(!(typeof at=="string"&&isRegExp(st)&&st.test(at))&&!(it in a&&isDeepEqual(at,st,!1)))throw new AssertionError({actual:a,expected:o,message:et,operator:tt.name,generatedMessage:rt,stackStartFn:tt})}return!0}return o.prototype!==void 0&&a instanceof o?!0:Error.isPrototypeOf(o)?!1:o.call({},a)===!0}function isDeepEqual(a,o,et){try{return compare(a,o,null)}catch{return et}}function compare(a,o,et){if(Object.is(a,o))return!0;if(!isObject$8(a)||!isObject$8(o)||objectString(a)!==objectString(o)||Object.getPrototypeOf(a)!==Object.getPrototypeOf(o))return!1;if(isBuffer$3(a)&&isBuffer$3(o))return a.equals(o);if(isDate(a))return Object.is(a.getTime(),o.getTime());if(isRegExp(a))return a.source===o.source&&a.global===o.global&&a.multiline===o.multiline&&a.lastIndex===o.lastIndex&&a.ignoreCase===o.ignoreCase;if(isError(a)&&a.message!==o.message)return!1;if(isArrayBuffer(a)&&(a=new Uint8Array(a),o=new Uint8Array(o)),isView$2(a)&&!isBuffer$3(a)){if(isBuffer$3(o))return!1;const rt=new Uint8Array(a.buffer),nt=new Uint8Array(o.buffer);if(rt.length!==nt.length)return!1;for(let it=0;it>>1?null:rt}return o}assert$3.AssertionError=AssertionError;assert$3.assert=assert$3;assert$3.strict=assert$3;assert$3.ok=assert$3;assert$3.equal=equal;assert$3.notEqual=notEqual;assert$3.strictEqual=equal;assert$3.notStrictEqual=notEqual;assert$3.fail=fail;assert$3.throws=throws;assert$3.doesNotThrow=doesNotThrow;assert$3.rejects=rejects;assert$3.doesNotReject=doesNotReject;assert$3.ifError=ifError;assert$3.deepEqual=deepEqual;assert$3.notDeepEqual=notDeepEqual;assert$3.deepStrictEqual=deepEqual;assert$3.notDeepStrictEqual=notDeepEqual;assert$3.bufferEqual=bufferEqual;assert$3.notBufferEqual=notBufferEqual;assert$3.enforce=enforce;assert$3.range=range$3;var assert_1=assert$3,__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,o,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(o,et);(!rt||("get"in rt?!o.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return o[et]}}),Object.defineProperty(a,tt,rt)}:function(a,o,et,tt){tt===void 0&&(tt=et),a[tt]=o[et]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,o){Object.defineProperty(a,"default",{enumerable:!0,value:o})}:function(a,o){a.default=o}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var o={};if(a!=null)for(var et in a)et!=="default"&&Object.prototype.hasOwnProperty.call(a,et)&&__createBinding$1(o,a,et);return __setModuleDefault$1(o,a),o},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(caveat,"__esModule",{value:!0});caveat.verifyCaveats=caveat.hasCaveat=caveat.Caveat=caveat.ErrInvalidCaveat=void 0;const bsert_1=__importDefault(assert_1),Macaroon$1=__importStar$1(macaroon$1);class ErrInvalidCaveat extends Error{constructor(...o){super(...o),Error.captureStackTrace&&Error.captureStackTrace(this,ErrInvalidCaveat),this.name="ErrInvalidCaveat",this.message='Caveat must be of the form "condition[<,=,>]value"'}}caveat.ErrInvalidCaveat=ErrInvalidCaveat;const validComp=new Set(["<",">","="]);class Caveat{constructor(o){this.condition="",this.value="",this.comp="=",o&&this.fromOptions(o)}fromOptions(o){if((0,bsert_1.default)(o,"Data required to create new caveat"),(0,bsert_1.default)(typeof o.condition=="string"&&o.condition.length,"Require a condition"),this.condition=o.condition,o.value.toString(),this.value=o.value,o.comp){if(!validComp.has(o.comp))throw new ErrInvalidCaveat;this.comp=o.comp}return this}encode(){return`${this.condition}${this.comp}${this.value}`}static decode(o){let et;for(let it=0;it{try{if(it.i!=null){const st=Caveat.decode(it.i);rt===st.condition&&(nt=st.value)}}catch{}}),nt||!1}caveat.hasCaveat=hasCaveat;function verifyCaveats(a,o,et={}){if(o)Array.isArray(o)||(o=[o]);else return!0;const tt=new Map;for(const nt of o)tt.set(nt.condition,nt);const rt=new Map;for(const nt of a){const it=nt.condition;if(!tt.has(it))continue;rt.has(it)||rt.set(it,[]);const st=rt.get(it);st.push(nt),rt.set(it,st)}for(const[nt,it]of rt){const st=tt.get(nt);for(let at=0;at>25;return(a&33554431)<<5^-(o>>0&1)&996825010^-(o>>1&1)&642813549^-(o>>2&1)&513874426^-(o>>3&1)&1027748829^-(o>>4&1)&705979059}function prefixChk$1(a){for(var o=1,et=0;et126)return"Invalid prefix ("+a+")";o=polymodStep$1(o)^tt>>5}for(o=polymodStep$1(o),et=0;etet)throw new TypeError("Exceeds length limit");a=a.toLowerCase();var tt=prefixChk$1(a);if(typeof tt=="string")throw new Error(tt);for(var rt=a+"1",nt=0;nt>5)throw new Error("Non 5-bit word");tt=polymodStep$1(tt)^it,rt+=ALPHABET$2.charAt(it)}for(nt=0;nt<6;++nt)tt=polymodStep$1(tt);for(tt^=1,nt=0;nt<6;++nt){var st=tt>>(5-nt)*5&31;rt+=ALPHABET$2.charAt(st)}return rt}function __decode(a,o){if(o=o||90,a.length<8)return a+" too short";if(a.length>o)return"Exceeds length limit";var et=a.toLowerCase(),tt=a.toUpperCase();if(a!==et&&a!==tt)return"Mixed-case string "+a;a=et;var rt=a.lastIndexOf("1");if(rt===-1)return"No separator character for "+a;if(rt===0)return"Missing prefix for "+a;var nt=a.slice(0,rt),it=a.slice(rt+1);if(it.length<6)return"Data too short";var st=prefixChk$1(nt);if(typeof st=="string")return st;for(var at=[],lt=0;lt=it.length)&&at.push(vt)}return st!==1?"Invalid checksum for "+a:{prefix:nt,words:at}}function decodeUnsafe(){var a=__decode.apply(null,arguments);if(typeof a=="object")return a}function decode$n(a){var o=__decode.apply(null,arguments);if(typeof o=="object")return o;throw new Error(o)}function convert$4(a,o,et,tt){for(var rt=0,nt=0,it=(1<=et;)nt-=et,st.push(rt>>nt&it);if(tt)nt>0&&st.push(rt<=o)return"Excess padding";if(rt<new Uint8Array(et),o){return typeof a=="function"&&(a=a(o)),isUint8Array("output",a,o),a}function toTypeString(a){return Object.prototype.toString.call(a).slice(8,-1)}var lib$1=a=>({contextRandomize(o){switch(assert$2(o===null||o instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),o!==null&&isUint8Array("seed",o,32),a.contextRandomize(o)){case 1:throw new Error(errors$2.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(o){return isUint8Array("private key",o,32),a.privateKeyVerify(o)===0},privateKeyNegate(o){switch(isUint8Array("private key",o,32),a.privateKeyNegate(o)){case 0:return o;case 1:throw new Error(errors$2.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(o,et){switch(isUint8Array("private key",o,32),isUint8Array("tweak",et,32),a.privateKeyTweakAdd(o,et)){case 0:return o;case 1:throw new Error(errors$2.TWEAK_ADD)}},privateKeyTweakMul(o,et){switch(isUint8Array("private key",o,32),isUint8Array("tweak",et,32),a.privateKeyTweakMul(o,et)){case 0:return o;case 1:throw new Error(errors$2.TWEAK_MUL)}},publicKeyVerify(o){return isUint8Array("public key",o,[33,65]),a.publicKeyVerify(o)===0},publicKeyCreate(o,et=!0,tt){switch(isUint8Array("private key",o,32),isCompressed(et),tt=getAssertedOutput(tt,et?33:65),a.publicKeyCreate(tt,o)){case 0:return tt;case 1:throw new Error(errors$2.SECKEY_INVALID);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyConvert(o,et=!0,tt){switch(isUint8Array("public key",o,[33,65]),isCompressed(et),tt=getAssertedOutput(tt,et?33:65),a.publicKeyConvert(tt,o)){case 0:return tt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyNegate(o,et=!0,tt){switch(isUint8Array("public key",o,[33,65]),isCompressed(et),tt=getAssertedOutput(tt,et?33:65),a.publicKeyNegate(tt,o)){case 0:return tt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyCombine(o,et=!0,tt){assert$2(Array.isArray(o),"Expected public keys to be an Array"),assert$2(o.length>0,"Expected public keys array will have more than zero items");for(const rt of o)isUint8Array("public key",rt,[33,65]);switch(isCompressed(et),tt=getAssertedOutput(tt,et?33:65),a.publicKeyCombine(tt,o)){case 0:return tt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_COMBINE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(o,et,tt=!0,rt){switch(isUint8Array("public key",o,[33,65]),isUint8Array("tweak",et,32),isCompressed(tt),rt=getAssertedOutput(rt,tt?33:65),a.publicKeyTweakAdd(rt,o,et)){case 0:return rt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_ADD)}},publicKeyTweakMul(o,et,tt=!0,rt){switch(isUint8Array("public key",o,[33,65]),isUint8Array("tweak",et,32),isCompressed(tt),rt=getAssertedOutput(rt,tt?33:65),a.publicKeyTweakMul(rt,o,et)){case 0:return rt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_MUL)}},signatureNormalize(o){switch(isUint8Array("signature",o,64),a.signatureNormalize(o)){case 0:return o;case 1:throw new Error(errors$2.SIG_PARSE)}},signatureExport(o,et){isUint8Array("signature",o,64),et=getAssertedOutput(et,72);const tt={output:et,outputlen:72};switch(a.signatureExport(tt,o)){case 0:return et.slice(0,tt.outputlen);case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},signatureImport(o,et){switch(isUint8Array("signature",o),et=getAssertedOutput(et,64),a.signatureImport(et,o)){case 0:return et;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaSign(o,et,tt={},rt){isUint8Array("message",o,32),isUint8Array("private key",et,32),assert$2(toTypeString(tt)==="Object","Expected options to be an Object"),tt.data!==void 0&&isUint8Array("options.data",tt.data),tt.noncefn!==void 0&&assert$2(toTypeString(tt.noncefn)==="Function","Expected options.noncefn to be a Function"),rt=getAssertedOutput(rt,64);const nt={signature:rt,recid:null};switch(a.ecdsaSign(nt,o,et,tt.data,tt.noncefn)){case 0:return nt;case 1:throw new Error(errors$2.SIGN);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaVerify(o,et,tt){switch(isUint8Array("signature",o,64),isUint8Array("message",et,32),isUint8Array("public key",tt,[33,65]),a.ecdsaVerify(o,et,tt)){case 0:return!0;case 3:return!1;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.PUBKEY_PARSE)}},ecdsaRecover(o,et,tt,rt=!0,nt){switch(isUint8Array("signature",o,64),assert$2(toTypeString(et)==="Number"&&et>=0&&et<=3,"Expected recovery id to be a Number within interval [0, 3]"),isUint8Array("message",tt,32),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),a.ecdsaRecover(nt,o,et,tt)){case 0:return nt;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.RECOVER);case 3:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdh(o,et,tt={},rt){switch(isUint8Array("public key",o,[33,65]),isUint8Array("private key",et,32),assert$2(toTypeString(tt)==="Object","Expected options to be an Object"),tt.data!==void 0&&isUint8Array("options.data",tt.data),tt.hashfn!==void 0?(assert$2(toTypeString(tt.hashfn)==="Function","Expected options.hashfn to be a Function"),tt.xbuf!==void 0&&isUint8Array("options.xbuf",tt.xbuf,32),tt.ybuf!==void 0&&isUint8Array("options.ybuf",tt.ybuf,32),isUint8Array("output",rt)):rt=getAssertedOutput(rt,32),a.ecdh(rt,o,et,tt.data,tt.hashfn,tt.xbuf,tt.ybuf)){case 0:return rt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.ECDH)}}});const EC=requireElliptic().ec,ec=new EC("secp256k1"),ecparams=ec.curve,BN$1=ecparams.n.constructor;function loadCompressedPublicKey(a,o){let et=new BN$1(o);if(et.cmp(ecparams.p)>=0)return null;et=et.toRed(ecparams.red);let tt=et.redSqr().redIMul(et).redIAdd(ecparams.b).redSqrt();return a===3!==tt.isOdd()&&(tt=tt.redNeg()),ec.keyPair({pub:{x:et,y:tt}})}function loadUncompressedPublicKey(a,o,et){let tt=new BN$1(o),rt=new BN$1(et);if(tt.cmp(ecparams.p)>=0||rt.cmp(ecparams.p)>=0||(tt=tt.toRed(ecparams.red),rt=rt.toRed(ecparams.red),(a===6||a===7)&&rt.isOdd()!==(a===7)))return null;const nt=tt.redSqr().redIMul(tt);return rt.redSqr().redISub(nt.redIAdd(ecparams.b)).isZero()?ec.keyPair({pub:{x:tt,y:rt}}):null}function loadPublicKey(a){const o=a[0];switch(o){case 2:case 3:return a.length!==33?null:loadCompressedPublicKey(o,a.subarray(1,33));case 4:case 6:case 7:return a.length!==65?null:loadUncompressedPublicKey(o,a.subarray(1,33),a.subarray(33,65));default:return null}}function savePublicKey(a,o){const et=o.encode(null,a.length===33);for(let tt=0;tt=0||(et.iadd(new BN$1(a)),et.cmp(ecparams.n)>=0&&et.isub(ecparams.n),et.isZero()))return 1;const tt=et.toArrayLike(Uint8Array,"be",32);return a.set(tt),0},privateKeyTweakMul(a,o){let et=new BN$1(o);if(et.cmp(ecparams.n)>=0||et.isZero())return 1;et.imul(new BN$1(a)),et.cmp(ecparams.n)>=0&&(et=et.umod(ecparams.n));const tt=et.toArrayLike(Uint8Array,"be",32);return a.set(tt),0},publicKeyVerify(a){return loadPublicKey(a)===null?1:0},publicKeyCreate(a,o){const et=new BN$1(o);if(et.cmp(ecparams.n)>=0||et.isZero())return 1;const tt=ec.keyFromPrivate(o).getPublic();return savePublicKey(a,tt),0},publicKeyConvert(a,o){const et=loadPublicKey(o);if(et===null)return 1;const tt=et.getPublic();return savePublicKey(a,tt),0},publicKeyNegate(a,o){const et=loadPublicKey(o);if(et===null)return 1;const tt=et.getPublic();return tt.y=tt.y.redNeg(),savePublicKey(a,tt),0},publicKeyCombine(a,o){const et=new Array(o.length);for(let rt=0;rt=0)return 2;const rt=tt.getPublic().add(ecparams.g.mul(et));return rt.isInfinity()?2:(savePublicKey(a,rt),0)},publicKeyTweakMul(a,o,et){const tt=loadPublicKey(o);if(tt===null)return 1;if(et=new BN$1(et),et.cmp(ecparams.n)>=0||et.isZero())return 2;const rt=tt.getPublic().mul(et);return savePublicKey(a,rt),0},signatureNormalize(a){const o=new BN$1(a.subarray(0,32)),et=new BN$1(a.subarray(32,64));return o.cmp(ecparams.n)>=0||et.cmp(ecparams.n)>=0?1:(et.cmp(ec.nh)===1&&a.set(ecparams.n.sub(et).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(a,o){const et=o.subarray(0,32),tt=o.subarray(32,64);if(new BN$1(et).cmp(ecparams.n)>=0||new BN$1(tt).cmp(ecparams.n)>=0)return 1;const{output:rt}=a;let nt=rt.subarray(4,4+33);nt[0]=0,nt.set(et,1);let it=33,st=0;for(;it>1&&nt[st]===0&&!(nt[st+1]&128);--it,++st);if(nt=nt.subarray(st),nt[0]&128||it>1&&nt[0]===0&&!(nt[1]&128))return 1;let at=rt.subarray(6+33,6+33+33);at[0]=0,at.set(tt,1);let lt=33,ht=0;for(;lt>1&&at[ht]===0&&!(at[ht+1]&128);--lt,++ht);return at=at.subarray(ht),at[0]&128||lt>1&&at[0]===0&&!(at[1]&128)?1:(a.outputlen=6+it+lt,rt[0]=48,rt[1]=a.outputlen-2,rt[2]=2,rt[3]=nt.length,rt.set(nt,4),rt[4+it]=2,rt[5+it]=at.length,rt.set(at,6+it),0)},signatureImport(a,o){if(o.length<8||o.length>72||o[0]!==48||o[1]!==o.length-2||o[2]!==2)return 1;const et=o[3];if(et===0||5+et>=o.length||o[4+et]!==2)return 1;const tt=o[5+et];if(tt===0||6+et+tt!==o.length||o[4]&128||et>1&&o[4]===0&&!(o[5]&128)||o[et+6]&128||tt>1&&o[et+6]===0&&!(o[et+7]&128))return 1;let rt=o.subarray(4,4+et);if(rt.length===33&&rt[0]===0&&(rt=rt.subarray(1)),rt.length>32)return 1;let nt=o.subarray(6+et);if(nt.length===33&&nt[0]===0&&(nt=nt.slice(1)),nt.length>32)throw new Error("S length is too long");let it=new BN$1(rt);it.cmp(ecparams.n)>=0&&(it=new BN$1(0));let st=new BN$1(o.subarray(6+et));return st.cmp(ecparams.n)>=0&&(st=new BN$1(0)),a.set(it.toArrayLike(Uint8Array,"be",32),0),a.set(st.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(a,o,et,tt,rt){if(rt){const st=rt;rt=at=>{const lt=st(o,et,null,tt,at);if(!(lt instanceof Uint8Array&<.length===32))throw new Error("This is the way");return new BN$1(lt)}}const nt=new BN$1(et);if(nt.cmp(ecparams.n)>=0||nt.isZero())return 1;let it;try{it=ec.sign(o,et,{canonical:!0,k:rt,pers:tt})}catch{return 1}return a.signature.set(it.r.toArrayLike(Uint8Array,"be",32),0),a.signature.set(it.s.toArrayLike(Uint8Array,"be",32),32),a.recid=it.recoveryParam,0},ecdsaVerify(a,o,et){const tt={r:a.subarray(0,32),s:a.subarray(32,64)},rt=new BN$1(tt.r),nt=new BN$1(tt.s);if(rt.cmp(ecparams.n)>=0||nt.cmp(ecparams.n)>=0)return 1;if(nt.cmp(ec.nh)===1||rt.isZero()||nt.isZero())return 3;const it=loadPublicKey(et);if(it===null)return 2;const st=it.getPublic();return ec.verify(o,tt,st)?0:3},ecdsaRecover(a,o,et,tt){const rt={r:o.slice(0,32),s:o.slice(32,64)},nt=new BN$1(rt.r),it=new BN$1(rt.s);if(nt.cmp(ecparams.n)>=0||it.cmp(ecparams.n)>=0)return 1;if(nt.isZero()||it.isZero())return 2;let st;try{st=ec.recoverPubKey(tt,rt,et)}catch{return 2}return savePublicKey(a,st),0},ecdh(a,o,et,tt,rt,nt,it){const st=loadPublicKey(o);if(st===null)return 1;const at=new BN$1(et);if(at.cmp(ecparams.n)>=0||at.isZero())return 2;const lt=st.getPublic().mul(at);if(rt===void 0){const ht=lt.encode(null,!0),vt=ec.hash().update(ht).digest();for(let gt=0;gt<32;++gt)a[gt]=vt[gt]}else{nt||(nt=new Uint8Array(32));const ht=lt.getX().toArray("be",32);for(let ut=0;ut<32;++ut)nt[ut]=ht[ut];it||(it=new Uint8Array(32));const vt=lt.getY().toArray("be",32);for(let ut=0;ut<32;++ut)it[ut]=vt[ut];const gt=rt(nt,it,tt);if(!(gt instanceof Uint8Array&>.length===a.length))return 2;a.set(gt)}return 0}},elliptic=lib$1(elliptic$1),src$1={},address={},networks$1={};Object.defineProperty(networks$1,"__esModule",{value:!0});networks$1.testnet=networks$1.regtest=networks$1.bitcoin=void 0;networks$1.bitcoin={messagePrefix:`Bitcoin Signed Message: -`,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128};networks$1.regtest={messagePrefix:`Bitcoin Signed Message: -`,bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};networks$1.testnet={messagePrefix:`Bitcoin Signed Message: -`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};var payments$3={},embed={},script={},bip66$1={};Object.defineProperty(bip66$1,"__esModule",{value:!0});bip66$1.encode=bip66$1.decode=bip66$1.check=void 0;function check$d(a){if(a.length<8||a.length>72||a[0]!==48||a[1]!==a.length-2||a[2]!==2)return!1;const o=a[3];if(o===0||5+o>=a.length||a[4+o]!==2)return!1;const et=a[5+o];return!(et===0||6+o+et!==a.length||a[4]&128||o>1&&a[4]===0&&!(a[5]&128)||a[o+6]&128||et>1&&a[o+6]===0&&!(a[o+7]&128))}bip66$1.check=check$d;function decode$m(a){if(a.length<8)throw new Error("DER sequence length is too short");if(a.length>72)throw new Error("DER sequence length is too long");if(a[0]!==48)throw new Error("Expected DER sequence");if(a[1]!==a.length-2)throw new Error("DER sequence length is invalid");if(a[2]!==2)throw new Error("Expected DER integer");const o=a[3];if(o===0)throw new Error("R length is zero");if(5+o>=a.length)throw new Error("R length is too long");if(a[4+o]!==2)throw new Error("Expected DER integer (2)");const et=a[5+o];if(et===0)throw new Error("S length is zero");if(6+o+et!==a.length)throw new Error("S length is invalid");if(a[4]&128)throw new Error("R value is negative");if(o>1&&a[4]===0&&!(a[5]&128))throw new Error("R value excessively padded");if(a[o+6]&128)throw new Error("S value is negative");if(et>1&&a[o+6]===0&&!(a[o+7]&128))throw new Error("S value excessively padded");return{r:a.slice(4,4+o),s:a.slice(6+o)}}bip66$1.decode=decode$m;function encode$n(a,o){const et=a.length,tt=o.length;if(et===0)throw new Error("R length is zero");if(tt===0)throw new Error("S length is zero");if(et>33)throw new Error("R length is too long");if(tt>33)throw new Error("S length is too long");if(a[0]&128)throw new Error("R value is negative");if(o[0]&128)throw new Error("S value is negative");if(et>1&&a[0]===0&&!(a[1]&128))throw new Error("R value excessively padded");if(tt>1&&o[0]===0&&!(o[1]&128))throw new Error("S value excessively padded");const rt=Buffer.allocUnsafe(6+et+tt);return rt[0]=48,rt[1]=rt.length-2,rt[2]=2,rt[3]=a.length,a.copy(rt,4),rt[4+et]=2,rt[5+et]=o.length,o.copy(rt,6+et),rt}bip66$1.encode=encode$n;var ops={};Object.defineProperty(ops,"__esModule",{value:!0});ops.REVERSE_OPS=ops.OPS=void 0;const OPS$8={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_CHECKSIGADD:186,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};ops.OPS=OPS$8;const REVERSE_OPS={};ops.REVERSE_OPS=REVERSE_OPS;for(const a of Object.keys(OPS$8)){const o=OPS$8[a];REVERSE_OPS[o]=a}var push_data={};Object.defineProperty(push_data,"__esModule",{value:!0});push_data.decode=push_data.encode=push_data.encodingLength=void 0;const ops_1=ops;function encodingLength$2(a){return aa.length)return null;tt=a.readUInt8(o+1),rt=2}else if(et===ops_1.OPS.OP_PUSHDATA2){if(o+3>a.length)return null;tt=a.readUInt16LE(o+1),rt=3}else{if(o+5>a.length)return null;if(et!==ops_1.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");tt=a.readUInt32LE(o+1),rt=5}return{opcode:et,number:tt,size:rt}}push_data.decode=decode$l;var script_number={};Object.defineProperty(script_number,"__esModule",{value:!0});script_number.encode=script_number.decode=void 0;function decode$k(a,o,et){o=o||4,et=et===void 0?!0:et;const tt=a.length;if(tt===0)return 0;if(tt>o)throw new TypeError("Script number overflow");if(et&&!(a[tt-1]&127)&&(tt<=1||!(a[tt-2]&128)))throw new Error("Non-minimally encoded script number");if(tt===5){const nt=a.readUInt32LE(0),it=a.readUInt8(4);return it&128?-((it&-129)*4294967296+nt):it*4294967296+nt}let rt=0;for(let nt=0;nt2147483647?5:a>8388607?4:a>32767?3:a>127?2:a>0?1:0}function encode$l(a){let o=Math.abs(a);const et=scriptNumSize(o),tt=Buffer.allocUnsafe(et),rt=a<0;for(let nt=0;nt>=8;return tt[et-1]&128?tt.writeUInt8(rt?128:0,et-1):rt&&(tt[et-1]|=128),tt}script_number.encode=encode$l;var script_signature={},types$6={},types$5={Array:function(a){return a!=null&&a.constructor===Array},Boolean:function(a){return typeof a=="boolean"},Function:function(a){return typeof a=="function"},Nil:function(a){return a==null},Number:function(a){return typeof a=="number"},Object:function(a){return typeof a=="object"},String:function(a){return typeof a=="string"},"":function(){return!0}};types$5.Null=types$5.Nil;for(var typeName$1 in types$5)types$5[typeName$1].toJSON=(function(a){return a}).bind(null,typeName$1);var native$1=types$5,native=native$1;function getTypeName(a){return a.name||a.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName$1(a){return native.Nil(a)?"":getTypeName(a.constructor)}function getValue$3(a){return native.Function(a)?"":native.String(a)?JSON.stringify(a):a&&native.Object(a)?"":a}function captureStackTrace(a,o){Error.captureStackTrace&&Error.captureStackTrace(a,o)}function tfJSON$1(a){return native.Function(a)?a.toJSON?a.toJSON():getTypeName(a):native.Array(a)?"Array":a&&native.Object(a)?"Object":a!==void 0?a:""}function tfErrorString(a,o,et){var tt=getValue$3(o);return"Expected "+tfJSON$1(a)+", got"+(et!==""?" "+et:"")+(tt!==""?" "+tt:"")}function TfTypeError$1(a,o,et){et=et||getValueTypeName$1(o),this.message=tfErrorString(a,o,et),captureStackTrace(this,TfTypeError$1),this.__type=a,this.__value=o,this.__valueTypeName=et}TfTypeError$1.prototype=Object.create(Error.prototype);TfTypeError$1.prototype.constructor=TfTypeError$1;function tfPropertyErrorString(a,o,et,tt,rt){var nt='" of type ';return o==="key"&&(nt='" with key type '),tfErrorString('property "'+tfJSON$1(et)+nt+tfJSON$1(a),tt,rt)}function TfPropertyTypeError$1(a,o,et,tt,rt){a?(rt=rt||getValueTypeName$1(tt),this.message=tfPropertyErrorString(a,et,o,tt,rt)):this.message='Unexpected property "'+o+'"',captureStackTrace(this,TfTypeError$1),this.__label=et,this.__property=o,this.__type=a,this.__value=tt,this.__valueTypeName=rt}TfPropertyTypeError$1.prototype=Object.create(Error.prototype);TfPropertyTypeError$1.prototype.constructor=TfTypeError$1;function tfCustomError(a,o){return new TfTypeError$1(a,{},o)}function tfSubError$1(a,o,et){return a instanceof TfPropertyTypeError$1?(o=o+"."+a.__property,a=new TfPropertyTypeError$1(a.__type,o,a.__label,a.__value,a.__valueTypeName)):a instanceof TfTypeError$1&&(a=new TfPropertyTypeError$1(a.__type,o,et,a.__value,a.__valueTypeName)),captureStackTrace(a),a}var errors$1={TfTypeError:TfTypeError$1,TfPropertyTypeError:TfPropertyTypeError$1,tfCustomError,tfSubError:tfSubError$1,tfJSON:tfJSON$1,getValueTypeName:getValueTypeName$1},extra,hasRequiredExtra;function requireExtra(){if(hasRequiredExtra)return extra;hasRequiredExtra=1;var a=native$1,o=errors$1;function et(Nt){return Buffer.isBuffer(Nt)}function tt(Nt){return typeof Nt=="string"&&/^([0-9a-f]{2})+$/i.test(Nt)}function rt(Nt,Vt){var jt=Nt.toJSON();function zt(or){if(!Nt(or))return!1;if(or.length===Vt)return!0;throw o.tfCustomError(jt+"(Length: "+Vt+")",jt+"(Length: "+or.length+")")}return zt.toJSON=function(){return jt},zt}var nt=rt.bind(null,a.Array),it=rt.bind(null,et),st=rt.bind(null,tt),at=rt.bind(null,a.String);function lt(Nt,Vt,jt){jt=jt||a.Number;function zt(or,qt){return jt(or,qt)&&or>Nt&&or>24===Nt}function wt(Nt){return Nt<<16>>16===Nt}function ut(Nt){return(Nt|0)===Nt}function pt(Nt){return typeof Nt=="number"&&Nt>=-ht&&Nt<=ht&&Math.floor(Nt)===Nt}function Et(Nt){return(Nt&255)===Nt}function yt(Nt){return(Nt&65535)===Nt}function bt(Nt){return Nt>>>0===Nt}function kt(Nt){return typeof Nt=="number"&&Nt>=0&&Nt<=ht&&Math.floor(Nt)===Nt}var It={ArrayN:nt,Buffer:et,BufferN:it,Finite:vt,Hex:tt,HexN:st,Int8:gt,Int16:wt,Int32:ut,Int53:pt,Range:lt,StringN:at,UInt8:Et,UInt16:yt,UInt32:bt,UInt53:kt};for(var Ot in It)It[Ot].toJSON=(function(Nt){return Nt}).bind(null,Ot);return extra=It,extra}var ERRORS=errors$1,NATIVE=native$1,tfJSON=ERRORS.tfJSON,TfTypeError=ERRORS.TfTypeError,TfPropertyTypeError=ERRORS.TfPropertyTypeError,tfSubError=ERRORS.tfSubError,getValueTypeName=ERRORS.getValueTypeName,TYPES={arrayOf:function(o,et){o=compile$1(o),et=et||{};function tt(rt,nt){return!NATIVE.Array(rt)||NATIVE.Nil(rt)||et.minLength!==void 0&&rt.lengthet.maxLength||et.length!==void 0&&rt.length!==et.length?!1:rt.every(function(it,st){try{return typeforce$4(o,it,nt)}catch(at){throw tfSubError(at,st)}})}return tt.toJSON=function(){var rt="["+tfJSON(o)+"]";return et.length!==void 0?rt+="{"+et.length+"}":(et.minLength!==void 0||et.maxLength!==void 0)&&(rt+="{"+(et.minLength===void 0?0:et.minLength)+","+(et.maxLength===void 0?1/0:et.maxLength)+"}"),rt},tt},maybe:function a(o){o=compile$1(o);function et(tt,rt){return NATIVE.Nil(tt)||o(tt,rt,a)}return et.toJSON=function(){return"?"+tfJSON(o)},et},map:function(o,et){o=compile$1(o),et&&(et=compile$1(et));function tt(rt,nt){if(!NATIVE.Object(rt)||NATIVE.Nil(rt))return!1;for(var it in rt){try{et&&typeforce$4(et,it,nt)}catch(at){throw tfSubError(at,it,"key")}try{var st=rt[it];typeforce$4(o,st,nt)}catch(at){throw tfSubError(at,it)}}return!0}return et?tt.toJSON=function(){return"{"+tfJSON(et)+": "+tfJSON(o)+"}"}:tt.toJSON=function(){return"{"+tfJSON(o)+"}"},tt},object:function(o){var et={};for(var tt in o)et[tt]=compile$1(o[tt]);function rt(nt,it){if(!NATIVE.Object(nt)||NATIVE.Nil(nt))return!1;var st;try{for(st in et){var at=et[st],lt=nt[st];typeforce$4(at,lt,it)}}catch(ht){throw tfSubError(ht,st)}if(it){for(st in nt)if(!et[st])throw new TfPropertyTypeError(void 0,st)}return!0}return rt.toJSON=function(){return tfJSON(et)},rt},anyOf:function(){var o=[].slice.call(arguments).map(compile$1);function et(tt,rt){return o.some(function(nt){try{return typeforce$4(nt,tt,rt)}catch{return!1}})}return et.toJSON=function(){return o.map(tfJSON).join("|")},et},allOf:function(){var o=[].slice.call(arguments).map(compile$1);function et(tt,rt){return o.every(function(nt){try{return typeforce$4(nt,tt,rt)}catch{return!1}})}return et.toJSON=function(){return o.map(tfJSON).join(" & ")},et},quacksLike:function(o){function et(tt){return o===getValueTypeName(tt)}return et.toJSON=function(){return o},et},tuple:function(){var o=[].slice.call(arguments).map(compile$1);function et(tt,rt){return NATIVE.Nil(tt)||NATIVE.Nil(tt.length)||rt&&tt.length!==o.length?!1:o.every(function(nt,it){try{return typeforce$4(nt,tt[it],rt)}catch(st){throw tfSubError(st,it)}})}return et.toJSON=function(){return"("+o.map(tfJSON).join(", ")+")"},et},value:function(o){function et(tt){return tt===o}return et.toJSON=function(){return o},et}};TYPES.oneOf=TYPES.anyOf;function compile$1(a){if(NATIVE.String(a))return a[0]==="?"?TYPES.maybe(a.slice(1)):NATIVE[a]||TYPES.quacksLike(a);if(a&&NATIVE.Object(a)){if(NATIVE.Array(a)){if(a.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return TYPES.arrayOf(a[0])}return TYPES.object(a)}else if(NATIVE.Function(a))return a;return TYPES.value(a)}function typeforce$4(a,o,et,tt){if(NATIVE.Function(a)){if(a(o,et))return!0;throw new TfTypeError(tt||a,o)}return typeforce$4(compile$1(a),o,et)}for(var typeName in NATIVE)typeforce$4[typeName]=NATIVE[typeName];for(typeName in TYPES)typeforce$4[typeName]=TYPES[typeName];var EXTRA=requireExtra();for(typeName in EXTRA)typeforce$4[typeName]=EXTRA[typeName];typeforce$4.compile=compile$1;typeforce$4.TfTypeError=TfTypeError;typeforce$4.TfPropertyTypeError=TfPropertyTypeError;var typeforce_1=typeforce$4;(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.oneOf=a.Null=a.BufferN=a.Function=a.UInt32=a.UInt8=a.tuple=a.maybe=a.Hex=a.Buffer=a.String=a.Boolean=a.Array=a.Number=a.Hash256bit=a.Hash160bit=a.Buffer256bit=a.isTaptree=a.isTapleaf=a.TAPLEAF_VERSION_MASK=a.Network=a.ECPoint=a.Satoshi=a.Signer=a.BIP32Path=a.UInt31=a.isPoint=a.typeforce=void 0;const o=buffer$2;a.typeforce=typeforce_1;const et=o.Buffer.alloc(32,0),tt=o.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");function rt(wt){if(!o.Buffer.isBuffer(wt)||wt.length<33)return!1;const ut=wt[0],pt=wt.slice(1,33);if(pt.compare(et)===0||pt.compare(tt)>=0)return!1;if((ut===2||ut===3)&&wt.length===33)return!0;const Et=wt.slice(33);return Et.compare(et)===0||Et.compare(tt)>=0?!1:ut===4&&wt.length===65}a.isPoint=rt;const nt=Math.pow(2,31)-1;function it(wt){return a.typeforce.UInt32(wt)&&wt<=nt}a.UInt31=it;function st(wt){return a.typeforce.String(wt)&&!!wt.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}a.BIP32Path=st,st.toJSON=()=>"BIP32 derivation path";function at(wt){return(a.typeforce.Buffer(wt.publicKey)||typeof wt.getPublicKey=="function")&&typeof wt.sign=="function"}a.Signer=at;const lt=21*1e14;function ht(wt){return a.typeforce.UInt53(wt)&&wt<=lt}a.Satoshi=ht,a.ECPoint=a.typeforce.quacksLike("Point"),a.Network=a.typeforce.compile({messagePrefix:a.typeforce.oneOf(a.typeforce.Buffer,a.typeforce.String),bip32:{public:a.typeforce.UInt32,private:a.typeforce.UInt32},pubKeyHash:a.typeforce.UInt8,scriptHash:a.typeforce.UInt8,wif:a.typeforce.UInt8}),a.TAPLEAF_VERSION_MASK=254;function vt(wt){return!wt||!("output"in wt)||!o.Buffer.isBuffer(wt.output)?!1:wt.version!==void 0?(wt.version&a.TAPLEAF_VERSION_MASK)===wt.version:!0}a.isTapleaf=vt;function gt(wt){return(0,a.Array)(wt)?wt.length!==2?!1:wt.every(ut=>gt(ut)):vt(wt)}a.isTaptree=gt,a.Buffer256bit=a.typeforce.BufferN(32),a.Hash160bit=a.typeforce.BufferN(20),a.Hash256bit=a.typeforce.BufferN(32),a.Number=a.typeforce.Number,a.Array=a.typeforce.Array,a.Boolean=a.typeforce.Boolean,a.String=a.typeforce.String,a.Buffer=a.typeforce.Buffer,a.Hex=a.typeforce.Hex,a.maybe=a.typeforce.maybe,a.tuple=a.typeforce.tuple,a.UInt8=a.typeforce.UInt8,a.UInt32=a.typeforce.UInt32,a.Function=a.typeforce.Function,a.BufferN=a.typeforce.BufferN,a.Null=a.typeforce.Null,a.oneOf=a.typeforce.oneOf})(types$6);Object.defineProperty(script_signature,"__esModule",{value:!0});script_signature.encode=script_signature.decode=void 0;const bip66=bip66$1,types$4=types$6,{typeforce:typeforce$3}=types$4,ZERO$1=Buffer.alloc(1,0);function toDER(a){let o=0;for(;a[o]===0;)++o;return o===a.length?ZERO$1:(a=a.slice(o),a[0]&128?Buffer.concat([ZERO$1,a],1+a.length):a)}function fromDER(a){a[0]===0&&(a=a.slice(1));const o=Buffer.alloc(32,0),et=Math.max(0,32-a.length);return a.copy(o,et),o}function decode$j(a){const o=a.readUInt8(a.length-1),et=o&-129;if(et<=0||et>=4)throw new Error("Invalid hashType "+o);const tt=bip66.decode(a.slice(0,-1)),rt=fromDER(tt.r),nt=fromDER(tt.s);return{signature:Buffer.concat([rt,nt],64),hashType:o}}script_signature.decode=decode$j;function encode$k(a,o){typeforce$3({signature:types$4.BufferN(64),hashType:types$4.UInt8},{signature:a,hashType:o});const et=o&-129;if(et<=0||et>=4)throw new Error("Invalid hashType "+o);const tt=Buffer.allocUnsafe(1);tt.writeUInt8(o,0);const rt=toDER(a.slice(0,32)),nt=toDER(a.slice(32,64));return Buffer.concat([bip66.encode(rt,nt),tt])}script_signature.encode=encode$k;(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.signature=a.number=a.isCanonicalScriptSignature=a.isDefinedHashType=a.isCanonicalPubKey=a.toStack=a.fromASM=a.toASM=a.decompile=a.compile=a.countNonPushOnlyOPs=a.isPushOnly=a.OPS=void 0;const o=bip66$1,et=ops;Object.defineProperty(a,"OPS",{enumerable:!0,get:function(){return et.OPS}});const tt=push_data,rt=script_number,nt=script_signature,it=types$6,{typeforce:st}=it,at=et.OPS.OP_RESERVED;function lt(zt){return it.Number(zt)&&(zt===et.OPS.OP_0||zt>=et.OPS.OP_1&&zt<=et.OPS.OP_16||zt===et.OPS.OP_1NEGATE)}function ht(zt){return it.Buffer(zt)||lt(zt)}function vt(zt){return it.Array(zt)&&zt.every(ht)}a.isPushOnly=vt;function gt(zt){return zt.length-zt.filter(ht).length}a.countNonPushOnlyOPs=gt;function wt(zt){if(zt.length===0)return et.OPS.OP_0;if(zt.length===1){if(zt[0]>=1&&zt[0]<=16)return at+zt[0];if(zt[0]===129)return et.OPS.OP_1NEGATE}}function ut(zt){return Buffer.isBuffer(zt)}function pt(zt){return it.Array(zt)}function Et(zt){return Buffer.isBuffer(zt)}function yt(zt){if(ut(zt))return zt;st(it.Array,zt);const or=zt.reduce((Bt,ct)=>Et(ct)?ct.length===1&&wt(ct)!==void 0?Bt+1:Bt+tt.encodingLength(ct.length)+ct.length:Bt+1,0),qt=Buffer.allocUnsafe(or);let Rt=0;if(zt.forEach(Bt=>{if(Et(Bt)){const ct=wt(Bt);if(ct!==void 0){qt.writeUInt8(ct,Rt),Rt+=1;return}Rt+=tt.encode(qt,Bt.length,Rt),Bt.copy(qt,Rt),Rt+=Bt.length}else qt.writeUInt8(Bt,Rt),Rt+=1}),Rt!==qt.length)throw new Error("Could not decode chunks");return qt}a.compile=yt;function bt(zt){if(pt(zt))return zt;st(it.Buffer,zt);const or=[];let qt=0;for(;qtet.OPS.OP_0&&Rt<=et.OPS.OP_PUSHDATA4){const Bt=tt.decode(zt,qt);if(Bt===null||(qt+=Bt.size,qt+Bt.number>zt.length))return null;const ct=zt.slice(qt,qt+Bt.number);qt+=Bt.number;const xt=wt(ct);xt!==void 0?or.push(xt):or.push(ct)}else or.push(Rt),qt+=1}return or}a.decompile=bt;function kt(zt){return ut(zt)&&(zt=bt(zt)),zt.map(or=>{if(Et(or)){const qt=wt(or);if(qt===void 0)return or.toString("hex");or=qt}return et.REVERSE_OPS[or]}).join(" ")}a.toASM=kt;function It(zt){return st(it.String,zt),yt(zt.split(" ").map(or=>et.OPS[or]!==void 0?et.OPS[or]:(st(it.Hex,or),Buffer.from(or,"hex"))))}a.fromASM=It;function Ot(zt){return zt=bt(zt),st(vt,zt),zt.map(or=>Et(or)?or:or===et.OPS.OP_0?Buffer.allocUnsafe(0):rt.encode(or-at))}a.toStack=Ot;function Nt(zt){return it.isPoint(zt)}a.isCanonicalPubKey=Nt;function Vt(zt){const or=zt&-129;return or>0&&or<4}a.isDefinedHashType=Vt;function jt(zt){return!Buffer.isBuffer(zt)||!Vt(zt[zt.length-1])?!1:o.check(zt.slice(0,-1))}a.isCanonicalScriptSignature=jt,a.number=rt,a.signature=nt})(script);var lazy$8={};Object.defineProperty(lazy$8,"__esModule",{value:!0});lazy$8.value=lazy$8.prop=void 0;function prop(a,o,et){Object.defineProperty(a,o,{configurable:!0,enumerable:!0,get(){const tt=et.call(this);return this[o]=tt,tt},set(tt){Object.defineProperty(this,o,{configurable:!0,enumerable:!0,value:tt,writable:!0})}})}lazy$8.prop=prop;function value$1(a){let o;return()=>(o!==void 0||(o=a()),o)}lazy$8.value=value$1;Object.defineProperty(embed,"__esModule",{value:!0});embed.p2data=void 0;const networks_1$8=networks$1,bscript$b=script,types_1$9=types$6,lazy$7=lazy$8,OPS$7=bscript$b.OPS;function stacksEqual$4(a,o){return a.length!==o.length?!1:a.every((et,tt)=>et.equals(o[tt]))}function p2data(a,o){if(!a.data&&!a.output)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$9.typeforce)({network:types_1$9.typeforce.maybe(types_1$9.typeforce.Object),output:types_1$9.typeforce.maybe(types_1$9.typeforce.Buffer),data:types_1$9.typeforce.maybe(types_1$9.typeforce.arrayOf(types_1$9.typeforce.Buffer))},a);const tt={name:"embed",network:a.network||networks_1$8.bitcoin};if(lazy$7.prop(tt,"output",()=>{if(a.data)return bscript$b.compile([OPS$7.OP_RETURN].concat(a.data))}),lazy$7.prop(tt,"data",()=>{if(a.output)return bscript$b.decompile(a.output).slice(1)}),o.validate&&a.output){const rt=bscript$b.decompile(a.output);if(rt[0]!==OPS$7.OP_RETURN)throw new TypeError("Output is invalid");if(!rt.slice(1).every(types_1$9.typeforce.Buffer))throw new TypeError("Output is invalid");if(a.data&&!stacksEqual$4(a.data,tt.data))throw new TypeError("Data mismatch")}return Object.assign(tt,a)}embed.p2data=p2data;var p2ms$1={};Object.defineProperty(p2ms$1,"__esModule",{value:!0});p2ms$1.p2ms=void 0;const networks_1$7=networks$1,bscript$a=script,types_1$8=types$6,lazy$6=lazy$8,OPS$6=bscript$a.OPS,OP_INT_BASE=OPS$6.OP_RESERVED;function stacksEqual$3(a,o){return a.length!==o.length?!1:a.every((et,tt)=>et.equals(o[tt]))}function p2ms(a,o){if(!a.input&&!a.output&&!(a.pubkeys&&a.m!==void 0)&&!a.signatures)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{});function et(at){return bscript$a.isCanonicalScriptSignature(at)||(o.allowIncomplete&&at===OPS$6.OP_0)!==void 0}(0,types_1$8.typeforce)({network:types_1$8.typeforce.maybe(types_1$8.typeforce.Object),m:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),n:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),output:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer),pubkeys:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(types_1$8.isPoint)),signatures:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(et)),input:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer)},a);const rt={network:a.network||networks_1$7.bitcoin};let nt=[],it=!1;function st(at){it||(it=!0,nt=bscript$a.decompile(at),rt.m=nt[0]-OP_INT_BASE,rt.n=nt[nt.length-2]-OP_INT_BASE,rt.pubkeys=nt.slice(1,-2))}if(lazy$6.prop(rt,"output",()=>{if(a.m&&rt.n&&a.pubkeys)return bscript$a.compile([].concat(OP_INT_BASE+a.m,a.pubkeys,OP_INT_BASE+rt.n,OPS$6.OP_CHECKMULTISIG))}),lazy$6.prop(rt,"m",()=>{if(rt.output)return st(rt.output),rt.m}),lazy$6.prop(rt,"n",()=>{if(rt.pubkeys)return rt.pubkeys.length}),lazy$6.prop(rt,"pubkeys",()=>{if(a.output)return st(a.output),rt.pubkeys}),lazy$6.prop(rt,"signatures",()=>{if(a.input)return bscript$a.decompile(a.input).slice(1)}),lazy$6.prop(rt,"input",()=>{if(a.signatures)return bscript$a.compile([OPS$6.OP_0].concat(a.signatures))}),lazy$6.prop(rt,"witness",()=>{if(rt.input)return[]}),lazy$6.prop(rt,"name",()=>{if(!(!rt.m||!rt.n))return`p2ms(${rt.m} of ${rt.n})`}),o.validate){if(a.output){if(st(a.output),!types_1$8.typeforce.Number(nt[0]))throw new TypeError("Output is invalid");if(!types_1$8.typeforce.Number(nt[nt.length-2]))throw new TypeError("Output is invalid");if(nt[nt.length-1]!==OPS$6.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(rt.m<=0||rt.n>16||rt.m>rt.n||rt.n!==nt.length-3)throw new TypeError("Output is invalid");if(!rt.pubkeys.every(at=>(0,types_1$8.isPoint)(at)))throw new TypeError("Output is invalid");if(a.m!==void 0&&a.m!==rt.m)throw new TypeError("m mismatch");if(a.n!==void 0&&a.n!==rt.n)throw new TypeError("n mismatch");if(a.pubkeys&&!stacksEqual$3(a.pubkeys,rt.pubkeys))throw new TypeError("Pubkeys mismatch")}if(a.pubkeys){if(a.n!==void 0&&a.n!==a.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(rt.n=a.pubkeys.length,rt.nrt.m)throw new TypeError("Too many signatures provided")}if(a.input){if(a.input[0]!==OPS$6.OP_0)throw new TypeError("Input is invalid");if(rt.signatures.length===0||!rt.signatures.every(et))throw new TypeError("Input has invalid signature(s)");if(a.signatures&&!stacksEqual$3(a.signatures,rt.signatures))throw new TypeError("Signature mismatch");if(a.m!==void 0&&a.m!==a.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(rt,a)}p2ms$1.p2ms=p2ms;var p2pk$1={};Object.defineProperty(p2pk$1,"__esModule",{value:!0});p2pk$1.p2pk=void 0;const networks_1$6=networks$1,bscript$9=script,types_1$7=types$6,lazy$5=lazy$8,OPS$5=bscript$9.OPS;function p2pk(a,o){if(!a.input&&!a.output&&!a.pubkey&&!a.input&&!a.signature)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$7.typeforce)({network:types_1$7.typeforce.maybe(types_1$7.typeforce.Object),output:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer),pubkey:types_1$7.typeforce.maybe(types_1$7.isPoint),signature:types_1$7.typeforce.maybe(bscript$9.isCanonicalScriptSignature),input:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer)},a);const et=lazy$5.value(()=>bscript$9.decompile(a.input)),rt={name:"p2pk",network:a.network||networks_1$6.bitcoin};if(lazy$5.prop(rt,"output",()=>{if(a.pubkey)return bscript$9.compile([a.pubkey,OPS$5.OP_CHECKSIG])}),lazy$5.prop(rt,"pubkey",()=>{if(a.output)return a.output.slice(1,-1)}),lazy$5.prop(rt,"signature",()=>{if(a.input)return et()[0]}),lazy$5.prop(rt,"input",()=>{if(a.signature)return bscript$9.compile([a.signature])}),lazy$5.prop(rt,"witness",()=>{if(rt.input)return[]}),o.validate){if(a.output){if(a.output[a.output.length-1]!==OPS$5.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,types_1$7.isPoint)(rt.pubkey))throw new TypeError("Output pubkey is invalid");if(a.pubkey&&!a.pubkey.equals(rt.pubkey))throw new TypeError("Pubkey mismatch")}if(a.signature&&a.input&&!a.input.equals(rt.input))throw new TypeError("Signature mismatch");if(a.input){if(et().length!==1)throw new TypeError("Input is invalid");if(!bscript$9.isCanonicalScriptSignature(rt.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(rt,a)}p2pk$1.p2pk=p2pk;var p2pkh$1={},crypto$2={},ripemd160={},_sha2={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=void 0;function number(a){if(!Number.isSafeInteger(a)||a<0)throw new Error(`Wrong positive integer: ${a}`)}_assert.number=number;function bool(a){if(typeof a!="boolean")throw new Error(`Expected boolean, not ${a}`)}_assert.bool=bool;function isBytes(a){return a instanceof Uint8Array||a!=null&&typeof a=="object"&&a.constructor.name==="Uint8Array"}function bytes(a,...o){if(!isBytes(a))throw new Error("Expected Uint8Array");if(o.length>0&&!o.includes(a.length))throw new Error(`Expected Uint8Array of length ${o}, not of length=${a.length}`)}_assert.bytes=bytes;function hash$1(a){if(typeof a!="function"||typeof a.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(a.outputLen),number(a.blockLen)}_assert.hash=hash$1;function exists(a,o=!0){if(a.destroyed)throw new Error("Hash instance has been destroyed");if(o&&a.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(a,o){bytes(a);const et=o.outputLen;if(a.lengthnew Uint8Array(jt.buffer,jt.byteOffset,jt.byteLength);a.u8=et;const tt=jt=>new Uint32Array(jt.buffer,jt.byteOffset,Math.floor(jt.byteLength/4));a.u32=tt;function rt(jt){return jt instanceof Uint8Array||jt!=null&&typeof jt=="object"&&jt.constructor.name==="Uint8Array"}const nt=jt=>new DataView(jt.buffer,jt.byteOffset,jt.byteLength);a.createView=nt;const it=(jt,zt)=>jt<<32-zt|jt>>>zt;if(a.rotr=it,a.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!a.isLE)throw new Error("Non little-endian hardware is not supported");const st=Array.from({length:256},(jt,zt)=>zt.toString(16).padStart(2,"0"));function at(jt){if(!rt(jt))throw new Error("Uint8Array expected");let zt="";for(let or=0;or=lt._0&&jt<=lt._9)return jt-lt._0;if(jt>=lt._A&&jt<=lt._F)return jt-(lt._A-10);if(jt>=lt._a&&jt<=lt._f)return jt-(lt._a-10)}function vt(jt){if(typeof jt!="string")throw new Error("hex string expected, got "+typeof jt);const zt=jt.length,or=zt/2;if(zt%2)throw new Error("padded hex string expected, got unpadded hex of length "+zt);const qt=new Uint8Array(or);for(let Rt=0,Bt=0;Rt{};a.nextTick=gt;async function wt(jt,zt,or){let qt=Date.now();for(let Rt=0;Rt=0&&Btjt().update(pt(qt)).digest(),or=jt();return zt.outputLen=or.outputLen,zt.blockLen=or.blockLen,zt.create=()=>jt(),zt}a.wrapConstructor=It;function Ot(jt){const zt=(qt,Rt)=>jt(Rt).update(pt(qt)).digest(),or=jt({});return zt.outputLen=or.outputLen,zt.blockLen=or.blockLen,zt.create=qt=>jt(qt),zt}a.wrapConstructorWithOpts=Ot;function Nt(jt){const zt=(qt,Rt)=>jt(Rt).update(pt(qt)).digest(),or=jt({});return zt.outputLen=or.outputLen,zt.blockLen=or.blockLen,zt.create=qt=>jt(qt),zt}a.wrapXOFConstructorWithOpts=Nt;function Vt(jt=32){if(o.crypto&&typeof o.crypto.getRandomValues=="function")return o.crypto.getRandomValues(new Uint8Array(jt));throw new Error("crypto.getRandomValues must be defined")}a.randomBytes=Vt})(utils$1);Object.defineProperty(_sha2,"__esModule",{value:!0});_sha2.SHA2=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$1;function setBigUint64(a,o,et,tt){if(typeof a.setBigUint64=="function")return a.setBigUint64(o,et,tt);const rt=BigInt(32),nt=BigInt(4294967295),it=Number(et>>rt&nt),st=Number(et&nt),at=tt?4:0,lt=tt?0:4;a.setUint32(o+at,it,tt),a.setUint32(o+lt,st,tt)}class SHA2 extends utils_js_1$3.Hash{constructor(o,et,tt,rt){super(),this.blockLen=o,this.outputLen=et,this.padOffset=tt,this.isLE=rt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(o){(0,_assert_js_1.exists)(this);const{view:et,buffer:tt,blockLen:rt}=this;o=(0,utils_js_1$3.toBytes)(o);const nt=o.length;for(let it=0;itrt-it&&(this.process(tt,0),it=0);for(let vt=it;vtht.length)throw new Error("_sha2: outputLen bigger than state");for(let vt=0;vto),Pi=Id.map(a=>(9*a+5)%16);let idxL=[Id],idxR=[Pi];for(let a=0;a<4;a++)for(let o of[idxL,idxR])o.push(o[a].map(et=>Rho[et]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(a=>new Uint8Array(a)),shiftsL=idxL.map((a,o)=>a.map(et=>shifts[o][et])),shiftsR=idxR.map((a,o)=>a.map(et=>shifts[o][et])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(a,o)=>a<>>32-o;function f(a,o,et,tt){return a===0?o^et^tt:a===1?o&et|~o&tt:a===2?(o|~et)^tt:a===3?o&tt|et&~tt:o^(et|~tt)}const BUF=new Uint32Array(16);class RIPEMD160 extends _sha2_js_1$2.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:o,h1:et,h2:tt,h3:rt,h4:nt}=this;return[o,et,tt,rt,nt]}set(o,et,tt,rt,nt){this.h0=o|0,this.h1=et|0,this.h2=tt|0,this.h3=rt|0,this.h4=nt|0}process(o,et){for(let wt=0;wt<16;wt++,et+=4)BUF[wt]=o.getUint32(et,!0);let tt=this.h0|0,rt=tt,nt=this.h1|0,it=nt,st=this.h2|0,at=st,lt=this.h3|0,ht=lt,vt=this.h4|0,gt=vt;for(let wt=0;wt<5;wt++){const ut=4-wt,pt=Kl[wt],Et=Kr[wt],yt=idxL[wt],bt=idxR[wt],kt=shiftsL[wt],It=shiftsR[wt];for(let Ot=0;Ot<16;Ot++){const Nt=rotl$1(tt+f(wt,nt,st,lt)+BUF[yt[Ot]]+pt,kt[Ot])+vt|0;tt=vt,vt=lt,lt=rotl$1(st,10)|0,st=nt,nt=Nt}for(let Ot=0;Ot<16;Ot++){const Nt=rotl$1(rt+f(ut,it,at,ht)+BUF[bt[Ot]]+Et,It[Ot])+gt|0;rt=gt,gt=ht,ht=rotl$1(at,10)|0,at=it,it=Nt}}this.set(this.h1+st+ht|0,this.h2+lt+gt|0,this.h3+vt+rt|0,this.h4+tt+it|0,this.h0+nt+at|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha1={};Object.defineProperty(sha1,"__esModule",{value:!0});sha1.sha1=void 0;const _sha2_js_1$1=_sha2,utils_js_1$1=utils$1,rotl=(a,o)=>a<>>32-o>>>0,Chi$1=(a,o,et)=>a&o^~a&et,Maj$1=(a,o,et)=>a&o^a&et^o&et,IV$1=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),SHA1_W=new Uint32Array(80);class SHA1 extends _sha2_js_1$1.SHA2{constructor(){super(64,20,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0}get(){const{A:o,B:et,C:tt,D:rt,E:nt}=this;return[o,et,tt,rt,nt]}set(o,et,tt,rt,nt){this.A=o|0,this.B=et|0,this.C=tt|0,this.D=rt|0,this.E=nt|0}process(o,et){for(let at=0;at<16;at++,et+=4)SHA1_W[at]=o.getUint32(et,!1);for(let at=16;at<80;at++)SHA1_W[at]=rotl(SHA1_W[at-3]^SHA1_W[at-8]^SHA1_W[at-14]^SHA1_W[at-16],1);let{A:tt,B:rt,C:nt,D:it,E:st}=this;for(let at=0;at<80;at++){let lt,ht;at<20?(lt=Chi$1(rt,nt,it),ht=1518500249):at<40?(lt=rt^nt^it,ht=1859775393):at<60?(lt=Maj$1(rt,nt,it),ht=2400959708):(lt=rt^nt^it,ht=3395469782);const vt=rotl(tt,5)+lt+st+ht+SHA1_W[at]|0;st=it,it=nt,nt=rotl(rt,30),rt=tt,tt=vt}tt=tt+this.A|0,rt=rt+this.B|0,nt=nt+this.C|0,it=it+this.D|0,st=st+this.E|0,this.set(tt,rt,nt,it,st)}roundClean(){SHA1_W.fill(0)}destroy(){this.set(0,0,0,0,0),this.buffer.fill(0)}}sha1.sha1=(0,utils_js_1$1.wrapConstructor)(()=>new SHA1);var sha256$2={};Object.defineProperty(sha256$2,"__esModule",{value:!0});sha256$2.sha224=sha256$2.sha256=void 0;const _sha2_js_1=_sha2,utils_js_1=utils$1,Chi=(a,o,et)=>a&o^~a&et,Maj=(a,o,et)=>a&o^a&et^o&et,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _sha2_js_1.SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:o,B:et,C:tt,D:rt,E:nt,F:it,G:st,H:at}=this;return[o,et,tt,rt,nt,it,st,at]}set(o,et,tt,rt,nt,it,st,at){this.A=o|0,this.B=et|0,this.C=tt|0,this.D=rt|0,this.E=nt|0,this.F=it|0,this.G=st|0,this.H=at|0}process(o,et){for(let vt=0;vt<16;vt++,et+=4)SHA256_W[vt]=o.getUint32(et,!1);for(let vt=16;vt<64;vt++){const gt=SHA256_W[vt-15],wt=SHA256_W[vt-2],ut=(0,utils_js_1.rotr)(gt,7)^(0,utils_js_1.rotr)(gt,18)^gt>>>3,pt=(0,utils_js_1.rotr)(wt,17)^(0,utils_js_1.rotr)(wt,19)^wt>>>10;SHA256_W[vt]=pt+SHA256_W[vt-7]+ut+SHA256_W[vt-16]|0}let{A:tt,B:rt,C:nt,D:it,E:st,F:at,G:lt,H:ht}=this;for(let vt=0;vt<64;vt++){const gt=(0,utils_js_1.rotr)(st,6)^(0,utils_js_1.rotr)(st,11)^(0,utils_js_1.rotr)(st,25),wt=ht+gt+Chi(st,at,lt)+SHA256_K[vt]+SHA256_W[vt]|0,pt=((0,utils_js_1.rotr)(tt,2)^(0,utils_js_1.rotr)(tt,13)^(0,utils_js_1.rotr)(tt,22))+Maj(tt,rt,nt)|0;ht=lt,lt=at,at=st,st=it+wt|0,it=nt,nt=rt,rt=tt,tt=wt+pt|0}tt=tt+this.A|0,rt=rt+this.B|0,nt=nt+this.C|0,it=it+this.D|0,st=st+this.E|0,at=at+this.F|0,lt=lt+this.G|0,ht=ht+this.H|0,this.set(tt,rt,nt,it,st,at,lt,ht)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$2.sha256=(0,utils_js_1.wrapConstructor)(()=>new SHA256);sha256$2.sha224=(0,utils_js_1.wrapConstructor)(()=>new SHA224);(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.taggedHash=a.TAGGED_HASH_PREFIXES=a.TAGS=a.hash256=a.hash160=a.sha256=a.sha1=a.ripemd160=void 0;const o=ripemd160,et=sha1,tt=sha256$2;function rt(ht){return Buffer.from((0,o.ripemd160)(Uint8Array.from(ht)))}a.ripemd160=rt;function nt(ht){return Buffer.from((0,et.sha1)(Uint8Array.from(ht)))}a.sha1=nt;function it(ht){return Buffer.from((0,tt.sha256)(Uint8Array.from(ht)))}a.sha256=it;function st(ht){return Buffer.from((0,o.ripemd160)((0,tt.sha256)(Uint8Array.from(ht))))}a.hash160=st;function at(ht){return Buffer.from((0,tt.sha256)((0,tt.sha256)(Uint8Array.from(ht))))}a.hash256=at,a.TAGS=["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"],a.TAGGED_HASH_PREFIXES={"BIP0340/challenge":Buffer.from([123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124,123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124]),"BIP0340/aux":Buffer.from([241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144,241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144]),"BIP0340/nonce":Buffer.from([7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47,7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47]),TapLeaf:Buffer.from([174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238,174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238]),TapBranch:Buffer.from([25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21,25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21]),TapSighash:Buffer.from([244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49,244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49]),TapTweak:Buffer.from([232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233,232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233]),"KeyAgg list":Buffer.from([72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240,72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240]),"KeyAgg coefficient":Buffer.from([191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129,191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129])};function lt(ht,vt){return it(Buffer.concat([a.TAGGED_HASH_PREFIXES[ht],vt]))}a.taggedHash=lt})(crypto$2);function base$1(a){if(a.length>=255)throw new TypeError("Alphabet too long");for(var o=new Uint8Array(256),et=0;et>>0,kt=new Uint8Array(bt);Et!==yt;){for(var It=wt[Et],Ot=0,Nt=bt-1;(It!==0||Ot>>0,kt[Nt]=It%it>>>0,It=It/it>>>0;if(It!==0)throw new Error("Non-zero carry");pt=Ot,Et++}for(var Vt=bt-pt;Vt!==bt&&kt[Vt]===0;)Vt++;for(var jt=st.repeat(ut);Vt>>0,bt=new Uint8Array(yt);wt[ut];){var kt=o[wt.charCodeAt(ut)];if(kt===255)return;for(var It=0,Ot=yt-1;(kt!==0||It>>0,bt[Ot]=kt%256>>>0,kt=kt/256>>>0;if(kt!==0)throw new Error("Non-zero carry");Et=It,ut++}for(var Nt=yt-Et;Nt!==yt&&bt[Nt]===0;)Nt++;for(var Vt=new Uint8Array(pt+(yt-Nt)),jt=pt;Nt!==yt;)Vt[jt++]=bt[Nt++];return Vt}function gt(wt){var ut=vt(wt);if(ut)return ut;throw new Error("Non-base"+it+" character")}return{encode:ht,decodeUnsafe:vt,decode:gt}}var src=base$1;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1),base58=bs58,base=function(a){function o(nt){var it=Uint8Array.from(nt),st=a(it),at=it.length+4,lt=new Uint8Array(at);return lt.set(it,0),lt.set(st.subarray(0,4),it.length),base58.encode(lt,at)}function et(nt){var it=nt.slice(0,-4),st=nt.slice(-4),at=a(it);if(!(st[0]^at[0]|st[1]^at[1]|st[2]^at[2]|st[3]^at[3]))return it}function tt(nt){var it=base58.decodeUnsafe(nt);if(it)return et(it)}function rt(nt){var it=base58.decode(nt),st=et(it);if(!st)throw new Error("Invalid checksum");return st}return{encode:o,decode:rt,decodeUnsafe:tt}},{sha256:sha256$1}=sha256$2,bs58checkBase=base;function sha256x2(a){return sha256$1(sha256$1(a))}var bs58check$3=bs58checkBase(sha256x2);Object.defineProperty(p2pkh$1,"__esModule",{value:!0});p2pkh$1.p2pkh=void 0;const bcrypto$5=crypto$2,networks_1$5=networks$1,bscript$8=script,types_1$6=types$6,lazy$4=lazy$8,bs58check$2=bs58check$3,OPS$4=bscript$8.OPS;function p2pkh(a,o){if(!a.address&&!a.hash&&!a.output&&!a.pubkey&&!a.input)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$6.typeforce)({network:types_1$6.typeforce.maybe(types_1$6.typeforce.Object),address:types_1$6.typeforce.maybe(types_1$6.typeforce.String),hash:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(20)),output:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(25)),pubkey:types_1$6.typeforce.maybe(types_1$6.isPoint),signature:types_1$6.typeforce.maybe(bscript$8.isCanonicalScriptSignature),input:types_1$6.typeforce.maybe(types_1$6.typeforce.Buffer)},a);const et=lazy$4.value(()=>{const it=Buffer.from(bs58check$2.decode(a.address)),st=it.readUInt8(0),at=it.slice(1);return{version:st,hash:at}}),tt=lazy$4.value(()=>bscript$8.decompile(a.input)),rt=a.network||networks_1$5.bitcoin,nt={name:"p2pkh",network:rt};if(lazy$4.prop(nt,"address",()=>{if(!nt.hash)return;const it=Buffer.allocUnsafe(21);return it.writeUInt8(rt.pubKeyHash,0),nt.hash.copy(it,1),bs58check$2.encode(it)}),lazy$4.prop(nt,"hash",()=>{if(a.output)return a.output.slice(3,23);if(a.address)return et().hash;if(a.pubkey||nt.pubkey)return bcrypto$5.hash160(a.pubkey||nt.pubkey)}),lazy$4.prop(nt,"output",()=>{if(nt.hash)return bscript$8.compile([OPS$4.OP_DUP,OPS$4.OP_HASH160,nt.hash,OPS$4.OP_EQUALVERIFY,OPS$4.OP_CHECKSIG])}),lazy$4.prop(nt,"pubkey",()=>{if(a.input)return tt()[1]}),lazy$4.prop(nt,"signature",()=>{if(a.input)return tt()[0]}),lazy$4.prop(nt,"input",()=>{if(a.pubkey&&a.signature)return bscript$8.compile([a.signature,a.pubkey])}),lazy$4.prop(nt,"witness",()=>{if(nt.input)return[]}),o.validate){let it=Buffer.from([]);if(a.address){if(et().version!==rt.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(et().hash.length!==20)throw new TypeError("Invalid address");it=et().hash}if(a.hash){if(it.length>0&&!it.equals(a.hash))throw new TypeError("Hash mismatch");it=a.hash}if(a.output){if(a.output.length!==25||a.output[0]!==OPS$4.OP_DUP||a.output[1]!==OPS$4.OP_HASH160||a.output[2]!==20||a.output[23]!==OPS$4.OP_EQUALVERIFY||a.output[24]!==OPS$4.OP_CHECKSIG)throw new TypeError("Output is invalid");const st=a.output.slice(3,23);if(it.length>0&&!it.equals(st))throw new TypeError("Hash mismatch");it=st}if(a.pubkey){const st=bcrypto$5.hash160(a.pubkey);if(it.length>0&&!it.equals(st))throw new TypeError("Hash mismatch");it=st}if(a.input){const st=tt();if(st.length!==2)throw new TypeError("Input is invalid");if(!bscript$8.isCanonicalScriptSignature(st[0]))throw new TypeError("Input has invalid signature");if(!(0,types_1$6.isPoint)(st[1]))throw new TypeError("Input has invalid pubkey");if(a.signature&&!a.signature.equals(st[0]))throw new TypeError("Signature mismatch");if(a.pubkey&&!a.pubkey.equals(st[1]))throw new TypeError("Pubkey mismatch");const at=bcrypto$5.hash160(st[1]);if(it.length>0&&!it.equals(at))throw new TypeError("Hash mismatch")}}return Object.assign(nt,a)}p2pkh$1.p2pkh=p2pkh;var p2sh$1={};Object.defineProperty(p2sh$1,"__esModule",{value:!0});p2sh$1.p2sh=void 0;const bcrypto$4=crypto$2,networks_1$4=networks$1,bscript$7=script,types_1$5=types$6,lazy$3=lazy$8,bs58check$1=bs58check$3,OPS$3=bscript$7.OPS;function stacksEqual$2(a,o){return a.length!==o.length?!1:a.every((et,tt)=>et.equals(o[tt]))}function p2sh(a,o){if(!a.address&&!a.hash&&!a.output&&!a.redeem&&!a.input)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$5.typeforce)({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),address:types_1$5.typeforce.maybe(types_1$5.typeforce.String),hash:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(20)),output:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(23)),redeem:types_1$5.typeforce.maybe({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),output:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))}),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))},a);let et=a.network;et||(et=a.redeem&&a.redeem.network||networks_1$4.bitcoin);const tt={network:et},rt=lazy$3.value(()=>{const st=Buffer.from(bs58check$1.decode(a.address)),at=st.readUInt8(0),lt=st.slice(1);return{version:at,hash:lt}}),nt=lazy$3.value(()=>bscript$7.decompile(a.input)),it=lazy$3.value(()=>{const st=nt(),at=st[st.length-1];return{network:et,output:at===OPS$3.OP_FALSE?Buffer.from([]):at,input:bscript$7.compile(st.slice(0,-1)),witness:a.witness||[]}});if(lazy$3.prop(tt,"address",()=>{if(!tt.hash)return;const st=Buffer.allocUnsafe(21);return st.writeUInt8(tt.network.scriptHash,0),tt.hash.copy(st,1),bs58check$1.encode(st)}),lazy$3.prop(tt,"hash",()=>{if(a.output)return a.output.slice(2,22);if(a.address)return rt().hash;if(tt.redeem&&tt.redeem.output)return bcrypto$4.hash160(tt.redeem.output)}),lazy$3.prop(tt,"output",()=>{if(tt.hash)return bscript$7.compile([OPS$3.OP_HASH160,tt.hash,OPS$3.OP_EQUAL])}),lazy$3.prop(tt,"redeem",()=>{if(a.input)return it()}),lazy$3.prop(tt,"input",()=>{if(!(!a.redeem||!a.redeem.input||!a.redeem.output))return bscript$7.compile([].concat(bscript$7.decompile(a.redeem.input),a.redeem.output))}),lazy$3.prop(tt,"witness",()=>{if(tt.redeem&&tt.redeem.witness)return tt.redeem.witness;if(tt.input)return[]}),lazy$3.prop(tt,"name",()=>{const st=["p2sh"];return tt.redeem!==void 0&&tt.redeem.name!==void 0&&st.push(tt.redeem.name),st.join("-")}),o.validate){let st=Buffer.from([]);if(a.address){if(rt().version!==et.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(rt().hash.length!==20)throw new TypeError("Invalid address");st=rt().hash}if(a.hash){if(st.length>0&&!st.equals(a.hash))throw new TypeError("Hash mismatch");st=a.hash}if(a.output){if(a.output.length!==23||a.output[0]!==OPS$3.OP_HASH160||a.output[1]!==20||a.output[22]!==OPS$3.OP_EQUAL)throw new TypeError("Output is invalid");const lt=a.output.slice(2,22);if(st.length>0&&!st.equals(lt))throw new TypeError("Hash mismatch");st=lt}const at=lt=>{if(lt.output){const ht=bscript$7.decompile(lt.output);if(!ht||ht.length<1)throw new TypeError("Redeem.output too short");if(lt.output.byteLength>520)throw new TypeError("Redeem.output unspendable if larger than 520 bytes");if(bscript$7.countNonPushOnlyOPs(ht)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const vt=bcrypto$4.hash160(lt.output);if(st.length>0&&!st.equals(vt))throw new TypeError("Hash mismatch");st=vt}if(lt.input){const ht=lt.input.length>0,vt=lt.witness&<.witness.length>0;if(!ht&&!vt)throw new TypeError("Empty input");if(ht&&vt)throw new TypeError("Input and witness provided");if(ht){const gt=bscript$7.decompile(lt.input);if(!bscript$7.isPushOnly(gt))throw new TypeError("Non push-only scriptSig")}}};if(a.input){const lt=nt();if(!lt||lt.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(it().output))throw new TypeError("Input is invalid");at(it())}if(a.redeem){if(a.redeem.network&&a.redeem.network!==et)throw new TypeError("Network mismatch");if(a.input){const lt=it();if(a.redeem.output&&!a.redeem.output.equals(lt.output))throw new TypeError("Redeem.output mismatch");if(a.redeem.input&&!a.redeem.input.equals(lt.input))throw new TypeError("Redeem.input mismatch")}at(a.redeem)}if(a.witness&&a.redeem&&a.redeem.witness&&!stacksEqual$2(a.redeem.witness,a.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(tt,a)}p2sh$1.p2sh=p2sh;var p2wpkh$1={},dist={};Object.defineProperty(dist,"__esModule",{value:!0});dist.bech32m=dist.bech32=void 0;const ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={};for(let a=0;a>25;return(a&33554431)<<5^-(o>>0&1)&996825010^-(o>>1&1)&642813549^-(o>>2&1)&513874426^-(o>>3&1)&1027748829^-(o>>4&1)&705979059}function prefixChk(a){let o=1;for(let et=0;et126)return"Invalid prefix ("+a+")";o=polymodStep(o)^tt>>5}o=polymodStep(o);for(let et=0;et=et;)nt-=et,st.push(rt>>nt&it);if(tt)nt>0&&st.push(rt<=o)return"Excess padding";if(rt<at)throw new TypeError("Exceeds length limit");it=it.toLowerCase();let lt=prefixChk(it);if(typeof lt=="string")throw new Error(lt);let ht=it+"1";for(let vt=0;vt>5)throw new Error("Non 5-bit word");lt=polymodStep(lt)^gt,ht+=ALPHABET.charAt(gt)}for(let vt=0;vt<6;++vt)lt=polymodStep(lt);lt^=o;for(let vt=0;vt<6;++vt){const gt=lt>>(5-vt)*5&31;ht+=ALPHABET.charAt(gt)}return ht}function tt(it,st){if(st=st||90,it.length<8)return it+" too short";if(it.length>st)return"Exceeds length limit";const at=it.toLowerCase(),lt=it.toUpperCase();if(it!==at&&it!==lt)return"Mixed-case string "+it;it=at;const ht=it.lastIndexOf("1");if(ht===-1)return"No separator character for "+it;if(ht===0)return"Missing prefix for "+it;const vt=it.slice(0,ht),gt=it.slice(ht+1);if(gt.length<6)return"Data too short";let wt=prefixChk(vt);if(typeof wt=="string")return wt;const ut=[];for(let pt=0;pt=gt.length)&&ut.push(yt)}return wt!==o?"Invalid checksum for "+it:{prefix:vt,words:ut}}function rt(it,st){const at=tt(it,st);if(typeof at=="object")return at}function nt(it,st){const at=tt(it,st);if(typeof at=="object")return at;throw new Error(at)}return{decodeUnsafe:rt,decode:nt,encode:et,toWords,fromWordsUnsafe,fromWords}}dist.bech32=getLibraryFromEncoding("bech32");dist.bech32m=getLibraryFromEncoding("bech32m");Object.defineProperty(p2wpkh$1,"__esModule",{value:!0});p2wpkh$1.p2wpkh=void 0;const bcrypto$3=crypto$2,networks_1$3=networks$1,bscript$6=script,types_1$4=types$6,lazy$2=lazy$8,bech32_1$3=dist,OPS$2=bscript$6.OPS,EMPTY_BUFFER$2=Buffer.alloc(0);function p2wpkh(a,o){if(!a.address&&!a.hash&&!a.output&&!a.pubkey&&!a.witness)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$4.typeforce)({address:types_1$4.typeforce.maybe(types_1$4.typeforce.String),hash:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(20)),input:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(0)),network:types_1$4.typeforce.maybe(types_1$4.typeforce.Object),output:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(22)),pubkey:types_1$4.typeforce.maybe(types_1$4.isPoint),signature:types_1$4.typeforce.maybe(bscript$6.isCanonicalScriptSignature),witness:types_1$4.typeforce.maybe(types_1$4.typeforce.arrayOf(types_1$4.typeforce.Buffer))},a);const et=lazy$2.value(()=>{const nt=bech32_1$3.bech32.decode(a.address),it=nt.words.shift(),st=bech32_1$3.bech32.fromWords(nt.words);return{version:it,prefix:nt.prefix,data:Buffer.from(st)}}),tt=a.network||networks_1$3.bitcoin,rt={name:"p2wpkh",network:tt};if(lazy$2.prop(rt,"address",()=>{if(!rt.hash)return;const nt=bech32_1$3.bech32.toWords(rt.hash);return nt.unshift(0),bech32_1$3.bech32.encode(tt.bech32,nt)}),lazy$2.prop(rt,"hash",()=>{if(a.output)return a.output.slice(2,22);if(a.address)return et().data;if(a.pubkey||rt.pubkey)return bcrypto$3.hash160(a.pubkey||rt.pubkey)}),lazy$2.prop(rt,"output",()=>{if(rt.hash)return bscript$6.compile([OPS$2.OP_0,rt.hash])}),lazy$2.prop(rt,"pubkey",()=>{if(a.pubkey)return a.pubkey;if(a.witness)return a.witness[1]}),lazy$2.prop(rt,"signature",()=>{if(a.witness)return a.witness[0]}),lazy$2.prop(rt,"input",()=>{if(rt.witness)return EMPTY_BUFFER$2}),lazy$2.prop(rt,"witness",()=>{if(a.pubkey&&a.signature)return[a.signature,a.pubkey]}),o.validate){let nt=Buffer.from([]);if(a.address){if(tt&&tt.bech32!==et().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(et().version!==0)throw new TypeError("Invalid address version");if(et().data.length!==20)throw new TypeError("Invalid address data");nt=et().data}if(a.hash){if(nt.length>0&&!nt.equals(a.hash))throw new TypeError("Hash mismatch");nt=a.hash}if(a.output){if(a.output.length!==22||a.output[0]!==OPS$2.OP_0||a.output[1]!==20)throw new TypeError("Output is invalid");if(nt.length>0&&!nt.equals(a.output.slice(2)))throw new TypeError("Hash mismatch");nt=a.output.slice(2)}if(a.pubkey){const it=bcrypto$3.hash160(a.pubkey);if(nt.length>0&&!nt.equals(it))throw new TypeError("Hash mismatch");if(nt=it,!(0,types_1$4.isPoint)(a.pubkey)||a.pubkey.length!==33)throw new TypeError("Invalid pubkey for p2wpkh")}if(a.witness){if(a.witness.length!==2)throw new TypeError("Witness is invalid");if(!bscript$6.isCanonicalScriptSignature(a.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,types_1$4.isPoint)(a.witness[1])||a.witness[1].length!==33)throw new TypeError("Witness has invalid pubkey");if(a.signature&&!a.signature.equals(a.witness[0]))throw new TypeError("Signature mismatch");if(a.pubkey&&!a.pubkey.equals(a.witness[1]))throw new TypeError("Pubkey mismatch");const it=bcrypto$3.hash160(a.witness[1]);if(nt.length>0&&!nt.equals(it))throw new TypeError("Hash mismatch")}}return Object.assign(rt,a)}p2wpkh$1.p2wpkh=p2wpkh;var p2wsh$1={};Object.defineProperty(p2wsh$1,"__esModule",{value:!0});p2wsh$1.p2wsh=void 0;const bcrypto$2=crypto$2,networks_1$2=networks$1,bscript$5=script,types_1$3=types$6,lazy$1=lazy$8,bech32_1$2=dist,OPS$1=bscript$5.OPS,EMPTY_BUFFER$1=Buffer.alloc(0);function stacksEqual$1(a,o){return a.length!==o.length?!1:a.every((et,tt)=>et.equals(o[tt]))}function chunkHasUncompressedPubkey(a){return!!(Buffer.isBuffer(a)&&a.length===65&&a[0]===4&&(0,types_1$3.isPoint)(a))}function p2wsh(a,o){if(!a.address&&!a.hash&&!a.output&&!a.redeem&&!a.witness)throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$3.typeforce)({network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),address:types_1$3.typeforce.maybe(types_1$3.typeforce.String),hash:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(32)),output:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(34)),redeem:types_1$3.typeforce.maybe({input:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),output:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))}),input:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(0)),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))},a);const et=lazy$1.value(()=>{const it=bech32_1$2.bech32.decode(a.address),st=it.words.shift(),at=bech32_1$2.bech32.fromWords(it.words);return{version:st,prefix:it.prefix,data:Buffer.from(at)}}),tt=lazy$1.value(()=>bscript$5.decompile(a.redeem.input));let rt=a.network;rt||(rt=a.redeem&&a.redeem.network||networks_1$2.bitcoin);const nt={network:rt};if(lazy$1.prop(nt,"address",()=>{if(!nt.hash)return;const it=bech32_1$2.bech32.toWords(nt.hash);return it.unshift(0),bech32_1$2.bech32.encode(rt.bech32,it)}),lazy$1.prop(nt,"hash",()=>{if(a.output)return a.output.slice(2);if(a.address)return et().data;if(nt.redeem&&nt.redeem.output)return bcrypto$2.sha256(nt.redeem.output)}),lazy$1.prop(nt,"output",()=>{if(nt.hash)return bscript$5.compile([OPS$1.OP_0,nt.hash])}),lazy$1.prop(nt,"redeem",()=>{if(a.witness)return{output:a.witness[a.witness.length-1],input:EMPTY_BUFFER$1,witness:a.witness.slice(0,-1)}}),lazy$1.prop(nt,"input",()=>{if(nt.witness)return EMPTY_BUFFER$1}),lazy$1.prop(nt,"witness",()=>{if(a.redeem&&a.redeem.input&&a.redeem.input.length>0&&a.redeem.output&&a.redeem.output.length>0){const it=bscript$5.toStack(tt());return nt.redeem=Object.assign({witness:it},a.redeem),nt.redeem.input=EMPTY_BUFFER$1,[].concat(it,a.redeem.output)}if(a.redeem&&a.redeem.output&&a.redeem.witness)return[].concat(a.redeem.witness,a.redeem.output)}),lazy$1.prop(nt,"name",()=>{const it=["p2wsh"];return nt.redeem!==void 0&&nt.redeem.name!==void 0&&it.push(nt.redeem.name),it.join("-")}),o.validate){let it=Buffer.from([]);if(a.address){if(et().prefix!==rt.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(et().version!==0)throw new TypeError("Invalid address version");if(et().data.length!==32)throw new TypeError("Invalid address data");it=et().data}if(a.hash){if(it.length>0&&!it.equals(a.hash))throw new TypeError("Hash mismatch");it=a.hash}if(a.output){if(a.output.length!==34||a.output[0]!==OPS$1.OP_0||a.output[1]!==32)throw new TypeError("Output is invalid");const st=a.output.slice(2);if(it.length>0&&!it.equals(st))throw new TypeError("Hash mismatch");it=st}if(a.redeem){if(a.redeem.network&&a.redeem.network!==rt)throw new TypeError("Network mismatch");if(a.redeem.input&&a.redeem.input.length>0&&a.redeem.witness&&a.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(a.redeem.output){const st=bscript$5.decompile(a.redeem.output);if(!st||st.length<1)throw new TypeError("Redeem.output is invalid");if(a.redeem.output.byteLength>3600)throw new TypeError("Redeem.output unspendable if larger than 3600 bytes");if(bscript$5.countNonPushOnlyOPs(st)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const at=bcrypto$2.sha256(a.redeem.output);if(it.length>0&&!it.equals(at))throw new TypeError("Hash mismatch");it=at}if(a.redeem.input&&!bscript$5.isPushOnly(tt()))throw new TypeError("Non push-only scriptSig");if(a.witness&&a.redeem.witness&&!stacksEqual$1(a.witness,a.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(a.redeem.input&&tt().some(chunkHasUncompressedPubkey)||a.redeem.output&&(bscript$5.decompile(a.redeem.output)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(a.witness&&a.witness.length>0){const st=a.witness[a.witness.length-1];if(a.redeem&&a.redeem.output&&!a.redeem.output.equals(st))throw new TypeError("Witness and redeem.output mismatch");if(a.witness.some(chunkHasUncompressedPubkey)||(bscript$5.decompile(st)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(nt,a)}p2wsh$1.p2wsh=p2wsh;var p2tr$1={},ecc_lib={};Object.defineProperty(ecc_lib,"__esModule",{value:!0});ecc_lib.getEccLib=ecc_lib.initEccLib=void 0;const _ECCLIB_CACHE={};function initEccLib(a){a?a!==_ECCLIB_CACHE.eccLib&&(verifyEcc(a),_ECCLIB_CACHE.eccLib=a):_ECCLIB_CACHE.eccLib=a}ecc_lib.initEccLib=initEccLib;function getEccLib(){if(!_ECCLIB_CACHE.eccLib)throw new Error("No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance");return _ECCLIB_CACHE.eccLib}ecc_lib.getEccLib=getEccLib;const h$3=a=>Buffer.from(a,"hex");function verifyEcc(a){assert(typeof a.isXOnlyPoint=="function"),assert(a.isXOnlyPoint(h$3("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),assert(a.isXOnlyPoint(h$3("fffffffffffffffffffffffffffffffffffffffffffffffffffffffeeffffc2e"))),assert(a.isXOnlyPoint(h$3("f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9"))),assert(a.isXOnlyPoint(h$3("0000000000000000000000000000000000000000000000000000000000000001"))),assert(!a.isXOnlyPoint(h$3("0000000000000000000000000000000000000000000000000000000000000000"))),assert(!a.isXOnlyPoint(h$3("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"))),assert(typeof a.xOnlyPointAddTweak=="function"),tweakAddVectors.forEach(o=>{const et=a.xOnlyPointAddTweak(h$3(o.pubkey),h$3(o.tweak));o.result===null?assert(et===null):(assert(et!==null),assert(et.parity===o.parity),assert(Buffer.from(et.xOnlyPubkey).equals(h$3(o.result))))})}function assert(a){if(!a)throw new Error("ecc library invalid")}const tweakAddVectors=[{pubkey:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",tweak:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140",parity:-1,result:null},{pubkey:"1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b",tweak:"a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac",parity:1,result:"e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf"},{pubkey:"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",tweak:"823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47",parity:0,result:"9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"}];var bip341={},bufferutils={},Buffer$2=safeBufferExports.Buffer,MAX_SAFE_INTEGER$3=9007199254740991;function checkUInt53$1(a){if(a<0||a>MAX_SAFE_INTEGER$3||a%1!==0)throw new RangeError("value out of range")}function encode$j(a,o,et){if(checkUInt53$1(a),o||(o=Buffer$2.allocUnsafe(encodingLength$1(a))),!Buffer$2.isBuffer(o))throw new TypeError("buffer must be a Buffer instance");return et||(et=0),a<253?(o.writeUInt8(a,et),encode$j.bytes=1):a<=65535?(o.writeUInt8(253,et),o.writeUInt16LE(a,et+1),encode$j.bytes=3):a<=4294967295?(o.writeUInt8(254,et),o.writeUInt32LE(a,et+1),encode$j.bytes=5):(o.writeUInt8(255,et),o.writeUInt32LE(a>>>0,et+1),o.writeUInt32LE(a/4294967296|0,et+5),encode$j.bytes=9),o}function decode$i(a,o){if(!Buffer$2.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");o||(o=0);var et=a.readUInt8(o);if(et<253)return decode$i.bytes=1,et;if(et===253)return decode$i.bytes=3,a.readUInt16LE(o+1);if(et===254)return decode$i.bytes=5,a.readUInt32LE(o+1);decode$i.bytes=9;var tt=a.readUInt32LE(o+1),rt=a.readUInt32LE(o+5),nt=rt*4294967296+tt;return checkUInt53$1(nt),nt}function encodingLength$1(a){return checkUInt53$1(a),a<253?1:a<=65535?3:a<=4294967295?5:9}var varuintBitcoin={encode:encode$j,decode:decode$i,encodingLength:encodingLength$1};Object.defineProperty(bufferutils,"__esModule",{value:!0});bufferutils.BufferReader=bufferutils.BufferWriter=bufferutils.cloneBuffer=bufferutils.reverseBuffer=bufferutils.writeUInt64LE=bufferutils.readUInt64LE=bufferutils.varuint=void 0;const types$3=types$6,{typeforce:typeforce$2}=types$3,varuint$7=varuintBitcoin;bufferutils.varuint=varuint$7;function verifuint$1(a,o){if(typeof a!="number")throw new Error("cannot write a non-number as a number");if(a<0)throw new Error("specified a negative value for writing an unsigned value");if(a>o)throw new Error("RangeError: value out of range");if(Math.floor(a)!==a)throw new Error("value has a fractional component")}function readUInt64LE$1(a,o){const et=a.readUInt32LE(o);let tt=a.readUInt32LE(o+4);return tt*=4294967296,verifuint$1(tt+et,9007199254740991),tt+et}bufferutils.readUInt64LE=readUInt64LE$1;function writeUInt64LE$1(a,o,et){return verifuint$1(o,9007199254740991),a.writeInt32LE(o&-1,et),a.writeUInt32LE(Math.floor(o/4294967296),et+4),et+8}bufferutils.writeUInt64LE=writeUInt64LE$1;function reverseBuffer$1(a){if(a.length<1)return a;let o=a.length-1,et=0;for(let tt=0;ttthis.writeVarSlice(et))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}bufferutils.BufferWriter=BufferWriter;class BufferReader{constructor(o,et=0){this.buffer=o,this.offset=et,typeforce$2(types$3.tuple(types$3.Buffer,types$3.UInt32),[o,et])}readUInt8(){const o=this.buffer.readUInt8(this.offset);return this.offset++,o}readInt32(){const o=this.buffer.readInt32LE(this.offset);return this.offset+=4,o}readUInt32(){const o=this.buffer.readUInt32LE(this.offset);return this.offset+=4,o}readUInt64(){const o=readUInt64LE$1(this.buffer,this.offset);return this.offset+=8,o}readVarInt(){const o=varuint$7.decode(this.buffer,this.offset);return this.offset+=varuint$7.decode.bytes,o}readSlice(o){if(this.buffer.length"left"in pt&&"right"in pt;function st(pt,Et){if(pt.length<33)throw new TypeError(`The control-block length is too small. Got ${pt.length}, expected min 33.`);const yt=(pt.length-33)/32;let bt=Et;for(let kt=0;ktkt.hash.compare(It.hash));const[yt,bt]=Et;return{hash:wt(yt.hash,bt.hash),left:yt,right:bt}}a.toHashTree=at;function lt(pt,Et){if(it(pt)){const yt=lt(pt.left,Et);if(yt!==void 0)return[...yt,pt.right.hash];const bt=lt(pt.right,Et);if(bt!==void 0)return[...bt,pt.left.hash]}else if(pt.hash.equals(Et))return[]}a.findScriptPath=lt;function ht(pt){const Et=pt.version||a.LEAF_VERSION_TAPSCRIPT;return tt.taggedHash("TapLeaf",o.Buffer.concat([o.Buffer.from([Et]),ut(pt.output)]))}a.tapleafHash=ht;function vt(pt,Et){return tt.taggedHash("TapTweak",o.Buffer.concat(Et?[pt,Et]:[pt]))}a.tapTweakHash=vt;function gt(pt,Et){if(!o.Buffer.isBuffer(pt)||pt.length!==32||Et&&Et.length!==32)return null;const yt=vt(pt,Et),bt=(0,et.getEccLib)().xOnlyPointAddTweak(pt,yt);return!bt||bt.xOnlyPubkey===null?null:{parity:bt.parity,x:o.Buffer.from(bt.xOnlyPubkey)}}a.tweakKey=gt;function wt(pt,Et){return tt.taggedHash("TapBranch",o.Buffer.concat([pt,Et]))}function ut(pt){const Et=rt.varuint.encodingLength(pt.length),yt=o.Buffer.allocUnsafe(Et);return rt.varuint.encode(pt.length,yt),o.Buffer.concat([yt,pt])}})(bip341);Object.defineProperty(p2tr$1,"__esModule",{value:!0});p2tr$1.p2tr=void 0;const buffer_1=buffer$2,networks_1$1=networks$1,bscript$4=script,types_1$2=types$6,ecc_lib_1=ecc_lib,bip341_1$2=bip341,lazy=lazy$8,bech32_1$1=dist,OPS=bscript$4.OPS,TAPROOT_WITNESS_VERSION=1,ANNEX_PREFIX=80;function p2tr(a,o){if(!a.address&&!a.output&&!a.pubkey&&!a.internalPubkey&&!(a.witness&&a.witness.length>1))throw new TypeError("Not enough data");o=Object.assign({validate:!0},o||{}),(0,types_1$2.typeforce)({address:types_1$2.typeforce.maybe(types_1$2.typeforce.String),input:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(0)),network:types_1$2.typeforce.maybe(types_1$2.typeforce.Object),output:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(34)),internalPubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),hash:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),pubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),signature:types_1$2.typeforce.maybe(types_1$2.typeforce.anyOf(types_1$2.typeforce.BufferN(64),types_1$2.typeforce.BufferN(65))),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer)),scriptTree:types_1$2.typeforce.maybe(types_1$2.isTaptree),redeem:types_1$2.typeforce.maybe({output:types_1$2.typeforce.maybe(types_1$2.typeforce.Buffer),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer))}),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number)},a);const et=lazy.value(()=>{const st=bech32_1$1.bech32m.decode(a.address),at=st.words.shift(),lt=bech32_1$1.bech32m.fromWords(st.words);return{version:at,prefix:st.prefix,data:buffer_1.Buffer.from(lt)}}),tt=lazy.value(()=>{if(!(!a.witness||!a.witness.length))return a.witness.length>=2&&a.witness[a.witness.length-1][0]===ANNEX_PREFIX?a.witness.slice(0,-1):a.witness.slice()}),rt=lazy.value(()=>{if(a.scriptTree)return(0,bip341_1$2.toHashTree)(a.scriptTree);if(a.hash)return{hash:a.hash}}),nt=a.network||networks_1$1.bitcoin,it={name:"p2tr",network:nt};if(lazy.prop(it,"address",()=>{if(!it.pubkey)return;const st=bech32_1$1.bech32m.toWords(it.pubkey);return st.unshift(TAPROOT_WITNESS_VERSION),bech32_1$1.bech32m.encode(nt.bech32,st)}),lazy.prop(it,"hash",()=>{const st=rt();if(st)return st.hash;const at=tt();if(at&&at.length>1){const lt=at[at.length-1],ht=lt[0]&types_1$2.TAPLEAF_VERSION_MASK,vt=at[at.length-2],gt=(0,bip341_1$2.tapleafHash)({output:vt,version:ht});return(0,bip341_1$2.rootHashFromPath)(lt,gt)}return null}),lazy.prop(it,"output",()=>{if(it.pubkey)return bscript$4.compile([OPS.OP_1,it.pubkey])}),lazy.prop(it,"redeemVersion",()=>a.redeemVersion?a.redeemVersion:a.redeem&&a.redeem.redeemVersion!==void 0&&a.redeem.redeemVersion!==null?a.redeem.redeemVersion:bip341_1$2.LEAF_VERSION_TAPSCRIPT),lazy.prop(it,"redeem",()=>{const st=tt();if(!(!st||st.length<2))return{output:st[st.length-2],witness:st.slice(0,-2),redeemVersion:st[st.length-1][0]&types_1$2.TAPLEAF_VERSION_MASK}}),lazy.prop(it,"pubkey",()=>{if(a.pubkey)return a.pubkey;if(a.output)return a.output.slice(2);if(a.address)return et().data;if(it.internalPubkey){const st=(0,bip341_1$2.tweakKey)(it.internalPubkey,it.hash);if(st)return st.x}}),lazy.prop(it,"internalPubkey",()=>{if(a.internalPubkey)return a.internalPubkey;const st=tt();if(st&&st.length>1)return st[st.length-1].slice(1,33)}),lazy.prop(it,"signature",()=>{if(a.signature)return a.signature;const st=tt();if(!(!st||st.length!==1))return st[0]}),lazy.prop(it,"witness",()=>{if(a.witness)return a.witness;const st=rt();if(st&&a.redeem&&a.redeem.output&&a.internalPubkey){const at=(0,bip341_1$2.tapleafHash)({output:a.redeem.output,version:it.redeemVersion}),lt=(0,bip341_1$2.findScriptPath)(st,at);if(!lt)return;const ht=(0,bip341_1$2.tweakKey)(a.internalPubkey,st.hash);if(!ht)return;const vt=buffer_1.Buffer.concat([buffer_1.Buffer.from([it.redeemVersion|ht.parity]),a.internalPubkey].concat(lt));return[a.redeem.output,vt]}if(a.signature)return[a.signature]}),o.validate){let st=buffer_1.Buffer.from([]);if(a.address){if(nt&&nt.bech32!==et().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(et().version!==TAPROOT_WITNESS_VERSION)throw new TypeError("Invalid address version");if(et().data.length!==32)throw new TypeError("Invalid address data");st=et().data}if(a.pubkey){if(st.length>0&&!st.equals(a.pubkey))throw new TypeError("Pubkey mismatch");st=a.pubkey}if(a.output){if(a.output.length!==34||a.output[0]!==OPS.OP_1||a.output[1]!==32)throw new TypeError("Output is invalid");if(st.length>0&&!st.equals(a.output.slice(2)))throw new TypeError("Pubkey mismatch");st=a.output.slice(2)}if(a.internalPubkey){const ht=(0,bip341_1$2.tweakKey)(a.internalPubkey,it.hash);if(st.length>0&&!st.equals(ht.x))throw new TypeError("Pubkey mismatch");st=ht.x}if(st&&st.length&&!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(st))throw new TypeError("Invalid pubkey for p2tr");const at=rt();if(a.hash&&at&&!a.hash.equals(at.hash))throw new TypeError("Hash mismatch");if(a.redeem&&a.redeem.output&&at){const ht=(0,bip341_1$2.tapleafHash)({output:a.redeem.output,version:it.redeemVersion});if(!(0,bip341_1$2.findScriptPath)(at,ht))throw new TypeError("Redeem script not in tree")}const lt=tt();if(a.redeem&&it.redeem){if(a.redeem.redeemVersion&&a.redeem.redeemVersion!==it.redeem.redeemVersion)throw new TypeError("Redeem.redeemVersion and witness mismatch");if(a.redeem.output){if(bscript$4.decompile(a.redeem.output).length===0)throw new TypeError("Redeem.output is invalid");if(it.redeem.output&&!a.redeem.output.equals(it.redeem.output))throw new TypeError("Redeem.output and witness mismatch")}if(a.redeem.witness&&it.redeem.witness&&!stacksEqual(a.redeem.witness,it.redeem.witness))throw new TypeError("Redeem.witness and witness mismatch")}if(lt&<.length)if(lt.length===1){if(a.signature&&!a.signature.equals(lt[0]))throw new TypeError("Signature mismatch")}else{const ht=lt[lt.length-1];if(ht.length<33)throw new TypeError(`The control-block length is too small. Got ${ht.length}, expected min 33.`);if((ht.length-33)%32!==0)throw new TypeError(`The control-block length of ${ht.length} is incorrect!`);const vt=(ht.length-33)/32;if(vt>128)throw new TypeError(`The script path is too long. Got ${vt}, expected max 128.`);const gt=ht.slice(1,33);if(a.internalPubkey&&!a.internalPubkey.equals(gt))throw new TypeError("Internal pubkey mismatch");if(!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(gt))throw new TypeError("Invalid internalPubkey for p2tr witness");const wt=ht[0]&types_1$2.TAPLEAF_VERSION_MASK,ut=lt[lt.length-2],pt=(0,bip341_1$2.tapleafHash)({output:ut,version:wt}),Et=(0,bip341_1$2.rootHashFromPath)(ht,pt),yt=(0,bip341_1$2.tweakKey)(gt,Et);if(!yt)throw new TypeError("Invalid outputKey for p2tr witness");if(st.length&&!st.equals(yt.x))throw new TypeError("Pubkey mismatch for p2tr witness");if(yt.parity!==(ht[0]&1))throw new Error("Incorrect parity")}}return Object.assign(it,a)}p2tr$1.p2tr=p2tr;function stacksEqual(a,o){return a.length!==o.length?!1:a.every((et,tt)=>et.equals(o[tt]))}(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.p2tr=a.p2wsh=a.p2wpkh=a.p2sh=a.p2pkh=a.p2pk=a.p2ms=a.embed=void 0;const o=embed;Object.defineProperty(a,"embed",{enumerable:!0,get:function(){return o.p2data}});const et=p2ms$1;Object.defineProperty(a,"p2ms",{enumerable:!0,get:function(){return et.p2ms}});const tt=p2pk$1;Object.defineProperty(a,"p2pk",{enumerable:!0,get:function(){return tt.p2pk}});const rt=p2pkh$1;Object.defineProperty(a,"p2pkh",{enumerable:!0,get:function(){return rt.p2pkh}});const nt=p2sh$1;Object.defineProperty(a,"p2sh",{enumerable:!0,get:function(){return nt.p2sh}});const it=p2wpkh$1;Object.defineProperty(a,"p2wpkh",{enumerable:!0,get:function(){return it.p2wpkh}});const st=p2wsh$1;Object.defineProperty(a,"p2wsh",{enumerable:!0,get:function(){return st.p2wsh}});const at=p2tr$1;Object.defineProperty(a,"p2tr",{enumerable:!0,get:function(){return at.p2tr}})})(payments$3);Object.defineProperty(address,"__esModule",{value:!0});address.toOutputScript=address.fromOutputScript=address.toBech32=address.toBase58Check=address.fromBech32=address.fromBase58Check=void 0;const networks=networks$1,payments$2=payments$3,bscript$3=script,types_1$1=types$6,bech32_1=dist,bs58check=bs58check$3,FUTURE_SEGWIT_MAX_SIZE=40,FUTURE_SEGWIT_MIN_SIZE=2,FUTURE_SEGWIT_MAX_VERSION=16,FUTURE_SEGWIT_MIN_VERSION=2,FUTURE_SEGWIT_VERSION_DIFF=80,FUTURE_SEGWIT_VERSION_WARNING="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function _toFutureSegwitAddress(a,o){const et=a.slice(2);if(et.lengthFUTURE_SEGWIT_MAX_SIZE)throw new TypeError("Invalid program length for segwit address");const tt=a[0]-FUTURE_SEGWIT_VERSION_DIFF;if(ttFUTURE_SEGWIT_MAX_VERSION)throw new TypeError("Invalid version for segwit address");if(a[1]!==et.length)throw new TypeError("Invalid script for segwit address");return console.warn(FUTURE_SEGWIT_VERSION_WARNING),toBech32(et,tt,o.bech32)}function fromBase58Check(a){const o=Buffer.from(bs58check.decode(a));if(o.length<21)throw new TypeError(a+" is too short");if(o.length>21)throw new TypeError(a+" is too long");const et=o.readUInt8(0),tt=o.slice(1);return{version:et,hash:tt}}address.fromBase58Check=fromBase58Check;function fromBech32(a){let o,et;try{o=bech32_1.bech32.decode(a)}catch{}if(o){if(et=o.words[0],et!==0)throw new TypeError(a+" uses wrong encoding")}else if(o=bech32_1.bech32m.decode(a),et=o.words[0],et===0)throw new TypeError(a+" uses wrong encoding");const tt=bech32_1.bech32.fromWords(o.words.slice(1));return{version:et,prefix:o.prefix,data:Buffer.from(tt)}}address.fromBech32=fromBech32;function toBase58Check(a,o){(0,types_1$1.typeforce)((0,types_1$1.tuple)(types_1$1.Hash160bit,types_1$1.UInt8),arguments);const et=Buffer.allocUnsafe(21);return et.writeUInt8(o,0),a.copy(et,1),bs58check.encode(et)}address.toBase58Check=toBase58Check;function toBech32(a,o,et){const tt=bech32_1.bech32.toWords(a);return tt.unshift(o),o===0?bech32_1.bech32.encode(et,tt):bech32_1.bech32m.encode(et,tt)}address.toBech32=toBech32;function fromOutputScript(a,o){o=o||networks.bitcoin;try{return payments$2.p2pkh({output:a,network:o}).address}catch{}try{return payments$2.p2sh({output:a,network:o}).address}catch{}try{return payments$2.p2wpkh({output:a,network:o}).address}catch{}try{return payments$2.p2wsh({output:a,network:o}).address}catch{}try{return payments$2.p2tr({output:a,network:o}).address}catch{}try{return _toFutureSegwitAddress(a,o)}catch{}throw new Error(bscript$3.toASM(a)+" has no matching Address")}address.fromOutputScript=fromOutputScript;function toOutputScript(a,o){o=o||networks.bitcoin;let et,tt;try{et=fromBase58Check(a)}catch{}if(et){if(et.version===o.pubKeyHash)return payments$2.p2pkh({hash:et.hash}).output;if(et.version===o.scriptHash)return payments$2.p2sh({hash:et.hash}).output}else{try{tt=fromBech32(a)}catch{}if(tt){if(tt.prefix!==o.bech32)throw new Error(a+" has an invalid prefix");if(tt.version===0){if(tt.data.length===20)return payments$2.p2wpkh({hash:tt.data}).output;if(tt.data.length===32)return payments$2.p2wsh({hash:tt.data}).output}else if(tt.version===1){if(tt.data.length===32)return payments$2.p2tr({pubkey:tt.data}).output}else if(tt.version>=FUTURE_SEGWIT_MIN_VERSION&&tt.version<=FUTURE_SEGWIT_MAX_VERSION&&tt.data.length>=FUTURE_SEGWIT_MIN_SIZE&&tt.data.length<=FUTURE_SEGWIT_MAX_SIZE)return console.warn(FUTURE_SEGWIT_VERSION_WARNING),bscript$3.compile([tt.version+FUTURE_SEGWIT_VERSION_DIFF,tt.data])}}throw new Error(a+" has no matching Script")}address.toOutputScript=toOutputScript;var block={},merkle={};Object.defineProperty(merkle,"__esModule",{value:!0});merkle.fastMerkleRoot=void 0;function fastMerkleRoot(a,o){if(!Array.isArray(a))throw TypeError("Expected values Array");if(typeof o!="function")throw TypeError("Expected digest Function");let et=a.length;const tt=a.concat();for(;et>1;){let rt=0;for(let nt=0;ntet+varSliceSize(tt),0)}const EMPTY_BUFFER=Buffer.allocUnsafe(0),EMPTY_WITNESS=[],ZERO=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),ONE=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),VALUE_UINT64_MAX=Buffer.from("ffffffffffffffff","hex"),BLANK_OUTPUT={script:EMPTY_BUFFER,valueBuffer:VALUE_UINT64_MAX};function isOutput(a){return a.value!==void 0}class Transaction{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(o,et){const tt=new bufferutils_1$2.BufferReader(o),rt=new Transaction;rt.version=tt.readInt32();const nt=tt.readUInt8(),it=tt.readUInt8();let st=!1;nt===Transaction.ADVANCED_TRANSACTION_MARKER&&it===Transaction.ADVANCED_TRANSACTION_FLAG?st=!0:tt.offset-=2;const at=tt.readVarInt();for(let ht=0;hto.witness.length!==0)}weight(){const o=this.byteLength(!1),et=this.byteLength(!0);return o*3+et}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(o=!0){const et=o&&this.hasWitnesses();return(et?10:8)+bufferutils_1$2.varuint.encodingLength(this.ins.length)+bufferutils_1$2.varuint.encodingLength(this.outs.length)+this.ins.reduce((tt,rt)=>tt+40+varSliceSize(rt.script),0)+this.outs.reduce((tt,rt)=>tt+8+varSliceSize(rt.script),0)+(et?this.ins.reduce((tt,rt)=>tt+vectorSize(rt.witness),0):0)}clone(){const o=new Transaction;return o.version=this.version,o.locktime=this.locktime,o.ins=this.ins.map(et=>({hash:et.hash,index:et.index,script:et.script,sequence:et.sequence,witness:et.witness})),o.outs=this.outs.map(et=>({script:et.script,value:et.value})),o}hashForSignature(o,et,tt){if(typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Number),arguments),o>=this.ins.length)return ONE;const rt=bscript$2.compile(bscript$2.decompile(et).filter(st=>st!==script_1.OPS.OP_CODESEPARATOR)),nt=this.clone();if((tt&31)===Transaction.SIGHASH_NONE)nt.outs=[],nt.ins.forEach((st,at)=>{at!==o&&(st.sequence=0)});else if((tt&31)===Transaction.SIGHASH_SINGLE){if(o>=this.outs.length)return ONE;nt.outs.length=o+1;for(let st=0;st{at!==o&&(st.sequence=0)})}tt&Transaction.SIGHASH_ANYONECANPAY?(nt.ins=[nt.ins[o]],nt.ins[0].script=rt):(nt.ins.forEach(st=>{st.script=EMPTY_BUFFER}),nt.ins[o].script=rt);const it=Buffer.allocUnsafe(nt.byteLength(!1)+4);return it.writeInt32LE(tt,it.length-4),nt.__toBuffer(it,0,!1),bcrypto$1.hash256(it)}hashForWitnessV1(o,et,tt,rt,nt,it){if(typeforce$1(types$2.tuple(types$2.UInt32,typeforce$1.arrayOf(types$2.Buffer),typeforce$1.arrayOf(types$2.Satoshi),types$2.UInt32),arguments),tt.length!==this.ins.length||et.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const st=rt===Transaction.SIGHASH_DEFAULT?Transaction.SIGHASH_ALL:rt&Transaction.SIGHASH_OUTPUT_MASK,lt=(rt&Transaction.SIGHASH_INPUT_MASK)===Transaction.SIGHASH_ANYONECANPAY,ht=st===Transaction.SIGHASH_NONE,vt=st===Transaction.SIGHASH_SINGLE;let gt=EMPTY_BUFFER,wt=EMPTY_BUFFER,ut=EMPTY_BUFFER,pt=EMPTY_BUFFER,Et=EMPTY_BUFFER;if(!lt){let It=bufferutils_1$2.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach(Ot=>{It.writeSlice(Ot.hash),It.writeUInt32(Ot.index)}),gt=bcrypto$1.sha256(It.end()),It=bufferutils_1$2.BufferWriter.withCapacity(8*this.ins.length),tt.forEach(Ot=>It.writeUInt64(Ot)),wt=bcrypto$1.sha256(It.end()),It=bufferutils_1$2.BufferWriter.withCapacity(et.map(varSliceSize).reduce((Ot,Nt)=>Ot+Nt)),et.forEach(Ot=>It.writeVarSlice(Ot)),ut=bcrypto$1.sha256(It.end()),It=bufferutils_1$2.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach(Ot=>It.writeUInt32(Ot.sequence)),pt=bcrypto$1.sha256(It.end())}if(ht||vt){if(vt&&o8+varSliceSize(Nt.script)).reduce((Nt,Vt)=>Nt+Vt),Ot=bufferutils_1$2.BufferWriter.withCapacity(It);this.outs.forEach(Nt=>{Ot.writeUInt64(Nt.value),Ot.writeVarSlice(Nt.script)}),Et=bcrypto$1.sha256(Ot.end())}const yt=(nt?2:0)+(it?1:0),bt=174-(lt?49:0)-(ht?32:0)+(it?32:0)+(nt?37:0),kt=bufferutils_1$2.BufferWriter.withCapacity(bt);if(kt.writeUInt8(rt),kt.writeInt32(this.version),kt.writeUInt32(this.locktime),kt.writeSlice(gt),kt.writeSlice(wt),kt.writeSlice(ut),kt.writeSlice(pt),ht||vt||kt.writeSlice(Et),kt.writeUInt8(yt),lt){const It=this.ins[o];kt.writeSlice(It.hash),kt.writeUInt32(It.index),kt.writeUInt64(tt[o]),kt.writeVarSlice(et[o]),kt.writeUInt32(It.sequence)}else kt.writeUInt32(o);if(it){const It=bufferutils_1$2.BufferWriter.withCapacity(varSliceSize(it));It.writeVarSlice(it),kt.writeSlice(bcrypto$1.sha256(It.end()))}return vt&&kt.writeSlice(Et),nt&&(kt.writeSlice(nt),kt.writeUInt8(0),kt.writeUInt32(4294967295)),bcrypto$1.taggedHash("TapSighash",Buffer.concat([Buffer.from([0]),kt.end()]))}hashForWitnessV0(o,et,tt,rt){typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Satoshi,types$2.UInt32),arguments);let nt=Buffer.from([]),it,st=ZERO,at=ZERO,lt=ZERO;if(rt&Transaction.SIGHASH_ANYONECANPAY||(nt=Buffer.allocUnsafe(36*this.ins.length),it=new bufferutils_1$2.BufferWriter(nt,0),this.ins.forEach(vt=>{it.writeSlice(vt.hash),it.writeUInt32(vt.index)}),at=bcrypto$1.hash256(nt)),!(rt&Transaction.SIGHASH_ANYONECANPAY)&&(rt&31)!==Transaction.SIGHASH_SINGLE&&(rt&31)!==Transaction.SIGHASH_NONE&&(nt=Buffer.allocUnsafe(4*this.ins.length),it=new bufferutils_1$2.BufferWriter(nt,0),this.ins.forEach(vt=>{it.writeUInt32(vt.sequence)}),lt=bcrypto$1.hash256(nt)),(rt&31)!==Transaction.SIGHASH_SINGLE&&(rt&31)!==Transaction.SIGHASH_NONE){const vt=this.outs.reduce((gt,wt)=>gt+8+varSliceSize(wt.script),0);nt=Buffer.allocUnsafe(vt),it=new bufferutils_1$2.BufferWriter(nt,0),this.outs.forEach(gt=>{it.writeUInt64(gt.value),it.writeVarSlice(gt.script)}),st=bcrypto$1.hash256(nt)}else if((rt&31)===Transaction.SIGHASH_SINGLE&&o{rt.writeSlice(it.hash),rt.writeUInt32(it.index),rt.writeVarSlice(it.script),rt.writeUInt32(it.sequence)}),rt.writeVarInt(this.outs.length),this.outs.forEach(it=>{isOutput(it)?rt.writeUInt64(it.value):rt.writeSlice(it.valueBuffer),rt.writeVarSlice(it.script)}),nt&&this.ins.forEach(it=>{rt.writeVector(it.witness)}),rt.writeUInt32(this.locktime),et!==void 0?o.slice(et,rt.offset):o}}transaction.Transaction=Transaction;Transaction.DEFAULT_SEQUENCE=4294967295;Transaction.SIGHASH_DEFAULT=0;Transaction.SIGHASH_ALL=1;Transaction.SIGHASH_NONE=2;Transaction.SIGHASH_SINGLE=3;Transaction.SIGHASH_ANYONECANPAY=128;Transaction.SIGHASH_OUTPUT_MASK=3;Transaction.SIGHASH_INPUT_MASK=128;Transaction.ADVANCED_TRANSACTION_MARKER=0;Transaction.ADVANCED_TRANSACTION_FLAG=1;Object.defineProperty(block,"__esModule",{value:!0});block.Block=void 0;const bufferutils_1$1=bufferutils,bcrypto=crypto$2,merkle_1=merkle,transaction_1$3=transaction,types$1=types$6,{typeforce}=types$1,errorMerkleNoTxes=new TypeError("Cannot compute merkle root for zero transactions"),errorWitnessNotSegwit=new TypeError("Cannot compute witness commit for non-segwit block");class Block{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(o){if(o.length<80)throw new Error("Buffer too small (< 80 bytes)");const et=new bufferutils_1$1.BufferReader(o),tt=new Block;if(tt.version=et.readInt32(),tt.prevHash=et.readSlice(32),tt.merkleRoot=et.readSlice(32),tt.timestamp=et.readUInt32(),tt.bits=et.readUInt32(),tt.nonce=et.readUInt32(),o.length===80)return tt;const rt=()=>{const st=transaction_1$3.Transaction.fromBuffer(et.buffer.slice(et.offset),!0);return et.offset+=st.byteLength(),st},nt=et.readVarInt();tt.transactions=[];for(let st=0;st>24)-3,tt=o&8388607,rt=Buffer.alloc(32,0);return rt.writeUIntBE(tt,29-et,3),rt}static calculateMerkleRoot(o,et){if(typeforce([{getHash:types$1.Function}],o),o.length===0)throw errorMerkleNoTxes;if(et&&!txesHaveWitnessCommit(o))throw errorWitnessNotSegwit;const tt=o.map(nt=>nt.getHash(et)),rt=(0,merkle_1.fastMerkleRoot)(tt,bcrypto.hash256);return et?bcrypto.hash256(Buffer.concat([rt,o[0].ins[0].witness[0]])):rt}getWitnessCommit(){if(!txesHaveWitnessCommit(this.transactions))return null;const o=this.transactions[0].outs.filter(tt=>tt.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(tt=>tt.script.slice(6,38));if(o.length===0)return null;const et=o[o.length-1];return et instanceof Buffer&&et.length===32?et:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&this.witnessCommit.length===32||this.getWitnessCommit()!==null}hasWitness(){return anyTxHasWitness(this.transactions)}weight(){const o=this.byteLength(!1,!1),et=this.byteLength(!1,!0);return o*3+et}byteLength(o,et=!0){return o||!this.transactions?80:80+bufferutils_1$1.varuint.encodingLength(this.transactions.length)+this.transactions.reduce((tt,rt)=>tt+rt.byteLength(et),0)}getHash(){return bcrypto.hash256(this.toBuffer(!0))}getId(){return(0,bufferutils_1$1.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const o=new Date(0);return o.setUTCSeconds(this.timestamp),o}toBuffer(o){const et=Buffer.allocUnsafe(this.byteLength(o)),tt=new bufferutils_1$1.BufferWriter(et);return tt.writeInt32(this.version),tt.writeSlice(this.prevHash),tt.writeSlice(this.merkleRoot),tt.writeUInt32(this.timestamp),tt.writeUInt32(this.bits),tt.writeUInt32(this.nonce),o||!this.transactions||(bufferutils_1$1.varuint.encode(this.transactions.length,et,tt.offset),tt.offset+=bufferutils_1$1.varuint.encode.bytes,this.transactions.forEach(rt=>{const nt=rt.byteLength();rt.toBuffer(et,tt.offset),tt.offset+=nt})),et}toHex(o){return this.toBuffer(o).toString("hex")}checkTxRoots(){const o=this.hasWitnessCommit();return!o&&this.hasWitness()?!1:this.__checkMerkleRoot()&&(o?this.__checkWitnessCommit():!0)}checkProofOfWork(){const o=(0,bufferutils_1$1.reverseBuffer)(this.getHash()),et=Block.calculateTarget(this.bits);return o.compare(et)<=0}__checkMerkleRoot(){if(!this.transactions)throw errorMerkleNoTxes;const o=Block.calculateMerkleRoot(this.transactions);return this.merkleRoot.compare(o)===0}__checkWitnessCommit(){if(!this.transactions)throw errorMerkleNoTxes;if(!this.hasWitnessCommit())throw errorWitnessNotSegwit;const o=Block.calculateMerkleRoot(this.transactions,!0);return this.witnessCommit.compare(o)===0}}block.Block=Block;function txesHaveWitnessCommit(a){return a instanceof Array&&a[0]&&a[0].ins&&a[0].ins instanceof Array&&a[0].ins[0]&&a[0].ins[0].witness&&a[0].ins[0].witness instanceof Array&&a[0].ins[0].witness.length>0}function anyTxHasWitness(a){return a instanceof Array&&a.some(o=>typeof o=="object"&&o.ins instanceof Array&&o.ins.some(et=>typeof et=="object"&&et.witness instanceof Array&&et.witness.length>0))}var psbt$1={},psbt={},combiner={},parser$1={},fromBuffer={},converter={},typeFields={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),function(o){o[o.UNSIGNED_TX=0]="UNSIGNED_TX",o[o.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(a.GlobalTypes||(a.GlobalTypes={})),a.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(o){o[o.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",o[o.WITNESS_UTXO=1]="WITNESS_UTXO",o[o.PARTIAL_SIG=2]="PARTIAL_SIG",o[o.SIGHASH_TYPE=3]="SIGHASH_TYPE",o[o.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",o[o.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",o[o.BIP32_DERIVATION=6]="BIP32_DERIVATION",o[o.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",o[o.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",o[o.POR_COMMITMENT=9]="POR_COMMITMENT",o[o.TAP_KEY_SIG=19]="TAP_KEY_SIG",o[o.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",o[o.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",o[o.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",o[o.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",o[o.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(a.InputTypes||(a.InputTypes={})),a.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(o){o[o.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",o[o.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",o[o.BIP32_DERIVATION=2]="BIP32_DERIVATION",o[o.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",o[o.TAP_TREE=6]="TAP_TREE",o[o.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(a.OutputTypes||(a.OutputTypes={})),a.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]})(typeFields);var globalXpub$1={};Object.defineProperty(globalXpub$1,"__esModule",{value:!0});const typeFields_1$g=typeFields,range$2=a=>[...Array(a).keys()];function decode$h(a){if(a.key[0]!==typeFields_1$g.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+a.key.toString("hex"));if(a.key.length!==79||![2,3].includes(a.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+a.key.toString("hex"));if(a.value.length/4%1!==0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const o=a.key.slice(1),et={masterFingerprint:a.value.slice(0,4),extendedPubkey:o,path:"m"};for(const tt of range$2(a.value.length/4-1)){const rt=a.value.readUInt32LE(tt*4+4),nt=!!(rt&2147483648),it=rt&2147483647;et.path+="/"+it.toString(10)+(nt?"'":"")}return et}globalXpub$1.decode=decode$h;function encode$i(a){const o=Buffer.from([typeFields_1$g.GlobalTypes.GLOBAL_XPUB]),et=Buffer.concat([o,a.extendedPubkey]),tt=a.path.split("/"),rt=Buffer.allocUnsafe(tt.length*4);a.masterFingerprint.copy(rt,0);let nt=4;return tt.slice(1).forEach(it=>{const st=it.slice(-1)==="'";let at=2147483647&parseInt(st?it.slice(0,-1):it,10);st&&(at+=2147483648),rt.writeUInt32LE(at,nt),nt+=4}),{key:et,value:rt}}globalXpub$1.encode=encode$i;globalXpub$1.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";function check$c(a){const o=a.extendedPubkey,et=a.masterFingerprint,tt=a.path;return Buffer.isBuffer(o)&&o.length===78&&[2,3].indexOf(o[45])>-1&&Buffer.isBuffer(et)&&et.length===4&&typeof tt=="string"&&!!tt.match(/^m(\/\d+'?)*$/)}globalXpub$1.check=check$c;function canAddToArray$3(a,o,et){const tt=o.extendedPubkey.toString("hex");return et.has(tt)?!1:(et.add(tt),a.filter(rt=>rt.extendedPubkey.equals(o.extendedPubkey)).length===0)}globalXpub$1.canAddToArray=canAddToArray$3;var unsignedTx$1={};Object.defineProperty(unsignedTx$1,"__esModule",{value:!0});const typeFields_1$f=typeFields;function encode$h(a){return{key:Buffer.from([typeFields_1$f.GlobalTypes.UNSIGNED_TX]),value:a.toBuffer()}}unsignedTx$1.encode=encode$h;var finalScriptSig$1={};Object.defineProperty(finalScriptSig$1,"__esModule",{value:!0});const typeFields_1$e=typeFields;function decode$g(a){if(a.key[0]!==typeFields_1$e.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+a.key.toString("hex"));return a.value}finalScriptSig$1.decode=decode$g;function encode$g(a){return{key:Buffer.from([typeFields_1$e.InputTypes.FINAL_SCRIPTSIG]),value:a}}finalScriptSig$1.encode=encode$g;finalScriptSig$1.expected="Buffer";function check$b(a){return Buffer.isBuffer(a)}finalScriptSig$1.check=check$b;function canAdd$8(a,o){return!!a&&!!o&&a.finalScriptSig===void 0}finalScriptSig$1.canAdd=canAdd$8;var finalScriptWitness$1={};Object.defineProperty(finalScriptWitness$1,"__esModule",{value:!0});const typeFields_1$d=typeFields;function decode$f(a){if(a.key[0]!==typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+a.key.toString("hex"));return a.value}finalScriptWitness$1.decode=decode$f;function encode$f(a){return{key:Buffer.from([typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS]),value:a}}finalScriptWitness$1.encode=encode$f;finalScriptWitness$1.expected="Buffer";function check$a(a){return Buffer.isBuffer(a)}finalScriptWitness$1.check=check$a;function canAdd$7(a,o){return!!a&&!!o&&a.finalScriptWitness===void 0}finalScriptWitness$1.canAdd=canAdd$7;var nonWitnessUtxo$1={};Object.defineProperty(nonWitnessUtxo$1,"__esModule",{value:!0});const typeFields_1$c=typeFields;function decode$e(a){if(a.key[0]!==typeFields_1$c.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+a.key.toString("hex"));return a.value}nonWitnessUtxo$1.decode=decode$e;function encode$e(a){return{key:Buffer.from([typeFields_1$c.InputTypes.NON_WITNESS_UTXO]),value:a}}nonWitnessUtxo$1.encode=encode$e;nonWitnessUtxo$1.expected="Buffer";function check$9(a){return Buffer.isBuffer(a)}nonWitnessUtxo$1.check=check$9;function canAdd$6(a,o){return!!a&&!!o&&a.nonWitnessUtxo===void 0}nonWitnessUtxo$1.canAdd=canAdd$6;var partialSig$1={};Object.defineProperty(partialSig$1,"__esModule",{value:!0});const typeFields_1$b=typeFields;function decode$d(a){if(a.key[0]!==typeFields_1$b.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+a.key.toString("hex"));if(!(a.key.length===34||a.key.length===66)||![2,3,4].includes(a.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+a.key.toString("hex"));return{pubkey:a.key.slice(1),signature:a.value}}partialSig$1.decode=decode$d;function encode$d(a){const o=Buffer.from([typeFields_1$b.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([o,a.pubkey]),value:a.signature}}partialSig$1.encode=encode$d;partialSig$1.expected="{ pubkey: Buffer; signature: Buffer; }";function check$8(a){return Buffer.isBuffer(a.pubkey)&&Buffer.isBuffer(a.signature)&&[33,65].includes(a.pubkey.length)&&[2,3,4].includes(a.pubkey[0])&&isDerSigWithSighash(a.signature)}partialSig$1.check=check$8;function isDerSigWithSighash(a){if(!Buffer.isBuffer(a)||a.length<9||a[0]!==48||a.length!==a[1]+3||a[2]!==2)return!1;const o=a[3];if(o>33||o<1||a[3+o+1]!==2)return!1;const et=a[3+o+2];return!(et>33||et<1||a.length!==3+o+2+et+2)}function canAddToArray$2(a,o,et){const tt=o.pubkey.toString("hex");return et.has(tt)?!1:(et.add(tt),a.filter(rt=>rt.pubkey.equals(o.pubkey)).length===0)}partialSig$1.canAddToArray=canAddToArray$2;var porCommitment$1={};Object.defineProperty(porCommitment$1,"__esModule",{value:!0});const typeFields_1$a=typeFields;function decode$c(a){if(a.key[0]!==typeFields_1$a.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+a.key.toString("hex"));return a.value.toString("utf8")}porCommitment$1.decode=decode$c;function encode$c(a){return{key:Buffer.from([typeFields_1$a.InputTypes.POR_COMMITMENT]),value:Buffer.from(a,"utf8")}}porCommitment$1.encode=encode$c;porCommitment$1.expected="string";function check$7(a){return typeof a=="string"}porCommitment$1.check=check$7;function canAdd$5(a,o){return!!a&&!!o&&a.porCommitment===void 0}porCommitment$1.canAdd=canAdd$5;var sighashType$1={};Object.defineProperty(sighashType$1,"__esModule",{value:!0});const typeFields_1$9=typeFields;function decode$b(a){if(a.key[0]!==typeFields_1$9.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+a.key.toString("hex"));return a.value.readUInt32LE(0)}sighashType$1.decode=decode$b;function encode$b(a){const o=Buffer.from([typeFields_1$9.InputTypes.SIGHASH_TYPE]),et=Buffer.allocUnsafe(4);return et.writeUInt32LE(a,0),{key:o,value:et}}sighashType$1.encode=encode$b;sighashType$1.expected="number";function check$6(a){return typeof a=="number"}sighashType$1.check=check$6;function canAdd$4(a,o){return!!a&&!!o&&a.sighashType===void 0}sighashType$1.canAdd=canAdd$4;var tapKeySig$1={};Object.defineProperty(tapKeySig$1,"__esModule",{value:!0});const typeFields_1$8=typeFields;function decode$a(a){if(a.key[0]!==typeFields_1$8.InputTypes.TAP_KEY_SIG||a.key.length!==1)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+a.key.toString("hex"));if(!check$5(a.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return a.value}tapKeySig$1.decode=decode$a;function encode$a(a){return{key:Buffer.from([typeFields_1$8.InputTypes.TAP_KEY_SIG]),value:a}}tapKeySig$1.encode=encode$a;tapKeySig$1.expected="Buffer";function check$5(a){return Buffer.isBuffer(a)&&(a.length===64||a.length===65)}tapKeySig$1.check=check$5;function canAdd$3(a,o){return!!a&&!!o&&a.tapKeySig===void 0}tapKeySig$1.canAdd=canAdd$3;var tapLeafScript$1={};Object.defineProperty(tapLeafScript$1,"__esModule",{value:!0});const typeFields_1$7=typeFields;function decode$9(a){if(a.key[0]!==typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+a.key.toString("hex"));if((a.key.length-2)%32!==0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+a.key.toString("hex"));const o=a.value[a.value.length-1];if((a.key[1]&254)!==o)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+a.key.toString("hex"));const et=a.value.slice(0,-1);return{controlBlock:a.key.slice(1),script:et,leafVersion:o}}tapLeafScript$1.decode=decode$9;function encode$9(a){const o=Buffer.from([typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT]),et=Buffer.from([a.leafVersion]);return{key:Buffer.concat([o,a.controlBlock]),value:Buffer.concat([a.script,et])}}tapLeafScript$1.encode=encode$9;tapLeafScript$1.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";function check$4(a){return Buffer.isBuffer(a.controlBlock)&&(a.controlBlock.length-1)%32===0&&(a.controlBlock[0]&254)===a.leafVersion&&Buffer.isBuffer(a.script)}tapLeafScript$1.check=check$4;function canAddToArray$1(a,o,et){const tt=o.controlBlock.toString("hex");return et.has(tt)?!1:(et.add(tt),a.filter(rt=>rt.controlBlock.equals(o.controlBlock)).length===0)}tapLeafScript$1.canAddToArray=canAddToArray$1;var tapMerkleRoot$1={};Object.defineProperty(tapMerkleRoot$1,"__esModule",{value:!0});const typeFields_1$6=typeFields;function decode$8(a){if(a.key[0]!==typeFields_1$6.InputTypes.TAP_MERKLE_ROOT||a.key.length!==1)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+a.key.toString("hex"));if(!check$3(a.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return a.value}tapMerkleRoot$1.decode=decode$8;function encode$8(a){return{key:Buffer.from([typeFields_1$6.InputTypes.TAP_MERKLE_ROOT]),value:a}}tapMerkleRoot$1.encode=encode$8;tapMerkleRoot$1.expected="Buffer";function check$3(a){return Buffer.isBuffer(a)&&a.length===32}tapMerkleRoot$1.check=check$3;function canAdd$2(a,o){return!!a&&!!o&&a.tapMerkleRoot===void 0}tapMerkleRoot$1.canAdd=canAdd$2;var tapScriptSig$1={};Object.defineProperty(tapScriptSig$1,"__esModule",{value:!0});const typeFields_1$5=typeFields;function decode$7(a){if(a.key[0]!==typeFields_1$5.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+a.key.toString("hex"));if(a.key.length!==65)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+a.key.toString("hex"));if(a.value.length!==64&&a.value.length!==65)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+a.key.toString("hex"));const o=a.key.slice(1,33),et=a.key.slice(33);return{pubkey:o,leafHash:et,signature:a.value}}tapScriptSig$1.decode=decode$7;function encode$7(a){const o=Buffer.from([typeFields_1$5.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([o,a.pubkey,a.leafHash]),value:a.signature}}tapScriptSig$1.encode=encode$7;tapScriptSig$1.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";function check$2(a){return Buffer.isBuffer(a.pubkey)&&Buffer.isBuffer(a.leafHash)&&Buffer.isBuffer(a.signature)&&a.pubkey.length===32&&a.leafHash.length===32&&(a.signature.length===64||a.signature.length===65)}tapScriptSig$1.check=check$2;function canAddToArray(a,o,et){const tt=o.pubkey.toString("hex")+o.leafHash.toString("hex");return et.has(tt)?!1:(et.add(tt),a.filter(rt=>rt.pubkey.equals(o.pubkey)&&rt.leafHash.equals(o.leafHash)).length===0)}tapScriptSig$1.canAddToArray=canAddToArray;var witnessUtxo$1={},tools={},varint={};Object.defineProperty(varint,"__esModule",{value:!0});const MAX_SAFE_INTEGER$2=9007199254740991;function checkUInt53(a){if(a<0||a>MAX_SAFE_INTEGER$2||a%1!==0)throw new RangeError("value out of range")}function encode$6(a,o,et){if(checkUInt53(a),o||(o=Buffer.allocUnsafe(encodingLength(a))),!Buffer.isBuffer(o))throw new TypeError("buffer must be a Buffer instance");return et||(et=0),a<253?(o.writeUInt8(a,et),Object.assign(encode$6,{bytes:1})):a<=65535?(o.writeUInt8(253,et),o.writeUInt16LE(a,et+1),Object.assign(encode$6,{bytes:3})):a<=4294967295?(o.writeUInt8(254,et),o.writeUInt32LE(a,et+1),Object.assign(encode$6,{bytes:5})):(o.writeUInt8(255,et),o.writeUInt32LE(a>>>0,et+1),o.writeUInt32LE(a/4294967296|0,et+5),Object.assign(encode$6,{bytes:9})),o}varint.encode=encode$6;function decode$6(a,o){if(!Buffer.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");o||(o=0);const et=a.readUInt8(o);if(et<253)return Object.assign(decode$6,{bytes:1}),et;if(et===253)return Object.assign(decode$6,{bytes:3}),a.readUInt16LE(o+1);if(et===254)return Object.assign(decode$6,{bytes:5}),a.readUInt32LE(o+1);{Object.assign(decode$6,{bytes:9});const tt=a.readUInt32LE(o+1),nt=a.readUInt32LE(o+5)*4294967296+tt;return checkUInt53(nt),nt}}varint.decode=decode$6;function encodingLength(a){return checkUInt53(a),a<253?1:a<=65535?3:a<=4294967295?5:9}varint.encodingLength=encodingLength;Object.defineProperty(tools,"__esModule",{value:!0});const varuint$6=varint;tools.range=a=>[...Array(a).keys()];function reverseBuffer(a){if(a.length<1)return a;let o=a.length-1,et=0;for(let tt=0;tto)throw new Error("RangeError: value out of range");if(Math.floor(a)!==a)throw new Error("value has a fractional component")}function readUInt64LE(a,o){const et=a.readUInt32LE(o);let tt=a.readUInt32LE(o+4);return tt*=4294967296,verifuint(tt+et,9007199254740991),tt+et}tools.readUInt64LE=readUInt64LE;function writeUInt64LE(a,o,et){return verifuint(o,9007199254740991),a.writeInt32LE(o&-1,et),a.writeUInt32LE(Math.floor(o/4294967296),et+4),et+8}tools.writeUInt64LE=writeUInt64LE;Object.defineProperty(witnessUtxo$1,"__esModule",{value:!0});const typeFields_1$4=typeFields,tools_1$2=tools,varuint$5=varint;function decode$5(a){if(a.key[0]!==typeFields_1$4.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+a.key.toString("hex"));const o=tools_1$2.readUInt64LE(a.value,0);let et=8;const tt=varuint$5.decode(a.value,et);et+=varuint$5.encodingLength(tt);const rt=a.value.slice(et);if(rt.length!==tt)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:rt,value:o}}witnessUtxo$1.decode=decode$5;function encode$5(a){const{script:o,value:et}=a,tt=varuint$5.encodingLength(o.length),rt=Buffer.allocUnsafe(8+tt+o.length);return tools_1$2.writeUInt64LE(rt,et,0),varuint$5.encode(o.length,rt,8),o.copy(rt,8+tt),{key:Buffer.from([typeFields_1$4.InputTypes.WITNESS_UTXO]),value:rt}}witnessUtxo$1.encode=encode$5;witnessUtxo$1.expected="{ script: Buffer; value: number; }";function check$1(a){return Buffer.isBuffer(a.script)&&typeof a.value=="number"}witnessUtxo$1.check=check$1;function canAdd$1(a,o){return!!a&&!!o&&a.witnessUtxo===void 0}witnessUtxo$1.canAdd=canAdd$1;var tapTree$1={};Object.defineProperty(tapTree$1,"__esModule",{value:!0});const typeFields_1$3=typeFields,varuint$4=varint;function decode$4(a){if(a.key[0]!==typeFields_1$3.OutputTypes.TAP_TREE||a.key.length!==1)throw new Error("Decode Error: could not decode tapTree with key 0x"+a.key.toString("hex"));let o=0;const et=[];for(;o[Buffer.of(tt.depth,tt.leafVersion),varuint$4.encode(tt.script.length),tt.script]));return{key:o,value:Buffer.concat(et)}}tapTree$1.encode=encode$4;tapTree$1.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";function check(a){return Array.isArray(a.leaves)&&a.leaves.every(o=>o.depth>=0&&o.depth<=128&&(o.leafVersion&254)===o.leafVersion&&Buffer.isBuffer(o.script))}tapTree$1.check=check;function canAdd(a,o){return!!a&&!!o&&a.tapTree===void 0}tapTree$1.canAdd=canAdd;var bip32Derivation$2={};Object.defineProperty(bip32Derivation$2,"__esModule",{value:!0});const range$1=a=>[...Array(a).keys()],isValidDERKey=a=>a.length===33&&[2,3].includes(a[0])||a.length===65&&a[0]===4;function makeConverter$4(a,o=isValidDERKey){function et(st){if(st.key[0]!==a)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+st.key.toString("hex"));const at=st.key.slice(1);if(!o(at))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+st.key.toString("hex"));if(st.value.length/4%1!==0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const lt={masterFingerprint:st.value.slice(0,4),pubkey:at,path:"m"};for(const ht of range$1(st.value.length/4-1)){const vt=st.value.readUInt32LE(ht*4+4),gt=!!(vt&2147483648),wt=vt&2147483647;lt.path+="/"+wt.toString(10)+(gt?"'":"")}return lt}function tt(st){const at=Buffer.from([a]),lt=Buffer.concat([at,st.pubkey]),ht=st.path.split("/"),vt=Buffer.allocUnsafe(ht.length*4);st.masterFingerprint.copy(vt,0);let gt=4;return ht.slice(1).forEach(wt=>{const ut=wt.slice(-1)==="'";let pt=2147483647&parseInt(ut?wt.slice(0,-1):wt,10);ut&&(pt+=2147483648),vt.writeUInt32LE(pt,gt),gt+=4}),{key:lt,value:vt}}const rt="{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }";function nt(st){return Buffer.isBuffer(st.pubkey)&&Buffer.isBuffer(st.masterFingerprint)&&typeof st.path=="string"&&o(st.pubkey)&&st.masterFingerprint.length===4}function it(st,at,lt){const ht=at.pubkey.toString("hex");return lt.has(ht)?!1:(lt.add(ht),st.filter(vt=>vt.pubkey.equals(at.pubkey)).length===0)}return{decode:et,encode:tt,check:nt,expected:rt,canAddToArray:it}}bip32Derivation$2.makeConverter=makeConverter$4;var checkPubkey$1={};Object.defineProperty(checkPubkey$1,"__esModule",{value:!0});function makeChecker(a){return o;function o(et){let tt;if(a.includes(et.key[0])&&(tt=et.key.slice(1),!(tt.length===33||tt.length===65)||![2,3,4].includes(tt[0])))throw new Error("Format Error: invalid pubkey in key 0x"+et.key.toString("hex"));return tt}}checkPubkey$1.makeChecker=makeChecker;var redeemScript$1={};Object.defineProperty(redeemScript$1,"__esModule",{value:!0});function makeConverter$3(a){function o(it){if(it.key[0]!==a)throw new Error("Decode Error: could not decode redeemScript with key 0x"+it.key.toString("hex"));return it.value}function et(it){return{key:Buffer.from([a]),value:it}}const tt="Buffer";function rt(it){return Buffer.isBuffer(it)}function nt(it,st){return!!it&&!!st&&it.redeemScript===void 0}return{decode:o,encode:et,check:rt,expected:tt,canAdd:nt}}redeemScript$1.makeConverter=makeConverter$3;var tapBip32Derivation$1={};Object.defineProperty(tapBip32Derivation$1,"__esModule",{value:!0});const varuint$3=varint,bip32Derivation$1=bip32Derivation$2,isValidBIP340Key=a=>a.length===32;function makeConverter$2(a){const o=bip32Derivation$1.makeConverter(a,isValidBIP340Key);function et(it){const st=varuint$3.decode(it.value),at=varuint$3.encodingLength(st),lt=o.decode({key:it.key,value:it.value.slice(at+st*32)}),ht=new Array(st);for(let vt=0,gt=at;vtBuffer.isBuffer(st)&&st.length===32)&&o.check(it)}return{decode:et,encode:tt,check:nt,expected:rt,canAddToArray:o.canAddToArray}}tapBip32Derivation$1.makeConverter=makeConverter$2;var tapInternalKey$1={};Object.defineProperty(tapInternalKey$1,"__esModule",{value:!0});function makeConverter$1(a){function o(it){if(it.key[0]!==a||it.key.length!==1)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+it.key.toString("hex"));if(it.value.length!==32)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return it.value}function et(it){return{key:Buffer.from([a]),value:it}}const tt="Buffer";function rt(it){return Buffer.isBuffer(it)&&it.length===32}function nt(it,st){return!!it&&!!st&&it.tapInternalKey===void 0}return{decode:o,encode:et,check:rt,expected:tt,canAdd:nt}}tapInternalKey$1.makeConverter=makeConverter$1;var witnessScript$1={};Object.defineProperty(witnessScript$1,"__esModule",{value:!0});function makeConverter(a){function o(it){if(it.key[0]!==a)throw new Error("Decode Error: could not decode witnessScript with key 0x"+it.key.toString("hex"));return it.value}function et(it){return{key:Buffer.from([a]),value:it}}const tt="Buffer";function rt(it){return Buffer.isBuffer(it)}function nt(it,st){return!!it&&!!st&&it.witnessScript===void 0}return{decode:o,encode:et,check:rt,expected:tt,canAdd:nt}}witnessScript$1.makeConverter=makeConverter;Object.defineProperty(converter,"__esModule",{value:!0});const typeFields_1$2=typeFields,globalXpub=globalXpub$1,unsignedTx=unsignedTx$1,finalScriptSig=finalScriptSig$1,finalScriptWitness=finalScriptWitness$1,nonWitnessUtxo=nonWitnessUtxo$1,partialSig=partialSig$1,porCommitment=porCommitment$1,sighashType=sighashType$1,tapKeySig=tapKeySig$1,tapLeafScript=tapLeafScript$1,tapMerkleRoot=tapMerkleRoot$1,tapScriptSig=tapScriptSig$1,witnessUtxo=witnessUtxo$1,tapTree=tapTree$1,bip32Derivation=bip32Derivation$2,checkPubkey=checkPubkey$1,redeemScript=redeemScript$1,tapBip32Derivation=tapBip32Derivation$1,tapInternalKey=tapInternalKey$1,witnessScript=witnessScript$1,globals={unsignedTx,globalXpub,checkPubkey:checkPubkey.makeChecker([])};converter.globals=globals;const inputs={nonWitnessUtxo,partialSig,sighashType,finalScriptSig,finalScriptWitness,porCommitment,witnessUtxo,bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.InputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.InputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.InputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.InputTypes.PARTIAL_SIG,typeFields_1$2.InputTypes.BIP32_DERIVATION]),tapKeySig,tapScriptSig,tapLeafScript,tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot};converter.inputs=inputs;const outputs={bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.OutputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.OutputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.OutputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.OutputTypes.TAP_BIP32_DERIVATION),tapTree,tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.OutputTypes.TAP_INTERNAL_KEY)};converter.outputs=outputs;Object.defineProperty(fromBuffer,"__esModule",{value:!0});const convert$2=converter,tools_1$1=tools,varuint$2=varint,typeFields_1$1=typeFields;function psbtFromBuffer(a,o){let et=0;function tt(){const Et=varuint$2.decode(a,et);et+=varuint$2.encodingLength(Et);const yt=a.slice(et,et+Et);return et+=Et,yt}function rt(){const Et=a.readUInt32BE(et);return et+=4,Et}function nt(){const Et=a.readUInt8(et);return et+=1,Et}function it(){const Et=tt(),yt=tt();return{key:Et,value:yt}}function st(){if(et>=a.length)throw new Error("Format Error: Unexpected End of PSBT");const Et=a.readUInt8(et)===0;return Et&&et++,Et}if(rt()!==1886610036)throw new Error("Format Error: Invalid Magic Number");if(nt()!==255)throw new Error("Format Error: Magic Number must be followed by 0xff separator");const at=[],lt={};for(;!st();){const Et=it(),yt=Et.key.toString("hex");if(lt[yt])throw new Error("Format Error: Keys must be unique for global keymap: key "+yt);lt[yt]=1,at.push(Et)}const ht=at.filter(Et=>Et.key[0]===typeFields_1$1.GlobalTypes.UNSIGNED_TX);if(ht.length!==1)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const vt=o(ht[0].value),{inputCount:gt,outputCount:wt}=vt.getInputOutputCounts(),ut=[],pt=[];for(const Et of tools_1$1.range(gt)){const yt={},bt=[];for(;!st();){const kt=it(),It=kt.key.toString("hex");if(yt[It])throw new Error("Format Error: Keys must be unique for each input: input index "+Et+" key "+It);yt[It]=1,bt.push(kt)}ut.push(bt)}for(const Et of tools_1$1.range(wt)){const yt={},bt=[];for(;!st();){const kt=it(),It=kt.key.toString("hex");if(yt[It])throw new Error("Format Error: Keys must be unique for each output: output index "+Et+" key "+It);yt[It]=1,bt.push(kt)}pt.push(bt)}return psbtFromKeyVals(vt,{globalMapKeyVals:at,inputKeyVals:ut,outputKeyVals:pt})}fromBuffer.psbtFromBuffer=psbtFromBuffer;function checkKeyBuffer(a,o,et){if(!o.equals(Buffer.from([et])))throw new Error(`Format Error: Invalid ${a} key: ${o.toString("hex")}`)}fromBuffer.checkKeyBuffer=checkKeyBuffer;function psbtFromKeyVals(a,{globalMapKeyVals:o,inputKeyVals:et,outputKeyVals:tt}){const rt={unsignedTx:a};let nt=0;for(const ht of o)switch(ht.key[0]){case typeFields_1$1.GlobalTypes.UNSIGNED_TX:if(checkKeyBuffer("global",ht.key,typeFields_1$1.GlobalTypes.UNSIGNED_TX),nt>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");nt++;break;case typeFields_1$1.GlobalTypes.GLOBAL_XPUB:rt.globalXpub===void 0&&(rt.globalXpub=[]),rt.globalXpub.push(convert$2.globals.globalXpub.decode(ht));break;default:rt.unknownKeyVals||(rt.unknownKeyVals=[]),rt.unknownKeyVals.push(ht)}const it=et.length,st=tt.length,at=[],lt=[];for(const ht of tools_1$1.range(it)){const vt={};for(const gt of et[ht])switch(convert$2.inputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.InputTypes.NON_WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.NON_WITNESS_UTXO),vt.nonWitnessUtxo!==void 0)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");vt.nonWitnessUtxo=convert$2.inputs.nonWitnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_UTXO),vt.witnessUtxo!==void 0)throw new Error("Format Error: Input has multiple WITNESS_UTXO");vt.witnessUtxo=convert$2.inputs.witnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.PARTIAL_SIG:vt.partialSig===void 0&&(vt.partialSig=[]),vt.partialSig.push(convert$2.inputs.partialSig.decode(gt));break;case typeFields_1$1.InputTypes.SIGHASH_TYPE:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.SIGHASH_TYPE),vt.sighashType!==void 0)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");vt.sighashType=convert$2.inputs.sighashType.decode(gt);break;case typeFields_1$1.InputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.REDEEM_SCRIPT),vt.redeemScript!==void 0)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");vt.redeemScript=convert$2.inputs.redeemScript.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_SCRIPT),vt.witnessScript!==void 0)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");vt.witnessScript=convert$2.inputs.witnessScript.decode(gt);break;case typeFields_1$1.InputTypes.BIP32_DERIVATION:vt.bip32Derivation===void 0&&(vt.bip32Derivation=[]),vt.bip32Derivation.push(convert$2.inputs.bip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.FINAL_SCRIPTSIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTSIG),vt.finalScriptSig=convert$2.inputs.finalScriptSig.decode(gt);break;case typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS),vt.finalScriptWitness=convert$2.inputs.finalScriptWitness.decode(gt);break;case typeFields_1$1.InputTypes.POR_COMMITMENT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.POR_COMMITMENT),vt.porCommitment=convert$2.inputs.porCommitment.decode(gt);break;case typeFields_1$1.InputTypes.TAP_KEY_SIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_KEY_SIG),vt.tapKeySig=convert$2.inputs.tapKeySig.decode(gt);break;case typeFields_1$1.InputTypes.TAP_SCRIPT_SIG:vt.tapScriptSig===void 0&&(vt.tapScriptSig=[]),vt.tapScriptSig.push(convert$2.inputs.tapScriptSig.decode(gt));break;case typeFields_1$1.InputTypes.TAP_LEAF_SCRIPT:vt.tapLeafScript===void 0&&(vt.tapLeafScript=[]),vt.tapLeafScript.push(convert$2.inputs.tapLeafScript.decode(gt));break;case typeFields_1$1.InputTypes.TAP_BIP32_DERIVATION:vt.tapBip32Derivation===void 0&&(vt.tapBip32Derivation=[]),vt.tapBip32Derivation.push(convert$2.inputs.tapBip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_INTERNAL_KEY),vt.tapInternalKey=convert$2.inputs.tapInternalKey.decode(gt);break;case typeFields_1$1.InputTypes.TAP_MERKLE_ROOT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_MERKLE_ROOT),vt.tapMerkleRoot=convert$2.inputs.tapMerkleRoot.decode(gt);break;default:vt.unknownKeyVals||(vt.unknownKeyVals=[]),vt.unknownKeyVals.push(gt)}at.push(vt)}for(const ht of tools_1$1.range(st)){const vt={};for(const gt of tt[ht])switch(convert$2.outputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.OutputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.REDEEM_SCRIPT),vt.redeemScript!==void 0)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");vt.redeemScript=convert$2.outputs.redeemScript.decode(gt);break;case typeFields_1$1.OutputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.WITNESS_SCRIPT),vt.witnessScript!==void 0)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");vt.witnessScript=convert$2.outputs.witnessScript.decode(gt);break;case typeFields_1$1.OutputTypes.BIP32_DERIVATION:vt.bip32Derivation===void 0&&(vt.bip32Derivation=[]),vt.bip32Derivation.push(convert$2.outputs.bip32Derivation.decode(gt));break;case typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY),vt.tapInternalKey=convert$2.outputs.tapInternalKey.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_TREE:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_TREE),vt.tapTree=convert$2.outputs.tapTree.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_BIP32_DERIVATION:vt.tapBip32Derivation===void 0&&(vt.tapBip32Derivation=[]),vt.tapBip32Derivation.push(convert$2.outputs.tapBip32Derivation.decode(gt));break;default:vt.unknownKeyVals||(vt.unknownKeyVals=[]),vt.unknownKeyVals.push(gt)}lt.push(vt)}return{globalMap:rt,inputs:at,outputs:lt}}fromBuffer.psbtFromKeyVals=psbtFromKeyVals;var toBuffer={};Object.defineProperty(toBuffer,"__esModule",{value:!0});const convert$1=converter,tools_1=tools;function psbtToBuffer({globalMap:a,inputs:o,outputs:et}){const{globalKeyVals:tt,inputKeyVals:rt,outputKeyVals:nt}=psbtToKeyVals({globalMap:a,inputs:o,outputs:et}),it=tools_1.keyValsToBuffer(tt),st=vt=>vt.length===0?[Buffer.from([0])]:vt.map(tools_1.keyValsToBuffer),at=st(rt),lt=st(nt),ht=Buffer.allocUnsafe(5);return ht.writeUIntBE(482972169471,0,5),Buffer.concat([ht,it].concat(at,lt))}toBuffer.psbtToBuffer=psbtToBuffer;const sortKeyVals=(a,o)=>a.key.compare(o.key);function keyValsFromMap(a,o){const et=new Set,tt=Object.entries(a).reduce((nt,[it,st])=>{if(it==="unknownKeyVals")return nt;const at=o[it];if(at===void 0)return nt;const lt=(Array.isArray(st)?st:[st]).map(at.encode);return lt.map(vt=>vt.key.toString("hex")).forEach(vt=>{if(et.has(vt))throw new Error("Serialize Error: Duplicate key: "+vt);et.add(vt)}),nt.concat(lt)},[]),rt=a.unknownKeyVals?a.unknownKeyVals.filter(nt=>!et.has(nt.key.toString("hex"))):[];return tt.concat(rt).sort(sortKeyVals)}function psbtToKeyVals({globalMap:a,inputs:o,outputs:et}){return{globalKeyVals:keyValsFromMap(a,convert$1.globals),inputKeyVals:o.map(tt=>keyValsFromMap(tt,convert$1.inputs)),outputKeyVals:et.map(tt=>keyValsFromMap(tt,convert$1.outputs))}}toBuffer.psbtToKeyVals=psbtToKeyVals;(function(a){function o(et){for(var tt in et)a.hasOwnProperty(tt)||(a[tt]=et[tt])}Object.defineProperty(a,"__esModule",{value:!0}),o(fromBuffer),o(toBuffer)})(parser$1);Object.defineProperty(combiner,"__esModule",{value:!0});const parser_1$1=parser$1;function combine$1(a){const o=a[0],et=parser_1$1.psbtToKeyVals(o),tt=a.slice(1);if(tt.length===0)throw new Error("Combine: Nothing to combine");const rt=getTx(o);if(rt===void 0)throw new Error("Combine: Self missing transaction");const nt=getKeySet(et.globalKeyVals),it=et.inputKeyVals.map(getKeySet),st=et.outputKeyVals.map(getKeySet);for(const at of tt){const lt=getTx(at);if(lt===void 0||!lt.toBuffer().equals(rt.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const ht=parser_1$1.psbtToKeyVals(at);getKeySet(ht.globalKeyVals).forEach(keyPusher(nt,et.globalKeyVals,ht.globalKeyVals)),ht.inputKeyVals.map(getKeySet).forEach((ut,pt)=>ut.forEach(keyPusher(it[pt],et.inputKeyVals[pt],ht.inputKeyVals[pt]))),ht.outputKeyVals.map(getKeySet).forEach((ut,pt)=>ut.forEach(keyPusher(st[pt],et.outputKeyVals[pt],ht.outputKeyVals[pt])))}return parser_1$1.psbtFromKeyVals(rt,{globalMapKeyVals:et.globalKeyVals,inputKeyVals:et.inputKeyVals,outputKeyVals:et.outputKeyVals})}combiner.combine=combine$1;function keyPusher(a,o,et){return tt=>{if(a.has(tt))return;const rt=et.filter(nt=>nt.key.toString("hex")===tt)[0];o.push(rt),a.add(tt)}}function getTx(a){return a.globalMap.unsignedTx}function getKeySet(a){const o=new Set;return a.forEach(et=>{const tt=et.key.toString("hex");if(o.has(tt))throw new Error("Combine: KeyValue Map keys should be unique");o.add(tt)}),o}var utils={};(function(a){Object.defineProperty(a,"__esModule",{value:!0});const o=converter;function et(wt,ut){const pt=wt[ut];if(pt===void 0)throw new Error(`No input #${ut}`);return pt}a.checkForInput=et;function tt(wt,ut){const pt=wt[ut];if(pt===void 0)throw new Error(`No output #${ut}`);return pt}a.checkForOutput=tt;function rt(wt,ut,pt){if(wt.key[0]Et.key.equals(wt.key)).length!==0)throw new Error(`Duplicate Key: ${wt.key.toString("hex")}`)}a.checkHasKey=rt;function nt(wt){let ut=0;return Object.keys(wt).forEach(pt=>{Number(isNaN(Number(pt)))&&ut++}),ut}a.getEnumLength=nt;function it(wt,ut){let pt=!1;if(ut.nonWitnessUtxo||ut.witnessUtxo){const Et=!!ut.redeemScript,yt=!!ut.witnessScript,bt=!Et||!!ut.finalScriptSig,kt=!yt||!!ut.finalScriptWitness,It=!!ut.finalScriptSig||!!ut.finalScriptWitness;pt=bt&&kt&&It}if(pt===!1)throw new Error(`Input #${wt} has too much or too little data to clean`)}a.inputCheckUncleanFinalized=it;function st(wt,ut,pt,Et){throw new Error(`Data for ${wt} key ${ut} is incorrect: Expected ${pt} and got ${JSON.stringify(Et)}`)}function at(wt){return(ut,pt)=>{for(const Et of Object.keys(ut)){const yt=ut[Et],{canAdd:bt,canAddToArray:kt,check:It,expected:Ot}=o[wt+"s"][Et]||{},Nt=!!kt;if(It)if(Nt){if(!Array.isArray(yt)||pt[Et]&&!Array.isArray(pt[Et]))throw new Error(`Key type ${Et} must be an array`);yt.every(It)||st(wt,Et,Ot,yt);const Vt=pt[Et]||[],jt=new Set;if(!yt.every(zt=>kt(Vt,zt,jt)))throw new Error("Can not add duplicate data to array");pt[Et]=Vt.concat(yt)}else{if(It(yt)||st(wt,Et,Ot,yt),!bt(pt,yt))throw new Error(`Can not add duplicate data to ${wt}`);pt[Et]=yt}}}}a.updateGlobal=at("global"),a.updateInput=at("input"),a.updateOutput=at("output");function lt(wt,ut){const pt=wt.length-1,Et=et(wt,pt);a.updateInput(ut,Et)}a.addInputAttributes=lt;function ht(wt,ut){const pt=wt.length-1,Et=tt(wt,pt);a.updateOutput(ut,Et)}a.addOutputAttributes=ht;function vt(wt,ut){if(!Buffer.isBuffer(ut)||ut.length<4)throw new Error("Set Version: Invalid Transaction");return ut.writeUInt32LE(wt,0),ut}a.defaultVersionSetter=vt;function gt(wt,ut){if(!Buffer.isBuffer(ut)||ut.length<4)throw new Error("Set Locktime: Invalid Transaction");return ut.writeUInt32LE(wt,ut.length-4),ut}a.defaultLocktimeSetter=gt})(utils);Object.defineProperty(psbt,"__esModule",{value:!0});const combiner_1=combiner,parser_1=parser$1,typeFields_1=typeFields,utils_1$1=utils;let Psbt$1=class{constructor(o){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:o}}static fromBase64(o,et){const tt=Buffer.from(o,"base64");return this.fromBuffer(tt,et)}static fromHex(o,et){const tt=Buffer.from(o,"hex");return this.fromBuffer(tt,et)}static fromBuffer(o,et){const tt=parser_1.psbtFromBuffer(o,et),rt=new this(tt.globalMap.unsignedTx);return Object.assign(rt,tt),rt}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return parser_1.psbtToBuffer(this)}updateGlobal(o){return utils_1$1.updateGlobal(o,this.globalMap),this}updateInput(o,et){const tt=utils_1$1.checkForInput(this.inputs,o);return utils_1$1.updateInput(et,tt),this}updateOutput(o,et){const tt=utils_1$1.checkForOutput(this.outputs,o);return utils_1$1.updateOutput(et,tt),this}addUnknownKeyValToGlobal(o){return utils_1$1.checkHasKey(o,this.globalMap.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(o),this}addUnknownKeyValToInput(o,et){const tt=utils_1$1.checkForInput(this.inputs,o);return utils_1$1.checkHasKey(et,tt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.InputTypes)),tt.unknownKeyVals||(tt.unknownKeyVals=[]),tt.unknownKeyVals.push(et),this}addUnknownKeyValToOutput(o,et){const tt=utils_1$1.checkForOutput(this.outputs,o);return utils_1$1.checkHasKey(et,tt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.OutputTypes)),tt.unknownKeyVals||(tt.unknownKeyVals=[]),tt.unknownKeyVals.push(et),this}addInput(o){this.globalMap.unsignedTx.addInput(o),this.inputs.push({unknownKeyVals:[]});const et=o.unknownKeyVals||[],tt=this.inputs.length-1;if(!Array.isArray(et))throw new Error("unknownKeyVals must be an Array");return et.forEach(rt=>this.addUnknownKeyValToInput(tt,rt)),utils_1$1.addInputAttributes(this.inputs,o),this}addOutput(o){this.globalMap.unsignedTx.addOutput(o),this.outputs.push({unknownKeyVals:[]});const et=o.unknownKeyVals||[],tt=this.outputs.length-1;if(!Array.isArray(et))throw new Error("unknownKeyVals must be an Array");return et.forEach(rt=>this.addUnknownKeyValToOutput(tt,rt)),utils_1$1.addOutputAttributes(this.outputs,o),this}clearFinalizedInput(o){const et=utils_1$1.checkForInput(this.inputs,o);utils_1$1.inputCheckUncleanFinalized(o,et);for(const tt of Object.keys(et))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(tt)||delete et[tt];return this}combine(...o){const et=combiner_1.combine([this].concat(o));return Object.assign(this,et),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}};psbt.Psbt=Psbt$1;var bip371={},psbtutils={};Object.defineProperty(psbtutils,"__esModule",{value:!0});psbtutils.signatureBlocksAction=psbtutils.checkInputForSig=psbtutils.pubkeyInScript=psbtutils.pubkeyPositionInScript=psbtutils.witnessStackToScriptWitness=psbtutils.isP2TR=psbtutils.isP2SHScript=psbtutils.isP2WSHScript=psbtutils.isP2WPKH=psbtutils.isP2PKH=psbtutils.isP2PK=psbtutils.isP2MS=void 0;const varuint$1=varint,bscript$1=script,transaction_1$2=transaction,crypto_1=crypto$2,payments$1=payments$3;function isPaymentFactory(a){return o=>{try{return a({output:o}),!0}catch{return!1}}}psbtutils.isP2MS=isPaymentFactory(payments$1.p2ms);psbtutils.isP2PK=isPaymentFactory(payments$1.p2pk);psbtutils.isP2PKH=isPaymentFactory(payments$1.p2pkh);psbtutils.isP2WPKH=isPaymentFactory(payments$1.p2wpkh);psbtutils.isP2WSHScript=isPaymentFactory(payments$1.p2wsh);psbtutils.isP2SHScript=isPaymentFactory(payments$1.p2sh);psbtutils.isP2TR=isPaymentFactory(payments$1.p2tr);function witnessStackToScriptWitness(a){let o=Buffer.allocUnsafe(0);function et(it){o=Buffer.concat([o,Buffer.from(it)])}function tt(it){const st=o.length,at=varuint$1.encodingLength(it);o=Buffer.concat([o,Buffer.allocUnsafe(at)]),varuint$1.encode(it,o,st)}function rt(it){tt(it.length),et(it)}function nt(it){tt(it.length),it.forEach(rt)}return nt(a),o}psbtutils.witnessStackToScriptWitness=witnessStackToScriptWitness;function pubkeyPositionInScript(a,o){const et=(0,crypto_1.hash160)(a),tt=a.slice(1,33),rt=bscript$1.decompile(o);if(rt===null)throw new Error("Unknown script error");return rt.findIndex(nt=>typeof nt=="number"?!1:nt.equals(a)||nt.equals(et)||nt.equals(tt))}psbtutils.pubkeyPositionInScript=pubkeyPositionInScript;function pubkeyInScript(a,o){return pubkeyPositionInScript(a,o)!==-1}psbtutils.pubkeyInScript=pubkeyInScript;function checkInputForSig(a,o){return extractPartialSigs(a).some(tt=>signatureBlocksAction(tt,bscript$1.signature.decode,o))}psbtutils.checkInputForSig=checkInputForSig;function signatureBlocksAction(a,o,et){const{hashType:tt}=o(a),rt=[];switch(tt&transaction_1$2.Transaction.SIGHASH_ANYONECANPAY&&rt.push("addInput"),tt&31){case transaction_1$2.Transaction.SIGHASH_ALL:break;case transaction_1$2.Transaction.SIGHASH_SINGLE:case transaction_1$2.Transaction.SIGHASH_NONE:rt.push("addOutput"),rt.push("setInputSequence");break}return rt.indexOf(et)===-1}psbtutils.signatureBlocksAction=signatureBlocksAction;function extractPartialSigs(a){let o=[];if((a.partialSig||[]).length===0){if(!a.finalScriptSig&&!a.finalScriptWitness)return[];o=getPsigsFromInputFinalScripts(a)}else o=a.partialSig;return o.map(et=>et.signature)}function getPsigsFromInputFinalScripts(a){const o=a.finalScriptSig?bscript$1.decompile(a.finalScriptSig)||[]:[],et=a.finalScriptWitness?bscript$1.decompile(a.finalScriptWitness)||[]:[];return o.concat(et).filter(tt=>Buffer.isBuffer(tt)&&bscript$1.isCanonicalScriptSignature(tt)).map(tt=>({signature:tt}))}Object.defineProperty(bip371,"__esModule",{value:!0});bip371.checkTaprootInputForSigs=bip371.tapTreeFromList=bip371.tapTreeToList=bip371.tweakInternalPubKey=bip371.checkTaprootOutputFields=bip371.checkTaprootInputFields=bip371.isTaprootOutput=bip371.isTaprootInput=bip371.serializeTaprootSignature=bip371.tapScriptFinalizer=bip371.toXOnly=void 0;const types_1=types$6,transaction_1$1=transaction,psbtutils_1$1=psbtutils,bip341_1$1=bip341,payments_1=payments$3,psbtutils_2=psbtutils,toXOnly=a=>a.length===32?a:a.slice(1,33);bip371.toXOnly=toXOnly;function tapScriptFinalizer(a,o,et){const tt=findTapLeafToFinalize(o,a,et);try{const nt=sortSignatures(o,tt).concat(tt.script).concat(tt.controlBlock);return{finalScriptWitness:(0,psbtutils_1$1.witnessStackToScriptWitness)(nt)}}catch(rt){throw new Error(`Can not finalize taproot input #${a}: ${rt}`)}}bip371.tapScriptFinalizer=tapScriptFinalizer;function serializeTaprootSignature(a,o){const et=o?Buffer.from([o]):Buffer.from([]);return Buffer.concat([a,et])}bip371.serializeTaprootSignature=serializeTaprootSignature;function isTaprootInput(a){return a&&!!(a.tapInternalKey||a.tapMerkleRoot||a.tapLeafScript&&a.tapLeafScript.length||a.tapBip32Derivation&&a.tapBip32Derivation.length||a.witnessUtxo&&(0,psbtutils_1$1.isP2TR)(a.witnessUtxo.script))}bip371.isTaprootInput=isTaprootInput;function isTaprootOutput(a,o){return a&&!!(a.tapInternalKey||a.tapTree||a.tapBip32Derivation&&a.tapBip32Derivation.length||o&&(0,psbtutils_1$1.isP2TR)(o))}bip371.isTaprootOutput=isTaprootOutput;function checkTaprootInputFields(a,o,et){checkMixedTaprootAndNonTaprootInputFields(a,o,et),checkIfTapLeafInTree(a,o,et)}bip371.checkTaprootInputFields=checkTaprootInputFields;function checkTaprootOutputFields(a,o,et){checkMixedTaprootAndNonTaprootOutputFields(a,o,et),checkTaprootScriptPubkey(a,o)}bip371.checkTaprootOutputFields=checkTaprootOutputFields;function checkTaprootScriptPubkey(a,o){if(!o.tapTree&&!o.tapInternalKey)return;const et=o.tapInternalKey||a.tapInternalKey,tt=o.tapTree||a.tapTree;if(et){const{script:rt}=a,nt=getTaprootScripPubkey(et,tt);if(rt&&!rt.equals(nt))throw new Error("Error adding output. Script or address missmatch.")}}function getTaprootScripPubkey(a,o){const et=o&&tapTreeFromList(o.leaves),{output:tt}=(0,payments_1.p2tr)({internalPubkey:a,scriptTree:et});return tt}function tweakInternalPubKey(a,o){const et=o.tapInternalKey,tt=et&&(0,bip341_1$1.tweakKey)(et,o.tapMerkleRoot);if(!tt)throw new Error(`Cannot tweak tap internal key for input #${a}. Public key: ${et&&et.toString("hex")}`);return tt.x}bip371.tweakInternalPubKey=tweakInternalPubKey;function tapTreeToList(a){if(!(0,types_1.isTaptree)(a))throw new Error("Cannot convert taptree to tapleaf list. Expecting a tapree structure.");return _tapTreeToList(a)}bip371.tapTreeToList=tapTreeToList;function tapTreeFromList(a=[]){return a.length===1&&a[0].depth===0?{output:a[0].script,version:a[0].leafVersion}:instertLeavesInTree(a)}bip371.tapTreeFromList=tapTreeFromList;function checkTaprootInputForSigs(a,o){return extractTaprootSigs(a).some(tt=>(0,psbtutils_2.signatureBlocksAction)(tt,decodeSchnorrSignature,o))}bip371.checkTaprootInputForSigs=checkTaprootInputForSigs;function decodeSchnorrSignature(a){return{signature:a.slice(0,64),hashType:a.slice(64)[0]||transaction_1$1.Transaction.SIGHASH_DEFAULT}}function extractTaprootSigs(a){const o=[];if(a.tapKeySig&&o.push(a.tapKeySig),a.tapScriptSig&&o.push(...a.tapScriptSig.map(et=>et.signature)),!o.length){const et=getTapKeySigFromWithness(a.finalScriptWitness);et&&o.push(et)}return o}function getTapKeySigFromWithness(a){if(!a)return;const o=a.slice(2);if(o.length===64||o.length===65)return o}function _tapTreeToList(a,o=[],et=0){if(et>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");return a?(0,types_1.isTapleaf)(a)?(o.push({depth:et,leafVersion:a.version||bip341_1$1.LEAF_VERSION_TAPSCRIPT,script:a.output}),o):(a[0]&&_tapTreeToList(a[0],o,et+1),a[1]&&_tapTreeToList(a[1],o,et+1),o):[]}function instertLeavesInTree(a){let o;for(const et of a)if(o=instertLeafInTree(et,o),!o)throw new Error("No room left to insert tapleaf in tree");return o}function instertLeafInTree(a,o,et=0){if(et>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");if(a.depth===et)return o?void 0:{output:a.script,version:a.leafVersion};if((0,types_1.isTapleaf)(o))return;const tt=instertLeafInTree(a,o&&o[0],et+1);if(tt)return[tt,o&&o[1]];const rt=instertLeafInTree(a,o&&o[1],et+1);if(rt)return[o&&o[0],rt]}function checkMixedTaprootAndNonTaprootInputFields(a,o,et){const tt=isTaprootInput(a)&&hasNonTaprootFields(o),rt=hasNonTaprootFields(a)&&isTaprootInput(o),nt=a===o&&isTaprootInput(o)&&hasNonTaprootFields(o);if(tt||rt||nt)throw new Error(`Invalid arguments for Psbt.${et}. Cannot use both taproot and non-taproot fields.`)}function checkMixedTaprootAndNonTaprootOutputFields(a,o,et){const tt=isTaprootOutput(a)&&hasNonTaprootFields(o),rt=hasNonTaprootFields(a)&&isTaprootOutput(o),nt=a===o&&isTaprootOutput(o)&&hasNonTaprootFields(o);if(tt||rt||nt)throw new Error(`Invalid arguments for Psbt.${et}. Cannot use both taproot and non-taproot fields.`)}function checkIfTapLeafInTree(a,o,et){if(o.tapMerkleRoot){const tt=(o.tapLeafScript||[]).every(nt=>isTapLeafInTree(nt,o.tapMerkleRoot)),rt=(a.tapLeafScript||[]).every(nt=>isTapLeafInTree(nt,o.tapMerkleRoot));if(!tt||!rt)throw new Error(`Invalid arguments for Psbt.${et}. Tapleaf not part of taptree.`)}else if(a.tapMerkleRoot&&!(o.tapLeafScript||[]).every(rt=>isTapLeafInTree(rt,a.tapMerkleRoot)))throw new Error(`Invalid arguments for Psbt.${et}. Tapleaf not part of taptree.`)}function isTapLeafInTree(a,o){if(!o)return!0;const et=(0,bip341_1$1.tapleafHash)({output:a.script,version:a.leafVersion});return(0,bip341_1$1.rootHashFromPath)(a.controlBlock,et).equals(o)}function sortSignatures(a,o){const et=(0,bip341_1$1.tapleafHash)({output:o.script,version:o.leafVersion});return(a.tapScriptSig||[]).filter(tt=>tt.leafHash.equals(et)).map(tt=>addPubkeyPositionInScript(o.script,tt)).sort((tt,rt)=>rt.positionInScript-tt.positionInScript).map(tt=>tt.signature)}function addPubkeyPositionInScript(a,o){return Object.assign({positionInScript:(0,psbtutils_1$1.pubkeyPositionInScript)(o.pubkey,a)},o)}function findTapLeafToFinalize(a,o,et){if(!a.tapScriptSig||!a.tapScriptSig.length)throw new Error(`Can not finalize taproot input #${o}. No tapleaf script signature provided.`);const tt=(a.tapLeafScript||[]).sort((rt,nt)=>rt.controlBlock.length-nt.controlBlock.length).find(rt=>canFinalizeLeaf(rt,a.tapScriptSig,et));if(!tt)throw new Error(`Can not finalize taproot input #${o}. Signature for tapleaf script not found.`);return tt}function canFinalizeLeaf(a,o,et){const tt=(0,bip341_1$1.tapleafHash)({output:a.script,version:a.leafVersion});return(!et||et.equals(tt))&&o.find(nt=>nt.leafHash.equals(tt))!==void 0}function hasNonTaprootFields(a){return a&&!!(a.redeemScript||a.witnessScript||a.bip32Derivation&&a.bip32Derivation.length)}Object.defineProperty(psbt$1,"__esModule",{value:!0});psbt$1.Psbt=void 0;const bip174_1=psbt,varuint=varint,utils_1=utils,address_1=address,bufferutils_1=bufferutils,networks_1=networks$1,payments=payments$3,bip341_1=bip341,bscript=script,transaction_1=transaction,bip371_1=bip371,psbtutils_1=psbtutils,DEFAULT_OPTS={network:networks_1.bitcoin,maximumFeeRate:5e3};class Psbt{static fromBase64(o,et={}){const tt=Buffer.from(o,"base64");return this.fromBuffer(tt,et)}static fromHex(o,et={}){const tt=Buffer.from(o,"hex");return this.fromBuffer(tt,et)}static fromBuffer(o,et={}){const tt=bip174_1.Psbt.fromBuffer(o,transactionFromBuffer),rt=new Psbt(et,tt);return checkTxForDupeIns(rt.__CACHE.__TX,rt.__CACHE),rt}constructor(o={},et=new bip174_1.Psbt(new PsbtTransaction)){this.data=et,this.opts=Object.assign({},DEFAULT_OPTS,o),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},this.data.inputs.length===0&&this.setVersion(2);const tt=(rt,nt,it,st)=>Object.defineProperty(rt,nt,{enumerable:it,writable:st});tt(this,"__CACHE",!1,!0),tt(this,"opts",!1,!0)}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(o){this.setVersion(o)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(o){this.setLocktime(o)}get txInputs(){return this.__CACHE.__TX.ins.map(o=>({hash:(0,bufferutils_1.cloneBuffer)(o.hash),index:o.index,sequence:o.sequence}))}get txOutputs(){return this.__CACHE.__TX.outs.map(o=>{let et;try{et=(0,address_1.fromOutputScript)(o.script,this.opts.network)}catch{}return{script:(0,bufferutils_1.cloneBuffer)(o.script),value:o.value,address:et}})}combine(...o){return this.data.combine(...o.map(et=>et.data)),this}clone(){const o=Psbt.fromBuffer(this.data.toBuffer());return o.opts=JSON.parse(JSON.stringify(this.opts)),o}setMaximumFeeRate(o){check32Bit(o),this.opts.maximumFeeRate=o}setVersion(o){check32Bit(o),checkInputsForPartialSig(this.data.inputs,"setVersion");const et=this.__CACHE;return et.__TX.version=o,et.__EXTRACTED_TX=void 0,this}setLocktime(o){check32Bit(o),checkInputsForPartialSig(this.data.inputs,"setLocktime");const et=this.__CACHE;return et.__TX.locktime=o,et.__EXTRACTED_TX=void 0,this}setInputSequence(o,et){check32Bit(et),checkInputsForPartialSig(this.data.inputs,"setInputSequence");const tt=this.__CACHE;if(tt.__TX.ins.length<=o)throw new Error("Input index too high");return tt.__TX.ins[o].sequence=et,tt.__EXTRACTED_TX=void 0,this}addInputs(o){return o.forEach(et=>this.addInput(et)),this}addInput(o){if(arguments.length>1||!o||o.hash===void 0||o.index===void 0)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");(0,bip371_1.checkTaprootInputFields)(o,o,"addInput"),checkInputsForPartialSig(this.data.inputs,"addInput"),o.witnessScript&&checkInvalidP2WSH(o.witnessScript);const et=this.__CACHE;this.data.addInput(o);const tt=et.__TX.ins[et.__TX.ins.length-1];checkTxInputCache(et,tt);const rt=this.data.inputs.length-1,nt=this.data.inputs[rt];return nt.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,nt,rt),et.__FEE=void 0,et.__FEE_RATE=void 0,et.__EXTRACTED_TX=void 0,this}addOutputs(o){return o.forEach(et=>this.addOutput(et)),this}addOutput(o){if(arguments.length>1||!o||o.value===void 0||o.address===void 0&&o.script===void 0)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");checkInputsForPartialSig(this.data.inputs,"addOutput");const{address:et}=o;if(typeof et=="string"){const{network:rt}=this.opts,nt=(0,address_1.toOutputScript)(et,rt);o=Object.assign(o,{script:nt})}(0,bip371_1.checkTaprootOutputFields)(o,o,"addOutput");const tt=this.__CACHE;return this.data.addOutput(o),tt.__FEE=void 0,tt.__FEE_RATE=void 0,tt.__EXTRACTED_TX=void 0,this}extractTransaction(o){if(!this.data.inputs.every(isFinalized))throw new Error("Not finalized");const et=this.__CACHE;if(o||checkFees(this,et,this.opts),et.__EXTRACTED_TX)return et.__EXTRACTED_TX;const tt=et.__TX.clone();return inputFinalizeGetAmts(this.data.inputs,tt,et,!0),tt}getFeeRate(){return getTxCacheValue("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return getTxCacheValue("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).forEach(o=>this.finalizeInput(o)),this}finalizeInput(o,et){const tt=(0,utils_1.checkForInput)(this.data.inputs,o);return(0,bip371_1.isTaprootInput)(tt)?this._finalizeTaprootInput(o,tt,void 0,et):this._finalizeInput(o,tt,et)}finalizeTaprootInput(o,et,tt=bip371_1.tapScriptFinalizer){const rt=(0,utils_1.checkForInput)(this.data.inputs,o);if((0,bip371_1.isTaprootInput)(rt))return this._finalizeTaprootInput(o,rt,et,tt);throw new Error(`Cannot finalize input #${o}. Not Taproot.`)}_finalizeInput(o,et,tt=getFinalScripts){const{script:rt,isP2SH:nt,isP2WSH:it,isSegwit:st}=getScriptFromInput(o,et,this.__CACHE);if(!rt)throw new Error(`No script found for input #${o}`);checkPartialSigSighashes(et);const{finalScriptSig:at,finalScriptWitness:lt}=tt(o,et,rt,st,nt,it);if(at&&this.data.updateInput(o,{finalScriptSig:at}),lt&&this.data.updateInput(o,{finalScriptWitness:lt}),!at&&!lt)throw new Error(`Unknown error finalizing input #${o}`);return this.data.clearFinalizedInput(o),this}_finalizeTaprootInput(o,et,tt,rt=bip371_1.tapScriptFinalizer){if(!et.witnessUtxo)throw new Error(`Cannot finalize input #${o}. Missing withness utxo.`);if(et.tapKeySig){const nt=payments.p2tr({output:et.witnessUtxo.script,signature:et.tapKeySig}),it=(0,psbtutils_1.witnessStackToScriptWitness)(nt.witness);this.data.updateInput(o,{finalScriptWitness:it})}else{const{finalScriptWitness:nt}=rt(o,et,tt);this.data.updateInput(o,{finalScriptWitness:nt})}return this.data.clearFinalizedInput(o),this}getInputType(o){const et=(0,utils_1.checkForInput)(this.data.inputs,o),tt=getScriptFromUtxo(o,et,this.__CACHE),rt=getMeaningfulScript(tt,o,"input",et.redeemScript||redeemFromFinalScriptSig(et.finalScriptSig),et.witnessScript||redeemFromFinalWitnessScript(et.finalScriptWitness)),nt=rt.type==="raw"?"":rt.type+"-",it=classifyScript(rt.meaningfulScript);return nt+it}inputHasPubkey(o,et){const tt=(0,utils_1.checkForInput)(this.data.inputs,o);return pubkeyInInput(et,tt,o,this.__CACHE)}inputHasHDKey(o,et){const tt=(0,utils_1.checkForInput)(this.data.inputs,o),rt=bip32DerivationIsMine(et);return!!tt.bip32Derivation&&tt.bip32Derivation.some(rt)}outputHasPubkey(o,et){const tt=(0,utils_1.checkForOutput)(this.data.outputs,o);return pubkeyInOutput(et,tt,o,this.__CACHE)}outputHasHDKey(o,et){const tt=(0,utils_1.checkForOutput)(this.data.outputs,o),rt=bip32DerivationIsMine(et);return!!tt.bip32Derivation&&tt.bip32Derivation.some(rt)}validateSignaturesOfAllInputs(o){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).map(tt=>this.validateSignaturesOfInput(tt,o)).reduce((tt,rt)=>rt===!0&&tt,!0)}validateSignaturesOfInput(o,et,tt){const rt=this.data.inputs[o];return(0,bip371_1.isTaprootInput)(rt)?this.validateSignaturesOfTaprootInput(o,et,tt):this._validateSignaturesOfInput(o,et,tt)}_validateSignaturesOfInput(o,et,tt){const rt=this.data.inputs[o],nt=(rt||{}).partialSig;if(!rt||!nt||nt.length<1)throw new Error("No signatures to validate");if(typeof et!="function")throw new Error("Need validator function to validate signatures");const it=tt?nt.filter(vt=>vt.pubkey.equals(tt)):nt;if(it.length<1)throw new Error("No signatures for this pubkey");const st=[];let at,lt,ht;for(const vt of it){const gt=bscript.signature.decode(vt.signature),{hash:wt,script:ut}=ht!==gt.hashType?getHashForSig(o,Object.assign({},rt,{sighashType:gt.hashType}),this.__CACHE,!0):{hash:at,script:lt};ht=gt.hashType,at=wt,lt=ut,checkScriptForPubkey(vt.pubkey,ut,"verify"),st.push(et(vt.pubkey,wt,gt.signature))}return st.every(vt=>vt===!0)}validateSignaturesOfTaprootInput(o,et,tt){const rt=this.data.inputs[o],nt=(rt||{}).tapKeySig,it=(rt||{}).tapScriptSig;if(!rt&&!nt&&!(it&&!it.length))throw new Error("No signatures to validate");if(typeof et!="function")throw new Error("Need validator function to validate signatures");tt=tt&&(0,bip371_1.toXOnly)(tt);const st=tt?getTaprootHashesForSig(o,rt,this.data.inputs,tt,this.__CACHE):getAllTaprootHashesForSig(o,rt,this.data.inputs,this.__CACHE);if(!st.length)throw new Error("No signatures for this pubkey");const at=st.find(ht=>!ht.leafHash);let lt=0;if(nt&&at){if(!et(at.pubkey,at.hash,trimTaprootSig(nt)))return!1;lt++}if(it)for(const ht of it){const vt=st.find(gt=>ht.pubkey.equals(gt.pubkey));if(vt){if(!et(ht.pubkey,vt.hash,trimTaprootSig(ht.signature)))return!1;lt++}}return lt>0}signAllInputsHD(o,et=[transaction_1.Transaction.SIGHASH_ALL]){if(!o||!o.publicKey||!o.fingerprint)throw new Error("Need HDSigner to sign input");const tt=[];for(const rt of range(this.data.inputs.length))try{this.signInputHD(rt,o,et),tt.push(!0)}catch{tt.push(!1)}if(tt.every(rt=>rt===!1))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(o,et=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((tt,rt)=>{if(!o||!o.publicKey||!o.fingerprint)return rt(new Error("Need HDSigner to sign input"));const nt=[],it=[];for(const st of range(this.data.inputs.length))it.push(this.signInputHDAsync(st,o,et).then(()=>{nt.push(!0)},()=>{nt.push(!1)}));return Promise.all(it).then(()=>{if(nt.every(st=>st===!1))return rt(new Error("No inputs were signed"));tt()})})}signInputHD(o,et,tt=[transaction_1.Transaction.SIGHASH_ALL]){if(!et||!et.publicKey||!et.fingerprint)throw new Error("Need HDSigner to sign input");return getSignersFromHD(o,this.data.inputs,et).forEach(nt=>this.signInput(o,nt,tt)),this}signInputHDAsync(o,et,tt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((rt,nt)=>{if(!et||!et.publicKey||!et.fingerprint)return nt(new Error("Need HDSigner to sign input"));const st=getSignersFromHD(o,this.data.inputs,et).map(at=>this.signInputAsync(o,at,tt));return Promise.all(st).then(()=>{rt()}).catch(nt)})}signAllInputs(o,et){if(!o||!o.publicKey)throw new Error("Need Signer to sign input");const tt=[];for(const rt of range(this.data.inputs.length))try{this.signInput(rt,o,et),tt.push(!0)}catch{tt.push(!1)}if(tt.every(rt=>rt===!1))throw new Error("No inputs were signed");return this}signAllInputsAsync(o,et){return new Promise((tt,rt)=>{if(!o||!o.publicKey)return rt(new Error("Need Signer to sign input"));const nt=[],it=[];for(const[st]of this.data.inputs.entries())it.push(this.signInputAsync(st,o,et).then(()=>{nt.push(!0)},()=>{nt.push(!1)}));return Promise.all(it).then(()=>{if(nt.every(st=>st===!1))return rt(new Error("No inputs were signed"));tt()})})}signInput(o,et,tt){if(!et||!et.publicKey)throw new Error("Need Signer to sign input");const rt=(0,utils_1.checkForInput)(this.data.inputs,o);return(0,bip371_1.isTaprootInput)(rt)?this._signTaprootInput(o,rt,et,void 0,tt):this._signInput(o,et,tt)}signTaprootInput(o,et,tt,rt){if(!et||!et.publicKey)throw new Error("Need Signer to sign input");const nt=(0,utils_1.checkForInput)(this.data.inputs,o);if((0,bip371_1.isTaprootInput)(nt))return this._signTaprootInput(o,nt,et,tt,rt);throw new Error(`Input #${o} is not of type Taproot.`)}_signInput(o,et,tt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:rt,sighashType:nt}=getHashAndSighashType(this.data.inputs,o,et.publicKey,this.__CACHE,tt),it=[{pubkey:et.publicKey,signature:bscript.signature.encode(et.sign(rt),nt)}];return this.data.updateInput(o,{partialSig:it}),this}_signTaprootInput(o,et,tt,rt,nt=[transaction_1.Transaction.SIGHASH_DEFAULT]){const it=this.checkTaprootHashesForSig(o,et,tt,rt,nt),st=it.filter(lt=>!lt.leafHash).map(lt=>(0,bip371_1.serializeTaprootSignature)(tt.signSchnorr(lt.hash),et.sighashType))[0],at=it.filter(lt=>!!lt.leafHash).map(lt=>({pubkey:(0,bip371_1.toXOnly)(tt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(tt.signSchnorr(lt.hash),et.sighashType),leafHash:lt.leafHash}));return st&&this.data.updateInput(o,{tapKeySig:st}),at.length&&this.data.updateInput(o,{tapScriptSig:at}),this}signInputAsync(o,et,tt){return Promise.resolve().then(()=>{if(!et||!et.publicKey)throw new Error("Need Signer to sign input");const rt=(0,utils_1.checkForInput)(this.data.inputs,o);return(0,bip371_1.isTaprootInput)(rt)?this._signTaprootInputAsync(o,rt,et,void 0,tt):this._signInputAsync(o,et,tt)})}signTaprootInputAsync(o,et,tt,rt){return Promise.resolve().then(()=>{if(!et||!et.publicKey)throw new Error("Need Signer to sign input");const nt=(0,utils_1.checkForInput)(this.data.inputs,o);if((0,bip371_1.isTaprootInput)(nt))return this._signTaprootInputAsync(o,nt,et,tt,rt);throw new Error(`Input #${o} is not of type Taproot.`)})}_signInputAsync(o,et,tt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:rt,sighashType:nt}=getHashAndSighashType(this.data.inputs,o,et.publicKey,this.__CACHE,tt);return Promise.resolve(et.sign(rt)).then(it=>{const st=[{pubkey:et.publicKey,signature:bscript.signature.encode(it,nt)}];this.data.updateInput(o,{partialSig:st})})}async _signTaprootInputAsync(o,et,tt,rt,nt=[transaction_1.Transaction.SIGHASH_DEFAULT]){const it=this.checkTaprootHashesForSig(o,et,tt,rt,nt),st=[],at=it.filter(ht=>!ht.leafHash)[0];if(at){const ht=Promise.resolve(tt.signSchnorr(at.hash)).then(vt=>({tapKeySig:(0,bip371_1.serializeTaprootSignature)(vt,et.sighashType)}));st.push(ht)}const lt=it.filter(ht=>!!ht.leafHash);if(lt.length){const ht=lt.map(vt=>Promise.resolve(tt.signSchnorr(vt.hash)).then(gt=>({tapScriptSig:[{pubkey:(0,bip371_1.toXOnly)(tt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(gt,et.sighashType),leafHash:vt.leafHash}]})));st.push(...ht)}return Promise.all(st).then(ht=>{ht.forEach(vt=>this.data.updateInput(o,vt))})}checkTaprootHashesForSig(o,et,tt,rt,nt){if(typeof tt.signSchnorr!="function")throw new Error(`Need Schnorr Signer to sign taproot input #${o}.`);const it=getTaprootHashesForSig(o,et,this.data.inputs,tt.publicKey,this.__CACHE,rt,nt);if(!it||!it.length)throw new Error(`Can not sign for input #${o} with the key ${tt.publicKey.toString("hex")}`);return it}toBuffer(){return checkCache(this.__CACHE),this.data.toBuffer()}toHex(){return checkCache(this.__CACHE),this.data.toHex()}toBase64(){return checkCache(this.__CACHE),this.data.toBase64()}updateGlobal(o){return this.data.updateGlobal(o),this}updateInput(o,et){return et.witnessScript&&checkInvalidP2WSH(et.witnessScript),(0,bip371_1.checkTaprootInputFields)(this.data.inputs[o],et,"updateInput"),this.data.updateInput(o,et),et.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,this.data.inputs[o],o),this}updateOutput(o,et){const tt=this.data.outputs[o];return(0,bip371_1.checkTaprootOutputFields)(tt,et,"updateOutput"),this.data.updateOutput(o,et),this}addUnknownKeyValToGlobal(o){return this.data.addUnknownKeyValToGlobal(o),this}addUnknownKeyValToInput(o,et){return this.data.addUnknownKeyValToInput(o,et),this}addUnknownKeyValToOutput(o,et){return this.data.addUnknownKeyValToOutput(o,et),this}clearFinalizedInput(o){return this.data.clearFinalizedInput(o),this}}psbt$1.Psbt=Psbt;const transactionFromBuffer=a=>new PsbtTransaction(a);class PsbtTransaction{constructor(o=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=transaction_1.Transaction.fromBuffer(o),checkTxEmpty(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(o){if(o.hash===void 0||o.index===void 0||!Buffer.isBuffer(o.hash)&&typeof o.hash!="string"||typeof o.index!="number")throw new Error("Error adding input.");const et=typeof o.hash=="string"?(0,bufferutils_1.reverseBuffer)(Buffer.from(o.hash,"hex")):o.hash;this.tx.addInput(et,o.index,o.sequence)}addOutput(o){if(o.script===void 0||o.value===void 0||!Buffer.isBuffer(o.script)||typeof o.value!="number")throw new Error("Error adding output.");this.tx.addOutput(o.script,o.value)}toBuffer(){return this.tx.toBuffer()}}function canFinalize(a,o,et){switch(et){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return hasSigs(1,a.partialSig);case"multisig":const tt=payments.p2ms({output:o});return hasSigs(tt.m,a.partialSig,tt.pubkeys);default:return!1}}function checkCache(a){if(a.__UNSAFE_SIGN_NONSEGWIT!==!1)throw new Error("Not BIP174 compliant, can not export")}function hasSigs(a,o,et){if(!o)return!1;let tt;if(et?tt=et.map(rt=>{const nt=compressPubkey(rt);return o.find(it=>it.pubkey.equals(nt))}).filter(rt=>!!rt):tt=o,tt.length>a)throw new Error("Too many signatures");return tt.length===a}function isFinalized(a){return!!a.finalScriptSig||!!a.finalScriptWitness}function bip32DerivationIsMine(a){return o=>!(!o.masterFingerprint.equals(a.fingerprint)||!a.derivePath(o.path).publicKey.equals(o.pubkey))}function check32Bit(a){if(typeof a!="number"||a!==Math.floor(a)||a>4294967295||a<0)throw new Error("Invalid 32 bit integer")}function checkFees(a,o,et){const tt=o.__FEE_RATE||a.getFeeRate(),rt=o.__EXTRACTED_TX.virtualSize(),nt=tt*rt;if(tt>=et.maximumFeeRate)throw new Error(`Warning: You are paying around ${(nt/1e8).toFixed(8)} in fees, which is ${tt} satoshi per byte for a transaction with a VSize of ${rt} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}function checkInputsForPartialSig(a,o){a.forEach(et=>{if((0,bip371_1.isTaprootInput)(et)?(0,bip371_1.checkTaprootInputForSigs)(et,o):(0,psbtutils_1.checkInputForSig)(et,o))throw new Error("Can not modify transaction, signatures exist.")})}function checkPartialSigSighashes(a){if(!a.sighashType||!a.partialSig)return;const{partialSig:o,sighashType:et}=a;o.forEach(tt=>{const{hashType:rt}=bscript.signature.decode(tt.signature);if(et!==rt)throw new Error("Signature sighash does not match input sighash type")})}function checkScriptForPubkey(a,o,et){if(!(0,psbtutils_1.pubkeyInScript)(a,o))throw new Error(`Can not ${et} for this input with the key ${a.toString("hex")}`)}function checkTxEmpty(a){if(!a.ins.every(et=>et.script&&et.script.length===0&&et.witness&&et.witness.length===0))throw new Error("Format Error: Transaction ScriptSigs are not empty")}function checkTxForDupeIns(a,o){a.ins.forEach(et=>{checkTxInputCache(o,et)})}function checkTxInputCache(a,o){const et=(0,bufferutils_1.reverseBuffer)(Buffer.from(o.hash)).toString("hex")+":"+o.index;if(a.__TX_IN_CACHE[et])throw new Error("Duplicate input detected.");a.__TX_IN_CACHE[et]=1}function scriptCheckerFactory(a,o){return(et,tt,rt,nt)=>{const it=a({redeem:{output:rt}}).output;if(!tt.equals(it))throw new Error(`${o} for ${nt} #${et} doesn't match the scriptPubKey in the prevout`)}}const checkRedeemScript=scriptCheckerFactory(payments.p2sh,"Redeem script"),checkWitnessScript=scriptCheckerFactory(payments.p2wsh,"Witness script");function getTxCacheValue(a,o,et,tt){if(!et.every(isFinalized))throw new Error(`PSBT must be finalized to calculate ${o}`);if(a==="__FEE_RATE"&&tt.__FEE_RATE)return tt.__FEE_RATE;if(a==="__FEE"&&tt.__FEE)return tt.__FEE;let rt,nt=!0;if(tt.__EXTRACTED_TX?(rt=tt.__EXTRACTED_TX,nt=!1):rt=tt.__TX.clone(),inputFinalizeGetAmts(et,rt,tt,nt),a==="__FEE_RATE")return tt.__FEE_RATE;if(a==="__FEE")return tt.__FEE}function getFinalScripts(a,o,et,tt,rt,nt){const it=classifyScript(et);if(!canFinalize(o,et,it))throw new Error(`Can not finalize input #${a}`);return prepareFinalScripts(et,it,o.partialSig,tt,rt,nt)}function prepareFinalScripts(a,o,et,tt,rt,nt){let it,st;const at=getPayment(a,o,et),lt=nt?payments.p2wsh({redeem:at}):null,ht=rt?payments.p2sh({redeem:lt||at}):null;return tt?(lt?st=(0,psbtutils_1.witnessStackToScriptWitness)(lt.witness):st=(0,psbtutils_1.witnessStackToScriptWitness)(at.witness),ht&&(it=ht.input)):ht?it=ht.input:it=at.input,{finalScriptSig:it,finalScriptWitness:st}}function getHashAndSighashType(a,o,et,tt,rt){const nt=(0,utils_1.checkForInput)(a,o),{hash:it,sighashType:st,script:at}=getHashForSig(o,nt,tt,!1,rt);return checkScriptForPubkey(et,at,"sign"),{hash:it,sighashType:st}}function getHashForSig(a,o,et,tt,rt){const nt=et.__TX,it=o.sighashType||transaction_1.Transaction.SIGHASH_ALL;checkSighashTypeAllowed(it,rt);let st,at;if(o.nonWitnessUtxo){const vt=nonWitnessUtxoTxFromCache(et,o,a),gt=nt.ins[a].hash,wt=vt.getHash();if(!gt.equals(wt))throw new Error(`Non-witness UTXO hash for input #${a} doesn't match the hash specified in the prevout`);const ut=nt.ins[a].index;at=vt.outs[ut]}else if(o.witnessUtxo)at=o.witnessUtxo;else throw new Error("Need a Utxo input item for signing");const{meaningfulScript:lt,type:ht}=getMeaningfulScript(at.script,a,"input",o.redeemScript,o.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(ht)>=0)st=nt.hashForWitnessV0(a,lt,at.value,it);else if((0,psbtutils_1.isP2WPKH)(lt)){const vt=payments.p2pkh({hash:lt.slice(2)}).output;st=nt.hashForWitnessV0(a,vt,at.value,it)}else{if(o.nonWitnessUtxo===void 0&&et.__UNSAFE_SIGN_NONSEGWIT===!1)throw new Error(`Input #${a} has witnessUtxo but non-segwit script: ${lt.toString("hex")}`);!tt&&et.__UNSAFE_SIGN_NONSEGWIT!==!1&&console.warn(`Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant. -********************* -PROCEED WITH CAUTION! -*********************`),st=nt.hashForSignature(a,lt,it)}return{script:lt,sighashType:it,hash:st}}function getAllTaprootHashesForSig(a,o,et,tt){const rt=[];if(o.tapInternalKey){const it=getPrevoutTaprootKey(a,o,tt);it&&rt.push(it)}if(o.tapScriptSig){const it=o.tapScriptSig.map(st=>st.pubkey);rt.push(...it)}return rt.map(it=>getTaprootHashesForSig(a,o,et,it,tt)).flat()}function getPrevoutTaprootKey(a,o,et){const{script:tt}=getScriptAndAmountFromUtxo(a,o,et);return(0,psbtutils_1.isP2TR)(tt)?tt.subarray(2,34):null}function trimTaprootSig(a){return a.length===64?a:a.subarray(0,64)}function getTaprootHashesForSig(a,o,et,tt,rt,nt,it){const st=rt.__TX,at=o.sighashType||transaction_1.Transaction.SIGHASH_DEFAULT;checkSighashTypeAllowed(at,it);const lt=et.map((ut,pt)=>getScriptAndAmountFromUtxo(pt,ut,rt)),ht=lt.map(ut=>ut.script),vt=lt.map(ut=>ut.value),gt=[];if(o.tapInternalKey&&!nt){const ut=getPrevoutTaprootKey(a,o,rt)||Buffer.from([]);if((0,bip371_1.toXOnly)(tt).equals(ut)){const pt=st.hashForWitnessV1(a,ht,vt,at);gt.push({pubkey:tt,hash:pt})}}const wt=(o.tapLeafScript||[]).filter(ut=>(0,psbtutils_1.pubkeyInScript)(tt,ut.script)).map(ut=>{const pt=(0,bip341_1.tapleafHash)({output:ut.script,version:ut.leafVersion});return Object.assign({hash:pt},ut)}).filter(ut=>!nt||nt.equals(ut.hash)).map(ut=>{const pt=st.hashForWitnessV1(a,ht,vt,transaction_1.Transaction.SIGHASH_DEFAULT,ut.hash);return{pubkey:tt,hash:pt,leafHash:ut.hash}});return gt.concat(wt)}function checkSighashTypeAllowed(a,o){if(o&&o.indexOf(a)<0){const et=sighashTypeToString(a);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${et}`)}}function getPayment(a,o,et){let tt;switch(o){case"multisig":const rt=getSortedSigs(a,et);tt=payments.p2ms({output:a,signatures:rt});break;case"pubkey":tt=payments.p2pk({output:a,signature:et[0].signature});break;case"pubkeyhash":tt=payments.p2pkh({output:a,pubkey:et[0].pubkey,signature:et[0].signature});break;case"witnesspubkeyhash":tt=payments.p2wpkh({output:a,pubkey:et[0].pubkey,signature:et[0].signature});break}return tt}function getScriptFromInput(a,o,et){const tt=et.__TX,rt={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(rt.isP2SH=!!o.redeemScript,rt.isP2WSH=!!o.witnessScript,o.witnessScript)rt.script=o.witnessScript;else if(o.redeemScript)rt.script=o.redeemScript;else if(o.nonWitnessUtxo){const nt=nonWitnessUtxoTxFromCache(et,o,a),it=tt.ins[a].index;rt.script=nt.outs[it].script}else o.witnessUtxo&&(rt.script=o.witnessUtxo.script);return(o.witnessScript||(0,psbtutils_1.isP2WPKH)(rt.script))&&(rt.isSegwit=!0),rt}function getSignersFromHD(a,o,et){const tt=(0,utils_1.checkForInput)(o,a);if(!tt.bip32Derivation||tt.bip32Derivation.length===0)throw new Error("Need bip32Derivation to sign with HD");const rt=tt.bip32Derivation.map(it=>{if(it.masterFingerprint.equals(et.fingerprint))return it}).filter(it=>!!it);if(rt.length===0)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return rt.map(it=>{const st=et.derivePath(it.path);if(!it.pubkey.equals(st.publicKey))throw new Error("pubkey did not match bip32Derivation");return st})}function getSortedSigs(a,o){return payments.p2ms({output:a}).pubkeys.map(tt=>(o.filter(rt=>rt.pubkey.equals(tt))[0]||{}).signature).filter(tt=>!!tt)}function scriptWitnessToWitnessStack(a){let o=0;function et(it){return o+=it,a.slice(o-it,o)}function tt(){const it=varuint.decode(a,o);return o+=varuint.decode.bytes,it}function rt(){return et(tt())}function nt(){const it=tt(),st=[];for(let at=0;at{if(tt&&at.finalScriptSig&&(o.ins[lt].script=at.finalScriptSig),tt&&at.finalScriptWitness&&(o.ins[lt].witness=scriptWitnessToWitnessStack(at.finalScriptWitness)),at.witnessUtxo)rt+=at.witnessUtxo.value;else if(at.nonWitnessUtxo){const ht=nonWitnessUtxoTxFromCache(et,at,lt),vt=o.ins[lt].index,gt=ht.outs[vt];rt+=gt.value}});const nt=o.outs.reduce((at,lt)=>at+lt.value,0),it=rt-nt;if(it<0)throw new Error("Outputs are spending more than Inputs");const st=o.virtualSize();et.__FEE=it,et.__EXTRACTED_TX=o,et.__FEE_RATE=Math.floor(it/st)}function nonWitnessUtxoTxFromCache(a,o,et){const tt=a.__NON_WITNESS_UTXO_TX_CACHE;return tt[et]||addNonWitnessTxCache(a,o,et),tt[et]}function getScriptFromUtxo(a,o,et){const{script:tt}=getScriptAndAmountFromUtxo(a,o,et);return tt}function getScriptAndAmountFromUtxo(a,o,et){if(o.witnessUtxo!==void 0)return{script:o.witnessUtxo.script,value:o.witnessUtxo.value};if(o.nonWitnessUtxo!==void 0){const rt=nonWitnessUtxoTxFromCache(et,o,a).outs[et.__TX.ins[a].index];return{script:rt.script,value:rt.value}}else throw new Error("Can't find pubkey in input without Utxo data")}function pubkeyInInput(a,o,et,tt){const rt=getScriptFromUtxo(et,o,tt),{meaningfulScript:nt}=getMeaningfulScript(rt,et,"input",o.redeemScript,o.witnessScript);return(0,psbtutils_1.pubkeyInScript)(a,nt)}function pubkeyInOutput(a,o,et,tt){const rt=tt.__TX.outs[et].script,{meaningfulScript:nt}=getMeaningfulScript(rt,et,"output",o.redeemScript,o.witnessScript);return(0,psbtutils_1.pubkeyInScript)(a,nt)}function redeemFromFinalScriptSig(a){if(!a)return;const o=bscript.decompile(a);if(!o)return;const et=o[o.length-1];if(!(!Buffer.isBuffer(et)||isPubkeyLike(et)||isSigLike(et)||!bscript.decompile(et)))return et}function redeemFromFinalWitnessScript(a){if(!a)return;const o=scriptWitnessToWitnessStack(a),et=o[o.length-1];if(!(isPubkeyLike(et)||!bscript.decompile(et)))return et}function compressPubkey(a){if(a.length===65){const o=a[64]&1,et=a.slice(0,33);return et[0]=2|o,et}return a.slice()}function isPubkeyLike(a){return a.length===33&&bscript.isCanonicalPubKey(a)}function isSigLike(a){return bscript.isCanonicalScriptSignature(a)}function getMeaningfulScript(a,o,et,tt,rt){const nt=(0,psbtutils_1.isP2SHScript)(a),it=nt&&tt&&(0,psbtutils_1.isP2WSHScript)(tt),st=(0,psbtutils_1.isP2WSHScript)(a);if(nt&&tt===void 0)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((st||it)&&rt===void 0)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let at;return it?(at=rt,checkRedeemScript(o,a,tt,et),checkWitnessScript(o,tt,rt,et),checkInvalidP2WSH(at)):st?(at=rt,checkWitnessScript(o,a,rt,et),checkInvalidP2WSH(at)):nt?(at=tt,checkRedeemScript(o,a,tt,et)):at=a,{meaningfulScript:at,type:it?"p2sh-p2wsh":nt?"p2sh":st?"p2wsh":"raw"}}function checkInvalidP2WSH(a){if((0,psbtutils_1.isP2WPKH)(a)||(0,psbtutils_1.isP2SHScript)(a))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function classifyScript(a){return(0,psbtutils_1.isP2WPKH)(a)?"witnesspubkeyhash":(0,psbtutils_1.isP2PKH)(a)?"pubkeyhash":(0,psbtutils_1.isP2MS)(a)?"multisig":(0,psbtutils_1.isP2PK)(a)?"pubkey":"nonstandard"}function range(a){return[...Array(a).keys()]}(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.initEccLib=a.Transaction=a.opcodes=a.Psbt=a.Block=a.script=a.payments=a.networks=a.crypto=a.address=void 0;const o=address;a.address=o;const et=crypto$2;a.crypto=et;const tt=networks$1;a.networks=tt;const rt=payments$3;a.payments=rt;const nt=script;a.script=nt;var it=block;Object.defineProperty(a,"Block",{enumerable:!0,get:function(){return it.Block}});var st=psbt$1;Object.defineProperty(a,"Psbt",{enumerable:!0,get:function(){return st.Psbt}});var at=ops;Object.defineProperty(a,"opcodes",{enumerable:!0,get:function(){return at.OPS}});var lt=transaction;Object.defineProperty(a,"Transaction",{enumerable:!0,get:function(){return lt.Transaction}});var ht=ecc_lib;Object.defineProperty(a,"initEccLib",{enumerable:!0,get:function(){return ht.initEccLib}})})(src$1);function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(a,o){return a===o||a!==a&&o!==o}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(a,o){for(var et=a.length;et--;)if(eq$1(a[et][0],o))return et;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(a){var o=this.__data__,et=assocIndexOf$3(o,a);if(et<0)return!1;var tt=o.length-1;return et==tt?o.pop():splice.call(o,et,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(a){var o=this.__data__,et=assocIndexOf$2(o,a);return et<0?void 0:o[et][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(a){return assocIndexOf$1(this.__data__,a)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(a,o){var et=this.__data__,tt=assocIndexOf(et,a);return tt<0?(++this.size,et.push([a,o])):et[tt][1]=o,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(a){var o=-1,et=a==null?0:a.length;for(this.clear();++o-1&&a%1==0&&a-1&&a%1==0&&a<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(a){return isObjectLike$2(a)&&isLength$1(a.length)&&!!typedArrayTags[baseGetTag$1(a)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(a){return function(o){return a(o)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(a,o){var et=_freeGlobal,tt=o&&!o.nodeType&&o,rt=tt&&!0&&a&&!a.nodeType&&a,nt=rt&&rt.exports===tt,it=nt&&et.process,st=function(){try{var at=rt&&rt.require&&rt.require("util").types;return at||it&&it.binding&&it.binding("util")}catch{}}();a.exports=st})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(a,o){var et=isArray$2(a),tt=!et&&isArguments(a),rt=!et&&!tt&&isBuffer$1(a),nt=!et&&!tt&&!rt&&isTypedArray(a),it=et||tt||rt||nt,st=it?baseTimes(a.length,String):[],at=st.length;for(var lt in a)(o||hasOwnProperty$3.call(a,lt))&&!(it&&(lt=="length"||rt&&(lt=="offset"||lt=="parent")||nt&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||isIndex(lt,at)))&&st.push(lt);return st}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(a){var o=a&&a.constructor,et=typeof o=="function"&&o.prototype||objectProto$4;return a===et}var _isPrototype=isPrototype$3;function overArg$2(a,o){return function(et){return a(o(et))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(a){if(!isPrototype$2(a))return nativeKeys(a);var o=[];for(var et in Object(a))hasOwnProperty$2.call(a,et)&&et!="constructor"&&o.push(et);return o}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$2(a){return a!=null&&isLength(a.length)&&!isFunction(a)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(a){return isArrayLike$1(a)?arrayLikeKeys$1(a):baseKeys(a)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(a,o){return a&©Object$3(o,keys$2(o),a)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(a){var o=[];if(a!=null)for(var et in Object(a))o.push(et);return o}var _nativeKeysIn=nativeKeysIn$1,isObject$3=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(a){if(!isObject$3(a))return nativeKeysIn(a);var o=isPrototype$1(a),et=[];for(var tt in a)tt=="constructor"&&(o||!hasOwnProperty$1.call(a,tt))||et.push(tt);return et}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(a){return isArrayLike(a)?arrayLikeKeys(a,!0):baseKeysIn(a)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(a,o){return a&©Object$2(o,keysIn$2(o),a)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(a,o){var et=_root,tt=o&&!o.nodeType&&o,rt=tt&&!0&&a&&!a.nodeType&&a,nt=rt&&rt.exports===tt,it=nt?et.Buffer:void 0,st=it?it.allocUnsafe:void 0;function at(lt,ht){if(ht)return lt.slice();var vt=lt.length,gt=st?st(vt):new lt.constructor(vt);return lt.copy(gt),gt}a.exports=at})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(a,o){var et=-1,tt=a.length;for(o||(o=Array(tt));++etwordsToBuffer(a,!0).toString("hex"),16:a=>wordsToBuffer(a,!0).toString("hex"),13:a=>wordsToBuffer(a,!0).toString("utf8"),19:a=>wordsToBuffer(a,!0).toString("hex"),23:a=>wordsToBuffer(a,!0).toString("hex"),6:wordsToIntBE,24:wordsToIntBE,9:fallbackAddressParser,3:routingInfoParser,5:featureBitsParser},unknownTagName="unknownTag";function unknownEncoder(a){return a.words=bech32.decode(a.words,Number.MAX_SAFE_INTEGER).words,a}function getUnknownParser(a){return o=>({tagCode:parseInt(a),words:bech32.encode("unknown",o,Number.MAX_SAFE_INTEGER)})}function wordsToIntBE(a){return a.reverse().reduce((o,et,tt)=>o+et*Math.pow(32,tt),0)}function intBEToWords(a,o){const et=[];if(o===void 0&&(o=5),a=Math.floor(a),a===0)return[0];for(;a>0;)et.push(a&Math.pow(2,o)-1),a=Math.floor(a/Math.pow(2,o));return et.reverse()}function sha256(a){return createHash("sha256").update(a).digest()}function convert(a,o,et){let tt=0,rt=0;const nt=(1<=et;)rt-=et,it.push(tt>>rt&nt);return rt>0&&it.push(tt<0;)et=st.slice(0,33).toString("hex"),tt=st.slice(33,41).toString("hex"),rt=parseInt(st.slice(41,45).toString("hex"),16),nt=parseInt(st.slice(45,49).toString("hex"),16),it=parseInt(st.slice(49,51).toString("hex"),16),st=st.slice(51),o.push({pubkey:et,short_channel_id:tt,fee_base_msat:rt,fee_proportional_millionths:nt,cltv_expiry_delta:it});return o}function featureBitsParser(a){const o=a.slice().reverse().map(tt=>[!!(tt&1),!!(tt&2),!!(tt&4),!!(tt&8),!!(tt&16)]).reduce((tt,rt)=>tt.concat(rt),[]);for(;o.length{et[tt]={required:o[rt*2],supported:o[rt*2+1]}}),o.length>FEATUREBIT_ORDER.length*2){const tt=o.slice(FEATUREBIT_ORDER.length*2);et.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:tt,has_required:tt.reduce((rt,nt,it)=>it%2!==0?rt||!1:rt||nt,!1)}}else et.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:[],has_required:!1};return et}function featureBitsEncoder(a){let o=a.word_length,et=[];for(FEATUREBIT_ORDER.forEach(tt=>{et.push(!!(a[tt]||{}).required),et.push(!!(a[tt]||{}).supported)});et[et.length-1]===!1;)et.pop();for(;et.length%5!==0;)et.push(!1);if(a.extra_bits&&Array.isArray(a.extra_bits.bits)&&a.extra_bits.bits.length>0){for(;et.lengtho)throw new Error("word_length is too small to contain all featureBits");return o===void 0&&(o=Math.ceil(et.length/5)),new Array(o).fill(0).map((tt,rt)=>et[rt*5+4]<<4|et[rt*5+3]<<3|et[rt*5+2]<<2|et[rt*5+1]<<1|et[rt*5]<<0).reverse()}function routingInfoEncoder(a){let o=Buffer$1.from([]);return a.forEach(et=>{o=Buffer$1.concat([o,hexToBuffer(et.pubkey)]),o=Buffer$1.concat([o,hexToBuffer(et.short_channel_id)]),o=Buffer$1.concat([o,Buffer$1.from([0,0,0].concat(intBEToWords(et.fee_base_msat,8)).slice(-4))]),o=Buffer$1.concat([o,Buffer$1.from([0,0,0].concat(intBEToWords(et.fee_proportional_millionths,8)).slice(-4))]),o=Buffer$1.concat([o,Buffer$1.from([0].concat(intBEToWords(et.cltv_expiry_delta,8)).slice(-2))])}),hexToWord(o)}function purposeCommitEncoder(a){let o;if(a!==void 0&&(typeof a=="string"||a instanceof String))a.match(/^([a-zA-Z0-9]{2})*$/)?o=Buffer$1.from(a,"hex"):o=sha256(Buffer$1.from(a,"utf8"));else throw new Error("purpose or purpose commit must be a string or hex string");return bech32.toWords(o)}function tagsItems(a,o){const et=a.filter(rt=>rt.tagName===o);return et.length>0?et[0].data:null}function tagsContainItem(a,o){return tagsItems(a,o)!==null}function orderKeys(a,o){const et={};if(Object.keys(a).sort().forEach(tt=>{et[tt]=a[tt]}),o===!0){const tt="__tagsObject_cache";Object.defineProperty(et,"tagsObject",{get(){return this[tt]||Object.defineProperty(this,tt,{value:getTagsObject(this.tags)}),this[tt]}})}return et}function satToHrp(a){if(!a.toString().match(/^\d+$/))throw new Error("satoshis must be an integer");const o=new BN(a,10);return millisatToHrp(o.mul(new BN(1e3,10)))}function millisatToHrp(a){if(!a.toString().match(/^\d+$/))throw new Error("millisatoshis must be an integer");const o=new BN(a,10),et=o.toString(10),tt=et.length;let rt,nt;return tt>11&&/0{11}$/.test(et)?(rt="",nt=o.div(MILLISATS_PER_BTC).toString(10)):tt>8&&/0{8}$/.test(et)?(rt="m",nt=o.div(MILLISATS_PER_MILLIBTC).toString(10)):tt>5&&/0{5}$/.test(et)?(rt="u",nt=o.div(MILLISATS_PER_MICROBTC).toString(10)):tt>2&&/0{2}$/.test(et)?(rt="n",nt=o.div(MILLISATS_PER_NANOBTC).toString(10)):(rt="p",nt=o.mul(PICOBTC_PER_MILLISATS).toString(10)),nt+rt}function hrpToSat(a,o){const et=hrpToMillisat(a,!1);if(!et.mod(new BN(1e3,10)).eq(new BN(0,10)))throw new Error("Amount is outside of valid range");const tt=et.div(new BN(1e3,10));return o?tt.toString():tt}function hrpToMillisat(a,o){let et,tt;if(a.slice(-1).match(/^[munp]$/))et=a.slice(-1),tt=a.slice(0,-1);else{if(a.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");tt=a}if(!tt.match(/^\d+$/))throw new Error("Not a valid human readable amount");const rt=new BN(tt,10),nt=et?rt.mul(MILLISATS_PER_BTC).div(DIVISORS[et]):rt.mul(MILLISATS_PER_BTC);if(et==="p"&&!rt.mod(new BN(10,10)).eq(new BN(0,10))||nt.gt(MAX_MILLISATS))throw new Error("Amount is outside of valid range");return o?nt.toString():nt}function sign(a,o){const et=cloneDeep(a),tt=hexToBuffer(o);if(et.complete&&et.paymentRequest)return et;if(tt===void 0||tt.length!==32||!secp256k1.privateKeyVerify(tt))throw new Error("privateKey must be a 32 byte Buffer and valid private key");let rt,nt;if(tagsContainItem(et.tags,TAGNAMES[19])&&(nt=hexToBuffer(tagsItems(et.tags,TAGNAMES[19]))),et.payeeNodeKey&&(rt=hexToBuffer(et.payeeNodeKey)),rt&&nt&&!nt.equals(rt))throw new Error("payee node key tag and payeeNodeKey attribute must match");rt=nt||rt;const it=Buffer$1.from(secp256k1.publicKeyCreate(tt));if(rt&&!it.equals(rt))throw new Error("The private key given is not the private key of the node public key given");const st=bech32.decode(et.wordsTemp,Number.MAX_SAFE_INTEGER).words,at=Buffer$1.concat([Buffer$1.from(et.prefix,"utf8"),wordsToBuffer(st)]),lt=sha256(at),ht=secp256k1.ecdsaSign(lt,tt);ht.signature=Buffer$1.from(ht.signature);const vt=hexToWord(ht.signature.toString("hex")+"0"+ht.recid);return et.payeeNodeKey=it.toString("hex"),et.signature=ht.signature.toString("hex"),et.recoveryFlag=ht.recid,et.wordsTemp=bech32.encode("temp",st.concat(vt),Number.MAX_SAFE_INTEGER),et.complete=!0,et.paymentRequest=bech32.encode(et.prefix,st.concat(vt),Number.MAX_SAFE_INTEGER),orderKeys(et)}function encode$3(a,o){const et=cloneDeep(a);o===void 0&&(o=!0);const tt=!(et.signature===void 0||et.recoveryFlag===void 0);let rt;if(et.network===void 0&&!tt)et.network=DEFAULTNETWORK,rt=DEFAULTNETWORK;else{if(et.network===void 0&&tt)throw new Error("Need network for proper payment request reconstruction");if(!et.network.bech32||et.network.pubKeyHash===void 0||et.network.scriptHash===void 0||!Array.isArray(et.network.validWitnessVersions))throw new Error("Invalid network");rt=et.network}if(et.timestamp===void 0&&!tt)et.timestamp=Math.floor(new Date().getTime()/1e3);else if(et.timestamp===void 0&&tt)throw new Error("Need timestamp for proper payment request reconstruction");if(et.tags===void 0)throw new Error("Payment Requests need tags array");if(!tagsContainItem(et.tags,TAGNAMES[1]))throw new Error("Lightning Payment Request needs a payment hash");if(tagsContainItem(et.tags,TAGNAMES[16]))if(tagsContainItem(et.tags,TAGNAMES[5])){const kt=tagsItems(et.tags,TAGNAMES[5]);if(!kt.payment_secret||!kt.payment_secret.supported&&!kt.payment_secret.required)throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included")}else if(o)et.tags.push({tagName:TAGNAMES[5],data:DEFAULTFEATUREBITS});else throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included");if(!tagsContainItem(et.tags,TAGNAMES[13])&&!tagsContainItem(et.tags,TAGNAMES[23]))if(o)et.tags.push({tagName:TAGNAMES[13],data:DEFAULTDESCRIPTION});else throw new Error("Payment request requires description or purpose commit hash");if(tagsContainItem(et.tags,TAGNAMES[13])&&Buffer$1.from(tagsItems(et.tags,TAGNAMES[13]),"utf8").length>639)throw new Error("Description is too long: Max length 639 bytes");!tagsContainItem(et.tags,TAGNAMES[6])&&!tt&&o&&et.tags.push({tagName:TAGNAMES[6],data:DEFAULTEXPIRETIME}),!tagsContainItem(et.tags,TAGNAMES[24])&&!tt&&o&&et.tags.push({tagName:TAGNAMES[24],data:DEFAULTCLTVEXPIRY});let nt,it;if(tagsContainItem(et.tags,TAGNAMES[19])&&(it=hexToBuffer(tagsItems(et.tags,TAGNAMES[19]))),et.payeeNodeKey&&(nt=hexToBuffer(et.payeeNodeKey)),nt&&it&&!it.equals(nt))throw new Error("payeeNodeKey and tag payee node key do not match");nt=nt||it,nt&&(et.payeeNodeKey=nt.toString("hex"));let st,at,lt;if(tagsContainItem(et.tags,TAGNAMES[9])){const kt=tagsItems(et.tags,TAGNAMES[9]);if(lt=kt.address,at=kt.addressHash,st=kt.code,at===void 0||st===void 0){let It,Ot;try{It=bitcoinjsAddress.fromBech32(lt),at=It.data,st=It.version}catch{try{Ot=bitcoinjsAddress.fromBase58Check(lt),Ot.version===rt.pubKeyHash?st=17:Ot.version===rt.scriptHash&&(st=18),at=Ot.hash}catch{throw new Error("Fallback address type is unknown")}}if(It&&!(It.version in rt.validWitnessVersions))throw new Error("Fallback address witness version is unknown");if(It&&It.prefix!==rt.bech32)throw new Error("Fallback address network type does not match payment request network type");if(Ot&&Ot.version!==rt.pubKeyHash&&Ot.version!==rt.scriptHash)throw new Error("Fallback address version (base58) is unknown or the network type is incorrect");kt.addressHash=at.toString("hex"),kt.code=st}}tagsContainItem(et.tags,TAGNAMES[3])&&tagsItems(et.tags,TAGNAMES[3]).forEach(It=>{if(It.pubkey===void 0||It.short_channel_id===void 0||It.fee_base_msat===void 0||It.fee_proportional_millionths===void 0||It.cltv_expiry_delta===void 0)throw new Error("Routing info is incomplete");if(!secp256k1.publicKeyVerify(hexToBuffer(It.pubkey)))throw new Error("Routing info pubkey is not a valid pubkey");const Ot=hexToBuffer(It.short_channel_id);if(!(Ot instanceof Buffer$1)||Ot.length!==8)throw new Error("Routing info short channel id must be 8 bytes");if(typeof It.fee_base_msat!="number"||Math.floor(It.fee_base_msat)!==It.fee_base_msat)throw new Error("Routing info fee base msat is not an integer");if(typeof It.fee_proportional_millionths!="number"||Math.floor(It.fee_proportional_millionths)!==It.fee_proportional_millionths)throw new Error("Routing info fee proportional millionths is not an integer");if(typeof It.cltv_expiry_delta!="number"||Math.floor(It.cltv_expiry_delta)!==It.cltv_expiry_delta)throw new Error("Routing info cltv expiry delta is not an integer")});let ht="ln";ht+=rt.bech32;let vt;if(et.millisatoshis&&et.satoshis){if(vt=millisatToHrp(new BN(et.millisatoshis,10)),satToHrp(new BN(et.satoshis,10))!==vt)throw new Error("satoshis and millisatoshis do not match")}else et.millisatoshis?vt=millisatToHrp(new BN(et.millisatoshis,10)):et.satoshis?vt=satToHrp(new BN(et.satoshis,10)):vt="";ht+=vt;const gt=intBEToWords(et.timestamp);for(;gt.length<7;)gt.unshift(0);const wt=et.tags;let ut=[];wt.forEach(kt=>{const It=Object.keys(TAGENCODERS);if(tt&&It.push(unknownTagName),It.indexOf(kt.tagName)===-1)throw new Error("Unknown tag key: "+kt.tagName);let Ot;if(kt.tagName!==unknownTagName){ut.push(TAGCODES[kt.tagName]);const Nt=TAGENCODERS[kt.tagName];Ot=Nt(kt.data)}else{const Nt=unknownEncoder(kt.data);ut.push(Nt.tagCode),Ot=Nt.words}ut=ut.concat([0].concat(intBEToWords(Ot.length)).slice(-2)),ut=ut.concat(Ot)});let pt=gt.concat(ut);const Et=Buffer$1.concat([Buffer$1.from(ht,"utf8"),Buffer$1.from(convert(pt,5,8))]),yt=sha256(Et);let bt;if(tt)if(nt){const kt=Buffer$1.from(secp256k1.ecdsaRecover(Buffer$1.from(et.signature,"hex"),et.recoveryFlag,yt,!0));if(nt&&!nt.equals(kt))throw new Error("Signature, message, and recoveryID did not produce the same pubkey as payeeNodeKey");bt=hexToWord(et.signature+"0"+et.recoveryFlag)}else throw new Error("Reconstruction with signature and recoveryID requires payeeNodeKey to verify correctness of input data.");return bt&&(pt=pt.concat(bt)),tagsContainItem(et.tags,TAGNAMES[6])&&(et.timeExpireDate=et.timestamp+tagsItems(et.tags,TAGNAMES[6]),et.timeExpireDateString=new Date(et.timeExpireDate*1e3).toISOString()),et.timestampString=new Date(et.timestamp*1e3).toISOString(),et.complete=!!bt,et.paymentRequest=et.complete?bech32.encode(ht,pt,Number.MAX_SAFE_INTEGER):"",et.prefix=ht,et.wordsTemp=bech32.encode("temp",pt,Number.MAX_SAFE_INTEGER),orderKeys(et)}function decode$3(a,o){if(typeof a!="string")throw new Error("Lightning Payment Request must be string");if(a.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const et=bech32.decode(a,Number.MAX_SAFE_INTEGER);a=a.toLowerCase();const tt=et.prefix;let rt=et.words;const nt=rt.slice(-104),it=rt.slice(0,-104);rt=rt.slice(0,-104);let st=wordsToBuffer(nt,!0);const at=st.slice(-1)[0];if(st=st.slice(0,-1),!(at in[0,1,2,3])||st.length!==64)throw new Error("Signature is missing or incorrect");let lt=tt.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(lt&&!lt[2]&&(lt=tt.match(/^ln(\S+)$/)),!lt)throw new Error("Not a proper lightning payment request");const ht=lt[1];let vt;if(o){if(o.bech32===void 0||o.pubKeyHash===void 0||o.scriptHash===void 0||!Array.isArray(o.validWitnessVersions))throw new Error("Invalid network");vt=o}else switch(ht){case DEFAULTNETWORK.bech32:vt=DEFAULTNETWORK;break;case TESTNETWORK.bech32:vt=TESTNETWORK;break;case REGTESTNETWORK.bech32:vt=REGTESTNETWORK;break;case SIMNETWORK.bech32:vt=SIMNETWORK;break}if(!vt||vt.bech32!==ht)throw new Error("Unknown coin bech32 prefix");const gt=lt[2];let wt,ut,pt;if(gt){const Bt=lt[3];try{wt=parseInt(hrpToSat(gt+Bt,!0))}catch{wt=null,pt=!0}ut=hrpToMillisat(gt+Bt,!0)}else wt=null,ut=null;const Et=wordsToIntBE(rt.slice(0,7)),yt=new Date(Et*1e3).toISOString();rt=rt.slice(7);const bt=[];let kt,It,Ot,Nt;for(;rt.length>0;){const Bt=rt[0].toString();kt=TAGNAMES[Bt]||unknownTagName,It=TAGPARSERS[Bt]||getUnknownParser(Bt),rt=rt.slice(1),Ot=wordsToIntBE(rt.slice(0,2)),rt=rt.slice(2),Nt=rt.slice(0,Ot),rt=rt.slice(Ot),bt.push({tagName:kt,data:It(Nt,vt)})}let Vt,jt;tagsContainItem(bt,TAGNAMES[6])&&(Vt=Et+tagsItems(bt,TAGNAMES[6]),jt=new Date(Vt*1e3).toISOString());const zt=Buffer$1.concat([Buffer$1.from(tt,"utf8"),Buffer$1.from(convert(it,5,8))]),or=sha256(zt),qt=Buffer$1.from(secp256k1.ecdsaRecover(st,at,or,!0));if(tagsContainItem(bt,TAGNAMES[19])&&tagsItems(bt,TAGNAMES[19])!==qt.toString("hex"))throw new Error("Lightning Payment Request signature pubkey does not match payee pubkey");let Rt={paymentRequest:a,complete:!0,prefix:tt,wordsTemp:bech32.encode("temp",it.concat(nt),Number.MAX_SAFE_INTEGER),network:vt,satoshis:wt,millisatoshis:ut,timestamp:Et,timestampString:yt,payeeNodeKey:qt.toString("hex"),signature:st.toString("hex"),recoveryFlag:at,tags:bt};return pt&&delete Rt.satoshis,Vt&&(Rt=Object.assign(Rt,{timeExpireDate:Vt,timeExpireDateString:jt})),orderKeys(Rt,!0)}function getTagsObject(a){const o={};return a.forEach(et=>{et.tagName===unknownTagName?(o.unknownTags||(o.unknownTags=[]),o.unknownTags.push(et.data)):o[et.tagName]=et.data}),o}var payreq={encode:encode$3,decode:decode$3,sign,satToHrp,millisatToHrp,hrpToSat,hrpToMillisat};(function(a){var o=commonjsGlobal&&commonjsGlobal.__importDefault||function(ht){return ht&&ht.__esModule?ht:{default:ht}};Object.defineProperty(a,"__esModule",{value:!0}),a.getIdFromRequest=a.decode=a.isHex=a.stringToBytes=a.isValue=a.utf8Encoder=void 0;const et=o(payreq),tt=o(assert_1);let rt;typeof window<"u"&&window&&window.TextEncoder?rt=window.TextEncoder:rt=util.TextEncoder,a.utf8Encoder=new rt;const nt=ht=>ht!=null;a.isValue=nt;const it=ht=>(0,a.isValue)(ht)?a.utf8Encoder.encode(ht):ht;a.stringToBytes=it;function st(ht){return Buffer.from(ht,"hex").toString("hex")===ht}a.isHex=st;function at(ht){let vt;return ht.indexOf("lnsb")===0&&(vt={bech32:"sb"}),et.default.decode(ht,vt)}a.decode=at;function lt(ht){const gt=at(ht).tags.find(ut=>ut.tagName==="payment_hash");(0,tt.default)(gt&>.data,"Could not find payment hash on invoice request");const wt=gt==null?void 0:gt.data.toString();if(!wt||!wt.length)throw new Error("Could not get payment hash from payment request");return wt}a.getIdFromRequest=lt})(helpers);var hasRequiredLsat;function requireLsat(){if(hasRequiredLsat)return lsat$1;hasRequiredLsat=1;var a=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gt,wt,ut,pt){pt===void 0&&(pt=ut);var Et=Object.getOwnPropertyDescriptor(wt,ut);(!Et||("get"in Et?!wt.__esModule:Et.writable||Et.configurable))&&(Et={enumerable:!0,get:function(){return wt[ut]}}),Object.defineProperty(gt,pt,Et)}:function(gt,wt,ut,pt){pt===void 0&&(pt=ut),gt[pt]=wt[ut]}),o=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gt,wt){Object.defineProperty(gt,"default",{enumerable:!0,value:wt})}:function(gt,wt){gt.default=wt}),et=commonjsGlobal&&commonjsGlobal.__importStar||function(gt){if(gt&>.__esModule)return gt;var wt={};if(gt!=null)for(var ut in gt)ut!=="default"&&Object.prototype.hasOwnProperty.call(gt,ut)&&a(wt,gt,ut);return o(wt,gt),wt},tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(lsat$1,"__esModule",{value:!0}),lsat$1.Lsat=lsat$1.parseChallengePart=void 0;const rt=assert_1,nt=bufio,it=tt(requireCryptoBrowserify()),st=et(macaroon$1),at=requireDist(),lt=helpers;function ht(gt){let wt;const ut=gt.indexOf("=");rt(ut>-1,'Incorrectly encoded challenge. Missing "=" separator.');const pt=gt.length-1-ut;return wt=gt.slice(-pt),rt(wt.length,"Incorrectly encoded macaroon challenge"),rt(wt[0]==='"'&&wt[wt.length-1]==='"',"Incorectly encoded challenge, challenges must be enclosed in double quotes."),wt=wt.slice(1,wt.length-1),wt}lsat$1.parseChallengePart=ht;class vt extends nt.Struct{constructor(wt){super(wt),this.id="",this.validUntil=0,this.invoice="",this.baseMacaroon="",this.paymentHash=Buffer.alloc(32).toString("hex"),this.timeCreated=Date.now(),this.paymentPreimage=null,this.amountPaid=0,this.routingFeePaid=0,this.invoiceAmount=0,wt&&this.fromOptions(wt)}fromOptions(wt){rt(typeof wt.baseMacaroon=="string","Require serialized macaroon"),this.baseMacaroon=wt.baseMacaroon,rt(typeof wt.id=="string","Require string id"),this.id=wt.id,rt(typeof wt.paymentHash=="string","Require paymentHash"),this.paymentHash=wt.paymentHash;const ut=this.getExpirationFromMacaroon(wt.baseMacaroon);return ut&&(this.validUntil=ut),wt.invoice&&this.addInvoice(wt.invoice),wt.timeCreated&&(this.timeCreated=wt.timeCreated),wt.paymentPreimage&&(this.paymentPreimage=wt.paymentPreimage),wt.amountPaid&&(this.amountPaid=wt.amountPaid),wt.routingFeePaid&&(this.routingFeePaid=wt.routingFeePaid),this}isExpired(){return this.validUntil===0?!1:this.validUntilbt.tagName==="payment_hash");rt(Et,"Could not find payment hash on invoice request");const yt=Et==null?void 0:Et.data;rt(yt===this.paymentHash,"paymentHash from invoice did not match LSAT"),this.invoiceAmount=pt||0,this.invoice=wt}catch(ut){throw new Error(`Problem adding invoice data to LSAT: ${ut.message}`)}}static fromMacaroon(wt,ut){rt(typeof wt=="string","Requires a raw macaroon string for macaroon to generate LSAT");let pt,Et;try{Et=(0,at.decodeIdentifierFromMacaroon)(wt),pt=at.Identifier.fromString(Et)}catch(kt){throw new Error(`Unexpected encoding for macaroon identifier: ${kt.message}`)}const yt={id:Et,baseMacaroon:wt,paymentHash:pt.paymentHash.toString("hex")},bt=new this(yt);return ut&&bt.addInvoice(ut),bt}static fromToken(wt,ut){rt(wt.includes(this.type),"Token must include LSAT prefix"),wt=wt.slice(this.type.length).trim();const[pt,Et]=wt.split(":"),yt=vt.fromMacaroon(pt,ut);return Et&&yt.setPreimage(Et),yt}static fromChallenge(wt){const ut="macaroon=",pt="invoice=";let Et;Et=wt.split(","),Et.length<2&&(Et=wt.split(" ")),rt(Et.length>=2,"Expected at least two challenges in the LSAT: invoice and macaroon");let yt="",bt="";for(const Ot of Et){if(!yt.length&&Ot.indexOf(ut)>-1)try{yt=ht(Ot)}catch(Nt){throw new Error(`Problem parsing macaroon challenge: ${Nt.message}`)}if(!bt.length&&Ot.indexOf(pt)>-1)try{bt=ht(Ot)}catch(Nt){throw new Error(`Problem parsing macaroon challenge: ${Nt.message}`)}if(bt.length&&yt.length)break}rt(bt.length&&yt.length,"Expected WWW-Authenticate challenge with macaroon and invoice data");const kt=(0,lt.getIdFromRequest)(bt),It=(0,at.decodeIdentifierFromMacaroon)(yt);return new this({id:It,baseMacaroon:yt,paymentHash:kt,invoice:bt})}static fromHeader(wt){const ut=wt.slice(this.type.length).trim();return rt(wt.length!==ut.length,'header missing token type prefix "LSAT"'),vt.fromChallenge(ut)}}return lsat$1.Lsat=vt,vt.type="LSAT",lsat$1}var types={},lsat={};Object.defineProperty(lsat,"__esModule",{value:!0});var satisfier={};Object.defineProperty(satisfier,"__esModule",{value:!0});(function(a){var o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(tt,rt,nt,it){it===void 0&&(it=nt);var st=Object.getOwnPropertyDescriptor(rt,nt);(!st||("get"in st?!rt.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return rt[nt]}}),Object.defineProperty(tt,it,st)}:function(tt,rt,nt,it){it===void 0&&(it=nt),tt[it]=rt[nt]}),et=commonjsGlobal&&commonjsGlobal.__exportStar||function(tt,rt){for(var nt in tt)nt!=="default"&&!Object.prototype.hasOwnProperty.call(rt,nt)&&o(rt,tt,nt)};Object.defineProperty(a,"__esModule",{value:!0}),et(lsat,a),et(satisfier,a)})(types);var satisfiers={},hasRequiredSatisfiers;function requireSatisfiers(){if(hasRequiredSatisfiers)return satisfiers;hasRequiredSatisfiers=1,Object.defineProperty(satisfiers,"__esModule",{value:!0}),satisfiers.createCapabilitiesSatisfier=satisfiers.createServicesSatisfier=satisfiers.expirationSatisfier=void 0;const a=requireDist();satisfiers.expirationSatisfier={condition:"expiration",satisfyPrevious:(tt,rt)=>tt.condition!=="expiration"||rt.condition!=="expiration"?!1:!(tt.value!(tt.condition!=="expiration"||tt.value{if(typeof tt!="string")throw new a.InvalidServicesError;return{condition:a.SERVICES_CAVEAT_CONDITION,satisfyPrevious:(rt,nt)=>{const it=(0,a.decodeServicesCaveat)(rt.value.toString()),st=(0,a.decodeServicesCaveat)(nt.value.toString());if(!Array.isArray(it)||!Array.isArray(st))throw new a.InvalidServicesError;let at=new Map;at=it.reduce((lt,ht)=>lt.set(ht.name,ht.tier),at);for(const lt of st)if(!at.has(lt.name)||at.get(lt.name)>lt.tier)return!1;return!0},satisfyFinal:rt=>{const nt=(0,a.decodeServicesCaveat)(rt.value.toString());if(!Array.isArray(nt))throw new a.InvalidServicesError;for(const it of nt)if(it.name===tt)return!0;return!1}}};satisfiers.createServicesSatisfier=o;const et=(tt,rt)=>{if(typeof rt!="string")throw new a.InvalidCapabilitiesError;if(typeof tt!="string")throw new a.InvalidCapabilitiesError;return{condition:tt+a.SERVICE_CAPABILITIES_SUFFIX,satisfyPrevious:(nt,it)=>{const st=(0,a.decodeCapabilitiesValue)(nt.value.toString()),at=(0,a.decodeCapabilitiesValue)(it.value.toString());if(!Array.isArray(st)||!Array.isArray(at))throw new a.InvalidServicesError;let lt=new Set;lt=st.reduce((ht,vt)=>ht.add(vt),lt);for(const ht of at)if(!lt.has(ht))return!1;return!0},satisfyFinal:nt=>{const it=(0,a.decodeCapabilitiesValue)(nt.value.toString());if(!Array.isArray(it))throw new a.InvalidServicesError;for(const st of it)if(st===rt)return!0;return!1}}};return satisfiers.createCapabilitiesSatisfier=et,satisfiers}var macaroon={},base64={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(o,et){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,rt){tt.__proto__=rt}||function(tt,rt){for(var nt in rt)rt.hasOwnProperty(nt)&&(tt[nt]=rt[nt])},a(o,et)};return function(o,et){a(o,et);function tt(){this.constructor=o}o.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}}();Object.defineProperty(base64,"__esModule",{value:!0});var INVALID_BYTE=256,Coder=function(){function a(o){o===void 0&&(o="="),this._paddingCharacter=o}return a.prototype.encodedLength=function(o){return this._paddingCharacter?(o+2)/3*4|0:(o*8+5)/6|0},a.prototype.encode=function(o){for(var et="",tt=0;tt>>3*6&63),et+=this._encodeByte(rt>>>2*6&63),et+=this._encodeByte(rt>>>1*6&63),et+=this._encodeByte(rt>>>0*6&63)}var nt=o.length-tt;if(nt>0){var rt=o[tt]<<16|(nt===2?o[tt+1]<<8:0);et+=this._encodeByte(rt>>>3*6&63),et+=this._encodeByte(rt>>>2*6&63),nt===2?et+=this._encodeByte(rt>>>1*6&63):et+=this._paddingCharacter||"",et+=this._paddingCharacter||""}return et},a.prototype.maxDecodedLength=function(o){return this._paddingCharacter?o/4*3|0:(o*6+7)/8|0},a.prototype.decodedLength=function(o){return this.maxDecodedLength(o.length-this._getPaddingLength(o))},a.prototype.decode=function(o){if(o.length===0)return new Uint8Array(0);for(var et=this._getPaddingLength(o),tt=o.length-et,rt=new Uint8Array(this.maxDecodedLength(tt)),nt=0,it=0,st=0,at=0,lt=0,ht=0,vt=0;it>>4,rt[nt++]=lt<<4|ht>>>2,rt[nt++]=ht<<6|vt,st|=at&INVALID_BYTE,st|=lt&INVALID_BYTE,st|=ht&INVALID_BYTE,st|=vt&INVALID_BYTE;if(it>>4,st|=at&INVALID_BYTE,st|=lt&INVALID_BYTE),it>>2,st|=ht&INVALID_BYTE),it>>8&0-65-26+97,et+=51-o>>>8&26-97-52+48,et+=61-o>>>8&52-48-62+43,et+=62-o>>>8&62-43-63+47,String.fromCharCode(et)},a.prototype._decodeChar=function(o){var et=INVALID_BYTE;return et+=(42-o&o-44)>>>8&-INVALID_BYTE+o-43+62,et+=(46-o&o-48)>>>8&-INVALID_BYTE+o-47+63,et+=(47-o&o-58)>>>8&-INVALID_BYTE+o-48+52,et+=(64-o&o-91)>>>8&-INVALID_BYTE+o-65+0,et+=(96-o&o-123)>>>8&-INVALID_BYTE+o-97+26,et},a.prototype._getPaddingLength=function(o){var et=0;if(this._paddingCharacter){for(var tt=o.length-1;tt>=0&&o[tt]===this._paddingCharacter;tt--)et++;if(o.length<4||et>2)throw new Error("Base64Coder: incorrect padding")}return et},a}();base64.Coder=Coder;var stdCoder=new Coder;function encode$2(a){return stdCoder.encode(a)}base64.encode=encode$2;function decode$2(a){return stdCoder.decode(a)}base64.decode=decode$2;var URLSafeCoder=function(a){__extends$1(o,a);function o(){return a!==null&&a.apply(this,arguments)||this}return o.prototype._encodeByte=function(et){var tt=et;return tt+=65,tt+=25-et>>>8&0-65-26+97,tt+=51-et>>>8&26-97-52+48,tt+=61-et>>>8&52-48-62+45,tt+=62-et>>>8&62-45-63+95,String.fromCharCode(tt)},o.prototype._decodeChar=function(et){var tt=INVALID_BYTE;return tt+=(44-et&et-46)>>>8&-INVALID_BYTE+et-45+62,tt+=(94-et&et-96)>>>8&-INVALID_BYTE+et-95+63,tt+=(47-et&et-58)>>>8&-INVALID_BYTE+et-48+52,tt+=(64-et&et-91)>>>8&-INVALID_BYTE+et-65+0,tt+=(96-et&et-123)>>>8&-INVALID_BYTE+et-97+26,tt},o}(Coder);base64.URLSafeCoder=URLSafeCoder;var urlSafeCoder=new URLSafeCoder;function encodeURLSafe(a){return urlSafeCoder.encode(a)}base64.encodeURLSafe=encodeURLSafe;function decodeURLSafe(a){return urlSafeCoder.decode(a)}base64.decodeURLSafe=decodeURLSafe;base64.encodedLength=function(a){return stdCoder.encodedLength(a)};base64.maxDecodedLength=function(a){return stdCoder.maxDecodedLength(a)};base64.decodedLength=function(a){return stdCoder.decodedLength(a)};var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(a,o,et,tt){tt===void 0&&(tt=et);var rt=Object.getOwnPropertyDescriptor(o,et);(!rt||("get"in rt?!o.__esModule:rt.writable||rt.configurable))&&(rt={enumerable:!0,get:function(){return o[et]}}),Object.defineProperty(a,tt,rt)}:function(a,o,et,tt){tt===void 0&&(tt=et),a[tt]=o[et]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(a,o){Object.defineProperty(a,"default",{enumerable:!0,value:o})}:function(a,o){a.default=o}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(a){if(a&&a.__esModule)return a;var o={};if(a!=null)for(var et in a)et!=="default"&&Object.prototype.hasOwnProperty.call(a,et)&&__createBinding(o,a,et);return __setModuleDefault(o,a),o};Object.defineProperty(macaroon,"__esModule",{value:!0});macaroon.getRawMacaroon=macaroon.verifyMacaroonCaveats=macaroon.getCaveatsFromMacaroon=void 0;const caveat_1=caveat,helpers_1=helpers,Macaroon=__importStar(macaroon$1),base64_1=base64;function getCaveatsFromMacaroon(a){var o;const et=Macaroon.importMacaroon(a),tt=[],rt=(o=et._exportAsJSONObjectV2())===null||o===void 0?void 0:o.c;if(rt)for(const nt of rt){if(!nt.i)continue;const it=caveat_1.Caveat.decode(nt.i);tt.push(it)}return tt}macaroon.getCaveatsFromMacaroon=getCaveatsFromMacaroon;function verifyMacaroonCaveats(a,o,et,tt={}){try{const rt=Macaroon.importMacaroon(a),nt=(0,helpers_1.stringToBytes)(o);rt.verify(nt,()=>null);const it=getCaveatsFromMacaroon(a);return et&&!Array.isArray(et)&&(et=[et]),!it.length&&(!et||!et.length)?!0:(0,caveat_1.verifyCaveats)(it,et,tt)}catch{return!1}}macaroon.verifyMacaroonCaveats=verifyMacaroonCaveats;function getRawMacaroon(a,o=!1){const et=a._exportBinaryV2();return o?(0,base64_1.encodeURLSafe)(et):(0,base64_1.encode)(et)}macaroon.getRawMacaroon=getRawMacaroon;var service={};(function(a){var o=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(a,"__esModule",{value:!0}),a.decodeCapabilitiesValue=a.createNewCapabilitiesCaveat=a.SERVICE_CAPABILITIES_SUFFIX=a.encodeServicesCaveatValue=a.decodeServicesCaveat=a.SERVICES_CAVEAT_CONDITION=a.Service=a.InvalidCapabilitiesError=a.InvalidServicesError=a.NoServicesError=void 0;const et=o(bufio),tt=caveat;class rt extends Error{constructor(...wt){super(...wt),this.name="NoServicesError",this.message="no services found",Error.captureStackTrace&&Error.captureStackTrace(this,rt)}}a.NoServicesError=rt;class nt extends Error{constructor(wt){super(wt),this.name="InvalidServicesError",wt||(this.message='service must be of the form "name:tier"'),Error.captureStackTrace&&Error.captureStackTrace(this,nt)}}a.InvalidServicesError=nt;class it extends Error{constructor(wt){super(wt),this.name="InvalidCapabilitiesError",wt||(this.message="capabilities must be a string or array of strings"),Error.captureStackTrace&&Error.captureStackTrace(this,nt)}}a.InvalidCapabilitiesError=it;class st extends et.default.Struct{constructor(wt){super(wt),this.name=wt.name,this.tier=wt.tier}}a.Service=st,a.SERVICES_CAVEAT_CONDITION="services";const at=gt=>{if(!gt.length)throw new rt;const wt=[],ut=gt.split(",");for(const pt of ut){const[Et,yt]=pt.split(":");if(!Et||!yt)throw new nt;if(isNaN(+yt))throw new nt("tier must be a number");if(!isNaN(+Et))throw new nt("service name must be a string");wt.push(new st({name:Et,tier:+yt}))}return wt};a.decodeServicesCaveat=at;const lt=gt=>{if(!gt.length)throw new rt;let wt="";for(let ut=0;ut{let ut;if(!wt)ut="";else if(Array.isArray(wt))ut=wt.join(",");else{if(typeof wt!="string")throw new it;ut=wt}return new tt.Caveat({condition:gt+a.SERVICE_CAPABILITIES_SUFFIX,value:ut,comp:"="})};a.createNewCapabilitiesCaveat=ht;const vt=gt=>{if(typeof gt!="string")throw new it;return gt.toString().split(",").map(wt=>wt.trim())};a.decodeCapabilitiesValue=vt})(service);var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(a){var o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(tt,rt,nt,it){it===void 0&&(it=nt);var st=Object.getOwnPropertyDescriptor(rt,nt);(!st||("get"in st?!rt.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return rt[nt]}}),Object.defineProperty(tt,it,st)}:function(tt,rt,nt,it){it===void 0&&(it=nt),tt[it]=rt[nt]}),et=commonjsGlobal&&commonjsGlobal.__exportStar||function(tt,rt){for(var nt in tt)nt!=="default"&&!Object.prototype.hasOwnProperty.call(rt,nt)&&o(rt,tt,nt)};Object.defineProperty(a,"__esModule",{value:!0}),et(identifier$1,a),et(caveat,a),et(requireLsat(),a),et(types,a),et(requireSatisfiers(),a),et(macaroon,a),et(service,a)}(dist$1)),dist$1}var distExports=requireDist(),lib={},client={},errors={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var a=function(o,et){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,rt){tt.__proto__=rt}||function(tt,rt){for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(tt[nt]=rt[nt])},a(o,et)};return function(o,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");a(o,et);function tt(){this.constructor=o}o.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}}();Object.defineProperty(errors,"__esModule",{value:!0});errors.InternalError=errors.InvalidDataError=errors.RoutingError=errors.UnsupportedMethodError=errors.ConnectionError=errors.RejectionError=errors.MissingProviderError=void 0;function fixError(a,o,et){if(Object.setPrototypeOf(a,et.prototype),o===et)if(a.name=o.name,Error.captureStackTrace)Error.captureStackTrace(a,et);else{var tt=new Error(a.message).stack;tt&&(a.stack=fixStack(tt,"new ".concat(o.name)))}}function fixStack(a,o){if(!a||!o)return a;var et=new RegExp("\\s+at\\s".concat(o,"\\s")),tt=a.split(` -`),rt=tt.filter(function(nt){return!nt.match(et)});return rt.join(` -`)}var MissingProviderError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.MissingProviderError=MissingProviderError;var RejectionError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.RejectionError=RejectionError;var ConnectionError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.ConnectionError=ConnectionError;var UnsupportedMethodError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.UnsupportedMethodError=UnsupportedMethodError;var RoutingError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.RoutingError=RoutingError;var InvalidDataError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.InvalidDataError=InvalidDataError;var InternalError=function(a){__extends(o,a);function o(et){var tt=this.constructor,rt=a.call(this,et)||this;return fixError(rt,tt,o),rt}return o}(Error);errors.InternalError=InternalError;Object.defineProperty(client,"__esModule",{value:!0});client.requestProvider=void 0;var errors_1=errors;function requestProvider(a){return new Promise(function(o,et){if(typeof window>"u")return et(new Error("Must be called in a browser context"));var tt=window.webln;if(!tt)return et(new errors_1.MissingProviderError("Your browser has no WebLN provider"));tt.enable().then(function(){return o(tt)}).catch(function(rt){return et(rt)})})}client.requestProvider=requestProvider;var provider={};Object.defineProperty(provider,"__esModule",{value:!0});(function(a){var o=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(tt,rt,nt,it){it===void 0&&(it=nt);var st=Object.getOwnPropertyDescriptor(rt,nt);(!st||("get"in st?!rt.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return rt[nt]}}),Object.defineProperty(tt,it,st)}:function(tt,rt,nt,it){it===void 0&&(it=nt),tt[it]=rt[nt]}),et=commonjsGlobal&&commonjsGlobal.__exportStar||function(tt,rt){for(var nt in tt)nt!=="default"&&!Object.prototype.hasOwnProperty.call(rt,nt)&&o(rt,tt,nt)};Object.defineProperty(a,"__esModule",{value:!0}),et(client,a),et(provider,a),et(errors,a)})(lib);async function buyLsat(a){const o={amount:a};return api$1.post("/buy_lsat",JSON.stringify(o))}async function payLsat(a){let o;if(isSphinx()){const rt=localStorage.getItem("lsat");if(rt){localStorage.removeItem("lsat");const st=JSON.parse(rt);await distExports$1.updateLsat(st.identifier,"expired")}let nt;isE2E?nt=await sphinxBridge.setBudget():nt=await distExports$1.setBudget();let it=nt==null?void 0:nt.budget;it||(it=(await distExports$1.authorize()).budget);try{await buyLsat(it)}catch(st){if(st.status===402){o=distExports.Lsat.fromHeader(st.headers.get("www-authenticate"));let at;isE2E?at=await sphinxBridge.saveLsat(o.invoice,o.baseMacaroon,window.location.host):at=await distExports$1.saveLsat(o.invoice,o.baseMacaroon,window.location.host),at!=null&&at.lsat&&(localStorage.setItem("lsat",JSON.stringify({macaroon:o.baseMacaroon,identifier:o.id,preimage:at.lsat.split(":")[1]})),await a(it))}return}}localStorage.removeItem("lsat");const et=await lib.requestProvider(),tt=50;try{await buyLsat(tt)}catch(rt){o=distExports.Lsat.fromHeader(rt.headers.get("www-authenticate"));const nt=await et.sendPayment(o.invoice);nt!=null&&nt.preimage&&localStorage.setItem("lsat",JSON.stringify({macaroon:o.baseMacaroon,identifier:o.id,preimage:nt.preimage})),await a(tt)}}const createStoreImpl=a=>{let o;const et=new Set,tt=(at,lt)=>{const ht=typeof at=="function"?at(o):at;if(!Object.is(ht,o)){const vt=o;o=lt??(typeof ht!="object"||ht===null)?ht:Object.assign({},o,ht),et.forEach(gt=>gt(o,vt))}},rt=()=>o,st={setState:tt,getState:rt,subscribe:at=>(et.add(at),()=>et.delete(at)),destroy:()=>{et.clear()}};return o=a(tt,rt,st),st},createStore=a=>a?createStoreImpl(a):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var e=reactExports;function h$2(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var k=typeof Object.is=="function"?Object.is:h$2,l=e.useState,m=e.useEffect,n$1=e.useLayoutEffect,p$1=e.useDebugValue;function q$1(a,o){var et=o(),tt=l({inst:{value:et,getSnapshot:o}}),rt=tt[0].inst,nt=tt[1];return n$1(function(){rt.value=et,rt.getSnapshot=o,r$3(rt)&&nt({inst:rt})},[a,et,o]),m(function(){return r$3(rt)&&nt({inst:rt}),a(function(){r$3(rt)&&nt({inst:rt})})},[a]),p$1(et),et}function r$3(a){var o=a.getSnapshot;a=a.value;try{var et=o();return!k(a,et)}catch{return!0}}function t$1(a,o){return o()}var u$1=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$1:q$1;useSyncExternalStoreShim_production_min.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u$1;shim.exports=useSyncExternalStoreShim_production_min;var shimExports=shim.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var h$1=reactExports,n=shimExports;function p(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var q=typeof Object.is=="function"?Object.is:p,r$2=n.useSyncExternalStore,t=h$1.useRef,u=h$1.useEffect,v$1=h$1.useMemo,w$1=h$1.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(a,o,et,tt,rt){var nt=t(null);if(nt.current===null){var it={hasValue:!1,value:null};nt.current=it}else it=nt.current;nt=v$1(function(){function at(wt){if(!lt){if(lt=!0,ht=wt,wt=tt(wt),rt!==void 0&&it.hasValue){var ut=it.value;if(rt(ut,wt))return vt=ut}return vt=wt}if(ut=vt,q(ht,wt))return ut;var pt=tt(wt);return rt!==void 0&&rt(ut,pt)?ut:(ht=wt,vt=pt)}var lt=!1,ht,vt,gt=et===void 0?null:et;return[function(){return at(o())},gt===null?void 0:function(){return at(gt())}]},[o,et,tt,rt]);var st=r$2(a,nt[0],nt[1]);return u(function(){it.hasValue=!0,it.value=st},[st]),w$1(st),st};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(a,o=a.getState,et){const tt=useSyncExternalStoreWithSelector(a.subscribe,a.getState,a.getServerState||a.getState,o,et);return useDebugValue(tt),tt}const createImpl=a=>{const o=typeof a=="function"?createStore(a):a,et=(tt,rt)=>useStore(o,tt,rt);return Object.assign(et,o),et},create=a=>a?createImpl(a):createImpl;var react=a=>create(a);const defaultData$5={isAdmin:!1,isAuthenticated:!1,pubKey:"",budget:0,nodeCount:0,tribeHost:"",tribeUuid:"",signedToken:"",swarmUiUrl:""},useUserStore=create(a=>({...defaultData$5,setIsAdmin:o=>a({isAdmin:o}),setPubKey:o=>a({pubKey:o}),setBudget:o=>a({budget:o}),setNodeCount:o=>a(et=>o==="INCREMENT"?{nodeCount:et.nodeCount+1}:{nodeCount:0}),setTribeUuid:o=>a({tribeUuid:o}),setTribeHost:o=>a({tribeHost:o}),setIsAuthenticated:o=>a({isAuthenticated:o}),setSignedToken:o=>a({signedToken:o}),setSwarmUiUrl:o=>a({swarmUiUrl:o})})),executeIfTetsRunning=a=>{isE2E&&a()};function executeIfProd(a){return isDevelopment||isE2E?null:a()}function addToGlobalForE2e(a,o){executeIfTetsRunning(()=>{window.e2e||(window.e2e={}),window.e2e[o]=a})}const E2E=()=>{const a=useUserStore();return reactExports.useEffect(()=>{isE2E&&addToGlobalForE2e(a,"userStore")},[a]),jsxRuntimeExports.jsx("div",{id:"e2e-check"})},E2ETests=reactExports.memo(()=>isE2E?jsxRuntimeExports.jsx(E2E,{}):null);async function getBalance(a){return api$1.get("/balance",{Authorization:a})}async function updateBudget(a){const o=await getLSat();if(!o){a(0);return}try{const et=await getBalance(o);a(et.balance)}catch{a(0)}}const common={black:"#000",white:"#fff"},common$1=common,red={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"},red$1=red,purple={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"},purple$1=purple,blue={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"},blue$1=blue,lightBlue={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"},lightBlue$1=lightBlue,green={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"},green$1=green,orange={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"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey;function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var o=1;o{o[et]=deepClone(a[et])}),o}function deepmerge(a,o,et={clone:!0}){const tt=et.clone?_extends({},a):a;return isPlainObject(a)&&isPlainObject(o)&&Object.keys(o).forEach(rt=>{rt!=="__proto__"&&(isPlainObject(o[rt])&&rt in a&&isPlainObject(a[rt])?tt[rt]=deepmerge(a[rt],o[rt],et):et.clone?tt[rt]=isPlainObject(o[rt])?deepClone(o[rt]):o[rt]:tt[rt]=o[rt])}),tt}function formatMuiErrorMessage(a){let o="https://mui.com/production-error/?code="+a;for(let et=1;et{if(tt.toString().match(/^(components|slots)$/))et[tt]=_extends({},a[tt],et[tt]);else if(tt.toString().match(/^(componentsProps|slotProps)$/)){const rt=a[tt]||{},nt=o[tt];et[tt]={},!nt||!Object.keys(nt)?et[tt]=rt:!rt||!Object.keys(rt)?et[tt]=nt:(et[tt]=_extends({},nt),Object.keys(rt).forEach(it=>{et[tt][it]=resolveProps(rt[it],nt[it])}))}else et[tt]===void 0&&(et[tt]=a[tt])}),et}function composeClasses(a,o,et=void 0){const tt={};return Object.keys(a).forEach(rt=>{tt[rt]=a[rt].reduce((nt,it)=>{if(it){const st=o(it);st!==""&&nt.push(st),et&&et[it]&&nt.push(et[it])}return nt},[]).join(" ")}),tt}const defaultGenerator=a=>a,createClassNameGenerator=()=>{let a=defaultGenerator;return{configure(o){a=o},generate(o){return a(o)},reset(){a=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(a,o,et="Mui"){const tt=globalStateClassesMapping[o];return tt?`${et}-${tt}`:`${ClassNameGenerator$1.generate(a)}-${o}`}function generateUtilityClasses(a,o,et="Mui"){const tt={};return o.forEach(rt=>{tt[rt]=generateUtilityClass(a,rt,et)}),tt}const THEME_ID="$$material";function _objectWithoutPropertiesLoose(a,o){if(a==null)return{};var et={},tt=Object.keys(a),rt,nt;for(nt=0;nt=0)&&(et[rt]=a[rt]);return et}var reactPropsRegex=/^((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|download|draggable|encType|enterKeyHint|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|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|enableBackground|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)-.*))$/,isPropValid=memoize$1(function(a){return reactPropsRegex.test(a)||a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)<91});function sheetForTag(a){if(a.sheet)return a.sheet;for(var o=0;o0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(a,o){for(;--o&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(a,caret()+(o<6&&peek()==32&&next()==32))}function delimiter(a){for(;next();)switch(character){case a:return position;case 34:case 39:a!==34&&a!==39&&delimiter(character);break;case 40:a===41&&delimiter(a);break;case 92:next();break}return position}function commenter(a,o){for(;next()&&a+character!==47+10;)if(a+character===42+42&&peek()===47)break;return"/*"+slice(o,position-1)+"*"+from(a===47?a:next())}function identifier(a){for(;!token(peek());)next();return slice(a,position)}function compile(a){return dealloc(parse$1("",null,null,null,[""],a=alloc(a),0,[0],a))}function parse$1(a,o,et,tt,rt,nt,it,st,at){for(var lt=0,ht=0,vt=it,gt=0,wt=0,ut=0,pt=1,Et=1,yt=1,bt=0,kt="",It=rt,Ot=nt,Nt=tt,Vt=kt;Et;)switch(ut=bt,bt=next()){case 40:if(ut!=108&&charat(Vt,vt-1)==58){indexof(Vt+=replace(delimit(bt),"&","&\f"),"&\f")!=-1&&(yt=-1);break}case 34:case 39:case 91:Vt+=delimit(bt);break;case 9:case 10:case 13:case 32:Vt+=whitespace(ut);break;case 92:Vt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),o,et),at);break;default:Vt+="/"}break;case 123*pt:st[lt++]=strlen(Vt)*yt;case 125*pt:case 59:case 0:switch(bt){case 0:case 125:Et=0;case 59+ht:yt==-1&&(Vt=replace(Vt,/\f/g,"")),wt>0&&strlen(Vt)-vt&&append(wt>32?declaration(Vt+";",tt,et,vt-1):declaration(replace(Vt," ","")+";",tt,et,vt-2),at);break;case 59:Vt+=";";default:if(append(Nt=ruleset(Vt,o,et,lt,ht,rt,st,kt,It=[],Ot=[],vt),nt),bt===123)if(ht===0)parse$1(Vt,o,Nt,Nt,It,nt,vt,st,Ot);else switch(gt===99&&charat(Vt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1(a,Nt,Nt,tt&&append(ruleset(a,Nt,Nt,0,0,rt,st,kt,rt,It=[],vt),Ot),rt,Ot,vt,st,tt?It:Ot);break;default:parse$1(Vt,Nt,Nt,Nt,[""],Ot,0,st,Ot)}}lt=ht=wt=0,pt=yt=1,kt=Vt="",vt=it;break;case 58:vt=1+strlen(Vt),wt=ut;default:if(pt<1){if(bt==123)--pt;else if(bt==125&&pt++==0&&prev$1()==125)continue}switch(Vt+=from(bt),bt*pt){case 38:yt=ht>0?1:(Vt+="\f",-1);break;case 44:st[lt++]=(strlen(Vt)-1)*yt,yt=1;break;case 64:peek()===45&&(Vt+=delimit(next())),gt=peek(),ht=vt=strlen(kt=Vt+=identifier(caret())),bt++;break;case 45:ut===45&&strlen(Vt)==2&&(pt=0)}}return nt}function ruleset(a,o,et,tt,rt,nt,it,st,at,lt,ht){for(var vt=rt-1,gt=rt===0?nt:[""],wt=sizeof(gt),ut=0,pt=0,Et=0;ut0?gt[yt]+" "+bt:replace(bt,/&\f/g,gt[yt])))&&(at[Et++]=kt);return node(a,o,et,rt===0?RULESET:st,at,lt,ht)}function comment(a,o,et){return node(a,o,et,COMMENT,from(char()),substr(a,2,-2),0)}function declaration(a,o,et,tt){return node(a,o,et,DECLARATION,substr(a,0,tt),substr(a,tt+1,-1),tt)}function serialize(a,o){for(var et="",tt=sizeof(a),rt=0;rt6)switch(charat(a,o+1)){case 109:if(charat(a,o+4)!==45)break;case 102:return replace(a,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(a,o+3)==108?"$3":"$2-$3"))+a;case 115:return~indexof(a,"stretch")?prefix(replace(a,"stretch","fill-available"),o)+a:a}break;case 4949:if(charat(a,o+1)!==115)break;case 6444:switch(charat(a,strlen(a)-3-(~indexof(a,"!important")&&10))){case 107:return replace(a,":",":"+WEBKIT)+a;case 101:return replace(a,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(a,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+a}break;case 5936:switch(charat(a,o+11)){case 114:return WEBKIT+a+MS+replace(a,/[svh]\w+-[tblr]{2}/,"tb")+a;case 108:return WEBKIT+a+MS+replace(a,/[svh]\w+-[tblr]{2}/,"tb-rl")+a;case 45:return WEBKIT+a+MS+replace(a,/[svh]\w+-[tblr]{2}/,"lr")+a}return WEBKIT+a+MS+a+a}return a}var prefixer=function(o,et,tt,rt){if(o.length>-1&&!o.return)switch(o.type){case DECLARATION:o.return=prefix(o.value,o.length);break;case KEYFRAMES:return serialize([copy(o,{value:replace(o.value,"@","@"+WEBKIT)})],rt);case RULESET:if(o.length)return combine(o.props,function(nt){switch(match(nt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(o,{props:[replace(nt,/:(read-\w+)/,":"+MOZ+"$1")]})],rt);case"::placeholder":return serialize([copy(o,{props:[replace(nt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(o,{props:[replace(nt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(o,{props:[replace(nt,/:(plac\w+)/,MS+"input-$1")]})],rt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(o){var et=o.key;if(et==="css"){var tt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(tt,function(pt){var Et=pt.getAttribute("data-emotion");Et.indexOf(" ")!==-1&&(document.head.appendChild(pt),pt.setAttribute("data-s",""))})}var rt=o.stylisPlugins||defaultStylisPlugins,nt={},it,st=[];it=o.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+et+' "]'),function(pt){for(var Et=pt.getAttribute("data-emotion").split(" "),yt=1;yt=4;++tt,rt-=4)et=a.charCodeAt(tt)&255|(a.charCodeAt(++tt)&255)<<8|(a.charCodeAt(++tt)&255)<<16|(a.charCodeAt(++tt)&255)<<24,et=(et&65535)*1540483477+((et>>>16)*59797<<16),et^=et>>>24,o=(et&65535)*1540483477+((et>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(rt){case 3:o^=(a.charCodeAt(tt+2)&255)<<16;case 2:o^=(a.charCodeAt(tt+1)&255)<<8;case 1:o^=a.charCodeAt(tt)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}var unitlessKeys={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,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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(o){return o.charCodeAt(1)===45},isProcessableValue=function(o){return o!=null&&typeof o!="boolean"},processStyleName=memoize$1(function(a){return isCustomProperty(a)?a:a.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(o,et){switch(o){case"animation":case"animationName":if(typeof et=="string")return et.replace(animationRegex,function(tt,rt,nt){return cursor={name:rt,styles:nt,next:cursor},rt})}return unitlessKeys[o]!==1&&!isCustomProperty(o)&&typeof et=="number"&&et!==0?et+"px":et},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(a,o,et){if(et==null)return"";if(et.__emotion_styles!==void 0)return et;switch(typeof et){case"boolean":return"";case"object":{if(et.anim===1)return cursor={name:et.name,styles:et.styles,next:cursor},et.name;if(et.styles!==void 0){var tt=et.next;if(tt!==void 0)for(;tt!==void 0;)cursor={name:tt.name,styles:tt.styles,next:cursor},tt=tt.next;var rt=et.styles+";";return rt}return createStringFromObject(a,o,et)}case"function":{if(a!==void 0){var nt=cursor,it=et(a);return cursor=nt,handleInterpolation(a,o,it)}break}}if(o==null)return et;var st=o[et];return st!==void 0?st:et}function createStringFromObject(a,o,et){var tt="";if(Array.isArray(et))for(var rt=0;rt96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(o,et,tt){var rt;if(et){var nt=et.shouldForwardProp;rt=o.__emotion_forwardProp&&nt?function(it){return o.__emotion_forwardProp(it)&&nt(it)}:nt}return typeof rt!="function"&&tt&&(rt=o.__emotion_forwardProp),rt},Insertion=function(o){var et=o.cache,tt=o.serialized,rt=o.isStringTag;return registerStyles(et,tt,rt),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(et,tt,rt)}),null},createStyled$1=function a(o,et){var tt=o.__emotion_real===o,rt=tt&&o.__emotion_base||o,nt,it;et!==void 0&&(nt=et.label,it=et.target);var st=composeShouldForwardProps(o,et,tt),at=st||getDefaultShouldForwardProp(rt),lt=!at("as");return function(){var ht=arguments,vt=tt&&o.__emotion_styles!==void 0?o.__emotion_styles.slice(0):[];if(nt!==void 0&&vt.push("label:"+nt+";"),ht[0]==null||ht[0].raw===void 0)vt.push.apply(vt,ht);else{vt.push(ht[0][0]);for(var gt=ht.length,wt=1;wt{Array.isArray(a.__emotion_styles)&&(a.__emotion_styles=o(a.__emotion_styles))},_excluded$a=["values","unit","step"],sortBreakpointsValues=a=>{const o=Object.keys(a).map(et=>({key:et,val:a[et]}))||[];return o.sort((et,tt)=>et.val-tt.val),o.reduce((et,tt)=>_extends({},et,{[tt.key]:tt.val}),{})};function createBreakpoints(a){const{values:o={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:et="px",step:tt=5}=a,rt=_objectWithoutPropertiesLoose(a,_excluded$a),nt=sortBreakpointsValues(o),it=Object.keys(nt);function st(gt){return`@media (min-width:${typeof o[gt]=="number"?o[gt]:gt}${et})`}function at(gt){return`@media (max-width:${(typeof o[gt]=="number"?o[gt]:gt)-tt/100}${et})`}function lt(gt,wt){const ut=it.indexOf(wt);return`@media (min-width:${typeof o[gt]=="number"?o[gt]:gt}${et}) and (max-width:${(ut!==-1&&typeof o[it[ut]]=="number"?o[it[ut]]:wt)-tt/100}${et})`}function ht(gt){return it.indexOf(gt)+1`@media (min-width:${values[a]}px)`};function handleBreakpoints(a,o,et){const tt=a.theme||{};if(Array.isArray(o)){const nt=tt.breakpoints||defaultBreakpoints;return o.reduce((it,st,at)=>(it[nt.up(nt.keys[at])]=et(o[at]),it),{})}if(typeof o=="object"){const nt=tt.breakpoints||defaultBreakpoints;return Object.keys(o).reduce((it,st)=>{if(Object.keys(nt.values||values).indexOf(st)!==-1){const at=nt.up(st);it[at]=et(o[st],st)}else{const at=st;it[at]=o[at]}return it},{})}return et(o)}function createEmptyBreakpointObject(a={}){var o;return((o=a.keys)==null?void 0:o.reduce((tt,rt)=>{const nt=a.up(rt);return tt[nt]={},tt},{}))||{}}function removeUnusedBreakpoints(a,o){return a.reduce((et,tt)=>{const rt=et[tt];return(!rt||Object.keys(rt).length===0)&&delete et[tt],et},o)}function mergeBreakpointsInOrder(a,...o){const et=createEmptyBreakpointObject(a),tt=[et,...o].reduce((rt,nt)=>deepmerge(rt,nt),{});return removeUnusedBreakpoints(Object.keys(et),tt)}function computeBreakpointsBase(a,o){if(typeof a!="object")return{};const et={},tt=Object.keys(o);return Array.isArray(a)?tt.forEach((rt,nt)=>{nt{a[rt]!=null&&(et[rt]=!0)}),et}function resolveBreakpointValues({values:a,breakpoints:o,base:et}){const tt=et||computeBreakpointsBase(a,o),rt=Object.keys(tt);if(rt.length===0)return a;let nt;return rt.reduce((it,st,at)=>(Array.isArray(a)?(it[st]=a[at]!=null?a[at]:a[nt],nt=at):typeof a=="object"?(it[st]=a[st]!=null?a[st]:a[nt],nt=st):it[st]=a,it),{})}function getPath(a,o,et=!0){if(!o||typeof o!="string")return null;if(a&&a.vars&&et){const tt=`vars.${o}`.split(".").reduce((rt,nt)=>rt&&rt[nt]?rt[nt]:null,a);if(tt!=null)return tt}return o.split(".").reduce((tt,rt)=>tt&&tt[rt]!=null?tt[rt]:null,a)}function getStyleValue(a,o,et,tt=et){let rt;return typeof a=="function"?rt=a(et):Array.isArray(a)?rt=a[et]||tt:rt=getPath(a,et)||tt,o&&(rt=o(rt,tt,a)),rt}function style$2(a){const{prop:o,cssProperty:et=a.prop,themeKey:tt,transform:rt}=a,nt=it=>{if(it[o]==null)return null;const st=it[o],at=it.theme,lt=getPath(at,tt)||{};return handleBreakpoints(it,st,vt=>{let gt=getStyleValue(lt,rt,vt);return vt===gt&&typeof vt=="string"&&(gt=getStyleValue(lt,rt,`${o}${vt==="default"?"":capitalize(vt)}`,vt)),et===!1?gt:{[et]:gt}})};return nt.propTypes={},nt.filterProps=[o],nt}function memoize(a){const o={};return et=>(o[et]===void 0&&(o[et]=a(et)),o[et])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(a=>{if(a.length>2)if(aliases[a])a=aliases[a];else return[a];const[o,et]=a.split(""),tt=properties[o],rt=directions[et]||"";return Array.isArray(rt)?rt.map(nt=>tt+nt):[tt+rt]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(a,o,et,tt){var rt;const nt=(rt=getPath(a,o,!1))!=null?rt:et;return typeof nt=="number"?it=>typeof it=="string"?it:nt*it:Array.isArray(nt)?it=>typeof it=="string"?it:nt[it]:typeof nt=="function"?nt:()=>{}}function createUnarySpacing(a){return createUnaryUnit(a,"spacing",8)}function getValue(a,o){if(typeof o=="string"||o==null)return o;const et=Math.abs(o),tt=a(et);return o>=0?tt:typeof tt=="number"?-tt:`-${tt}`}function getStyleFromPropValue(a,o){return et=>a.reduce((tt,rt)=>(tt[rt]=getValue(o,et),tt),{})}function resolveCssProperty(a,o,et,tt){if(o.indexOf(et)===-1)return null;const rt=getCssProperties(et),nt=getStyleFromPropValue(rt,tt),it=a[et];return handleBreakpoints(a,it,nt)}function style$1(a,o){const et=createUnarySpacing(a.theme);return Object.keys(a).map(tt=>resolveCssProperty(a,o,tt,et)).reduce(merge,{})}function margin$1(a){return style$1(a,marginKeys)}margin$1.propTypes={};margin$1.filterProps=marginKeys;function padding$1(a){return style$1(a,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(a=8){if(a.mui)return a;const o=createUnarySpacing({spacing:a}),et=(...tt)=>(tt.length===0?[1]:tt).map(nt=>{const it=o(nt);return typeof it=="number"?`${it}px`:it}).join(" ");return et.mui=!0,et}function compose(...a){const o=a.reduce((tt,rt)=>(rt.filterProps.forEach(nt=>{tt[nt]=rt}),tt),{}),et=tt=>Object.keys(tt).reduce((rt,nt)=>o[nt]?merge(rt,o[nt](tt)):rt,{});return et.propTypes={},et.filterProps=a.reduce((tt,rt)=>tt.concat(rt.filterProps),[]),et}function borderTransform(a){return typeof a!="number"?a:`${a}px solid`}function createBorderStyle(a,o){return style$2({prop:a,themeKey:"borders",transform:o})}const border$1=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=a=>{if(a.borderRadius!==void 0&&a.borderRadius!==null){const o=createUnaryUnit(a.theme,"shape.borderRadius",4),et=tt=>({borderRadius:getValue(o,tt)});return handleBreakpoints(a,a.borderRadius,et)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border$1,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=a=>{if(a.gap!==void 0&&a.gap!==null){const o=createUnaryUnit(a.theme,"spacing",8),et=tt=>({gap:getValue(o,tt)});return handleBreakpoints(a,a.gap,et)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=a=>{if(a.columnGap!==void 0&&a.columnGap!==null){const o=createUnaryUnit(a.theme,"spacing",8),et=tt=>({columnGap:getValue(o,tt)});return handleBreakpoints(a,a.columnGap,et)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=a=>{if(a.rowGap!==void 0&&a.rowGap!==null){const o=createUnaryUnit(a.theme,"spacing",8),et=tt=>({rowGap:getValue(o,tt)});return handleBreakpoints(a,a.rowGap,et)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(a,o){return o==="grey"?o:a}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(a){return a<=1&&a!==0?`${a*100}%`:a}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=a=>{if(a.maxWidth!==void 0&&a.maxWidth!==null){const o=et=>{var tt,rt;const nt=((tt=a.theme)==null||(tt=tt.breakpoints)==null||(tt=tt.values)==null?void 0:tt[et])||values[et];return nt?((rt=a.theme)==null||(rt=rt.breakpoints)==null?void 0:rt.unit)!=="px"?{maxWidth:`${nt}${a.theme.breakpoints.unit}`}:{maxWidth:nt}:{maxWidth:sizingTransform(et)}};return handleBreakpoints(a,a.maxWidth,o)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin$1},mt:{style:margin$1},mr:{style:margin$1},mb:{style:margin$1},ml:{style:margin$1},mx:{style:margin$1},my:{style:margin$1},margin:{style:margin$1},marginTop:{style:margin$1},marginRight:{style:margin$1},marginBottom:{style:margin$1},marginLeft:{style:margin$1},marginX:{style:margin$1},marginY:{style:margin$1},marginInline:{style:margin$1},marginInlineStart:{style:margin$1},marginInlineEnd:{style:margin$1},marginBlock:{style:margin$1},marginBlockStart:{style:margin$1},marginBlockEnd:{style:margin$1},displayPrint:{cssProperty:!1,transform:a=>({"@media print":{display:a}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...a){const o=a.reduce((tt,rt)=>tt.concat(Object.keys(rt)),[]),et=new Set(o);return a.every(tt=>et.size===Object.keys(tt).length)}function callIfFn(a,o){return typeof a=="function"?a(o):a}function unstable_createStyleFunctionSx(){function a(et,tt,rt,nt){const it={[et]:tt,theme:rt},st=nt[et];if(!st)return{[et]:tt};const{cssProperty:at=et,themeKey:lt,transform:ht,style:vt}=st;if(tt==null)return null;if(lt==="typography"&&tt==="inherit")return{[et]:tt};const gt=getPath(rt,lt)||{};return vt?vt(it):handleBreakpoints(it,tt,ut=>{let pt=getStyleValue(gt,ht,ut);return ut===pt&&typeof ut=="string"&&(pt=getStyleValue(gt,ht,`${et}${ut==="default"?"":capitalize(ut)}`,ut)),at===!1?pt:{[at]:pt}})}function o(et){var tt;const{sx:rt,theme:nt={}}=et||{};if(!rt)return null;const it=(tt=nt.unstable_sxConfig)!=null?tt:defaultSxConfig$1;function st(at){let lt=at;if(typeof at=="function")lt=at(nt);else if(typeof at!="object")return at;if(!lt)return null;const ht=createEmptyBreakpointObject(nt.breakpoints),vt=Object.keys(ht);let gt=ht;return Object.keys(lt).forEach(wt=>{const ut=callIfFn(lt[wt],nt);if(ut!=null)if(typeof ut=="object")if(it[wt])gt=merge(gt,a(wt,ut,nt,it));else{const pt=handleBreakpoints({theme:nt},ut,Et=>({[wt]:Et}));objectsHaveSameKeys(pt,ut)?gt[wt]=o({sx:ut,theme:nt}):gt=merge(gt,pt)}else gt=merge(gt,a(wt,ut,nt,it))}),removeUnusedBreakpoints(vt,gt)}return Array.isArray(rt)?rt.map(st):st(rt)}return o}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx,_excluded$9=["breakpoints","palette","spacing","shape"];function createTheme$1(a={},...o){const{breakpoints:et={},palette:tt={},spacing:rt,shape:nt={}}=a,it=_objectWithoutPropertiesLoose(a,_excluded$9),st=createBreakpoints(et),at=createSpacing(rt);let lt=deepmerge({breakpoints:st,direction:"ltr",components:{},palette:_extends({mode:"light"},tt),spacing:at,shape:_extends({},shape$1,nt)},it);return lt=o.reduce((ht,vt)=>deepmerge(ht,vt),lt),lt.unstable_sxConfig=_extends({},defaultSxConfig$1,it==null?void 0:it.unstable_sxConfig),lt.unstable_sx=function(vt){return styleFunctionSx$1({sx:vt,theme:this})},lt}function isObjectEmpty(a){return Object.keys(a).length===0}function useTheme$3(a=null){const o=reactExports.useContext(ThemeContext$2);return!o||isObjectEmpty(o)?a:o}const systemDefaultTheme$1=createTheme$1();function useTheme$2(a=systemDefaultTheme$1){return useTheme$3(a)}const _excluded$8=["variant"];function isEmpty$1(a){return a.length===0}function propsToClassKey(a){const{variant:o}=a,et=_objectWithoutPropertiesLoose(a,_excluded$8);let tt=o||"";return Object.keys(et).sort().forEach(rt=>{rt==="color"?tt+=isEmpty$1(tt)?a[rt]:capitalize(a[rt]):tt+=`${isEmpty$1(tt)?rt:capitalize(rt)}${capitalize(a[rt].toString())}`}),tt}const _excluded$7=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty(a){return Object.keys(a).length===0}function isStringTag(a){return typeof a=="string"&&a.charCodeAt(0)>96}const getStyleOverrides=(a,o)=>o.components&&o.components[a]&&o.components[a].styleOverrides?o.components[a].styleOverrides:null,transformVariants=a=>{const o={};return a&&a.forEach(et=>{const tt=propsToClassKey(et.props);o[tt]=et.style}),o},getVariantStyles=(a,o)=>{let et=[];return o&&o.components&&o.components[a]&&o.components[a].variants&&(et=o.components[a].variants),transformVariants(et)},variantsResolver=(a,o,et)=>{const{ownerState:tt={}}=a,rt=[];return et&&et.forEach(nt=>{let it=!0;Object.keys(nt.props).forEach(st=>{tt[st]!==nt.props[st]&&a[st]!==nt.props[st]&&(it=!1)}),it&&rt.push(o[propsToClassKey(nt.props)])}),rt},themeVariantsResolver=(a,o,et,tt)=>{var rt;const nt=et==null||(rt=et.components)==null||(rt=rt[tt])==null?void 0:rt.variants;return variantsResolver(a,o,nt)};function shouldForwardProp(a){return a!=="ownerState"&&a!=="theme"&&a!=="sx"&&a!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=a=>a&&a.charAt(0).toLowerCase()+a.slice(1);function resolveTheme({defaultTheme:a,theme:o,themeId:et}){return isEmpty(o)?a:o[et]||o}function defaultOverridesResolver(a){return a?(o,et)=>et[a]:null}const muiStyledFunctionResolver=({styledArg:a,props:o,defaultTheme:et,themeId:tt})=>{const rt=a(_extends({},o,{theme:resolveTheme(_extends({},o,{defaultTheme:et,themeId:tt}))}));let nt;if(rt&&rt.variants&&(nt=rt.variants,delete rt.variants),nt){const it=variantsResolver(o,transformVariants(nt),nt);return[rt,...it]}return rt};function createStyled(a={}){const{themeId:o,defaultTheme:et=systemDefaultTheme,rootShouldForwardProp:tt=shouldForwardProp,slotShouldForwardProp:rt=shouldForwardProp}=a,nt=it=>styleFunctionSx$1(_extends({},it,{theme:resolveTheme(_extends({},it,{defaultTheme:et,themeId:o}))}));return nt.__mui_systemSx=!0,(it,st={})=>{internal_processStyles(it,It=>It.filter(Ot=>!(Ot!=null&&Ot.__mui_systemSx)));const{name:at,slot:lt,skipVariantsResolver:ht,skipSx:vt,overridesResolver:gt=defaultOverridesResolver(lowercaseFirstLetter(lt))}=st,wt=_objectWithoutPropertiesLoose(st,_excluded$7),ut=ht!==void 0?ht:lt&<!=="Root"&<!=="root"||!1,pt=vt||!1;let Et,yt=shouldForwardProp;lt==="Root"||lt==="root"?yt=tt:lt?yt=rt:isStringTag(it)&&(yt=void 0);const bt=styled$2(it,_extends({shouldForwardProp:yt,label:Et},wt)),kt=(It,...Ot)=>{const Nt=Ot?Ot.map(or=>{if(typeof or=="function"&&or.__emotion_real!==or)return qt=>muiStyledFunctionResolver({styledArg:or,props:qt,defaultTheme:et,themeId:o});if(isPlainObject(or)){let qt=or,Rt;return or&&or.variants&&(Rt=or.variants,delete qt.variants,qt=Bt=>{let ct=or;return variantsResolver(Bt,transformVariants(Rt),Rt).forEach(St=>{ct=deepmerge(ct,St)}),ct}),qt}return or}):[];let Vt=It;if(isPlainObject(It)){let or;It&&It.variants&&(or=It.variants,delete Vt.variants,Vt=qt=>{let Rt=It;return variantsResolver(qt,transformVariants(or),or).forEach(ct=>{Rt=deepmerge(Rt,ct)}),Rt})}else typeof It=="function"&&It.__emotion_real!==It&&(Vt=or=>muiStyledFunctionResolver({styledArg:It,props:or,defaultTheme:et,themeId:o}));at&>&&Nt.push(or=>{const qt=resolveTheme(_extends({},or,{defaultTheme:et,themeId:o})),Rt=getStyleOverrides(at,qt);if(Rt){const Bt={};return Object.entries(Rt).forEach(([ct,xt])=>{Bt[ct]=typeof xt=="function"?xt(_extends({},or,{theme:qt})):xt}),gt(or,Bt)}return null}),at&&!ut&&Nt.push(or=>{const qt=resolveTheme(_extends({},or,{defaultTheme:et,themeId:o}));return themeVariantsResolver(or,getVariantStyles(at,qt),qt,at)}),pt||Nt.push(nt);const jt=Nt.length-Ot.length;if(Array.isArray(It)&&jt>0){const or=new Array(jt).fill("");Vt=[...It,...or],Vt.raw=[...It.raw,...or]}const zt=bt(Vt,...Nt);return it.muiName&&(zt.muiName=it.muiName),zt};return bt.withConfig&&(kt.withConfig=bt.withConfig),kt}}function getThemeProps(a){const{theme:o,name:et,props:tt}=a;return!o||!o.components||!o.components[et]||!o.components[et].defaultProps?tt:resolveProps(o.components[et].defaultProps,tt)}function useThemeProps$1({props:a,name:o,defaultTheme:et,themeId:tt}){let rt=useTheme$2(et);return tt&&(rt=rt[tt]||rt),getThemeProps({theme:rt,name:o,props:a})}function clamp(a,o=0,et=1){return Math.min(Math.max(o,a),et)}function hexToRgb(a){a=a.slice(1);const o=new RegExp(`.{1,${a.length>=6?2:1}}`,"g");let et=a.match(o);return et&&et[0].length===1&&(et=et.map(tt=>tt+tt)),et?`rgb${et.length===4?"a":""}(${et.map((tt,rt)=>rt<3?parseInt(tt,16):Math.round(parseInt(tt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(a){if(a.type)return a;if(a.charAt(0)==="#")return decomposeColor(hexToRgb(a));const o=a.indexOf("("),et=a.substring(0,o);if(["rgb","rgba","hsl","hsla","color"].indexOf(et)===-1)throw new Error(formatMuiErrorMessage(9,a));let tt=a.substring(o+1,a.length-1),rt;if(et==="color"){if(tt=tt.split(" "),rt=tt.shift(),tt.length===4&&tt[3].charAt(0)==="/"&&(tt[3]=tt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage(10,rt))}else tt=tt.split(",");return tt=tt.map(nt=>parseFloat(nt)),{type:et,values:tt,colorSpace:rt}}function recomposeColor(a){const{type:o,colorSpace:et}=a;let{values:tt}=a;return o.indexOf("rgb")!==-1?tt=tt.map((rt,nt)=>nt<3?parseInt(rt,10):rt):o.indexOf("hsl")!==-1&&(tt[1]=`${tt[1]}%`,tt[2]=`${tt[2]}%`),o.indexOf("color")!==-1?tt=`${et} ${tt.join(" ")}`:tt=`${tt.join(", ")}`,`${o}(${tt})`}function hslToRgb(a){a=decomposeColor(a);const{values:o}=a,et=o[0],tt=o[1]/100,rt=o[2]/100,nt=tt*Math.min(rt,1-rt),it=(lt,ht=(lt+et/30)%12)=>rt-nt*Math.max(Math.min(ht-3,9-ht,1),-1);let st="rgb";const at=[Math.round(it(0)*255),Math.round(it(8)*255),Math.round(it(4)*255)];return a.type==="hsla"&&(st+="a",at.push(o[3])),recomposeColor({type:st,values:at})}function getLuminance(a){a=decomposeColor(a);let o=a.type==="hsl"||a.type==="hsla"?decomposeColor(hslToRgb(a)).values:a.values;return o=o.map(et=>(a.type!=="color"&&(et/=255),et<=.03928?et/12.92:((et+.055)/1.055)**2.4)),Number((.2126*o[0]+.7152*o[1]+.0722*o[2]).toFixed(3))}function getContrastRatio(a,o){const et=getLuminance(a),tt=getLuminance(o);return(Math.max(et,tt)+.05)/(Math.min(et,tt)+.05)}function alpha(a,o){return a=decomposeColor(a),o=clamp(o),(a.type==="rgb"||a.type==="hsl")&&(a.type+="a"),a.type==="color"?a.values[3]=`/${o}`:a.values[3]=o,recomposeColor(a)}function darken(a,o){if(a=decomposeColor(a),o=clamp(o),a.type.indexOf("hsl")!==-1)a.values[2]*=1-o;else if(a.type.indexOf("rgb")!==-1||a.type.indexOf("color")!==-1)for(let et=0;et<3;et+=1)a.values[et]*=1-o;return recomposeColor(a)}function lighten(a,o){if(a=decomposeColor(a),o=clamp(o),a.type.indexOf("hsl")!==-1)a.values[2]+=(100-a.values[2])*o;else if(a.type.indexOf("rgb")!==-1)for(let et=0;et<3;et+=1)a.values[et]+=(255-a.values[et])*o;else if(a.type.indexOf("color")!==-1)for(let et=0;et<3;et+=1)a.values[et]+=(1-a.values[et])*o;return recomposeColor(a)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(a,o){return typeof o=="function"?o(a):_extends({},a,o)}function ThemeProvider$2(a){const{children:o,theme:et}=a,tt=useTheme$1(),rt=reactExports.useMemo(()=>{const nt=tt===null?et:mergeOuterLocalTheme(tt,et);return nt!=null&&(nt[nested]=tt!==null),nt},[et,tt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:rt,children:o})}const EMPTY_THEME={};function useThemeScoping(a,o,et,tt=!1){return reactExports.useMemo(()=>{const rt=a&&o[a]||o;if(typeof et=="function"){const nt=et(rt),it=a?_extends({},o,{[a]:nt}):nt;return tt?()=>it:it}return a?_extends({},o,{[a]:et}):_extends({},o,et)},[a,o,et,tt])}function ThemeProvider$1(a){const{children:o,theme:et,themeId:tt}=a,rt=useTheme$3(EMPTY_THEME),nt=useTheme$1()||EMPTY_THEME,it=useThemeScoping(tt,rt,et),st=useThemeScoping(tt,nt,et,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:st,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:it,children:o})})}function createMixins(a,o){return _extends({toolbar:{minHeight:56,[a.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[a.up("sm")]:{minHeight:64}}},o)}const _excluded$6=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(a,o,et,tt){const rt=tt.light||tt,nt=tt.dark||tt*1.5;a[o]||(a.hasOwnProperty(et)?a[o]=a[et]:o==="light"?a.light=lighten(a.main,rt):o==="dark"&&(a.dark=darken(a.main,nt)))}function getDefaultPrimary(a="light"){return a==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(a="light"){return a==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(a="light"){return a==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(a="light"){return a==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(a="light"){return a==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(a="light"){return a==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(a){const{mode:o="light",contrastThreshold:et=3,tonalOffset:tt=.2}=a,rt=_objectWithoutPropertiesLoose(a,_excluded$6),nt=a.primary||getDefaultPrimary(o),it=a.secondary||getDefaultSecondary(o),st=a.error||getDefaultError(o),at=a.info||getDefaultInfo(o),lt=a.success||getDefaultSuccess(o),ht=a.warning||getDefaultWarning(o);function vt(pt){return getContrastRatio(pt,dark.text.primary)>=et?dark.text.primary:light.text.primary}const gt=({color:pt,name:Et,mainShade:yt=500,lightShade:bt=300,darkShade:kt=700})=>{if(pt=_extends({},pt),!pt.main&&pt[yt]&&(pt.main=pt[yt]),!pt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,Et?` (${Et})`:"",yt));if(typeof pt.main!="string")throw new Error(formatMuiErrorMessage(12,Et?` (${Et})`:"",JSON.stringify(pt.main)));return addLightOrDark(pt,"light",bt,tt),addLightOrDark(pt,"dark",kt,tt),pt.contrastText||(pt.contrastText=vt(pt.main)),pt},wt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:o,primary:gt({color:nt,name:"primary"}),secondary:gt({color:it,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:gt({color:st,name:"error"}),warning:gt({color:ht,name:"warning"}),info:gt({color:at,name:"info"}),success:gt({color:lt,name:"success"}),grey:grey$1,contrastThreshold:et,getContrastText:vt,augmentColor:gt,tonalOffset:tt},wt[o]),rt)}const _excluded$5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(a){return Math.round(a*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(a,o){const et=typeof o=="function"?o(a):o,{fontFamily:tt=defaultFontFamily,fontSize:rt=14,fontWeightLight:nt=300,fontWeightRegular:it=400,fontWeightMedium:st=500,fontWeightBold:at=700,htmlFontSize:lt=16,allVariants:ht,pxToRem:vt}=et,gt=_objectWithoutPropertiesLoose(et,_excluded$5),wt=rt/14,ut=vt||(yt=>`${yt/lt*wt}rem`),pt=(yt,bt,kt,It,Ot)=>_extends({fontFamily:tt,fontWeight:yt,fontSize:ut(bt),lineHeight:kt},tt===defaultFontFamily?{letterSpacing:`${round(It/bt)}em`}:{},Ot,ht),Et={h1:pt(nt,96,1.167,-1.5),h2:pt(nt,60,1.2,-.5),h3:pt(it,48,1.167,0),h4:pt(it,34,1.235,.25),h5:pt(it,24,1.334,0),h6:pt(st,20,1.6,.15),subtitle1:pt(it,16,1.75,.15),subtitle2:pt(st,14,1.57,.1),body1:pt(it,16,1.5,.15),body2:pt(it,14,1.43,.15),button:pt(st,14,1.75,.4,caseAllCaps),caption:pt(it,12,1.66,.4),overline:pt(it,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:lt,pxToRem:ut,fontFamily:tt,fontSize:rt,fontWeightLight:nt,fontWeightRegular:it,fontWeightMedium:st,fontWeightBold:at},Et),gt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...a){return[`${a[0]}px ${a[1]}px ${a[2]}px ${a[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${a[4]}px ${a[5]}px ${a[6]}px ${a[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${a[8]}px ${a[9]}px ${a[10]}px ${a[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$4=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(a){return`${Math.round(a)}ms`}function getAutoHeightDuration(a){if(!a)return 0;const o=a/36;return Math.round((4+15*o**.25+o/5)*10)}function createTransitions(a){const o=_extends({},easing,a.easing),et=_extends({},duration,a.duration);return _extends({getAutoHeightDuration,create:(rt=["all"],nt={})=>{const{duration:it=et.standard,easing:st=o.easeInOut,delay:at=0}=nt;return _objectWithoutPropertiesLoose(nt,_excluded$4),(Array.isArray(rt)?rt:[rt]).map(lt=>`${lt} ${typeof it=="string"?it:formatMs(it)} ${st} ${typeof at=="string"?at:formatMs(at)}`).join(",")}},a,{easing:o,duration:et})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$3=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(a={},...o){const{mixins:et={},palette:tt={},transitions:rt={},typography:nt={}}=a,it=_objectWithoutPropertiesLoose(a,_excluded$3);if(a.vars)throw new Error(formatMuiErrorMessage(18));const st=createPalette(tt),at=createTheme$1(a);let lt=deepmerge(at,{mixins:createMixins(at.breakpoints,et),palette:st,shadows:shadows$1.slice(),typography:createTypography(st,nt),transitions:createTransitions(rt),zIndex:_extends({},zIndex$1)});return lt=deepmerge(lt,it),lt=o.reduce((ht,vt)=>deepmerge(ht,vt),lt),lt.unstable_sxConfig=_extends({},defaultSxConfig$1,it==null?void 0:it.unstable_sxConfig),lt.unstable_sx=function(vt){return styleFunctionSx$1({sx:vt,theme:this})},lt}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useTheme(){const a=useTheme$2(defaultTheme$1);return a[THEME_ID]||a}function useThemeProps({props:a,name:o}){return useThemeProps$1({props:a,name:o,defaultTheme:defaultTheme$1,themeId:THEME_ID})}const rootShouldForwardProp=a=>shouldForwardProp(a)&&a!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled,_excluded$2=["theme"];function ThemeProvider(a){let{theme:o}=a,et=_objectWithoutPropertiesLoose(a,_excluded$2);const tt=o[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends({},et,{themeId:tt?THEME_ID:void 0,theme:tt||o}))}function r$1(a){var o,et,tt="";if(typeof a=="string"||typeof a=="number")tt+=a;else if(typeof a=="object")if(Array.isArray(a))for(o=0;oa,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),indeterminate2Keyframe=keyframes(_t2||(_t2=_` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),bufferKeyframe=keyframes(_t3||(_t3=_` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),useUtilityClasses=a=>{const{classes:o,variant:et,color:tt}=a,rt={root:["root",`color${capitalize(tt)}`,et],dashed:["dashed",`dashedColor${capitalize(tt)}`],bar1:["bar",`barColor${capitalize(tt)}`,(et==="indeterminate"||et==="query")&&"bar1Indeterminate",et==="determinate"&&"bar1Determinate",et==="buffer"&&"bar1Buffer"],bar2:["bar",et!=="buffer"&&`barColor${capitalize(tt)}`,et==="buffer"&&`color${capitalize(tt)}`,(et==="indeterminate"||et==="query")&&"bar2Indeterminate",et==="buffer"&&"bar2Buffer"]};return composeClasses(rt,getLinearProgressUtilityClass,o)},getColorShade=(a,o)=>o==="inherit"?"currentColor":a.vars?a.vars.palette.LinearProgress[`${o}Bg`]:a.palette.mode==="light"?lighten(a.palette[o].main,.62):darken(a.palette[o].main,.5),LinearProgressRoot=styled$1("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(a,o)=>{const{ownerState:et}=a;return[o.root,o[`color${capitalize(et.color)}`],o[et.variant]]}})(({ownerState:a,theme:o})=>_extends({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:getColorShade(o,a.color)},a.color==="inherit"&&a.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},a.variant==="buffer"&&{backgroundColor:"transparent"},a.variant==="query"&&{transform:"rotate(180deg)"})),LinearProgressDashed=styled$1("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(a,o)=>{const{ownerState:et}=a;return[o.dashed,o[`dashedColor${capitalize(et.color)}`]]}})(({ownerState:a,theme:o})=>{const et=getColorShade(o,a.color);return _extends({position:"absolute",marginTop:0,height:"100%",width:"100%"},a.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${et} 0%, ${et} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},css(_t4||(_t4=_` - animation: ${0} 3s infinite linear; - `),bufferKeyframe)),LinearProgressBar1=styled$1("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(a,o)=>{const{ownerState:et}=a;return[o.bar,o[`barColor${capitalize(et.color)}`],(et.variant==="indeterminate"||et.variant==="query")&&o.bar1Indeterminate,et.variant==="determinate"&&o.bar1Determinate,et.variant==="buffer"&&o.bar1Buffer]}})(({ownerState:a,theme:o})=>_extends({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:a.color==="inherit"?"currentColor":(o.vars||o).palette[a.color].main},a.variant==="determinate"&&{transition:`transform .${TRANSITION_DURATION}s linear`},a.variant==="buffer"&&{zIndex:1,transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:a})=>(a.variant==="indeterminate"||a.variant==="query")&&css(_t5||(_t5=_` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),indeterminate1Keyframe)),LinearProgressBar2=styled$1("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(a,o)=>{const{ownerState:et}=a;return[o.bar,o[`barColor${capitalize(et.color)}`],(et.variant==="indeterminate"||et.variant==="query")&&o.bar2Indeterminate,et.variant==="buffer"&&o.bar2Buffer]}})(({ownerState:a,theme:o})=>_extends({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},a.variant!=="buffer"&&{backgroundColor:a.color==="inherit"?"currentColor":(o.vars||o).palette[a.color].main},a.color==="inherit"&&{opacity:.3},a.variant==="buffer"&&{backgroundColor:getColorShade(o,a.color),transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:a})=>(a.variant==="indeterminate"||a.variant==="query")&&css(_t6||(_t6=_` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),indeterminate2Keyframe)),LinearProgress=reactExports.forwardRef(function(o,et){const tt=useThemeProps({props:o,name:"MuiLinearProgress"}),{className:rt,color:nt="primary",value:it,valueBuffer:st,variant:at="indeterminate"}=tt,lt=_objectWithoutPropertiesLoose(tt,_excluded$1),ht=_extends({},tt,{color:nt,variant:at}),vt=useUtilityClasses(ht),gt=useTheme(),wt={},ut={bar1:{},bar2:{}};if((at==="determinate"||at==="buffer")&&it!==void 0){wt["aria-valuenow"]=Math.round(it),wt["aria-valuemin"]=0,wt["aria-valuemax"]=100;let pt=it-100;gt.direction==="rtl"&&(pt=-pt),ut.bar1.transform=`translateX(${pt}%)`}if(at==="buffer"&&st!==void 0){let pt=(st||0)-100;gt.direction==="rtl"&&(pt=-pt),ut.bar2.transform=`translateX(${pt}%)`}return jsxRuntimeExports.jsxs(LinearProgressRoot,_extends({className:clsx$1(vt.root,rt),ownerState:ht,role:"progressbar"},wt,{ref:et},lt,{children:[at==="buffer"?jsxRuntimeExports.jsx(LinearProgressDashed,{className:vt.dashed,ownerState:ht}):null,jsxRuntimeExports.jsx(LinearProgressBar1,{className:vt.bar1,ownerState:ht,style:ut.bar1}),at==="determinate"?null:jsxRuntimeExports.jsx(LinearProgressBar2,{className:vt.bar2,ownerState:ht,style:ut.bar2})]}))}),LinearProgress$1=LinearProgress,formatNumberWithCommas=(a,o="en-US")=>{try{return new Intl.NumberFormat(o).format(a)}catch(et){return console.error("Error formatting number:",et),a.toString()}};let signingPromise=null;async function getSignedMessageFromRelay(){let a="";const o=localStorage.getItem("signature");if(o){const et=JSON.parse(o);return{signature:et.signature,message:et.message}}try{a=btoa(`${window.crypto.randomUUID()}${new Date().getTime()}`)}catch{return{message:"",signature:""}}return isSphinx()?(signingPromise||(isE2E?signingPromise=sphinxBridge.signMessage(a).then(et=>{signingPromise=null;const tt={message:a,signature:et.response.sig};return storeSignatureInLocalStorage({...tt}),{...tt}}).catch(et=>(signingPromise=null,console.error(et),{message:"",signature:""})):signingPromise=distExports$1.signMessage(a).then(et=>{if(signingPromise=null,!et)return{message:"",signature:""};const tt={message:a,signature:(et==null?void 0:et.signature)||""};return storeSignatureInLocalStorage({...tt}),{...tt}}).catch(et=>(signingPromise=null,console.error(et),{message:"",signature:""}))),signingPromise):Promise.resolve({message:"",signature:""})}function storeSignatureInLocalStorage(a){localStorage.setItem("signature",JSON.stringify({...a}))}const initialMessageData=[{label:"New Content",key:"numDaily",dataKey:"num_daily",value:null},{label:"Audio Clips",key:"numAudio",dataKey:"num_audio",value:null},{label:"Posts",key:"numTwitterSpace",dataKey:"num_twitter_space",value:null}],formatStatsResponse=a=>Object.keys(a).filter(rt=>!rt.startsWith("num_")).map(rt=>({key:rt,value:a[rt]})).sort((rt,nt)=>nt.value-rt.value).slice(0,5).reduce((rt,{key:nt,value:it})=>(rt[nt]=it,rt),{}),formatSplashMessage=a=>initialMessageData.map(({dataKey:o,...et})=>({...et,value:formatNumberWithCommas(a[o]??0)})),_excluded=["localeText"],MuiPickersAdapterContext=reactExports.createContext(null),LocalizationProvider=function(o){var et;const{localeText:tt}=o,rt=_objectWithoutPropertiesLoose(o,_excluded),{utils:nt,localeText:it}=(et=reactExports.useContext(MuiPickersAdapterContext))!=null?et:{utils:void 0,localeText:void 0},st=useThemeProps({props:rt,name:"MuiLocalizationProvider"}),{children:at,dateAdapter:lt,dateFormats:ht,dateLibInstance:vt,adapterLocale:gt,localeText:wt}=st,ut=reactExports.useMemo(()=>_extends({},wt,it,tt),[wt,it,tt]),pt=reactExports.useMemo(()=>{if(!lt)return nt||null;const bt=new lt({locale:gt,formats:ht,instance:vt});if(!bt.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return bt},[lt,gt,ht,vt,nt]),Et=reactExports.useMemo(()=>pt?{minDate:pt.date("1900-01-01T00:00:00.000"),maxDate:pt.date("2099-12-31T00:00:00.000")}:null,[pt]),yt=reactExports.useMemo(()=>({utils:pt,defaultDates:Et,localeText:ut}),[Et,pt,ut]);return jsxRuntimeExports.jsx(MuiPickersAdapterContext.Provider,{value:yt,children:at})},formatTokenMap={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},defaultFormats={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},MISSING_TIMEZONE_PLUGIN=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(` -`);class AdapterMoment{constructor({locale:o,formats:et,instance:tt}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=formatTokenMap,this.setLocaleToValue=rt=>{const nt=this.getCurrentLocaleCode();return nt===rt.locale()?rt:rt.locale(nt)},this.syncMomentLocale=rt=>{var nt;const it=hooks.locale(),st=(nt=this.locale)!=null?nt:"en-us";if(it!==st){hooks.locale(st);const at=rt();return hooks.locale(it),at}return rt()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=rt=>{const nt=this.moment(rt).local();return this.locale===void 0?nt:nt.locale(this.locale)},this.createUTCDate=rt=>{const nt=this.moment.utc(rt);return this.locale===void 0?nt:nt.locale(this.locale)},this.createTZDate=(rt,nt)=>{if(!this.hasTimezonePlugin())throw new Error(MISSING_TIMEZONE_PLUGIN);const it=nt==="default"?this.moment(rt):this.moment.tz(rt,nt);return this.locale===void 0?it:it.locale(this.locale)},this.date=rt=>{if(rt===null)return null;const nt=this.moment(rt);return nt.locale(this.getCurrentLocaleCode()),nt},this.dateWithTimezone=(rt,nt)=>rt===null?null:nt==="UTC"?this.createUTCDate(rt):nt==="system"||nt==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(rt):this.createTZDate(rt,nt),this.getTimezone=rt=>{var nt,it,st;const at=(nt=rt._z)==null?void 0:nt.name,lt=rt.isUTC()?"UTC":"system";return(it=at??((st=this.moment.defaultZone)==null?void 0:st.name))!=null?it:lt},this.setTimezone=(rt,nt)=>{var it,st;if(this.getTimezone(rt)===nt)return rt;if(nt==="UTC")return rt.clone().utc();if(nt==="system")return rt.clone().local();if(!this.hasTimezonePlugin()){if(nt!=="default")throw new Error(MISSING_TIMEZONE_PLUGIN);return rt}const at=nt==="default"?(it=(st=this.moment.defaultZone)==null?void 0:st.name)!=null?it:"system":nt;if(at==="system")return rt.clone().local();const lt=rt.clone();return lt.tz(at),lt},this.toJsDate=rt=>rt.toDate(),this.parseISO=rt=>this.moment(rt,!0),this.toISO=rt=>rt.toISOString(),this.parse=(rt,nt)=>rt===""?null:this.locale?this.moment(rt,nt,this.locale,!0):this.moment(rt,nt,!0),this.getCurrentLocaleCode=()=>this.locale||hooks.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(hooks.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=rt=>{const nt=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return rt.match(nt).map(it=>{const st=it[0];return st==="L"||st===";"?hooks.localeData(this.getCurrentLocaleCode()).longDateFormat(it):it}).join("")},this.getFormatHelperText=rt=>this.expandFormat(rt).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=rt=>rt===null,this.isValid=rt=>this.moment(rt).isValid(),this.format=(rt,nt)=>this.formatByString(rt,this.formats[nt]),this.formatByString=(rt,nt)=>{const it=rt.clone();return it.locale(this.getCurrentLocaleCode()),it.format(nt)},this.formatNumber=rt=>rt,this.getDiff=(rt,nt,it)=>rt.diff(nt,it),this.isEqual=(rt,nt)=>rt===null&&nt===null?!0:this.moment(rt).isSame(nt),this.isSameYear=(rt,nt)=>rt.isSame(nt,"year"),this.isSameMonth=(rt,nt)=>rt.isSame(nt,"month"),this.isSameDay=(rt,nt)=>rt.isSame(nt,"day"),this.isSameHour=(rt,nt)=>rt.isSame(nt,"hour"),this.isAfter=(rt,nt)=>rt.isAfter(nt),this.isAfterYear=(rt,nt)=>rt.isAfter(nt,"year"),this.isAfterDay=(rt,nt)=>rt.isAfter(nt,"day"),this.isBefore=(rt,nt)=>rt.isBefore(nt),this.isBeforeYear=(rt,nt)=>rt.isBefore(nt,"year"),this.isBeforeDay=(rt,nt)=>rt.isBefore(nt,"day"),this.isWithinRange=(rt,[nt,it])=>rt.isBetween(nt,it,null,"[]"),this.startOfYear=rt=>rt.clone().startOf("year"),this.startOfMonth=rt=>rt.clone().startOf("month"),this.startOfWeek=rt=>rt.clone().startOf("week"),this.startOfDay=rt=>rt.clone().startOf("day"),this.endOfYear=rt=>rt.clone().endOf("year"),this.endOfMonth=rt=>rt.clone().endOf("month"),this.endOfWeek=rt=>rt.clone().endOf("week"),this.endOfDay=rt=>rt.clone().endOf("day"),this.addYears=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"years"):rt.clone().add(nt,"years"),this.addMonths=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"months"):rt.clone().add(nt,"months"),this.addWeeks=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"weeks"):rt.clone().add(nt,"weeks"),this.addDays=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"days"):rt.clone().add(nt,"days"),this.addHours=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"hours"):rt.clone().add(nt,"hours"),this.addMinutes=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"minutes"):rt.clone().add(nt,"minutes"),this.addSeconds=(rt,nt)=>nt<0?rt.clone().subtract(Math.abs(nt),"seconds"):rt.clone().add(nt,"seconds"),this.getYear=rt=>rt.get("year"),this.getMonth=rt=>rt.get("month"),this.getDate=rt=>rt.get("date"),this.getHours=rt=>rt.get("hours"),this.getMinutes=rt=>rt.get("minutes"),this.getSeconds=rt=>rt.get("seconds"),this.getMilliseconds=rt=>rt.get("milliseconds"),this.setYear=(rt,nt)=>rt.clone().year(nt),this.setMonth=(rt,nt)=>rt.clone().month(nt),this.setDate=(rt,nt)=>rt.clone().date(nt),this.setHours=(rt,nt)=>rt.clone().hours(nt),this.setMinutes=(rt,nt)=>rt.clone().minutes(nt),this.setSeconds=(rt,nt)=>rt.clone().seconds(nt),this.setMilliseconds=(rt,nt)=>rt.clone().milliseconds(nt),this.getDaysInMonth=rt=>rt.daysInMonth(),this.getNextMonth=rt=>rt.clone().add(1,"month"),this.getPreviousMonth=rt=>rt.clone().subtract(1,"month"),this.getMonthArray=rt=>{const it=[this.startOfYear(rt)];for(;it.length<12;){const st=it[it.length-1];it.push(this.getNextMonth(st))}return it},this.mergeDateAndTime=(rt,nt)=>rt.clone().hour(nt.hour()).minute(nt.minute()).second(nt.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>hooks.weekdaysShort(!0)),this.getWeekArray=rt=>{const nt=this.setLocaleToValue(rt),it=nt.clone().startOf("month").startOf("week"),st=nt.clone().endOf("month").endOf("week");let at=0,lt=it;const ht=[];for(;lt.isBefore(st);){const vt=Math.floor(at/7);ht[vt]=ht[vt]||[],ht[vt].push(lt),lt=lt.clone().add(1,"day"),at+=1}return ht},this.getWeekNumber=rt=>rt.week(),this.getYearRange=(rt,nt)=>{const it=this.moment(rt).startOf("year"),st=this.moment(nt).endOf("year"),at=[];let lt=it;for(;lt.isBefore(st);)at.push(lt),lt=lt.clone().add(1,"year");return at},this.getMeridiemText=rt=>this.is12HourCycleInCurrentLocale()?hooks.localeData(this.getCurrentLocaleCode()).meridiem(rt==="am"?0:13,0,!1):rt==="am"?"AM":"PM",this.moment=tt||hooks,this.locale=o,this.formats=_extends({},defaultFormats,et)}}const MuiButton={defaultProps:{disableElevation:!0,disableRipple:!0},styleOverrides:{root:{display:"inline-flex",padding:"12px 20px",justifyContent:"center",alignItems:"center",gap:"10px",borderRadius:"200px",background:colors.BUTTON1,color:"var(--Primary-Text, #fff)",fontFamily:"Barlow",fontSize:"12px",fontStyle:"normal",fontWeight:"400",lineHeight:"8px",cursor:"pointer",columnGap:"6px","&:hover":{background:colors.BUTTON1_HOVER,color:colors.GRAY3,outline:"none",boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&:active":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500,height:"28px"},"&.MuiButton-sizeMedium":{height:"32px",fontSize:"13px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"1.2rem",height:"40px"},"&.MuiButton-outlined":{}},textPrimary:{"& .MuiButton-endIcon":{color:colors.GRAY6},"& .MuiButton-startIcon":{color:colors.GRAY6}},outlined:{borderColor:colors.BUTTON1,borderWidth:"1px",backgroundColor:"transparent","&:hover":{borderColor:colors.BUTTON1_HOVER,backgroundColor:"transparent",color:colors.GRAY3},"&:active":{backgroundColor:colors.BUTTON1_PRESS,color:colors.GRAY6}},containedSecondary:{backgroundColor:colors.PRIMARY_BLUE,borderRadius:"6px",color:"white","&:hover":{backgroundColor:colors.PRIMARY_BLUE_BORDER,color:colors.white},"&:active":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&:focus":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"14px",maxHeight:"40px",fontWeight:600,lineHeight:"16px"},"&.Mui-disabled":{background:"rgba(48, 51, 66, 0.50)",color:"rgba(82, 86, 110, 1)"}},textSecondary:{color:"purple","&:hover":{color:"darkpurple"}},startIcon:{fontSize:"20px",marginRight:0,"& > *:nth-of-type(1)":{fontSize:"20px"}},endIcon:{fontSize:"20px","& > *:nth-of-type(1)":{fontSize:"20px"}}}},PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(a=>{PACKET_TYPES_REVERSE[PACKET_TYPES[a]]=a});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,encodePacket=({type:a,data:o},et,tt)=>withNativeBlob$1&&o instanceof Blob?et?tt(o):encodeBlobAsBase64(o,tt):withNativeArrayBuffer$2&&(o instanceof ArrayBuffer||isView$1(o))?et?tt(o):encodeBlobAsBase64(new Blob([o]),tt):tt(PACKET_TYPES[a]+(o||"")),encodeBlobAsBase64=(a,o)=>{const et=new FileReader;return et.onload=function(){const tt=et.result.split(",")[1];o("b"+(tt||""))},et.readAsDataURL(a)};function toArray(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(a,o){if(withNativeBlob$1&&a.data instanceof Blob)return a.data.arrayBuffer().then(toArray).then(o);if(withNativeArrayBuffer$2&&(a.data instanceof ArrayBuffer||isView$1(a.data)))return o(toArray(a.data));encodePacket(a,!1,et=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),o(TEXT_ENCODER.encode(et))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a{let o=a.length*.75,et=a.length,tt,rt=0,nt,it,st,at;a[a.length-1]==="="&&(o--,a[a.length-2]==="="&&o--);const lt=new ArrayBuffer(o),ht=new Uint8Array(lt);for(tt=0;tt>4,ht[rt++]=(it&15)<<4|st>>2,ht[rt++]=(st&3)<<6|at&63;return lt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(a,o)=>{if(typeof a!="string")return{type:"message",data:mapBinary(a,o)};const et=a.charAt(0);return et==="b"?{type:"message",data:decodeBase64Packet(a.substring(1),o)}:PACKET_TYPES_REVERSE[et]?a.length>1?{type:PACKET_TYPES_REVERSE[et],data:a.substring(1)}:{type:PACKET_TYPES_REVERSE[et]}:ERROR_PACKET},decodeBase64Packet=(a,o)=>{if(withNativeArrayBuffer$1){const et=decode$1(a);return mapBinary(et,o)}else return{base64:!0,data:a}},mapBinary=(a,o)=>{switch(o){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(a,o)=>{const et=a.length,tt=new Array(et);let rt=0;a.forEach((nt,it)=>{encodePacket(nt,!1,st=>{tt[it]=st,++rt===et&&o(tt.join(SEPARATOR))})})},decodePayload=(a,o)=>{const et=a.split(SEPARATOR),tt=[];for(let rt=0;rt{const tt=et.length;let rt;if(tt<126)rt=new Uint8Array(1),new DataView(rt.buffer).setUint8(0,tt);else if(tt<65536){rt=new Uint8Array(3);const nt=new DataView(rt.buffer);nt.setUint8(0,126),nt.setUint16(1,tt)}else{rt=new Uint8Array(9);const nt=new DataView(rt.buffer);nt.setUint8(0,127),nt.setBigUint64(1,BigInt(tt))}a.data&&typeof a.data!="string"&&(rt[0]|=128),o.enqueue(rt),o.enqueue(et)})}})}let TEXT_DECODER;function totalLength(a){return a.reduce((o,et)=>o+et.length,0)}function concatChunks(a,o){if(a[0].length===o)return a.shift();const et=new Uint8Array(o);let tt=0;for(let rt=0;rtMath.pow(2,53-32)-1){st.enqueue(ERROR_PACKET);break}rt=ht*Math.pow(2,32)+lt.getUint32(4),tt=3}else{if(totalLength(et)a){st.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(a){if(a)return mixin(a)}function mixin(a){for(var o in Emitter.prototype)a[o]=Emitter.prototype[o];return a}Emitter.prototype.on=Emitter.prototype.addEventListener=function(a,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(o),this};Emitter.prototype.once=function(a,o){function et(){this.off(a,et),o.apply(this,arguments)}return et.fn=o,this.on(a,et),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(a,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var et=this._callbacks["$"+a];if(!et)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var tt,rt=0;rttypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(a,...o){return o.reduce((et,tt)=>(a.hasOwnProperty(tt)&&(et[tt]=a[tt]),et),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(a,o){o.useNativeTimers?(a.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),a.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(a.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),a.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(a){return typeof a=="string"?utf8Length(a):Math.ceil((a.byteLength||a.size)*BASE64_OVERHEAD)}function utf8Length(a){let o=0,et=0;for(let tt=0,rt=a.length;tt=57344?et+=3:(tt++,et+=4);return et}function encode$1(a){let o="";for(let et in a)a.hasOwnProperty(et)&&(o.length&&(o+="&"),o+=encodeURIComponent(et)+"="+encodeURIComponent(a[et]));return o}function decode(a){let o={},et=a.split("&");for(let tt=0,rt=et.length;tt0);return o}function yeast(){const a=encode(+new Date);return a!==prev?(seed=0,prev=a):a+"."+encode(seed++)}for(;i{this.readyState="paused",o()};if(this.polling||!this.writable){let tt=0;this.polling&&(tt++,this.once("pollComplete",function(){--tt||et()})),this.writable||(tt++,this.once("drain",function(){--tt||et()}))}else et()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(o){const et=tt=>{if(this.readyState==="opening"&&tt.type==="open"&&this.onOpen(),tt.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(tt)};decodePayload(o,this.socket.binaryType).forEach(et),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const o=()=>{this.write([{type:"close"}])};this.readyState==="open"?o():this.once("open",o)}write(o){this.writable=!1,encodePayload(o,et=>{this.doWrite(et,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const o=this.opts.secure?"https":"http",et=this.query||{};return this.opts.timestampRequests!==!1&&(et[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!et.sid&&(et.b64=1),this.createUri(o,et)}request(o={}){return Object.assign(o,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request$1(this.uri(),o)}doWrite(o,et){const tt=this.request({method:"POST",data:o});tt.on("success",et),tt.on("error",(rt,nt)=>{this.onError("xhr post error",rt,nt)})}doPoll(){const o=this.request();o.on("data",this.onData.bind(this)),o.on("error",(et,tt)=>{this.onError("xhr poll error",et,tt)}),this.pollXhr=o}}let Request$1=class q0 extends Emitter{constructor(o,et){super(),installTimerFunctions(this,et),this.opts=et,this.method=et.method||"GET",this.uri=o,this.data=et.data!==void 0?et.data:null,this.create()}create(){var o;const et=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");et.xdomain=!!this.opts.xd;const tt=this.xhr=new XHR(et);try{tt.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){tt.setDisableHeaderCheck&&tt.setDisableHeaderCheck(!0);for(let rt in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(rt)&&tt.setRequestHeader(rt,this.opts.extraHeaders[rt])}}catch{}if(this.method==="POST")try{tt.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{tt.setRequestHeader("Accept","*/*")}catch{}(o=this.opts.cookieJar)===null||o===void 0||o.addCookies(tt),"withCredentials"in tt&&(tt.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(tt.timeout=this.opts.requestTimeout),tt.onreadystatechange=()=>{var rt;tt.readyState===3&&((rt=this.opts.cookieJar)===null||rt===void 0||rt.parseCookies(tt)),tt.readyState===4&&(tt.status===200||tt.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof tt.status=="number"?tt.status:0)},0))},tt.send(this.data)}catch(rt){this.setTimeoutFn(()=>{this.onError(rt)},0);return}typeof document<"u"&&(this.index=q0.requestsCount++,q0.requests[this.index]=this)}onError(o){this.emitReserved("error",o,this.xhr),this.cleanup(!0)}cleanup(o){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,o)try{this.xhr.abort()}catch{}typeof document<"u"&&delete q0.requests[this.index],this.xhr=null}}onLoad(){const o=this.xhr.responseText;o!==null&&(this.emitReserved("data",o),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Request$1.requestsCount=0;Request$1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const a="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(a,unloadHandler,!1)}}function unloadHandler(){for(let a in Request$1.requests)Request$1.requests.hasOwnProperty(a)&&Request$1.requests[a].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?o=>Promise.resolve().then(o):(o,et)=>et(o,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(o){super(o),this.supportsBinary=!o.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const o=this.uri(),et=this.opts.protocols,tt=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(tt.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?et?new WebSocket(o,et):new WebSocket(o):new WebSocket(o,et,tt)}catch(rt){return this.emitReserved("error",rt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=o=>this.onClose({description:"websocket connection closed",context:o}),this.ws.onmessage=o=>this.onData(o.data),this.ws.onerror=o=>this.onError("websocket error",o)}write(o){this.writable=!1;for(let et=0;et{const it={};try{usingBrowserWebSocket&&this.ws.send(nt)}catch{}rt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const o=this.opts.secure?"wss":"ws",et=this.query||{};return this.opts.timestampRequests&&(et[this.opts.timestampParam]=yeast()),this.supportsBinary||(et.b64=1),this.createUri(o,et)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(o=>{this.onError("webtransport error",o)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(o=>{const et=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),tt=o.readable.pipeThrough(et).getReader(),rt=createPacketEncoderStream();rt.readable.pipeTo(o.writable),this.writer=rt.writable.getWriter();const nt=()=>{tt.read().then(({done:st,value:at})=>{st||(this.onPacket(at),nt())}).catch(st=>{})};nt();const it={type:"open"};this.query.sid&&(it.data=`{"sid":"${this.query.sid}"}`),this.writer.write(it).then(()=>this.onOpen())})}))}write(o){this.writable=!1;for(let et=0;et{rt&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var o;(o=this.transport)===null||o===void 0||o.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(a){if(a.length>2e3)throw"URI too long";const o=a,et=a.indexOf("["),tt=a.indexOf("]");et!=-1&&tt!=-1&&(a=a.substring(0,et)+a.substring(et,tt).replace(/:/g,";")+a.substring(tt,a.length));let rt=re.exec(a||""),nt={},it=14;for(;it--;)nt[parts[it]]=rt[it]||"";return et!=-1&&tt!=-1&&(nt.source=o,nt.host=nt.host.substring(1,nt.host.length-1).replace(/;/g,":"),nt.authority=nt.authority.replace("[","").replace("]","").replace(/;/g,":"),nt.ipv6uri=!0),nt.pathNames=pathNames(nt,nt.path),nt.queryKey=queryKey(nt,nt.query),nt}function pathNames(a,o){const et=/\/{2,9}/g,tt=o.replace(et,"/").split("/");return(o.slice(0,1)=="/"||o.length===0)&&tt.splice(0,1),o.slice(-1)=="/"&&tt.splice(tt.length-1,1),tt}function queryKey(a,o){const et={};return o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(tt,rt,nt){rt&&(et[rt]=nt)}),et}let Socket$1=class Wo extends Emitter{constructor(o,et={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],o&&typeof o=="object"&&(et=o,o=null),o?(o=parse(o),et.hostname=o.host,et.secure=o.protocol==="https"||o.protocol==="wss",et.port=o.port,o.query&&(et.query=o.query)):et.host&&(et.hostname=parse(et.host).host),installTimerFunctions(this,et),this.secure=et.secure!=null?et.secure:typeof location<"u"&&location.protocol==="https:",et.hostname&&!et.port&&(et.port=this.secure?"443":"80"),this.hostname=et.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=et.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=et.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},et),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(o){const et=Object.assign({},this.opts.query);et.EIO=protocol$1,et.transport=o,this.id&&(et.sid=this.id);const tt=Object.assign({},this.opts,{query:et,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[o]);return new transports[o](tt)}open(){let o;if(this.opts.rememberUpgrade&&Wo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)o="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else o=this.transports[0];this.readyState="opening";try{o=this.createTransport(o)}catch{this.transports.shift(),this.open();return}o.open(),this.setTransport(o)}setTransport(o){this.transport&&this.transport.removeAllListeners(),this.transport=o,o.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",et=>this.onClose("transport close",et))}probe(o){let et=this.createTransport(o),tt=!1;Wo.priorWebsocketSuccess=!1;const rt=()=>{tt||(et.send([{type:"ping",data:"probe"}]),et.once("packet",vt=>{if(!tt)if(vt.type==="pong"&&vt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",et),!et)return;Wo.priorWebsocketSuccess=et.name==="websocket",this.transport.pause(()=>{tt||this.readyState!=="closed"&&(ht(),this.setTransport(et),et.send([{type:"upgrade"}]),this.emitReserved("upgrade",et),et=null,this.upgrading=!1,this.flush())})}else{const gt=new Error("probe error");gt.transport=et.name,this.emitReserved("upgradeError",gt)}}))};function nt(){tt||(tt=!0,ht(),et.close(),et=null)}const it=vt=>{const gt=new Error("probe error: "+vt);gt.transport=et.name,nt(),this.emitReserved("upgradeError",gt)};function st(){it("transport closed")}function at(){it("socket closed")}function lt(vt){et&&vt.name!==et.name&&nt()}const ht=()=>{et.removeListener("open",rt),et.removeListener("error",it),et.removeListener("close",st),this.off("close",at),this.off("upgrading",lt)};et.once("open",rt),et.once("error",it),et.once("close",st),this.once("close",at),this.once("upgrading",lt),this.upgrades.indexOf("webtransport")!==-1&&o!=="webtransport"?this.setTimeoutFn(()=>{tt||et.open()},200):et.open()}onOpen(){if(this.readyState="open",Wo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let o=0;const et=this.upgrades.length;for(;o{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const o=this.getWritablePackets();this.transport.send(o),this.prevBufferLen=o.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let et=1;for(let tt=0;tt0&&et>this.maxPayload)return this.writeBuffer.slice(0,tt);et+=2}return this.writeBuffer}write(o,et,tt){return this.sendPacket("message",o,et,tt),this}send(o,et,tt){return this.sendPacket("message",o,et,tt),this}sendPacket(o,et,tt,rt){if(typeof et=="function"&&(rt=et,et=void 0),typeof tt=="function"&&(rt=tt,tt=null),this.readyState==="closing"||this.readyState==="closed")return;tt=tt||{},tt.compress=tt.compress!==!1;const nt={type:o,data:et,options:tt};this.emitReserved("packetCreate",nt),this.writeBuffer.push(nt),rt&&this.once("flush",rt),this.flush()}close(){const o=()=>{this.onClose("forced close"),this.transport.close()},et=()=>{this.off("upgrade",et),this.off("upgradeError",et),o()},tt=()=>{this.once("upgrade",et),this.once("upgradeError",et)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?tt():o()}):this.upgrading?tt():o()),this}onError(o){Wo.priorWebsocketSuccess=!1,this.emitReserved("error",o),this.onClose("transport error",o)}onClose(o,et){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",o,et),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(o){const et=[];let tt=0;const rt=o.length;for(;tttypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(a){return withNativeArrayBuffer&&(a instanceof ArrayBuffer||isView(a))||withNativeBlob&&a instanceof Blob||withNativeFile&&a instanceof File}function hasBinary(a,o){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let et=0,tt=a.length;et=0&&a.num{delete this.acks[o];for(let it=0;it{this.io.clearTimeoutFn(nt),et.apply(this,[null,...it])}}emitWithAck(o,...et){const tt=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((rt,nt)=>{et.push((it,st)=>tt?it?nt(it):rt(st):rt(it)),this.emit(o,...et)})}_addToQueue(o){let et;typeof o[o.length-1]=="function"&&(et=o.pop());const tt={id:this._queueSeq++,tryCount:0,pending:!1,args:o,flags:Object.assign({fromQueue:!0},this.flags)};o.push((rt,...nt)=>tt!==this._queue[0]?void 0:(rt!==null?tt.tryCount>this._opts.retries&&(this._queue.shift(),et&&et(rt)):(this._queue.shift(),et&&et(null,...nt)),tt.pending=!1,this._drainQueue())),this._queue.push(tt),this._drainQueue()}_drainQueue(o=!1){if(!this.connected||this._queue.length===0)return;const et=this._queue[0];et.pending&&!o||(et.pending=!0,et.tryCount++,this.flags=et.flags,this.emit.apply(this,et.args))}packet(o){o.nsp=this.nsp,this.io._packet(o)}onopen(){typeof this.auth=="function"?this.auth(o=>{this._sendConnectPacket(o)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(o){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},o):o})}onerror(o){this.connected||this.emitReserved("connect_error",o)}onclose(o,et){this.connected=!1,delete this.id,this.emitReserved("disconnect",o,et)}onpacket(o){if(o.nsp===this.nsp)switch(o.type){case PacketType.CONNECT:o.data&&o.data.sid?this.onconnect(o.data.sid,o.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(o);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(o);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const tt=new Error(o.data.message);tt.data=o.data.data,this.emitReserved("connect_error",tt);break}}onevent(o){const et=o.data||[];o.id!=null&&et.push(this.ack(o.id)),this.connected?this.emitEvent(et):this.receiveBuffer.push(Object.freeze(et))}emitEvent(o){if(this._anyListeners&&this._anyListeners.length){const et=this._anyListeners.slice();for(const tt of et)tt.apply(this,o)}super.emit.apply(this,o),this._pid&&o.length&&typeof o[o.length-1]=="string"&&(this._lastOffset=o[o.length-1])}ack(o){const et=this;let tt=!1;return function(...rt){tt||(tt=!0,et.packet({type:PacketType.ACK,id:o,data:rt}))}}onack(o){const et=this.acks[o.id];typeof et=="function"&&(et.apply(this,o.data),delete this.acks[o.id])}onconnect(o,et){this.id=o,this.recovered=et&&this._pid===et,this._pid=et,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(o=>this.emitEvent(o)),this.receiveBuffer=[],this.sendBuffer.forEach(o=>{this.notifyOutgoingListeners(o),this.packet(o)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(o=>o()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(o){return this.flags.compress=o,this}get volatile(){return this.flags.volatile=!0,this}timeout(o){return this.flags.timeout=o,this}onAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(o),this}prependAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(o),this}offAny(o){if(!this._anyListeners)return this;if(o){const et=this._anyListeners;for(let tt=0;tt0&&a.jitter<=1?a.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),et=Math.floor(o*this.jitter*a);a=Math.floor(o*10)&1?a+et:a-et}return Math.min(a,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(a){this.ms=a};Backoff.prototype.setMax=function(a){this.max=a};Backoff.prototype.setJitter=function(a){this.jitter=a};class Manager extends Emitter{constructor(o,et){var tt;super(),this.nsps={},this.subs=[],o&&typeof o=="object"&&(et=o,o=void 0),et=et||{},et.path=et.path||"/socket.io",this.opts=et,installTimerFunctions(this,et),this.reconnection(et.reconnection!==!1),this.reconnectionAttempts(et.reconnectionAttempts||1/0),this.reconnectionDelay(et.reconnectionDelay||1e3),this.reconnectionDelayMax(et.reconnectionDelayMax||5e3),this.randomizationFactor((tt=et.randomizationFactor)!==null&&tt!==void 0?tt:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(et.timeout==null?2e4:et.timeout),this._readyState="closed",this.uri=o;const rt=et.parser||parser;this.encoder=new rt.Encoder,this.decoder=new rt.Decoder,this._autoConnect=et.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(o){return arguments.length?(this._reconnection=!!o,this):this._reconnection}reconnectionAttempts(o){return o===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=o,this)}reconnectionDelay(o){var et;return o===void 0?this._reconnectionDelay:(this._reconnectionDelay=o,(et=this.backoff)===null||et===void 0||et.setMin(o),this)}randomizationFactor(o){var et;return o===void 0?this._randomizationFactor:(this._randomizationFactor=o,(et=this.backoff)===null||et===void 0||et.setJitter(o),this)}reconnectionDelayMax(o){var et;return o===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=o,(et=this.backoff)===null||et===void 0||et.setMax(o),this)}timeout(o){return arguments.length?(this._timeout=o,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(o){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const et=this.engine,tt=this;this._readyState="opening",this.skipReconnect=!1;const rt=on(et,"open",function(){tt.onopen(),o&&o()}),nt=st=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",st),o?o(st):this.maybeReconnectOnOpen()},it=on(et,"error",nt);if(this._timeout!==!1){const st=this._timeout,at=this.setTimeoutFn(()=>{rt(),nt(new Error("timeout")),et.close()},st);this.opts.autoUnref&&at.unref(),this.subs.push(()=>{this.clearTimeoutFn(at)})}return this.subs.push(rt),this.subs.push(it),this}connect(o){return this.open(o)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const o=this.engine;this.subs.push(on(o,"ping",this.onping.bind(this)),on(o,"data",this.ondata.bind(this)),on(o,"error",this.onerror.bind(this)),on(o,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(o){try{this.decoder.add(o)}catch(et){this.onclose("parse error",et)}}ondecoded(o){nextTick(()=>{this.emitReserved("packet",o)},this.setTimeoutFn)}onerror(o){this.emitReserved("error",o)}socket(o,et){let tt=this.nsps[o];return tt?this._autoConnect&&!tt.active&&tt.connect():(tt=new Socket(this,o,et),this.nsps[o]=tt),tt}_destroy(o){const et=Object.keys(this.nsps);for(const tt of et)if(this.nsps[tt].active)return;this._close()}_packet(o){const et=this.encoder.encode(o);for(let tt=0;tto()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(o,et){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",o,et),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const o=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const et=this.backoff.duration();this._reconnecting=!0;const tt=this.setTimeoutFn(()=>{o.skipReconnect||(this.emitReserved("reconnect_attempt",o.backoff.attempts),!o.skipReconnect&&o.open(rt=>{rt?(o._reconnecting=!1,o.reconnect(),this.emitReserved("reconnect_error",rt)):o.onreconnect()}))},et);this.opts.autoUnref&&tt.unref(),this.subs.push(()=>{this.clearTimeoutFn(tt)})}}onreconnect(){const o=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",o)}}const cache={};function lookup(a,o){typeof a=="object"&&(o=a,a=void 0),o=o||{};const et=url(a,o.path||"/socket.io"),tt=et.source,rt=et.id,nt=et.path,it=cache[rt]&&nt in cache[rt].nsps,st=o.forceNew||o["force new connection"]||o.multiplex===!1||it;let at;return st?at=new Manager(tt,o):(cache[rt]||(cache[rt]=new Manager(tt,o)),at=cache[rt]),et.query&&!o.query&&(o.query=et.queryKey),at.socket(et.path,o)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const SocketContext=reactExports.createContext(void 0),contextValue={socket:lookup(removeApi(API_URL),{autoConnect:!1})},SocketProvider=({children:a})=>jsxRuntimeExports.jsx(SocketContext.Provider,{value:contextValue,children:a}),palette=createPalette({mode:"dark",primary:{main:colors.primaryButton}}),appTheme=createTheme({palette,components:{MuiButton,MuiPopover:{styleOverrides:{root:{zIndex:99999}}}},typography:{button:{textTransform:"none",whiteSpace:"nowrap"}},breakpoints:{values:{xs:breakpoints.small,sm:breakpoints.medium,md:breakpoints.large,lg:1200,xl:1500}}}),AppProviders=({children:a})=>jsxRuntimeExports.jsxs(ThemeProvider,{theme:appTheme,children:[jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0}),jsxRuntimeExports.jsx(Fe,{theme:appTheme,children:jsxRuntimeExports.jsx(LocalizationProvider,{dateAdapter:AdapterMoment,children:jsxRuntimeExports.jsx(SocketProvider,{children:a})})})]}),background=Ce` - ${({background:a})=>a&&`background-color: ${colors[a]};`} -`,switchProp$3=(a,o)=>{switch(a){case"borderColor":return`border-color: ${o};`;case"borderRadius":return`border-radius: ${o}px;`;case"borderRadiusBottomLeft":return`border-bottom-left-radius: ${o}px;`;case"borderRadiusBottomRight":return`border-bottom-right-radius: ${o}px;`;case"borderRadiusTopLeft":return`border-top-left-radius: ${o}px;`;case"borderRadiusTopRight":return`border-top-right-radius: ${o}px;`;case"borderSize":return` - border-style: solid; - border-width: ${o}px; - `;default:return""}},getPropStyle$3=(a,o)=>o===void 0?"":switchProp$3(a,o),getOverflowHidden=({borderRadius:a,borderRadiusBottomLeft:o,borderRadiusBottomRight:et,borderRadiusTopLeft:tt,borderRadiusTopRight:rt})=>[a,o,et,tt,rt].every(nt=>nt===void 0)?"":"overflow: hidden;",border=Ce` - ${({borderColor:a,borderRadius:o,borderRadiusBottomLeft:et,borderRadiusBottomRight:tt,borderRadiusTopLeft:rt,borderRadiusTopRight:nt,borderSize:it})=>` - ${getOverflowHidden({borderRadius:o,borderRadiusBottomLeft:et,borderRadiusBottomRight:tt,borderRadiusTopLeft:rt,borderRadiusTopRight:nt})} - ${getPropStyle$3("borderColor",a)} - ${getPropStyle$3("borderRadius",o)} - ${getPropStyle$3("borderRadiusBottomLeft",et)} - ${getPropStyle$3("borderRadiusBottomRight",tt)} - ${getPropStyle$3("borderRadiusTopLeft",rt)} - ${getPropStyle$3("borderRadiusTopRight",nt)} - ${getPropStyle$3("borderSize",it)} - `} -`,switchProp$2=(a,o)=>{switch(a){case"align":return`align-items: ${o};`;case"justify":return`justify-content: ${o};`;case"basis":case"direction":case"grow":case"shrink":case"wrap":return`flex-${a}: ${o};`;case"opacity":return`opacity: ${o}`;default:return assertNever(a)}},getPropStyle$2=(a,o)=>o===void 0?"":switchProp$2(a,o),flexbox=Ce` - display: flex; - min-height: 0; - min-width: 0; - - ${({align:a,basis:o,direction:et,grow:tt,justify:rt,shrink:nt,wrap:it})=>` - ${getPropStyle$2("align",a)} - ${getPropStyle$2("basis",o)} - ${getPropStyle$2("direction",et)} - ${getPropStyle$2("grow",tt)} - ${getPropStyle$2("justify",rt)} - ${getPropStyle$2("shrink",nt)} - ${getPropStyle$2("wrap",it)} - `} -`,switchProp$1=(a,o)=>{switch(a){case"m":return`margin: ${o}px;`;case"mb":return`margin-bottom: ${o}px;`;case"ml":return`margin-left: ${o}px;`;case"mr":return`margin-right: ${o}px;`;case"mt":return`margin-top: ${o}px;`;case"mx":return` - margin-left: ${o}px; - margin-right: ${o}px; - `;case"my":return` - margin-bottom: ${o}px; - margin-top: ${o}px; - `;default:return assertNever(a)}},getPropStyle$1=(a,o)=>o===void 0?"":switchProp$1(a,o),margin=Ce` - ${({m:a,mb:o,ml:et,mr:tt,mt:rt,mx:nt,my:it})=>` - ${getPropStyle$1("m",a)} - ${getPropStyle$1("mx",nt)} - ${getPropStyle$1("my",it)} - ${getPropStyle$1("mb",o)} - ${getPropStyle$1("ml",et)} - ${getPropStyle$1("mr",tt)} - ${getPropStyle$1("mt",rt)} - `} -`,switchProp=(a,o)=>{switch(a){case"p":return`padding: ${o}px;`;case"pb":return`padding-bottom: ${o}px;`;case"pl":return`padding-left: ${o}px;`;case"pr":return`padding-right: ${o}px;`;case"pt":return`padding-top: ${o}px;`;case"px":return` - padding-left: ${o}px; - padding-right: ${o}px; - `;case"py":return` - padding-bottom: ${o}px; - padding-top: ${o}px; - `;default:return assertNever(a)}},getPropStyle=(a,o)=>o===void 0?"":switchProp(a,o),padding=Ce` - ${({p:a,pb:o,pl:et,pr:tt,pt:rt,px:nt,py:it})=>` - ${getPropStyle("p",a)} - ${getPropStyle("px",nt)} - ${getPropStyle("py",it)} - ${getPropStyle("pb",o)} - ${getPropStyle("pl",et)} - ${getPropStyle("pr",tt)} - ${getPropStyle("pt",rt)} - `} -`,defaultProps={align:"stretch",basis:"auto",direction:"column",grow:0,justify:"flex-start",opacity:1,shrink:0,wrap:"nowrap"},Flex=styled$3.div.withConfig({shouldForwardProp:(a,o)=>!["direction","wrap"].includes(a)&&o(a)}).attrs(a=>({...defaultProps,...a}))` - ${background} - ${border} - ${flexbox} - ${padding} - ${margin} -`,fontSizes={bigHeading:30,bigHeadingBold:30,heading:24,headingBold:24,hugeHeading:40,hugeHeadingBold:40,medium:16,mediumBold:16,regular:14,regularBold:14,tiny:12,tinyBold:12},fontSizesMobile={bigHeading:24,bigHeadingBold:24,heading:18,headingBold:18,hugeHeading:32,hugeHeadingBold:32,medium:16,mediumBold:16,regular:14,regularBold:14,tiny:12,tinyBold:12},fontWeights={bigHeading:400,bigHeadingBold:700,heading:400,headingBold:700,hugeHeading:400,hugeHeadingBold:700,medium:500,mediumBold:600,regular:500,regularBold:600,tiny:300,tinyBold:500},style=Ce` - ${({kind:a="regular"})=>Ce` - font-size: ${fontSizes[a]}px; - font-weight: ${fontWeights[a]}; - ${media.smallOnly` - font-size: ${fontSizesMobile[a]}px; - `} - `} -`,Text=styled$3.span.withConfig({shouldForwardProp:(a,o)=>!["kind"].includes(a)&&o(a)})` - ${style} - - ${({color:a="primaryText1"})=>`color: ${colors[a]};`} -`;async function getIsAdmin(){return api$1.get("/isAdmin")}const trackedConnections=new Map,getTrackedConnectionState=a=>{const o=trackedConnections.get(a);return o?Object.fromEntries(Object.entries(o.stores).map(([et,tt])=>[et,tt.getState()])):{}},extractConnectionInformation=(a,o,et)=>{if(a===void 0)return{type:"untracked",connection:o.connect(et)};const tt=trackedConnections.get(et.name);if(tt)return{type:"tracked",store:a,...tt};const rt={connection:o.connect(et),stores:{}};return trackedConnections.set(et.name,rt),{type:"tracked",store:a,...rt}},devtoolsImpl=(a,o={})=>(et,tt,rt)=>{const{enabled:nt,anonymousActionType:it,store:st,...at}=o;let lt;try{lt=(nt??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!lt)return a(et,tt,rt);const{connection:ht,...vt}=extractConnectionInformation(st,lt,at);let gt=!0;rt.setState=(pt,Et,yt)=>{const bt=et(pt,Et);if(!gt)return bt;const kt=yt===void 0?{type:it||"anonymous"}:typeof yt=="string"?{type:yt}:yt;return st===void 0?(ht==null||ht.send(kt,tt()),bt):(ht==null||ht.send({...kt,type:`${st}/${kt.type}`},{...getTrackedConnectionState(at.name),[st]:rt.getState()}),bt)};const wt=(...pt)=>{const Et=gt;gt=!1,et(...pt),gt=Et},ut=a(rt.setState,tt,rt);if(vt.type==="untracked"?ht==null||ht.init(ut):(vt.stores[vt.store]=rt,ht==null||ht.init(Object.fromEntries(Object.entries(vt.stores).map(([pt,Et])=>[pt,pt===vt.store?ut:Et.getState()])))),rt.dispatchFromDevtools&&typeof rt.dispatch=="function"){let pt=!1;const Et=rt.dispatch;rt.dispatch=(...yt)=>{Et(...yt)}}return ht.subscribe(pt=>{var Et;switch(pt.type){case"ACTION":if(typeof pt.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return parseJsonThen(pt.payload,yt=>{if(yt.type==="__setState"){if(st===void 0){wt(yt.state);return}Object.keys(yt.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const bt=yt.state[st];if(bt==null)return;JSON.stringify(rt.getState())!==JSON.stringify(bt)&&wt(bt);return}rt.dispatchFromDevtools&&typeof rt.dispatch=="function"&&rt.dispatch(yt)});case"DISPATCH":switch(pt.payload.type){case"RESET":return wt(ut),st===void 0?ht==null?void 0:ht.init(rt.getState()):ht==null?void 0:ht.init(getTrackedConnectionState(at.name));case"COMMIT":if(st===void 0){ht==null||ht.init(rt.getState());return}return ht==null?void 0:ht.init(getTrackedConnectionState(at.name));case"ROLLBACK":return parseJsonThen(pt.state,yt=>{if(st===void 0){wt(yt),ht==null||ht.init(rt.getState());return}wt(yt[st]),ht==null||ht.init(getTrackedConnectionState(at.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(pt.state,yt=>{if(st===void 0){wt(yt);return}JSON.stringify(rt.getState())!==JSON.stringify(yt[st])&&wt(yt[st])});case"IMPORT_STATE":{const{nextLiftedState:yt}=pt.payload,bt=(Et=yt.computedStates.slice(-1)[0])==null?void 0:Et.state;if(!bt)return;wt(st===void 0?bt:bt[st]),ht==null||ht.send(null,yt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),ut},devtools=devtoolsImpl,parseJsonThen=(a,o)=>{let et;try{et=JSON.parse(a)}catch(tt){console.error("[zustand devtools middleware] Could not parse the received json",tt)}et!==void 0&&o(et)},fetchGraphData=async(a,o,et=!1,tt,rt)=>fetchNodes(a,o,et,tt),fetchNodes=async(a,o,et=!1,tt,rt)=>{const nt=new URLSearchParams(o).toString(),it=et?"/prediction/graph/search/latest?":`/prediction/graph/search?${nt}`,st=async()=>{const at=await getLSat();try{const lt=await api$1.get(it,{Authorization:at},tt);return updateBudget(a),lt}catch(lt){if(lt.status===402)return await payLsat(a),fetchNodes(a,o,et,tt);throw lt}};return!o.word||isDevelopment&&!isE2E?api$1.get(`${it}&free=true`,void 0,tt):st()},fetchNodeEdges=async(a,o)=>{try{return await api$1.get(`/prediction/graph/edges/${a}?skip=${o}&limit=5&sort_by="edge_count&include_properties=true&includeContent=true"`)}catch(et){return console.error(et),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((a,o)=>({...defaultData$4,setAiSummaryAnswer:(et,tt)=>{const rt=o().aiSummaryAnswers;rt[et]={...rt[et]||{},...tt};const nt=structuredClone(rt);a({aiSummaryAnswers:nt})},setNewLoading:et=>{a({newLoading:et})},resetAiSummaryAnswer:()=>{a({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:et=>o().aiSummaryAnswers[et].answer||"",setAiRefId:et=>a({aiRefId:et}),getKeyExist:et=>et in o().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(a=>Object.values(a.aiSummaryAnswers).filter(o=>o.shouldRender).length||!!a.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(a=>{var et;const o=a.aiSummaryAnswers;return!!a.newLoading||((et=Object.values(o).at(-1))==null?void 0:et.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((a,o)=>({...defaultData$3,clearSearch:()=>a({currentSearch:""}),setCurrentSearch:et=>a({currentSearch:et}),setSearchFormValue:et=>a({searchFormValue:et}),setFlagErrorOpen:et=>a({flagErrorIsOpen:et}),setRelevanceSelected:et=>a({relevanceIsSelected:et}),setCurrentPlayingAudio:et=>a({currentPlayingAudio:et}),setSecondarySidebarActiveTab:et=>a({secondarySidebarActiveTab:et}),setSidebarOpen:et=>a({sidebarIsOpen:et,transcriptIsOpen:et?o().transcriptIsOpen:!1}),setTranscriptOpen:et=>a({transcriptIsOpen:et}),setUniverseQuestionIsOpen:()=>a({universeQuestionIsOpen:!o().universeQuestionIsOpen}),setAppMetaData:et=>a({appMetaData:et}),setShowCollapseButton:et=>a({showCollapseButton:et}),setSelectedColor:et=>a({selectedColor:et}),setSelectedIcon:et=>a({selectedIcon:et})})),deduplicateByRefId=a=>{const o=new Map;return a.forEach(et=>{o.has(et.ref_id)||o.set(et.ref_id,et)}),Array.from(o.values())},defaultData$2={categoryFilter:null,dataInitial:null,currentPage:0,itemsPerPage:300,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"date_added_to_graph",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:""};let abortController=null;const useDataStore=create()(devtools((a,o)=>({...defaultData$2,fetchData:async(et,tt,rt="")=>{var Ot,Nt,Vt,jt;const{dataInitial:nt,filters:it}=o(),st=it.skip,at=it.limit,{currentSearch:lt}=useAppStore.getState(),{setAiSummaryAnswer:ht,setNewLoading:vt,aiRefId:gt}=useAiSummaryStore.getState();let wt={ai_summary:String(!!rt)};rt||a(st?{isLoadingNew:!0}:{isFetching:!0}),rt&&(wt={...wt,ai_summary:String(!0)},vt({question:rt,answerLoading:!0})),abortController&&abortController.abort("abort");const ut=new AbortController,{signal:pt}=ut;abortController=ut;const{node_type:Et,...yt}=it,bt=rt||lt,kt=lodashExports.isEqual(it,defaultData$2.filters)&&!bt,It={...yt,...wt,skip:String(st===0?st*at:st*at+1),limit:bt?"25":String(at),...Et.length>0?{node_type:JSON.stringify(Et)}:{},...bt?{word:bt}:{},...gt&&rt?{previous_search_ref_id:gt}:{}};try{const zt=await fetchGraphData(et,It,kt,pt,tt);if(!(zt!=null&&zt.nodes))return;if((Ot=zt==null?void 0:zt.query_data)!=null&&Ot.ref_id){useAiSummaryStore.setState({aiRefId:(Nt=zt==null?void 0:zt.query_data)==null?void 0:Nt.ref_id});const{aiSummaryAnswers:mt}=useAiSummaryStore.getState(),{answer:Ft}=mt[(Vt=zt==null?void 0:zt.query_data)==null?void 0:Vt.ref_id]||{};ht((jt=zt==null?void 0:zt.query_data)==null?void 0:jt.ref_id,{question:rt,answer:Ft||"",answerLoading:!Ft,sourcesLoading:!Ft,shouldRender:!0}),vt(null)}const or=st===0&&!gt?[]:[...(nt==null?void 0:nt.nodes)||[]],qt=st===0&&!gt?[]:[...(nt==null?void 0:nt.links)||[]],Rt=((zt==null?void 0:zt.nodes)||[]).filter(mt=>!or.some(Ft=>Ft.ref_id===mt.ref_id));or.push(...Rt);const Bt=((zt==null?void 0:zt.edges)||[]).filter(mt=>!qt.some(Ft=>Ft.ref_id===mt.ref_id)).filter(mt=>{const{target:Ft,source:Qt}=mt;return or.some(cr=>cr.ref_id===Ft)&&or.some(cr=>cr.ref_id===Qt)});qt.push(...Bt);const ct=[...new Set(or.map(mt=>mt.node_type))],xt=["all",...ct.map(mt=>mt.toLowerCase())],St=xt.map(mt=>({name:mt,count:or.filter(Ft=>{var Qt;return mt==="all"||((Qt=Ft.node_type)==null?void 0:Qt.toLowerCase())===mt}).length})),Mt=1,$t=4,Tt=Math.min(...or.map(mt=>mt.edge_count)),At=Math.max(...or.map(mt=>mt.edge_count)),Pt=or.map(mt=>{const{edge_count:Ft}=mt,cr=Math.round(((Ft||1)-Tt)/(At-Tt)*($t-Mt)+Mt);return{...mt,scale:cr}});a({dataInitial:{nodes:Pt,links:qt},dataNew:{nodes:Rt,links:Bt},isFetching:!1,isLoadingNew:!1,splashDataLoading:!1,nodeTypes:ct,sidebarFilters:xt,sidebarFilterCounts:St})}catch(zt){console.log(zt),zt!=="abort"&&a({isLoadingNew:!1,isFetching:!1})}},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{a({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),o().fetchData()},resetData:()=>{a({dataNew:{nodes:[],links:[]},dataInitial:{nodes:[],links:[]},nodeTypes:[]})},setPage:et=>a({currentPage:et}),nextPage:()=>{const{filters:et,fetchData:tt}=o();a({filters:{...et,skip:et.skip+1}}),tt()},resetDataNew:()=>null,setFilters:et=>{a(tt=>({filters:{...tt.filters,...et,skip:0}})),o().fetchData(o().setBudget,o().setAbortRequests)},setSidebarFilterCounts:et=>a({sidebarFilterCounts:et}),setTrendingTopics:et=>a({trendingTopics:et}),setStats:et=>a({stats:et}),setIsFetching:et=>a({isFetching:et}),setCategoryFilter:et=>a({categoryFilter:et}),setQueuedSources:et=>a({queuedSources:et}),setSidebarFilter:et=>a({sidebarFilter:et}),setSelectedTimestamp:et=>a({selectedTimestamp:et}),setSources:et=>a({sources:et}),setHideNodeDetails:et=>a({hideNodeDetails:et}),setSeedQuestions:et=>a({seedQuestions:et}),updateNode:et=>{console.log(et)},addNewNode:et=>{const{dataInitial:tt,filters:rt}=o();if(!(et!=null&&et.nodes))return;const nt=rt.node_type.length?et.nodes.filter(kt=>rt.node_type.some(It=>It===kt.node_type)):et.nodes,it=deduplicateByRefId(nt||[]),st=deduplicateByRefId(et.edges||[]),at=tt!=null&&tt.nodes?[...tt.nodes]:[],lt=tt!=null&&tt.links?[...tt.links]:[],ht=new Set(at.map(kt=>kt.ref_id)),vt=new Set(lt.map(kt=>kt.ref_id)),gt=it.filter(kt=>!ht.has(kt.ref_id)),wt=[...at,...gt];gt.forEach(kt=>ht.add(kt.ref_id));const ut=st.filter(kt=>!vt.has(kt.ref_id)).filter(kt=>{const{source:It,target:Ot}=kt;return ht.has(It)&&ht.has(Ot)}),pt=[...lt,...ut],Et=[...new Set(wt.map(kt=>kt.node_type))],yt=["all",...Et.map(kt=>kt.toLowerCase())],bt=yt.map(kt=>({name:kt,count:wt.filter(It=>{var Ot;return kt==="all"||((Ot=It.node_type)==null?void 0:Ot.toLowerCase())===kt}).length}));a({dataInitial:{nodes:wt,links:pt},dataNew:{nodes:gt,links:ut},nodeTypes:Et,sidebarFilters:yt,sidebarFilterCounts:bt})},removeNode:et=>{console.log(et)},setRunningProjectId:et=>a({runningProjectId:et,runningProjectMessages:[]}),setRunningProjectMessages:et=>{const{runningProjectMessages:tt}=o();a({runningProjectMessages:[...tt,et]})},resetRunningProjectMessages:()=>a({runningProjectMessages:[]}),setAbortRequests:et=>a({abortRequest:et})}))),useFilteredNodes=()=>useDataStore(a=>{var o,et;return a.sidebarFilter==="all"?((o=a.dataInitial)==null?void 0:o.nodes)||[]:(((et=a.dataInitial)==null?void 0:et.nodes)||[]).filter(tt=>{var rt;return((rt=tt.node_type)==null?void 0:rt.toLowerCase())===a.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(a=>a.nodeTypes),defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(a=>({...defaultData$1,setTrendingTopicsFeatureFlag:o=>a({trendingTopicsFeatureFlag:o}),setV2FeatureFlag:o=>a({v2FeatureFlag:o}),setQueuedSourcesFeatureFlag:o=>a({queuedSourcesFeatureFlag:o}),setCustomSchemaFeatureFlag:o=>a({customSchemaFeatureFlag:o}),setGraphBluePrintFeatureFlag:o=>a({graphBluePrintFeatureFlag:o}),setChangeNodeTypeFeatureFlag:o=>a({changeNodeTypeFeatureFlag:o}),setRealtimeGraphFeatureFlag:o=>a({realtimeGraphFeatureFlag:o}),setUserFeedbackFeatureFlag:o=>a({userFeedbackFeatureFlag:o}),setChatInterfaceFeatureFlag:o=>a({chatInterfaceFeatureFlag:o}),setFastFiltersFeatureFlag:o=>a({fastFiltersFeatureFlag:o})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(a,o)=>await api$1.put(`/schema/${a}`,JSON.stringify(o)),changeNodeType=async(a,o)=>api$1.put("/node",JSON.stringify({...o,ref_id:a})),getFullTranscript=async a=>{const o=`/node/text/${a}`;return await api$1.get(o)},getSchemaAll=async()=>{const a="/schema/all";return await api$1.get(a)},getNodeContent=async a=>{const et=`/node/content?${new URLSearchParams({...a}).toString()}`;return await api$1.get(et)},getTotalProcessing=async()=>{const a="/node/content";return await api$1.get(a)},getRadarData=async(a=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...a}).toString()}`),getTopicsData=async(a=defaultParams,o)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...a}).toString()}`,void 0,o),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(a,o)=>await api$1.get(`/curation/search/${a}?${new URLSearchParams({exact_match:"false",...o}).toString()}`),postEdgeType=async a=>await api$1.post("/curation/edge",JSON.stringify(a)),postAboutData=async a=>await api$1.post("/about",JSON.stringify(a)),postMergeTopics=async a=>await api$1.post("/curation/merge",JSON.stringify(a)),putRadarData=async(a,o)=>await api$1.put(`/radar/${a}`,JSON.stringify(o)),putNodeData=async(a,o)=>await api$1.put(`/node?ref_id=${a}`,JSON.stringify(o)),approveRadarData=async(a,o)=>await api$1.put(`/radar/${a}/approve`,JSON.stringify({approve:"True",pubkey:o})),deleteRadarData=async a=>await api$1.delete(`/radar/${a}`),deleteNode=async a=>await api$1.delete(`/node/?ref_id=${a}`),getPriceData=async a=>await api$1.get(`/getprice?endpoint=${a}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async a=>await api$1.get(`/schema/${a}`),postBluePrintType=async a=>await api$1.post("/schema/edge",JSON.stringify(a)),updateEdgeType=async a=>await api$1.put(`/schema/edge/${a.ref_id}`,JSON.stringify({edge_type:a.edge_type})),deleteEdgeType=async a=>await api$1.delete(`/schema/edge/${a}`),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((a,o)=>({...defaultData,setSchemas:et=>{const tt=et.reduce((rt,nt)=>(rt[nt.type]=nt,rt),{});a({schemas:et.map(rt=>({...rt})),normalizedSchemasByType:tt})},setSchemaLinks:et=>{a({links:et})},getPrimaryColorByType:et=>{const tt=o().normalizedSchemasByType[et];return tt?tt.primary_color:void 0},getNodeKeysByType:et=>{const tt=o().normalizedSchemasByType[et];return tt?tt.node_key:void 0},getSchemaByType:et=>o().normalizedSchemasByType[et]})));function r(a){var o,et,tt="";if(typeof a=="string"||typeof a=="number")tt+=a;else if(typeof a=="object")if(Array.isArray(a))for(o=0;o{const[o,et]=reactExports.useState(0),tt=a.filter(rt=>rt.value!=="0");return reactExports.useEffect(()=>{const rt=setInterval(()=>et(nt=>(nt+1)%a.length),1e3);return()=>clearInterval(rt)},[o]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:tt.map(({key:rt,value:nt},it)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:o===it}),children:nt},rt))}),jsxRuntimeExports.jsx(Flex,{children:tt.map(({key:rt,label:nt},it)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:o===it}),children:jsxRuntimeExports.jsx("div",{className:"label",children:nt})},rt))})]})},TextWrapper=styled$3.div` - height: 16px; - display: flex; - justify-content: space-between; - align-items: center; - - .loading { - color: var(--Main-bottom-icons, #909baa); - font-family: Barlow; - font-size: 15px; - font-style: normal; - font-weight: 500; - line-height: normal; - letter-spacing: 1.5px; - text-transform: uppercase; - margin-left: 4px; - } - - .value-wrapper { - position: relative; - height: 18px; - - .value { - position: absolute; - top: -50%; - left: 50%; - transform: translate(-50%, 50%); - opacity: 0; - transition: opacity 0.4s ease-in-out, visibility 0.2s ease-in-out; - - &.show { - opacity: 1; - visibility: visible; - } - } - - color: var(--Text-2, #fff); - font-family: Barlow; - font-size: 15px; - font-style: normal; - font-weight: 500; - line-height: normal; - } - - .label-wrapper { - height: 0; - overflow: hidden; - transition: height 0.5s linear; - align-items: flex-end; - gap: 10px; - - &.show { - height: 18px; - } - - .label { - width: 104px; - } - - color: var(--Text-2, #fff); - font-family: Barlow; - font-size: 15px; - font-style: normal; - font-weight: 500; - line-height: normal; - } -`;var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(a,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(a){return document.createElement(a)}function extendPrototype(a,o){var et,tt=a.length,rt;for(et=0;et1?et[1]=1:et[1]<=0&&(et[1]=0),HSVtoRGB(et[0],et[1],et[2])}function addBrightnessToRGB(a,o){var et=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return et[2]+=o,et[2]>1?et[2]=1:et[2]<0&&(et[2]=0),HSVtoRGB(et[0],et[1],et[2])}function addHueToRGB(a,o){var et=RGBtoHSV(a[0]*255,a[1]*255,a[2]*255);return et[0]+=o/360,et[0]>1?et[0]-=1:et[0]<0&&(et[0]+=1),HSVtoRGB(et[0],et[1],et[2])}var rgbToHex=function(){var a=[],o,et;for(o=0;o<256;o+=1)et=o.toString(16),a[o]=et.length===1?"0"+et:et;return function(tt,rt,nt){return tt<0&&(tt=0),rt<0&&(rt=0),nt<0&&(nt=0),"#"+a[tt]+a[rt]+a[nt]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};function createNS(a){return document.createElementNS(svgNS,a)}function _typeof$5(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(et){return typeof et}:_typeof$5=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$5(a)}var dataManager=function(){var a=1,o=[],et,tt,rt={onmessage:function(){},postMessage:function(wt){et({data:wt})}},nt={postMessage:function(wt){rt.onmessage({data:wt})}};function it(gt){if(window.Worker&&window.Blob&&getWebWorker()){var wt=new Blob(["var _workerSelf = self; self.onmessage = ",gt.toString()],{type:"text/javascript"}),ut=URL.createObjectURL(wt);return new Worker(ut)}return et=gt,rt}function st(){tt||(tt=it(function(wt){function ut(){function Et(xt,St){var Mt,$t,Tt=xt.length,At,Pt,mt,Ft;for($t=0;$t=0;St-=1)if(xt[St].ty==="sh")if(xt[St].ks.k.i)Ot(xt[St].ks.k);else for(Tt=xt[St].ks.k.length,$t=0;$tMt[0]?!0:Mt[0]>xt[0]?!1:xt[1]>Mt[1]?!0:Mt[1]>xt[1]?!1:xt[2]>Mt[2]?!0:Mt[2]>xt[2]?!1:null}var Vt=function(){var xt=[4,4,14];function St($t){var Tt=$t.t.d;$t.t.d={k:[{s:Tt,t:0}]}}function Mt($t){var Tt,At=$t.length;for(Tt=0;Tt=0;Tt-=1)if($t[Tt].ty==="sh")if($t[Tt].ks.k.i)$t[Tt].ks.k.c=$t[Tt].closed;else for(mt=$t[Tt].ks.k.length,Pt=0;Pt500)&&(this._imageLoaded(),clearInterval(kt)),bt+=1}).bind(this),50)}function nt(yt){var bt=tt(yt,this.assetsPath,this.path),kt=createNS("image");isSafari?this.testImageLoaded(kt):kt.addEventListener("load",this._imageLoaded,!1),kt.addEventListener("error",(function(){It.img=a,this._imageLoaded()}).bind(this),!1),kt.setAttributeNS("http://www.w3.org/1999/xlink","href",bt),this._elementHelper.append?this._elementHelper.append(kt):this._elementHelper.appendChild(kt);var It={img:kt,assetData:yt};return It}function it(yt){var bt=tt(yt,this.assetsPath,this.path),kt=createTag("img");kt.crossOrigin="anonymous",kt.addEventListener("load",this._imageLoaded,!1),kt.addEventListener("error",(function(){It.img=a,this._imageLoaded()}).bind(this),!1),kt.src=bt;var It={img:kt,assetData:yt};return It}function st(yt){var bt={assetData:yt},kt=tt(yt,this.assetsPath,this.path);return dataManager.loadData(kt,(function(It){bt.img=It,this._footageLoaded()}).bind(this),(function(){bt.img={},this._footageLoaded()}).bind(this)),bt}function at(yt,bt){this.imagesLoadedCb=bt;var kt,It=yt.length;for(kt=0;ktthis.animationData.op&&(this.animationData.op=a.op,this.totalFrames=Math.floor(a.op-this.animationData.ip));var o=this.animationData.layers,et,tt=o.length,rt=a.layers,nt,it=rt.length;for(nt=0;ntthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(a){this.triggerRenderFrameError(a)}},AnimationItem.prototype.play=function(a){a&&this.name!==a||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(a){a&&this.name!==a||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(a){a&&this.name!==a||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(a){a&&this.name!==a||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(a){for(var o,et=0;et=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(et=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(et=!0,o=0)):this.setCurrentRawFrameValue(o),et&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(a,o){this.playCount=0,a[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=a[0]-a[1],this.timeCompleted=this.totalFrames,this.firstFrame=a[1],this.setCurrentRawFrameValue(this.totalFrames-.001-o)):a[1]>a[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=a[1]-a[0],this.timeCompleted=this.totalFrames,this.firstFrame=a[0],this.setCurrentRawFrameValue(.001+o)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(a,o){var et=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameo&&(et=o-a)),this.firstFrame=a,this.totalFrames=o-a,this.timeCompleted=this.totalFrames,et!==-1&&this.goToAndStop(et,!0)},AnimationItem.prototype.playSegments=function(a,o){if(o&&(this.segments.length=0),_typeof$4(a[0])==="object"){var et,tt=a.length;for(et=0;et=0;Mt-=1)o[Mt].animation.destroy(St)}function jt(St,Mt,$t){var Tt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),At,Pt=Tt.length;for(At=0;At0?It=jt:kt=jt;while(Math.abs(Vt)>nt&&++zt=rt?Et(kt,qt,It,Ot):Rt===0?qt:pt(kt,Vt,Vt+at,It,Ot)}},a}(),pooling=function(){function a(o){return o.concat(createSizedArray(o.length))}return{double:a}}(),poolFactory=function(){return function(a,o,et){var tt=0,rt=a,nt=createSizedArray(rt),it={newElement:st,release:at};function st(){var lt;return tt?(tt-=1,lt=nt[tt]):lt=o(),lt}function at(lt){tt===rt&&(nt=pooling.double(nt),rt*=2),et&&et(lt),nt[tt]=lt,tt+=1}return it}}(),bezierLengthPool=function(){function a(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,a)}(),segmentsLengthPool=function(){function a(){return{lengths:[],totalLength:0}}function o(et){var tt,rt=et.lengths.length;for(tt=0;tt-.001&&bt<.001}function et(gt,wt,ut,pt,Et,yt,bt,kt,It){if(ut===0&&yt===0&&It===0)return o(gt,wt,pt,Et,bt,kt);var Ot=a.sqrt(a.pow(pt-gt,2)+a.pow(Et-wt,2)+a.pow(yt-ut,2)),Nt=a.sqrt(a.pow(bt-gt,2)+a.pow(kt-wt,2)+a.pow(It-ut,2)),Vt=a.sqrt(a.pow(bt-pt,2)+a.pow(kt-Et,2)+a.pow(It-yt,2)),jt;return Ot>Nt?Ot>Vt?jt=Ot-Nt-Vt:jt=Vt-Nt-Ot:Vt>Nt?jt=Vt-Nt-Ot:jt=Nt-Ot-Vt,jt>-1e-4&&jt<1e-4}var tt=function(){return function(gt,wt,ut,pt){var Et=getDefaultCurveSegments(),yt,bt,kt,It,Ot,Nt=0,Vt,jt=[],zt=[],or=bezierLengthPool.newElement();for(kt=ut.length,yt=0;ytbt?-1:1,Ot=!0;Ot;)if(pt[yt]<=bt&&pt[yt+1]>bt?(kt=(bt-pt[yt])/(pt[yt+1]-pt[yt]),Ot=!1):yt+=It,yt<0||yt>=Et-1){if(yt===Et-1)return ut[yt];Ot=!1}return ut[yt]+(ut[yt+1]-ut[yt])*kt}function lt(gt,wt,ut,pt,Et,yt){var bt=at(Et,yt),kt=1-bt,It=a.round((kt*kt*kt*gt[0]+(bt*kt*kt+kt*bt*kt+kt*kt*bt)*ut[0]+(bt*bt*kt+kt*bt*bt+bt*kt*bt)*pt[0]+bt*bt*bt*wt[0])*1e3)/1e3,Ot=a.round((kt*kt*kt*gt[1]+(bt*kt*kt+kt*bt*kt+kt*kt*bt)*ut[1]+(bt*bt*kt+kt*bt*bt+bt*kt*bt)*pt[1]+bt*bt*bt*wt[1])*1e3)/1e3;return[It,Ot]}var ht=createTypedArray("float32",8);function vt(gt,wt,ut,pt,Et,yt,bt){Et<0?Et=0:Et>1&&(Et=1);var kt=at(Et,bt);yt=yt>1?1:yt;var It=at(yt,bt),Ot,Nt=gt.length,Vt=1-kt,jt=1-It,zt=Vt*Vt*Vt,or=kt*Vt*Vt*3,qt=kt*kt*Vt*3,Rt=kt*kt*kt,Bt=Vt*Vt*jt,ct=kt*Vt*jt+Vt*kt*jt+Vt*Vt*It,xt=kt*kt*jt+Vt*kt*It+kt*Vt*It,St=kt*kt*It,Mt=Vt*jt*jt,$t=kt*jt*jt+Vt*It*jt+Vt*jt*It,Tt=kt*It*jt+Vt*It*It+kt*jt*It,At=kt*It*It,Pt=jt*jt*jt,mt=It*jt*jt+jt*It*jt+jt*jt*It,Ft=It*It*jt+jt*It*It+It*jt*It,Qt=It*It*It;for(Ot=0;Ot=lt.t-et){at.h&&(at=lt),rt=0;break}if(lt.t-et>a){rt=nt;break}nt=yt||a=yt?It.points.length-1:0;for(gt=It.points[Ot].point.length,vt=0;vt=jt&&Nt=yt)tt[0]=kt[0],tt[1]=kt[1],tt[2]=kt[2];else if(a<=bt)tt[0]=at.s[0],tt[1]=at.s[1],tt[2]=at.s[2];else{var ct=createQuaternion(at.s),xt=createQuaternion(kt),St=(a-bt)/(yt-bt);quaternionToEuler(tt,slerp(ct,xt,St))}else for(nt=0;nt=yt?wt=1:a1e-6?(gt=Math.acos(wt),ut=Math.sin(gt),pt=Math.sin((1-et)*gt)/ut,Et=Math.sin(et*gt)/ut):(pt=1-et,Et=et),tt[0]=pt*rt+Et*at,tt[1]=pt*nt+Et*lt,tt[2]=pt*it+Et*ht,tt[3]=pt*st+Et*vt,tt}function quaternionToEuler(a,o){var et=o[0],tt=o[1],rt=o[2],nt=o[3],it=Math.atan2(2*tt*nt-2*et*rt,1-2*tt*tt-2*rt*rt),st=Math.asin(2*et*tt+2*rt*nt),at=Math.atan2(2*et*nt-2*tt*rt,1-2*et*et-2*rt*rt);a[0]=it/degToRads,a[1]=st/degToRads,a[2]=at/degToRads}function createQuaternion(a){var o=a[0]*degToRads,et=a[1]*degToRads,tt=a[2]*degToRads,rt=Math.cos(o/2),nt=Math.cos(et/2),it=Math.cos(tt/2),st=Math.sin(o/2),at=Math.sin(et/2),lt=Math.sin(tt/2),ht=rt*nt*it-st*at*lt,vt=st*at*it+rt*nt*lt,gt=st*nt*it+rt*at*lt,wt=rt*at*it-st*nt*lt;return[vt,gt,wt,ht]}function getValueAtCurrentTime(){var a=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,et=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(a===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=et&&a>=et||this._caching.lastFrame=a&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var tt=this.interpolateValue(a,this._caching);this.pv=tt}return this._caching.lastFrame=a,this.pv}function setVValue(a){var o;if(this.propType==="unidimensional")o=a*this.mult,mathAbs(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var et=0,tt=this.v.length;et1e-5&&(this.v[et]=o,this._mdf=!0),et+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var a,o=this.effectsSequence.length,et=this.kf?this.pv:this.data.k;for(a=0;a=this._maxLength&&this.doubleArrayLength(),et){case"v":nt=this.v;break;case"i":nt=this.i;break;case"o":nt=this.o;break;default:nt=[];break}(!nt[tt]||nt[tt]&&!rt)&&(nt[tt]=pointPool.newElement()),nt[tt][0]=a,nt[tt][1]=o},ShapePath.prototype.setTripleAt=function(a,o,et,tt,rt,nt,it,st){this.setXYAt(a,o,"v",it,st),this.setXYAt(et,tt,"o",it,st),this.setXYAt(rt,nt,"i",it,st)},ShapePath.prototype.reverse=function(){var a=new ShapePath;a.setPathData(this.c,this._length);var o=this.v,et=this.o,tt=this.i,rt=0;this.c&&(a.setTripleAt(o[0][0],o[0][1],tt[0][0],tt[0][1],et[0][0],et[0][1],0,!1),rt=1);var nt=this._length-1,it=this._length,st;for(st=rt;st=ct[ct.length-1].t-this.offsetTime)Ot=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],Vt=!0;else{for(var xt=It,St=ct.length-1,Mt=!0,$t,Tt,At;Mt&&($t=ct[xt],Tt=ct[xt+1],!(Tt.t-this.offsetTime>yt));)xt=Tt.t-this.offsetTime)Rt=1;else if(yt<$t.t-this.offsetTime)Rt=0;else{var Pt;At.__fnct?Pt=At.__fnct:(Pt=BezierFactory.getBezierEasing($t.o.x,$t.o.y,$t.i.x,$t.i.y).get,At.__fnct=Pt),Rt=Pt((yt-($t.t-this.offsetTime))/(Tt.t-this.offsetTime-($t.t-this.offsetTime)))}Nt=Tt.s?Tt.s[0]:$t.e[0]}Ot=$t.s[0]}for(or=bt._length,qt=Ot.i[0].length,kt.lastIndex=It,jt=0;jtkt&&yt>kt)||(this._caching.lastIndex=It0||$t>-1e-6&&$t<0?tt($t*Tt)/Tt:$t}function Mt(){var $t=this.props,Tt=St($t[0]),At=St($t[1]),Pt=St($t[4]),mt=St($t[5]),Ft=St($t[12]),Qt=St($t[13]);return"matrix("+Tt+","+At+","+Pt+","+mt+","+Ft+","+Qt+")"}return function(){this.reset=rt,this.rotate=nt,this.rotateX=it,this.rotateY=st,this.rotateZ=at,this.skew=ht,this.skewFromAxis=vt,this.shear=lt,this.scale=gt,this.setTransform=wt,this.translate=ut,this.transform=pt,this.multiply=Et,this.applyToPoint=Ot,this.applyToX=Nt,this.applyToY=Vt,this.applyToZ=jt,this.applyToPointArray=Bt,this.applyToTriplePoints=Rt,this.applyToPointStringified=ct,this.toCSS=xt,this.to2dCSS=Mt,this.clone=kt,this.cloneFromProps=It,this.equals=bt,this.inversePoints=qt,this.inversePoint=or,this.getInverseMatrix=zt,this._t=this.transform,this.isIdentity=yt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(et){return typeof et}:_typeof$3=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$3(a)}var lottie={};function setLocation(a){setLocationHref(a)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(a){setSubframeEnabled(a)}function setPrefix(a){setIdPrefix(a)}function loadAnimation(a){return animationManager.loadAnimation(a)}function setQuality(a){if(typeof a=="string")switch(a){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(a)&&a>1&&setDefaultCurveSegments(a)}function inBrowser(){return typeof navigator<"u"}function installPlugin(a,o){a==="expressions"&&setExpressionsPlugin(o)}function getFactory(a){switch(a){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(a){for(var o=queryString.split("&"),et=0;et=1?nt.push({s:a-1,e:o-1}):(nt.push({s:a,e:1}),nt.push({s:0,e:o-1}));var it=[],st,at=nt.length,lt;for(st=0;sttt+et)){var ht,vt;lt.s*rt<=tt?ht=0:ht=(lt.s*rt-tt)/et,lt.e*rt>=tt+et?vt=1:vt=(lt.e*rt-tt)/et,it.push([ht,vt])}return it.length||it.push([0,0]),it},TrimModifier.prototype.releasePathsData=function(a){var o,et=a.length;for(o=0;o1?o=1+tt:this.s.v<0?o=0+tt:o=this.s.v+tt,this.e.v>1?et=1+tt:this.e.v<0?et=0+tt:et=this.e.v+tt,o>et){var rt=o;o=et,et=rt}o=Math.round(o*1e4)*1e-4,et=Math.round(et*1e4)*1e-4,this.sValue=o,this.eValue=et}else o=this.sValue,et=this.eValue;var nt,it,st=this.shapes.length,at,lt,ht,vt,gt,wt=0;if(et===o)for(it=0;it=0;it-=1)if(pt=this.shapes[it],pt.shape._mdf){for(Et=pt.localShapeCollection,Et.releaseShapes(),this.m===2&&st>1?(It=this.calculateShapeEdges(o,et,pt.totalShapeLength,kt,wt),kt+=pt.totalShapeLength):It=[[yt,bt]],lt=It.length,at=0;at=1?ut.push({s:pt.totalShapeLength*(yt-1),e:pt.totalShapeLength*(bt-1)}):(ut.push({s:pt.totalShapeLength*yt,e:pt.totalShapeLength}),ut.push({s:0,e:pt.totalShapeLength*(bt-1)}));var Ot=this.addShapes(pt,ut[0]);if(ut[0].s!==ut[0].e){if(ut.length>1){var Nt=pt.shape.paths.shapes[pt.shape.paths._length-1];if(Nt.c){var Vt=Ot.pop();this.addPaths(Ot,Et),Ot=this.addShapes(pt,ut[1],Vt)}else this.addPaths(Ot,Et),Ot=this.addShapes(pt,ut[1])}this.addPaths(Ot,Et)}}pt.shape.paths=Et}}},TrimModifier.prototype.addPaths=function(a,o){var et,tt=a.length;for(et=0;eto.e){et.c=!1;break}else o.s<=lt&&o.e>=lt+ht.addedLength?(this.addSegment(rt[nt].v[st-1],rt[nt].o[st-1],rt[nt].i[st],rt[nt].v[st],et,vt,Et),Et=!1):(wt=bez.getNewSegment(rt[nt].v[st-1],rt[nt].v[st],rt[nt].o[st-1],rt[nt].i[st],(o.s-lt)/ht.addedLength,(o.e-lt)/ht.addedLength,gt[st-1]),this.addSegmentFromArray(wt,et,vt,Et),Et=!1,et.c=!1),lt+=ht.addedLength,vt+=1;if(rt[nt].c&>.length){if(ht=gt[st-1],lt<=o.e){var yt=gt[st-1].addedLength;o.s<=lt&&o.e>=lt+yt?(this.addSegment(rt[nt].v[st-1],rt[nt].o[st-1],rt[nt].i[0],rt[nt].v[0],et,vt,Et),Et=!1):(wt=bez.getNewSegment(rt[nt].v[st-1],rt[nt].v[0],rt[nt].o[st-1],rt[nt].i[0],(o.s-lt)/yt,(o.e-lt)/yt,gt[st-1]),this.addSegmentFromArray(wt,et,vt,Et),Et=!1,et.c=!1)}else et.c=!1;lt+=ht.addedLength,vt+=1}if(et._length&&(et.setXYAt(et.v[pt][0],et.v[pt][1],"i",pt),et.setXYAt(et.v[et._length-1][0],et.v[et._length-1][1],"o",et._length-1)),lt>o.e)break;nt=this.p.keyframes[this.p.keyframes.length-1].t?(ht=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/lt,0),vt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/lt,0)):(ht=this.p.pv,vt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/lt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){ht=[],vt=[];var gt=this.px,wt=this.py;gt._caching.lastFrame+gt.offsetTime<=gt.keyframes[0].t?(ht[0]=gt.getValueAtTime((gt.keyframes[0].t+.01)/lt,0),ht[1]=wt.getValueAtTime((wt.keyframes[0].t+.01)/lt,0),vt[0]=gt.getValueAtTime(gt.keyframes[0].t/lt,0),vt[1]=wt.getValueAtTime(wt.keyframes[0].t/lt,0)):gt._caching.lastFrame+gt.offsetTime>=gt.keyframes[gt.keyframes.length-1].t?(ht[0]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/lt,0),ht[1]=wt.getValueAtTime(wt.keyframes[wt.keyframes.length-1].t/lt,0),vt[0]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/lt,0),vt[1]=wt.getValueAtTime((wt.keyframes[wt.keyframes.length-1].t-.01)/lt,0)):(ht=[gt.pv,wt.pv],vt[0]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/lt,gt.offsetTime),vt[1]=wt.getValueAtTime((wt._caching.lastFrame+wt.offsetTime-.01)/lt,wt.offsetTime))}else vt=a,ht=vt;this.v.rotate(-Math.atan2(ht[1]-vt[1],ht[0]-vt[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function tt(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function rt(){}function nt(at){this._addDynamicProperty(at),this.elem.addDynamicProperty(at),this._isDirty=!0}function it(at,lt,ht){if(this.elem=at,this.frameId=-1,this.propType="transform",this.data=lt,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(ht||at),lt.p&<.p.s?(this.px=PropertyFactory.getProp(at,lt.p.x,0,0,this),this.py=PropertyFactory.getProp(at,lt.p.y,0,0,this),lt.p.z&&(this.pz=PropertyFactory.getProp(at,lt.p.z,0,0,this))):this.p=PropertyFactory.getProp(at,lt.p||{k:[0,0,0]},1,0,this),lt.rx){if(this.rx=PropertyFactory.getProp(at,lt.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(at,lt.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(at,lt.rz,0,degToRads,this),lt.or.k[0].ti){var vt,gt=lt.or.k.length;for(vt=0;vt0;)et-=1,this._elements.unshift(o[et]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(a){var o,et=a.length;for(o=0;o0?Math.floor(gt):Math.ceil(gt),pt=this.pMatrix.props,Et=this.rMatrix.props,yt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var bt=0;if(gt>0){for(;btut;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),bt-=1;wt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-wt,!0),bt-=wt)}tt=this.data.m===1?0:this._currentCopies-1,rt=this.data.m===1?1:-1,nt=this._currentCopies;for(var kt,It;nt;){if(o=this.elemsData[tt].it,et=o[o.length-1].transform.mProps.v.props,It=et.length,o[o.length-1].transform.mProps._mdf=!0,o[o.length-1].transform.op._mdf=!0,o[o.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(tt/(this._currentCopies-1)),bt!==0){for((tt!==0&&rt===1||tt!==this._currentCopies-1&&rt===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Et[0],Et[1],Et[2],Et[3],Et[4],Et[5],Et[6],Et[7],Et[8],Et[9],Et[10],Et[11],Et[12],Et[13],Et[14],Et[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),this.matrix.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15]),kt=0;kt0&&tt<1?[o]:[]:[o-tt,o+tt].filter(function(rt){return rt>0&&rt<1})},PolynomialBezier.prototype.split=function(a){if(a<=0)return[singlePoint(this.points[0]),this];if(a>=1)return[this,singlePoint(this.points[this.points.length-1])];var o=lerpPoint(this.points[0],this.points[1],a),et=lerpPoint(this.points[1],this.points[2],a),tt=lerpPoint(this.points[2],this.points[3],a),rt=lerpPoint(o,et,a),nt=lerpPoint(et,tt,a),it=lerpPoint(rt,nt,a);return[new PolynomialBezier(this.points[0],o,rt,it,!0),new PolynomialBezier(it,nt,tt,this.points[3],!0)]};function extrema(a,o){var et=a.points[0][o],tt=a.points[a.points.length-1][o];if(et>tt){var rt=tt;tt=et,et=rt}for(var nt=quadRoots(3*a.a[o],2*a.b[o],a.c[o]),it=0;it0&&nt[it]<1){var st=a.point(nt[it])[o];sttt&&(tt=st)}return{min:et,max:tt}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var a=this.bounds();return{left:a.x.min,right:a.x.max,top:a.y.min,bottom:a.y.max,width:a.x.max-a.x.min,height:a.y.max-a.y.min,cx:(a.x.max+a.x.min)/2,cy:(a.y.max+a.y.min)/2}};function intersectData(a,o,et){var tt=a.boundingBox();return{cx:tt.cx,cy:tt.cy,width:tt.width,height:tt.height,bez:a,t:(o+et)/2,t1:o,t2:et}}function splitData(a){var o=a.bez.split(.5);return[intersectData(o[0],a.t1,a.t),intersectData(o[1],a.t,a.t2)]}function boxIntersect(a,o){return Math.abs(a.cx-o.cx)*2=nt||a.width<=tt&&a.height<=tt&&o.width<=tt&&o.height<=tt){rt.push([a.t,o.t]);return}var it=splitData(a),st=splitData(o);intersectsImpl(it[0],st[0],et+1,tt,rt,nt),intersectsImpl(it[0],st[1],et+1,tt,rt,nt),intersectsImpl(it[1],st[0],et+1,tt,rt,nt),intersectsImpl(it[1],st[1],et+1,tt,rt,nt)}}PolynomialBezier.prototype.intersections=function(a,o,et){o===void 0&&(o=2),et===void 0&&(et=7);var tt=[];return intersectsImpl(intersectData(this,0,1),intersectData(a,0,1),0,o,tt,et),tt},PolynomialBezier.shapeSegment=function(a,o){var et=(o+1)%a.length();return new PolynomialBezier(a.v[o],a.o[o],a.i[et],a.v[et],!0)},PolynomialBezier.shapeSegmentInverted=function(a,o){var et=(o+1)%a.length();return new PolynomialBezier(a.v[et],a.i[et],a.o[o],a.v[o],!0)};function crossProduct(a,o){return[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]}function lineIntersection(a,o,et,tt){var rt=[a[0],a[1],1],nt=[o[0],o[1],1],it=[et[0],et[1],1],st=[tt[0],tt[1],1],at=crossProduct(crossProduct(rt,nt),crossProduct(it,st));return floatZero(at[2])?null:[at[0]/at[2],at[1]/at[2]]}function polarOffset(a,o,et){return[a[0]+Math.cos(o)*et,a[1]-Math.sin(o)*et]}function pointDistance(a,o){return Math.hypot(a[0]-o[0],a[1]-o[1])}function pointEqual(a,o){return floatEqual(a[0],o[0])&&floatEqual(a[1],o[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(a,o.s,0,null,this),this.frequency=PropertyFactory.getProp(a,o.r,0,null,this),this.pointsType=PropertyFactory.getProp(a,o.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(a,o,et,tt,rt,nt,it){var st=et-Math.PI/2,at=et+Math.PI/2,lt=o[0]+Math.cos(et)*tt*rt,ht=o[1]-Math.sin(et)*tt*rt;a.setTripleAt(lt,ht,lt+Math.cos(st)*nt,ht-Math.sin(st)*nt,lt+Math.cos(at)*it,ht-Math.sin(at)*it,a.length())}function getPerpendicularVector(a,o){var et=[o[0]-a[0],o[1]-a[1]],tt=-Math.PI*.5,rt=[Math.cos(tt)*et[0]-Math.sin(tt)*et[1],Math.sin(tt)*et[0]+Math.cos(tt)*et[1]];return rt}function getProjectingAngle(a,o){var et=o===0?a.length()-1:o-1,tt=(o+1)%a.length(),rt=a.v[et],nt=a.v[tt],it=getPerpendicularVector(rt,nt);return Math.atan2(0,1)-Math.atan2(it[1],it[0])}function zigZagCorner(a,o,et,tt,rt,nt,it){var st=getProjectingAngle(o,et),at=o.v[et%o._length],lt=o.v[et===0?o._length-1:et-1],ht=o.v[(et+1)%o._length],vt=nt===2?Math.sqrt(Math.pow(at[0]-lt[0],2)+Math.pow(at[1]-lt[1],2)):0,gt=nt===2?Math.sqrt(Math.pow(at[0]-ht[0],2)+Math.pow(at[1]-ht[1],2)):0;setPoint(a,o.v[et%o._length],st,it,tt,gt/((rt+1)*2),vt/((rt+1)*2))}function zigZagSegment(a,o,et,tt,rt,nt){for(var it=0;it1&&o.length>1&&(rt=getIntersection(a[0],o[o.length-1]),rt)?[[a[0].split(rt[0])[0]],[o[o.length-1].split(rt[1])[1]]]:[et,tt]}function pruneIntersections(a){for(var o,et=1;et1&&(o=pruneSegmentIntersection(a[a.length-1],a[0]),a[a.length-1]=o[0],a[0]=o[1]),a}function offsetSegmentSplit(a,o){var et=a.inflectionPoints(),tt,rt,nt,it;if(et.length===0)return[offsetSegment(a,o)];if(et.length===1||floatEqual(et[1],1))return nt=a.split(et[0]),tt=nt[0],rt=nt[1],[offsetSegment(tt,o),offsetSegment(rt,o)];nt=a.split(et[0]),tt=nt[0];var st=(et[1]-et[0])/(1-et[0]);return nt=nt[1].split(st),it=nt[0],rt=nt[1],[offsetSegment(tt,o),offsetSegment(it,o),offsetSegment(rt,o)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(a,o){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(a,o.a,0,null,this),this.miterLimit=PropertyFactory.getProp(a,o.ml,0,null,this),this.lineJoin=o.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(a,o,et,tt){var rt=shapePool.newElement();rt.c=a.c;var nt=a.length();a.c||(nt-=1);var it,st,at,lt=[];for(it=0;it=0;it-=1)at=PolynomialBezier.shapeSegmentInverted(a,it),lt.push(offsetSegmentSplit(at,o));lt=pruneIntersections(lt);var ht=null,vt=null;for(it=0;it0&&(mt=!1),mt){var cr=createTag("style");cr.setAttribute("f-forigin",$t[Tt].fOrigin),cr.setAttribute("f-origin",$t[Tt].origin),cr.setAttribute("f-family",$t[Tt].fFamily),cr.type="text/css",cr.innerText="@font-face {font-family: "+$t[Tt].fFamily+"; font-style: normal; src: url('"+$t[Tt].fPath+"');}",Mt.appendChild(cr)}}else if($t[Tt].fOrigin==="g"||$t[Tt].origin===1){for(Ft=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Qt=0;Qt=55296&&$t<=56319){var Tt=St.charCodeAt(1);Tt>=56320&&Tt<=57343&&(Mt=($t-55296)*1024+Tt-56320+65536)}return Mt}function Nt(St,Mt){var $t=St.toString(16)+Mt.toString(16);return vt.indexOf($t)!==-1}function Vt(St){return St===at}function jt(St){return St===st}function zt(St){var Mt=Ot(St);return Mt>=lt&&Mt<=ht}function or(St){return zt(St.substr(0,2))&&zt(St.substr(2,2))}function qt(St){return et.indexOf(St)!==-1}function Rt(St,Mt){var $t=Ot(St.substr(Mt,2));if($t!==tt)return!1;var Tt=0;for(Mt+=2;Tt<5;){if($t=Ot(St.substr(Mt,2)),$tit)return!1;Tt+=1,Mt+=2}return Ot(St.substr(Mt,2))===rt}function Bt(){this.isLoaded=!0}var ct=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ct.isModifier=Nt,ct.isZeroWidthJoiner=Vt,ct.isFlagEmoji=or,ct.isRegionalCode=zt,ct.isCombinedCharacter=qt,ct.isRegionalFlag=Rt,ct.isVariationSelector=jt,ct.BLACK_FLAG_CODE_POINT=tt;var xt={addChars:yt,addFonts:Et,getCharData:bt,getFontByName:It,measureText:kt,checkLoadedFonts:ut,setIsLoaded:Bt};return ct.prototype=xt,ct}();function SlotManager(a){this.animationData=a}SlotManager.prototype.getProp=function(a){return this.animationData.slots&&this.animationData.slots[a.sid]?Object.assign(a,this.animationData.slots[a.sid].p):a};function slotFactory(a){return new SlotManager(a)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(o){this.renderableComponents.indexOf(o)===-1&&this.renderableComponents.push(o)},removeRenderableComponent:function(o){this.renderableComponents.indexOf(o)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(o),1)},prepareRenderableFrame:function(o){this.checkLayerLimits(o)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(o){this.data.ip-this.data.st<=o&&this.data.op-this.data.st>o?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var o,et=this.renderableComponents.length;for(o=0;o.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(a){this.audio.rate(a)},AudioElement.prototype.volume=function(a){this._volumeMultiplier=a,this._previousVolume=a*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(a){var o,et=this.layers.length,tt;for(this.completeLayers=!0,o=et-1;o>=0;o-=1)this.elements[o]||(tt=this.layers[o],tt.ip-tt.st<=a-this.layers[o].st&&tt.op-tt.st>a-this.layers[o].st&&this.buildItem(o)),this.completeLayers=this.elements[o]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(a){switch(a.ty){case 2:return this.createImage(a);case 0:return this.createComp(a);case 1:return this.createSolid(a);case 3:return this.createNull(a);case 4:return this.createShape(a);case 5:return this.createText(a);case 6:return this.createAudio(a);case 13:return this.createCamera(a);case 15:return this.createFootage(a);default:return this.createNull(a)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(a){return new AudioElement(a,this.globalData,this)},BaseRenderer.prototype.createFootage=function(a){return new FootageElement(a,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var a,o=this.layers.length;for(a=0;a0&&(this.maskElement.setAttribute("id",gt),this.element.maskedElement.setAttribute(bt,"url("+getLocationHref()+"#"+gt+")"),tt.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(a){return this.viewData[a].prop},MaskElement.prototype.renderFrame=function(a){var o=this.element.finalTransform.mat,et,tt=this.masksProperties.length;for(et=0;et1&&(tt+=" C"+o.o[rt-1][0]+","+o.o[rt-1][1]+" "+o.i[0][0]+","+o.i[0][1]+" "+o.v[0][0]+","+o.v[0][1]),et.lastPath!==tt){var it="";et.elem&&(o.c&&(it=a.inv?this.solidPath+tt:tt),et.elem.setAttribute("d",it)),et.lastPath=tt}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var a={};a.createFilter=o,a.createAlphaToLuminanceFilter=et;function o(tt,rt){var nt=createNS("filter");return nt.setAttribute("id",tt),rt!==!0&&(nt.setAttribute("filterUnits","objectBoundingBox"),nt.setAttribute("x","0%"),nt.setAttribute("y","0%"),nt.setAttribute("width","100%"),nt.setAttribute("height","100%")),nt}function et(){var tt=createNS("feColorMatrix");return tt.setAttribute("type","matrix"),tt.setAttribute("color-interpolation-filters","sRGB"),tt.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),tt}return a}(),featureSupport=function(){var a={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(a.maskType=!1),/firefox/i.test(navigator.userAgent)&&(a.svgLumaHidden=!1),a}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(a){var o,et="SourceGraphic",tt=a.data.ef?a.data.ef.length:0,rt=createElementID(),nt=filtersFactory.createFilter(rt,!0),it=0;this.filters=[];var st;for(o=0;o=0&&(tt=this.shapeModifiers[o].processShapes(this._isFirstFrame),!tt);o-=1);}},searchProcessedElement:function(o){for(var et=this.processedElements,tt=0,rt=et.length;tt.01)return!1;et+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var a=0,o=this.data.k.k.length;a0;)yt=gt.transformers[zt].mProps._mdf||yt,jt-=1,zt-=1;if(yt)for(jt=Ot-gt.styles[kt].lvl,zt=gt.transformers.length-1;jt>0;)Vt.multiply(gt.transformers[zt].mProps.v),jt-=1,zt-=1}else Vt=a;if(Nt=gt.sh.paths,pt=Nt._length,yt){for(Et="",ut=0;ut=1?Bt=.99:Bt<=-1&&(Bt=-.99);var ct=qt*Bt,xt=Math.cos(Rt+gt.a.v)*ct+Et[0],St=Math.sin(Rt+gt.a.v)*ct+Et[1];ut.setAttribute("fx",xt),ut.setAttribute("fy",St),pt&&!gt.g._collapsable&&(gt.of.setAttribute("fx",xt),gt.of.setAttribute("fy",St))}}}function ht(vt,gt,wt){var ut=gt.style,pt=gt.d;pt&&(pt._mdf||wt)&&pt.dashStr&&(ut.pElem.setAttribute("stroke-dasharray",pt.dashStr),ut.pElem.setAttribute("stroke-dashoffset",pt.dashoffset[0])),gt.c&&(gt.c._mdf||wt)&&ut.pElem.setAttribute("stroke","rgb("+bmFloor(gt.c.v[0])+","+bmFloor(gt.c.v[1])+","+bmFloor(gt.c.v[2])+")"),(gt.o._mdf||wt)&&ut.pElem.setAttribute("stroke-opacity",gt.o.v),(gt.w._mdf||wt)&&(ut.pElem.setAttribute("stroke-width",gt.w.v),ut.msElem&&ut.msElem.setAttribute("stroke-width",gt.w.v))}return et}();function SVGShapeElement(a,o,et){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(a,o,et),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var a,o=this.shapes.length,et,tt,rt=this.stylesList.length,nt,it=[],st=!1;for(tt=0;tt1&&st&&this.setShapesAsAnimated(it)}},SVGShapeElement.prototype.setShapesAsAnimated=function(a){var o,et=a.length;for(o=0;o=0;at-=1){if(Et=this.searchProcessedElement(a[at]),Et?o[at]=et[Et-1]:a[at]._render=it,a[at].ty==="fl"||a[at].ty==="st"||a[at].ty==="gf"||a[at].ty==="gs"||a[at].ty==="no")Et?o[at].style.closed=!1:o[at]=this.createStyleElement(a[at],rt),a[at]._render&&o[at].style.pElem.parentNode!==tt&&tt.appendChild(o[at].style.pElem),gt.push(o[at].style);else if(a[at].ty==="gr"){if(!Et)o[at]=this.createGroupElement(a[at]);else for(vt=o[at].it.length,ht=0;ht1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(a){this.effectsSequence.push(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(a){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!a)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var o=this.currentData,et=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var tt,rt=this.effectsSequence.length,nt=a||this.data.d.k[this.keysIndex].s;for(tt=0;tto);)et+=1;return this.keysIndex!==et&&(this.keysIndex=et),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(a){for(var o=[],et=0,tt=a.length,rt,nt,it=!1,st=!1,at="";et=55296&&rt<=56319?FontManager.isRegionalFlag(a,et)?at=a.substr(et,14):(nt=a.charCodeAt(et+1),nt>=56320&&nt<=57343&&(FontManager.isModifier(rt,nt)?(at=a.substr(et,2),it=!0):FontManager.isFlagEmoji(a.substr(et,4))?at=a.substr(et,4):at=a.substr(et,2))):rt>56319?(nt=a.charCodeAt(et+1),FontManager.isVariationSelector(rt)&&(it=!0)):FontManager.isZeroWidthJoiner(rt)&&(it=!0,st=!0),it?(o[o.length-1]+=at,it=!1):o.push(at),et+=at.length;return o},TextProperty.prototype.completeTextData=function(a){a.__complete=!0;var o=this.elem.globalData.fontManager,et=this.data,tt=[],rt,nt,it,st=0,at,lt=et.m.g,ht=0,vt=0,gt=0,wt=[],ut=0,pt=0,Et,yt,bt=o.getFontByName(a.f),kt,It=0,Ot=getFontProperties(bt);a.fWeight=Ot.weight,a.fStyle=Ot.style,a.finalSize=a.s,a.finalText=this.buildFinalText(a.t),nt=a.finalText.length,a.finalLineHeight=a.lh;var Nt=a.tr/1e3*a.finalSize,Vt;if(a.sz)for(var jt=!0,zt=a.sz[0],or=a.sz[1],qt,Rt;jt;){Rt=this.buildFinalText(a.t),qt=0,ut=0,nt=Rt.length,Nt=a.tr/1e3*a.finalSize;var Bt=-1;for(rt=0;rtzt&&Rt[rt]!==" "?(Bt===-1?nt+=1:rt=Bt,qt+=a.finalLineHeight||a.finalSize*1.2,Rt.splice(rt,Bt===rt?1:0,"\r"),Bt=-1,ut=0):(ut+=It,ut+=Nt);qt+=bt.ascent*a.finalSize/100,this.canResize&&a.finalSize>this.minimumFontSize&&orpt?ut:pt,ut=-2*Nt,at="",it=!0,gt+=1):at=xt,o.chars?(kt=o.getCharData(xt,bt.fStyle,o.getFontByName(a.f).fFamily),It=it?0:kt.w*a.finalSize/100):It=o.measureText(at,a.f,a.finalSize),xt===" "?ct+=It+Nt:(ut+=It+Nt+ct,ct=0),tt.push({l:It,an:It,add:ht,n:it,anIndexes:[],val:at,line:gt,animatorJustifyOffset:0}),lt==2){if(ht+=It,at===""||at===" "||rt===nt-1){for((at===""||at===" ")&&(ht-=It);vt<=rt;)tt[vt].an=ht,tt[vt].ind=st,tt[vt].extra=It,vt+=1;st+=1,ht=0}}else if(lt==3){if(ht+=It,at===""||rt===nt-1){for(at===""&&(ht-=It);vt<=rt;)tt[vt].an=ht,tt[vt].ind=st,tt[vt].extra=It,vt+=1;ht=0,st+=1}}else tt[st].ind=st,tt[st].extra=0,st+=1;if(a.l=tt,pt=ut>pt?ut:pt,wt.push(ut),a.sz)a.boxWidth=a.sz[0],a.justifyOffset=0;else switch(a.boxWidth=pt,a.j){case 1:a.justifyOffset=-a.boxWidth;break;case 2:a.justifyOffset=-a.boxWidth/2;break;default:a.justifyOffset=0}a.lineWidths=wt;var St=et.a,Mt,$t;yt=St.length;var Tt,At,Pt=[];for(Et=0;Et0?st=this.ne.v/100:at=-this.ne.v/100,this.xe.v>0?lt=1-this.xe.v/100:ht=1+this.xe.v/100;var vt=BezierFactory.getBezierEasing(st,at,lt,ht).get,gt=0,wt=this.finalS,ut=this.finalE,pt=this.data.sh;if(pt===2)ut===wt?gt=it>=ut?1:0:gt=a(0,o(.5/(ut-wt)+(it-wt)/(ut-wt),1)),gt=vt(gt);else if(pt===3)ut===wt?gt=it>=ut?0:1:gt=1-a(0,o(.5/(ut-wt)+(it-wt)/(ut-wt),1)),gt=vt(gt);else if(pt===4)ut===wt?gt=0:(gt=a(0,o(.5/(ut-wt)+(it-wt)/(ut-wt),1)),gt<.5?gt*=2:gt=1-2*(gt-.5)),gt=vt(gt);else if(pt===5){if(ut===wt)gt=0;else{var Et=ut-wt;it=o(a(0,it+.5-wt),ut-wt);var yt=-Et/2+it,bt=Et/2;gt=Math.sqrt(1-yt*yt/(bt*bt))}gt=vt(gt)}else pt===6?(ut===wt?gt=0:(it=o(a(0,it+.5-wt),ut-wt),gt=(1+Math.cos(Math.PI+Math.PI*2*it/(ut-wt)))/2),gt=vt(gt)):(it>=et(wt)&&(it-wt<0?gt=a(0,o(o(ut,1)-(wt-it),1)):gt=a(0,o(ut-it,1))),gt=vt(gt));if(this.sm.v!==100){var kt=this.sm.v*.01;kt===0&&(kt=1e-8);var It=.5-kt*.5;gt1&&(gt=1))}return gt*this.a.v},getValue:function(it){this.iterateDynamicProperties(),this._mdf=it||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,it&&this.data.r===2&&(this.e.v=this._currentTextLength);var st=this.data.r===2?1:100/this.data.totalChars,at=this.o.v/st,lt=this.s.v/st+at,ht=this.e.v/st+at;if(lt>ht){var vt=lt;lt=ht,ht=vt}this.finalS=lt,this.finalE=ht}},extendPrototype([DynamicPropertyContainer],tt);function rt(nt,it,st){return new tt(nt,it)}return{getTextSelectorProp:rt}}();function TextAnimatorDataProperty(a,o,et){var tt={propType:!1},rt=PropertyFactory.getProp,nt=o.a;this.a={r:nt.r?rt(a,nt.r,0,degToRads,et):tt,rx:nt.rx?rt(a,nt.rx,0,degToRads,et):tt,ry:nt.ry?rt(a,nt.ry,0,degToRads,et):tt,sk:nt.sk?rt(a,nt.sk,0,degToRads,et):tt,sa:nt.sa?rt(a,nt.sa,0,degToRads,et):tt,s:nt.s?rt(a,nt.s,1,.01,et):tt,a:nt.a?rt(a,nt.a,1,0,et):tt,o:nt.o?rt(a,nt.o,0,.01,et):tt,p:nt.p?rt(a,nt.p,1,0,et):tt,sw:nt.sw?rt(a,nt.sw,0,0,et):tt,sc:nt.sc?rt(a,nt.sc,1,0,et):tt,fc:nt.fc?rt(a,nt.fc,1,0,et):tt,fh:nt.fh?rt(a,nt.fh,0,0,et):tt,fs:nt.fs?rt(a,nt.fs,0,.01,et):tt,fb:nt.fb?rt(a,nt.fb,0,.01,et):tt,t:nt.t?rt(a,nt.t,0,0,et):tt},this.s=TextSelectorProp.getTextSelectorProp(a,o.s,et),this.s.t=o.s.t}function TextAnimatorProperty(a,o,et){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=a,this._renderType=o,this._elem=et,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(et)}TextAnimatorProperty.prototype.searchProperties=function(){var a,o=this._textData.a.length,et,tt=PropertyFactory.getProp;for(a=0;a=ut+Rr||!Ot?(zt=(ut+Rr-Et)/pt.partialLength,Qt=It.point[0]+(pt.point[0]-It.point[0])*zt,cr=It.point[1]+(pt.point[1]-It.point[1])*zt,nt.translate(-et[0]*gt[ht].an*.005,-(et[1]*ct)*.01),yt=!1):Ot&&(Et+=pt.partialLength,bt+=1,bt>=Ot.length&&(bt=0,kt+=1,Nt[kt]?Ot=Nt[kt].points:qt.v.c?(bt=0,kt=0,Ot=Nt[kt].points):(Et-=pt.partialLength,Ot=null)),Ot&&(It=pt,pt=Ot[bt],Vt=pt.partialLength));Ft=gt[ht].an/2-gt[ht].add,nt.translate(-Ft,0,0)}else Ft=gt[ht].an/2-gt[ht].add,nt.translate(-Ft,0,0),nt.translate(-et[0]*gt[ht].an*.005,-et[1]*ct*.01,0);for($t=0;$ta?this.textSpans[a].span:createNS(st?"g":"text"),kt<=a){if(at.setAttribute("stroke-linecap","butt"),at.setAttribute("stroke-linejoin","round"),at.setAttribute("stroke-miterlimit","4"),this.textSpans[a].span=at,st){var Ot=createNS("g");at.appendChild(Ot),this.textSpans[a].childSpan=Ot}this.textSpans[a].span=at,this.layerElement.appendChild(at)}at.style.display="inherit"}if(lt.reset(),vt&&(it[a].n&&(gt=-pt,wt+=et.yOffset,wt+=ut?1:0,ut=!1),this.applyTextPropertiesToMatrix(et,lt,it[a].line,gt,wt),gt+=it[a].l||0,gt+=pt),st){It=this.globalData.fontManager.getCharData(et.finalText[a],tt.fStyle,this.globalData.fontManager.getFontByName(et.f).fFamily);var Nt;if(It.t===1)Nt=new SVGCompElement(It.data,this.globalData,this);else{var Vt=emptyShapeData;It.data&&It.data.shapes&&(Vt=this.buildShapeData(It.data,et.finalSize)),Nt=new SVGShapeElement(Vt,this.globalData,this)}if(this.textSpans[a].glyph){var jt=this.textSpans[a].glyph;this.textSpans[a].childSpan.removeChild(jt.layerElement),jt.destroy()}this.textSpans[a].glyph=Nt,Nt._debug=!0,Nt.prepareFrame(0),Nt.renderFrame(),this.textSpans[a].childSpan.appendChild(Nt.layerElement),It.t===1&&this.textSpans[a].childSpan.setAttribute("transform","scale("+et.finalSize/100+","+et.finalSize/100+")")}else vt&&at.setAttribute("transform","translate("+lt.props[12]+","+lt.props[13]+")"),at.textContent=it[a].val,at.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}vt&&at&&at.setAttribute("d",ht)}for(;a=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(a-this.layers[o].st);if(this.globalData._mdf)for(o=0;o=0;et-=1)(this.completeLayers||this.elements[et])&&(this.elements[et].prepareFrame(this.renderedFrame-this.layers[et].st),this.elements[et]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var a,o=this.layers.length;for(a=0;a=0;tt-=1)o.finalTransform.multiply(o.transforms[tt].transform.mProps.v);o._mdf=nt},processSequences:function(o){var et,tt=this.sequenceList.length;for(et=0;et=1){this.buffers=[];var o=this.globalData.canvasContext,et=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(et);var tt=assetLoader.createCanvas(o.canvas.width,o.canvas.height);this.buffers.push(tt),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var o=this.globalData;if(o.blendMode!==this.data.bm){o.blendMode=this.data.bm;var et=getBlendMode(this.data.bm);o.canvasContext.globalCompositeOperation=et}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(o){o.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var o=this.buffers[0],et=o.getContext("2d");this.clearCanvas(et),et.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var o=this.buffers[1],et=o.getContext("2d");this.clearCanvas(et),et.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var tt=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(tt.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var rt=assetLoader.getLumaCanvas(this.canvasContext.canvas),nt=rt.getContext("2d");nt.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(rt,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(o,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(o){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!o)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var et=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(et),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(et),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(a,o,et,tt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var rt=4;o.ty==="rc"?rt=5:o.ty==="el"?rt=6:o.ty==="sr"&&(rt=7),this.sh=ShapePropertyFactory.getShapeProp(a,o,rt,a);var nt,it=et.length,st;for(nt=0;nt=0;nt-=1){if(vt=this.searchProcessedElement(a[nt]),vt?o[nt]=et[vt-1]:a[nt]._shouldRender=tt,a[nt].ty==="fl"||a[nt].ty==="st"||a[nt].ty==="gf"||a[nt].ty==="gs")vt?o[nt].style.closed=!1:o[nt]=this.createStyleElement(a[nt],ut),lt.push(o[nt].style);else if(a[nt].ty==="gr"){if(!vt)o[nt]=this.createGroupElement(a[nt]);else for(at=o[nt].it.length,st=0;st=0;rt-=1)o[rt].ty==="tr"?(it=et[rt].transform,this.renderShapeTransform(a,it)):o[rt].ty==="sh"||o[rt].ty==="el"||o[rt].ty==="rc"||o[rt].ty==="sr"?this.renderPath(o[rt],et[rt]):o[rt].ty==="fl"?this.renderFill(o[rt],et[rt],it):o[rt].ty==="st"?this.renderStroke(o[rt],et[rt],it):o[rt].ty==="gf"||o[rt].ty==="gs"?this.renderGradientFill(o[rt],et[rt],it):o[rt].ty==="gr"?this.renderShape(it,o[rt].it,et[rt].it):o[rt].ty;tt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(a,o){if(this._isFirstFrame||o._mdf||a.transforms._mdf){var et=a.trNodes,tt=o.paths,rt,nt,it,st=tt._length;et.length=0;var at=a.transforms.finalTransform;for(it=0;it=1?ht=.99:ht<=-1&&(ht=-.99);var vt=at*ht,gt=Math.cos(lt+o.a.v)*vt+it[0],wt=Math.sin(lt+o.a.v)*vt+it[1];rt=nt.createRadialGradient(gt,wt,0,it[0],it[1],at)}var ut,pt=a.g.p,Et=o.g.c,yt=1;for(ut=0;utnt&&at==="xMidYMid slice"||rtrt&&st==="meet"||ntrt&&st==="slice")?this.transformCanvas.tx=(et-this.transformCanvas.w*(tt/this.transformCanvas.h))/2*this.renderConfig.dpr:lt==="xMax"&&(ntrt&&st==="slice")?this.transformCanvas.tx=(et-this.transformCanvas.w*(tt/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,ht==="YMid"&&(nt>rt&&st==="meet"||ntrt&&st==="meet"||nt=0;a-=1)this.elements[a]&&this.elements[a].destroy&&this.elements[a].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(a,o){if(!(this.renderedFrame===a&&this.renderConfig.clearCanvas===!0&&!o||this.destroyed||a===-1)){this.renderedFrame=a,this.globalData.frameNum=a-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||o,this.globalData.projectInterface.currentFrame=a;var et,tt=this.layers.length;for(this.completeLayers||this.checkLayers(a),et=tt-1;et>=0;et-=1)(this.completeLayers||this.elements[et])&&this.elements[et].prepareFrame(a-this.layers[et].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),et=tt-1;et>=0;et-=1)(this.completeLayers||this.elements[et])&&this.elements[et].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(a){var o=this.elements;if(!(o[a]||this.layers[a].ty===99)){var et=this.createItem(this.layers[a],this,this.globalData);o[a]=et,et.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var a=this.pendingElements.pop();a.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var a,o=15;for(a=0;a=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()},CVCompElement.prototype.destroy=function(){var a,o=this.layers.length;for(a=o-1;a>=0;a-=1)this.elements[a]&&this.elements[a].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(a){return new CVCompElement(a,this.globalData,this)};function CanvasRenderer(a,o){this.animationItem=a,this.renderConfig={clearCanvas:o&&o.clearCanvas!==void 0?o.clearCanvas:!0,context:o&&o.context||null,progressiveLoad:o&&o.progressiveLoad||!1,preserveAspectRatio:o&&o.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:o&&o.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:o&&o.contentVisibility||"visible",className:o&&o.className||"",id:o&&o.id||"",runExpressions:!o||o.runExpressions===void 0||o.runExpressions},this.renderConfig.dpr=o&&o.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=o&&o.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(a){return new CVCompElement(a,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var o=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var et=this.finalTransform.mat.toCSS();o.transform=et,o.webkitTransform=et}this.finalTransform._opMdf&&(o.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(a,o,et){this.initElement(a,o,et)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var a;this.data.hasMask?(a=createNS("rect"),a.setAttribute("width",this.data.sw),a.setAttribute("height",this.data.sh),a.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(a=createTag("div"),a.style.width=this.data.sw+"px",a.style.height=this.data.sh+"px",a.style.backgroundColor=this.data.sc),this.layerElement.appendChild(a)};function HShapeElement(a,o,et){this.shapes=[],this.shapesData=a.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(a,o,et),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var a;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),a=this.svgElement;else{a=createNS("svg");var o=this.comp.data?this.comp.data:this.globalData.compSize;a.setAttribute("width",o.w),a.setAttribute("height",o.h),a.appendChild(this.shapesContainer),this.layerElement.appendChild(a)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=a},HShapeElement.prototype.getTransformedPoint=function(a,o){var et,tt=a.length;for(et=0;et0&&at<1&&rt[gt].push(this.calculateF(at,a,o,et,tt,gt))):(lt=it*it-4*st*nt,lt>=0&&(ht=(-it+bmSqrt(lt))/(2*nt),ht>0&&ht<1&&rt[gt].push(this.calculateF(ht,a,o,et,tt,gt)),vt=(-it-bmSqrt(lt))/(2*nt),vt>0&&vt<1&&rt[gt].push(this.calculateF(vt,a,o,et,tt,gt)))));this.shapeBoundingBox.left=bmMin.apply(null,rt[0]),this.shapeBoundingBox.top=bmMin.apply(null,rt[1]),this.shapeBoundingBox.right=bmMax.apply(null,rt[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,rt[1])},HShapeElement.prototype.calculateF=function(a,o,et,tt,rt,nt){return bmPow(1-a,3)*o[nt]+3*bmPow(1-a,2)*a*et[nt]+3*(1-a)*bmPow(a,2)*tt[nt]+bmPow(a,3)*rt[nt]},HShapeElement.prototype.calculateBoundingBox=function(a,o){var et,tt=a.length;for(et=0;etet&&(et=rt)}et*=a.mult}else et=a.v*a.mult;o.x-=et,o.xMax+=et,o.y-=et,o.yMax+=et},HShapeElement.prototype.currentBoxContains=function(a){return this.currentBBox.x<=a.x&&this.currentBBox.y<=a.y&&this.currentBBox.width+this.currentBBox.x>=a.x+a.width&&this.currentBBox.height+this.currentBBox.y>=a.y+a.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var a=this.tempBoundingBox,o=999999;if(a.x=o,a.xMax=-o,a.y=o,a.yMax=-o,this.calculateBoundingBox(this.itemsData,a),a.width=a.xMax=0;o-=1){var tt=this.hierarchy[o].finalTransform.mProp;this.mat.translate(-tt.p.v[0],-tt.p.v[1],tt.p.v[2]),this.mat.rotateX(-tt.or.v[0]).rotateY(-tt.or.v[1]).rotateZ(tt.or.v[2]),this.mat.rotateX(-tt.rx.v).rotateY(-tt.ry.v).rotateZ(tt.rz.v),this.mat.scale(1/tt.s.v[0],1/tt.s.v[1],1/tt.s.v[2]),this.mat.translate(tt.a.v[0],tt.a.v[1],tt.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var rt;this.p?rt=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:rt=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var nt=Math.sqrt(Math.pow(rt[0],2)+Math.pow(rt[1],2)+Math.pow(rt[2],2)),it=[rt[0]/nt,rt[1]/nt,rt[2]/nt],st=Math.sqrt(it[2]*it[2]+it[0]*it[0]),at=Math.atan2(it[1],st),lt=Math.atan2(it[0],-it[2]);this.mat.rotateY(lt).rotateX(-at)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var ht=!this._prevMat.equals(this.mat);if((ht||this.pe._mdf)&&this.comp.threeDElements){et=this.comp.threeDElements.length;var vt,gt,wt;for(o=0;o=a)return this.threeDElements[o].perspectiveElem;o+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(a,o){var et=createTag("div"),tt,rt;styleDiv(et);var nt=createTag("div");if(styleDiv(nt),o==="3d"){tt=et.style,tt.width=this.globalData.compSize.w+"px",tt.height=this.globalData.compSize.h+"px";var it="50% 50%";tt.webkitTransformOrigin=it,tt.mozTransformOrigin=it,tt.transformOrigin=it,rt=nt.style;var st="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";rt.transform=st,rt.webkitTransform=st}et.appendChild(nt);var at={container:nt,perspectiveElem:et,startPos:a,endPos:a,type:o};return this.threeDElements.push(at),at},HybridRendererBase.prototype.build3dContainers=function(){var a,o=this.layers.length,et,tt="";for(a=0;a=0;a-=1)this.resizerElem.appendChild(this.threeDElements[a].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(a,o){for(var et=0,tt=this.threeDElements.length;etet?(rt=a/this.globalData.compSize.w,nt=a/this.globalData.compSize.w,it=0,st=(o-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):(rt=o/this.globalData.compSize.h,nt=o/this.globalData.compSize.h,it=(a-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,st=0);var at=this.resizerElem.style;at.webkitTransform="matrix3d("+rt+",0,0,0,0,"+nt+",0,0,0,0,1,0,"+it+","+st+",0,1)",at.transform=at.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var a=this.globalData.compSize.w,o=this.globalData.compSize.h,et,tt=this.threeDElements.length;for(et=0;et=lt;)qt/=2,Rt/=2,Bt>>>=1;return(qt+Bt)/Rt};return zt.int32=function(){return jt.g(4)|0},zt.quick=function(){return jt.g(4)/4294967296},zt.double=zt,Et(bt(jt.S),a),(It.pass||Ot||function(or,qt,Rt,Bt){return Bt&&(Bt.S&&ut(Bt,jt),or.state=function(){return ut(jt,{})}),Rt?(o[it]=or,qt):or})(zt,Vt,"global"in It?It.global:this==o,It.state)}o["seed"+it]=gt;function wt(kt){var It,Ot=kt.length,Nt=this,Vt=0,jt=Nt.i=Nt.j=0,zt=Nt.S=[];for(Ot||(kt=[Ot++]);Vtet){var tt=et;et=o,o=tt}return Math.min(Math.max(a,o),et)}function radiansToDegrees(a){return a/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(a){return a*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(a,o){if(typeof a=="number"||a instanceof Number)return o=o||0,Math.abs(a-o);o||(o=helperLengthArray);var et,tt=Math.min(a.length,o.length),rt=0;for(et=0;et.5?lt/(2-rt-nt):lt/(rt+nt),rt){case o:it=(et-tt)/lt+(et1&&(et-=1),et<1/6?a+(o-a)*6*et:et<1/2?o:et<2/3?a+(o-a)*(2/3-et)*6:a}function hslToRgb(a){var o=a[0],et=a[1],tt=a[2],rt,nt,it;if(et===0)rt=tt,it=tt,nt=tt;else{var st=tt<.5?tt*(1+et):tt+et-tt*et,at=2*tt-st;rt=hue2rgb(at,st,o+1/3),nt=hue2rgb(at,st,o),it=hue2rgb(at,st,o-1/3)}return[rt,nt,it,a[3]]}function linear(a,o,et,tt,rt){if((tt===void 0||rt===void 0)&&(tt=o,rt=et,o=0,et=1),et=et)return rt;var it=et===o?0:(a-o)/(et-o);if(!tt.length)return tt+(rt-tt)*it;var st,at=tt.length,lt=createTypedArray("float32",at);for(st=0;st1){for(rt=0;rt1?o=1:o<0&&(o=0);var it=a(o);if($bm_isInstanceOfArray(rt)){var st,at=rt.length,lt=createTypedArray("float32",at);for(st=0;stdata.k[o].t&&adata.k[o+1].t-a?(tt=o+2,rt=data.k[o+1].t):(tt=o+1,rt=data.k[o].t);break}tt===-1&&(tt=o+1,rt=data.k[o].t)}var nt={};return nt.index=tt,nt.time=rt/elem.comp.globalData.frameRate,nt}function key(a){var o,et,tt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+a);a-=1,o={time:data.k[a].t/elem.comp.globalData.frameRate,value:[]};var rt=Object.prototype.hasOwnProperty.call(data.k[a],"s")?data.k[a].s:data.k[a-1].e;for(tt=rt.length,et=0;etEt.length-1)&&(wt=Et.length-1),kt=Et[Et.length-1-wt].t,bt=yt-kt);var It,Ot,Nt;if(gt==="pingpong"){var Vt=Math.floor((pt-kt)/bt);if(Vt%2!==0)return this.getValueAtTime((bt-(pt-kt)%bt+kt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var jt=this.getValueAtTime(kt/this.comp.globalData.frameRate,0),zt=this.getValueAtTime(yt/this.comp.globalData.frameRate,0),or=this.getValueAtTime(((pt-kt)%bt+kt)/this.comp.globalData.frameRate,0),qt=Math.floor((pt-kt)/bt);if(this.pv.length){for(Nt=new Array(jt.length),Ot=Nt.length,It=0;It=yt)return this.pv;var bt,kt;ut?(wt?bt=Math.abs(this.elem.comp.globalData.frameRate*wt):bt=Math.max(0,this.elem.data.op-yt),kt=yt+bt):((!wt||wt>Et.length-1)&&(wt=Et.length-1),kt=Et[wt].t,bt=kt-yt);var It,Ot,Nt;if(gt==="pingpong"){var Vt=Math.floor((yt-pt)/bt);if(Vt%2===0)return this.getValueAtTime(((yt-pt)%bt+yt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var jt=this.getValueAtTime(yt/this.comp.globalData.frameRate,0),zt=this.getValueAtTime(kt/this.comp.globalData.frameRate,0),or=this.getValueAtTime((bt-(yt-pt)%bt+yt)/this.comp.globalData.frameRate,0),qt=Math.floor((yt-pt)/bt)+1;if(this.pv.length){for(Nt=new Array(jt.length),Ot=Nt.length,It=0;It1?(Et-pt)/(wt-1):1,bt=0,kt=0,It;this.pv.length?It=createTypedArray("float32",this.pv.length):It=0;for(var Ot;btbt){var Vt=kt,jt=pt.c&&kt===It-1?0:kt+1,zt=(bt-Ot)/yt[kt].addedLength;Nt=bez.getPointInSegment(pt.v[Vt],pt.v[jt],pt.o[Vt],pt.i[jt],zt,yt[kt]);break}else Ot+=yt[kt].addedLength;kt+=1}return Nt||(Nt=pt.c?[pt.v[0][0],pt.v[0][1]]:[pt.v[pt._length-1][0],pt.v[pt._length-1][1]]),Nt},vectorOnPath:function(wt,ut,pt){wt==1?wt=this.v.c:wt==0&&(wt=.999);var Et=this.pointOnPath(wt,ut),yt=this.pointOnPath(wt+.001,ut),bt=yt[0]-Et[0],kt=yt[1]-Et[1],It=Math.sqrt(Math.pow(bt,2)+Math.pow(kt,2));if(It===0)return[0,0];var Ot=pt==="tangent"?[bt/It,kt/It]:[-kt/It,bt/It];return Ot},tangentOnPath:function(wt,ut){return this.vectorOnPath(wt,ut,"tangent")},normalOnPath:function(wt,ut){return this.vectorOnPath(wt,ut,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([ht],at),extendPrototype([ht],lt),lt.prototype.getValueAtTime=st,lt.prototype.initiateExpression=ExpressionManager.initiateExpression;var vt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(gt,wt,ut,pt,Et){var yt=vt(gt,wt,ut,pt,Et);return yt.propertyIndex=wt.ix,yt.lock=!1,ut===3?expressionHelpers.searchExpressions(gt,wt.pt,yt):ut===4&&expressionHelpers.searchExpressions(gt,wt.ks,yt),yt.k&>.addDynamicProperty(yt),yt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function a(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(o,et){var tt=this.calculateExpression(et);if(o.t!==tt){var rt={};return this.copyData(rt,o),rt.t=tt.toString(),rt.__complete=!1,rt}return o},TextProperty.prototype.searchProperty=function(){var o=this.searchKeyframes(),et=this.searchExpressions();return this.kf=o||et,this.kf},TextProperty.prototype.searchExpressions=a}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function a(o,et){var tt=createNS("feMerge");tt.setAttribute("result",o);var rt,nt;for(nt=0;nt=lt?vt=ut<0?tt:rt:vt=tt+wt*Math.pow((st-a)/ut,1/et),ht[gt]=vt,gt+=1,nt+=256/(it-1);return ht.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var o,et=this.filterManager.effectElements;this.feFuncRComposed&&(a||et[3].p._mdf||et[4].p._mdf||et[5].p._mdf||et[6].p._mdf||et[7].p._mdf)&&(o=this.getTableValue(et[3].p.v,et[4].p.v,et[5].p.v,et[6].p.v,et[7].p.v),this.feFuncRComposed.setAttribute("tableValues",o),this.feFuncGComposed.setAttribute("tableValues",o),this.feFuncBComposed.setAttribute("tableValues",o)),this.feFuncR&&(a||et[10].p._mdf||et[11].p._mdf||et[12].p._mdf||et[13].p._mdf||et[14].p._mdf)&&(o=this.getTableValue(et[10].p.v,et[11].p.v,et[12].p.v,et[13].p.v,et[14].p.v),this.feFuncR.setAttribute("tableValues",o)),this.feFuncG&&(a||et[17].p._mdf||et[18].p._mdf||et[19].p._mdf||et[20].p._mdf||et[21].p._mdf)&&(o=this.getTableValue(et[17].p.v,et[18].p.v,et[19].p.v,et[20].p.v,et[21].p.v),this.feFuncG.setAttribute("tableValues",o)),this.feFuncB&&(a||et[24].p._mdf||et[25].p._mdf||et[26].p._mdf||et[27].p._mdf||et[28].p._mdf)&&(o=this.getTableValue(et[24].p.v,et[25].p.v,et[26].p.v,et[27].p.v,et[28].p.v),this.feFuncB.setAttribute("tableValues",o)),this.feFuncA&&(a||et[31].p._mdf||et[32].p._mdf||et[33].p._mdf||et[34].p._mdf||et[35].p._mdf)&&(o=this.getTableValue(et[31].p.v,et[32].p.v,et[33].p.v,et[34].p.v,et[35].p.v),this.feFuncA.setAttribute("tableValues",o))}};function SVGDropShadowEffect(a,o,et,tt,rt){var nt=o.container.globalData.renderConfig.filterSize,it=o.data.fs||nt;a.setAttribute("x",it.x||nt.x),a.setAttribute("y",it.y||nt.y),a.setAttribute("width",it.width||nt.width),a.setAttribute("height",it.height||nt.height),this.filterManager=o;var st=createNS("feGaussianBlur");st.setAttribute("in","SourceAlpha"),st.setAttribute("result",tt+"_drop_shadow_1"),st.setAttribute("stdDeviation","0"),this.feGaussianBlur=st,a.appendChild(st);var at=createNS("feOffset");at.setAttribute("dx","25"),at.setAttribute("dy","0"),at.setAttribute("in",tt+"_drop_shadow_1"),at.setAttribute("result",tt+"_drop_shadow_2"),this.feOffset=at,a.appendChild(at);var lt=createNS("feFlood");lt.setAttribute("flood-color","#00ff00"),lt.setAttribute("flood-opacity","1"),lt.setAttribute("result",tt+"_drop_shadow_3"),this.feFlood=lt,a.appendChild(lt);var ht=createNS("feComposite");ht.setAttribute("in",tt+"_drop_shadow_3"),ht.setAttribute("in2",tt+"_drop_shadow_2"),ht.setAttribute("operator","in"),ht.setAttribute("result",tt+"_drop_shadow_4"),a.appendChild(ht);var vt=this.createMergeNode(tt,[tt+"_drop_shadow_4",rt]);a.appendChild(vt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){if((a||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),a||this.filterManager.effectElements[0].p._mdf){var o=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(o[0]*255),Math.round(o[1]*255),Math.round(o[2]*255)))}if((a||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),a||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var et=this.filterManager.effectElements[3].p.v,tt=(this.filterManager.effectElements[2].p.v-90)*degToRads,rt=et*Math.cos(tt),nt=et*Math.sin(tt);this.feOffset.setAttribute("dx",rt),this.feOffset.setAttribute("dy",nt)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(a,o,et){this.initialized=!1,this.filterManager=o,this.filterElem=a,this.elem=et,et.matteElement=createNS("g"),et.matteElement.appendChild(et.layerElement),et.matteElement.appendChild(et.transformedElement),et.baseElement=et.matteElement}SVGMatte3Effect.prototype.findSymbol=function(a){for(var o=0,et=_svgMatteSymbols.length;o{const a=reactExports.useRef(null);return reactExports.useEffect(()=>{const o=document.getElementById("lottie-sphere-animation");return o&&(a.current=lottie.loadAnimation({container:o,animationData:preloadData,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})),()=>{a.current&&a.current.destroy()}},[]),jsxRuntimeExports.jsx(Flex,{id:"lottie-sphere-animation",style:{width:"167px",height:"167px",opacity:.5}})},Splash=()=>{const[a,o]=reactExports.useState(initialMessageData),[et,tt]=reactExports.useState(0),{appMetaData:rt,setAppMetaData:nt}=useAppStore(wt=>wt),{stats:it,setStats:st,setSeedQuestions:at}=useDataStore(wt=>wt),{schemas:lt,setSchemas:ht}=useSchemaStore(wt=>wt),[vt,gt]=reactExports.useState(!1);return reactExports.useEffect(()=>{!rt&&!it&&!vt&&(async()=>{gt(!0);try{if(!rt){const ut=await getAboutData();nt(ut),ut.seed_questions&&at(ut.seed_questions)}if(!it){const ut=await getStats(),pt=formatStatsResponse(ut);st(pt);const Et=formatSplashMessage(ut);o(Et)}if(!lt.length){const ut=await getSchemaAll();ht(ut.schemas.filter(pt=>!pt.is_deleted))}}finally{gt(!1)}})()},[rt,vt,lt.length,nt,ht,at,st,it]),reactExports.useEffect(()=>{const wt=async()=>{try{const ut=await getSchemaAll();ht(ut.schemas.filter(pt=>!pt.is_deleted))}catch(ut){console.error(ut)}};lt.length||wt()},[lt.length,ht]),reactExports.useEffect(()=>{let wt;return a&&rt&&(tt(ut=>ut||50),wt=setInterval(()=>{tt(ut=>ut>=100?100:ut+Math.floor(Math.random()*4))},100)),()=>{wt&&clearInterval(wt)}},[a,rt]),jsxRuntimeExports.jsx(SplashWrapper,{children:jsxRuntimeExports.jsxs(Wrapper,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(SphereAnimation,{}),jsxRuntimeExports.jsxs(Flex,{style:{color:colors.white},children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"title",children:rt==null?void 0:rt.title}),jsxRuntimeExports.jsx(Text,{className:"subtitle",children:"Second Brain"})]}),jsxRuntimeExports.jsx(LinearProgress$1,{color:"inherit",sx:{my:1.75,height:"2px"},value:et,variant:"determinate"}),jsxRuntimeExports.jsx(AnimatedTextContent,{message:a})]})]})})},TitleWrapper=styled$3.div` - display: flex; - flex-direction: column; - - .title, - .subtitle { - font-family: Barlow; - font-size: 40px; - font-style: normal; - line-height: 40px; - text-align: left; - width: fit-content; - } - - .title { - color: var(--Primary-Text, #fff); - font-weight: 700; - } - - .subtitle { - color: ${colors.GRAY6}; - font-weight: 400; - } -`,SplashWrapper=styled$3(Flex)` - height: 100vh; - width: 100%; - display: flex; - justify-content: center; - align-items: center; - position: fixed; - top: 0; - background: ${colors.black}; -`,Wrapper=styled$3(Flex)` - width: 442.879px; - margin: 0 auto; - gap: 27px; -`,AuthGuard=({children:a})=>{const[o,et]=reactExports.useState(!1),{setBudget:tt,setIsAdmin:rt,setPubKey:nt,setIsAuthenticated:it,setSwarmUiUrl:st}=useUserStore(It=>It),{splashDataLoading:at}=useDataStore(It=>It),[lt,ht]=reactExports.useState(!1),{setTrendingTopicsFeatureFlag:vt,setQueuedSourcesFeatureFlag:gt,setCustomSchemaFeatureFlag:wt,setRealtimeGraphFeatureFlag:ut,setChatInterfaceFeatureFlag:pt,setFastFiltersFeatureFlag:Et}=useFeatureFlagStore(It=>It),yt=reactExports.useCallback(async()=>{localStorage.removeItem("admin"),localStorage.removeItem("signature");let It;try{isE2E?It=await sphinxBridge.enable():It=await distExports$1.enable(),sessionStorage.setItem("isSphinx",It?"true":"false"),nt(It==null?void 0:It.pubkey)}catch{nt("")}(isE2E||isDevelopment)&&it(!0)},[nt,it]),bt=reactExports.useCallback(async()=>{try{const It=await getIsAdmin();if(It.data){const Ot=!!It.data.isAdmin;localStorage.setItem("admin",JSON.stringify({isAdmin:Ot})),Ot&&It.data.swarmUiUrl&&st(It.data.swarmUiUrl),rt(Ot),vt(It.data.trendingTopics),gt(It.data.queuedSources),wt(It.data.customSchema),ut(It.data.realtimeGraph||!1),pt(It.data.chatInterface||!1),Et(It.data.fastFilters||!1)}it(!0),ht(!0)}catch{et(!0)}},[it,rt,vt,gt,wt,ut,pt,Et,st]);reactExports.useEffect(()=>{(async()=>{if(isWebView()||isE2E||isAndroid())try{isAndroid()&&await new Promise(Ot=>setTimeout(Ot,5e3)),await yt()}catch(Ot){console.log(Ot)}await updateBudget(tt),await bt()})()},[yt,bt,tt]);const kt="This is a private Graph, Contact Admin";return o?jsxRuntimeExports.jsx(StyledFlex,{children:jsxRuntimeExports.jsx(StyledText,{children:kt})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[at&&jsxRuntimeExports.jsx(Splash,{}),lt&&a]})},StyledText=styled$3(Text)` - font-size: 5rem; - font-weight: 600; - font-family: 'Barlow'; - text-align: center; -`,StyledFlex=styled$3(Flex)` - justify-content: center; - align-items: center; - width: 100%; - height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-1f5ac1eb.js").then(a=>a.bd),["assets/index-1f5ac1eb.js","assets/index-b60658ac.css"]).then(({App:a})=>({default:a}))),AppContainer=()=>{const a=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:a,path:"/"}),jsxRuntimeExports.jsx(Route,{element:a,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:a,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useSchemaStore as A,__vitePreload as B,lottie as C,getTotalProcessing as D,getStats as E,Flex as F,formatStatsResponse as G,lodashExports as H,media as I,useAiSummaryStore as J,useNavigate as K,LinearProgress$1 as L,useSearchParams as M,useFeatureFlagStore as N,isDevelopment as O,updateBudget as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useNodeTypes as U,NODE_RELATIVE_HIGHLIGHT_COLORS as V,We as W,fetchNodeEdges as X,addToGlobalForE2e as Y,api$1 as Z,_objectWithoutPropertiesLoose as _,ReactDOM as a,deleteNode as a$,distExports$1 as a0,executeIfProd as a1,lighten as a2,darken as a3,slotShouldForwardProp as a4,Ce as a5,useHasAiChatsResponseLoading as a6,Ue as a7,hooks as a8,commonjsGlobal as a9,requiredRule as aA,TWITTER_HANDLE as aB,YOUTUBE_CHANNEL as aC,RSS as aD,GITHUB_REPOSITORY as aE,LINK as aF,TWITTER_SOURCE as aG,WEB_PAGE as aH,DOCUMENT as aI,getPriceData as aJ,isE2E as aK,sphinxBridge as aL,getLSat as aM,payLsat as aN,getNodeType as aO,getNodeSchemaTypes as aP,getNodeContent as aQ,approveRadarData as aR,deleteRadarData as aS,getRadarData as aT,putRadarData as aU,getEdgeTypes as aV,getEdges as aW,postEdgeType as aX,putNodeData as aY,postMergeTopics as aZ,getTopicsData as a_,commonjsRequire as aa,getSchemaAll as ab,useFilteredNodes as ac,_baseGetTag as ad,isObjectLike_1 as ae,isObject$7 as af,isFunction$3 as ag,_Set as ah,_Symbol as ai,isArguments_1 as aj,isArray_1 as ak,_arrayPush as al,_baseUnary as am,_defineProperty as an,eq_1 as ao,isArrayLike_1 as ap,_isIndex as aq,isObject_1 as ar,_root as as,_baseAssignValue as at,keys_1 as au,getFullTranscript as av,getAugmentedNamespace as aw,useHasAiChats as ax,postAboutData as ay,NODE_ADD_ERROR as az,_extends as b,css as b0,changeNodeType as b1,resolveBreakpointValues as b2,handleBreakpoints as b3,updateEdgeType as b4,postBluePrintType as b5,deleteEdgeType as b6,cloneDeep_1 as b7,editNodeSchemaUpdate as b8,createRoot as b9,useThemeProps$1 as bA,createUnarySpacing as bB,mergeBreakpointsInOrder as bC,getValue as bD,useTheme$3 as bE,react as ba,GRAPH_GROUND_COLOR as bb,GRAPH_LIGHT_INTENSITY as bc,GRAPH_FOG_COLOR as bd,_getPrototype as be,_MapCache as bf,_Uint8Array as bg,_getAllKeys as bh,_Stack as bi,_getTag as bj,isBufferExports as bk,isTypedArray_1 as bl,isLength_1 as bm,request as bn,buffer$2 as bo,sphinx$1 as bp,Global as bq,useTheme$2 as br,defaultTheme$1 as bs,THEME_ID as bt,formatMuiErrorMessage as bu,deepmerge as bv,defaultSxConfig$1 as bw,isPlainObject as bx,createStyled as by,createTheme$1 as bz,generateUtilityClass as c,generateUtilityClasses as d,alpha as e,clsx$1 as f,getDefaultExportFromCjs as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,reactDomExports as l,useTheme as m,rootShouldForwardProp as n,resolveProps as o,create as p,useDataStore as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,clsx as w,devtools as x,useAppStore as y,useUserStore as z}; diff --git a/build/assets/index-b60658ac.css b/build/assets/index-b4d03b7b.css similarity index 89% rename from build/assets/index-b60658ac.css rename to build/assets/index-b4d03b7b.css index 0e2514646..e8cd8886d 100644 --- a/build/assets/index-b60658ac.css +++ b/build/assets/index-b4d03b7b.css @@ -1 +1 @@ -:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} +:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@font-face{font-family:Barlow;font-weight:200;src:local("Barlow"),url(/fonts/Barlow-ExtraLight.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:100;src:local("Barlow"),url(/fonts/Barlow-Thin.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:300;src:local("Barlow"),url(/fonts/Barlow-Light.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:400;src:local("Barlow"),url(/fonts/Barlow-Regular.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:500;src:local("Barlow"),url(/fonts/Barlow-Medium.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:600;src:local("Barlow"),url(/fonts/Barlow-SemiBold.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:700;src:local("Barlow"),url(/fonts/Barlow-Bold.ttf) format("truetype")}@font-face{font-family:Barlow;font-weight:800;src:local("Barlow"),url(/fonts/Barlow-ExtraBold.ttf) format("truetype")}html,body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100%;width:100%;overflow:hidden}#root{height:100%;width:100%}#universe-canvas{z-index:0}*:root{--scrollbar-color: #ffffff33}*::-webkit-scrollbar{width:3px;height:40%;max-height:60%}*::-webkit-scrollbar-thumb{background-clip:padding-box;background:var(--scrollbar-color);width:8px;border-radius:0}@-moz-document url-prefix(){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color) transparent}} diff --git a/build/assets/index-b6fe9242.js b/build/assets/index-b6fe9242.js new file mode 100644 index 000000000..43f590bbf --- /dev/null +++ b/build/assets/index-b6fe9242.js @@ -0,0 +1,92 @@ +import{r,j as e,bn as A,Q as B,F as h,C as F,bc as O,bo as I,w as l,H as z,M as E,a1 as N,a3 as D,x as _,z as M,bp as H,at as Y}from"./index-bde6e5ef.js";import{aH as P,aI as X,aJ as G,u as R}from"./index-5c574277.js";import{A as L,T as J}from"./index-bf769610.js";import{S as Q,A as V}from"./constants-a3da365e.js";import{C as T}from"./ClipLoader-2c26140d.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const W=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await A();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},$=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:V,search:u,skip:"0",limit:"1000"};o(!0);try{const S=(await I(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(S)}catch{a([])}finally{o(!1)}};return B.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(Q,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?n(c):null})},q=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(W,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx($,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(P,{})}),e.jsx(ae,{onClick:x,children:e.jsx(X,{})}),e.jsx(ie,{children:e.jsx(G,{})})]})]})]})},K=l.div` + position: absolute; + top: 26px; + bottom: 26px; + left: 4px; + width: 35px; + border-left: 1.5px solid #6b7a8d4d; + border-top: 1.5px solid #6b7a8d4d; + border-bottom: 1.5px solid #6b7a8d4d; + border-radius: 12px 0 0 12px; +`,U=l(z)` + font-size: 22px; + font-weight: 600; +`,Z=l.div` + position: relative; + color: white; + font-family: 'Barlow'; + display: flex; + flex-direction: ${t=>t.swap?"column-reverse":"column"}; + margin-bottom: 10px; + padding-left: 38px; +`,ee=l(J)` + position: relative; + width: 100%; + padding: 16px; + gap: 10px; + border-radius: 6px; + border: 1px solid #6b7a8d4d; + opacity: 0px; + display: flex; +`,te=l.div` + position: relative; + width: 100%; + padding: 15px; + gap: 10px; + border-radius: 6px; + border: 1.4px solid #6b7a8d4d; + opacity: 0px; + display: flex; + align-items: center; +`,oe=l.label` + color: #bac1c6; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + margin-bottom: 6px; +`,se=l.label` + color: #bac1c6; + background-color: #23252f; + font-size: 13px; + font-weight: 400; + line-height: 18px; + letter-spacing: 0.01em; + text-align: left; + position: absolute; + left: 15px; + top: -10px; +`,ne=l.div` + position: absolute; + top: 0; + right: 0; + transform: translateY(-50%) translateX(50%); + color: #23252f; +`,ae=l.div` + position: absolute; + color: transparent; + top: 50%; + left: 0; + transform: translateY(-50%) translateX(-50%); + cursor: pointer; + width: 32px; + height: 32px; + background-color: #303342; + display: flex; + justify-content: center; + align-items: center; + border-radius: 8px; +`,ie=l.div` + position: absolute; + bottom: 0; + right: 0; + transform: translateY(10px) translateX(3px); + color: #6b7a8d; + line-height: 1; +`,re=()=>{const{close:t}=E("addEdgeToNode"),c=N({mode:"onChange"}),[p,d]=r.useState(!1),[a,f]=r.useState(""),[o,x]=r.useState(!1),[b,j]=r.useState(!1),[n,v]=r.useState(null),[s,u]=r.useState(),i=R();r.useEffect(()=>{(async()=>{if(i){j(!0);try{if(i.type==="topic"){const{data:m}=await I(i==null?void 0:i.name,{exact_match:"true",node_type:"topic"}),C=m.find(k=>k.node_type==="topic");u(C)}}catch(m){console.error(m)}finally{j(!1)}}})()},[i]);const w=()=>{t()},S=async()=>{const g=s||i;if(!(!n||!(g!=null&&g.ref_id))){d(!0);try{await H({relationship:a,...o?{to:g.ref_id,from:n==null?void 0:n.ref_id}:{from:g.ref_id,to:n==null?void 0:n.ref_id}});const{ref_id:m}=g,{ref_id:C}=n;console.log(m,C),w()}catch(m){console.warn(m)}finally{d(!1)}}},y=p||!n||!a;return e.jsxs(D,{...c,children:[b?e.jsx(h,{align:"center",my:24,children:e.jsx(T,{color:_.lightGray,size:24})}):e.jsx(q,{from:s??i,isSwapped:o,onSelect:v,selectedToNode:n,selectedType:a,setIsSwapped:()=>x(!o),setSelectedType:f}),e.jsxs(le,{color:"secondary",disabled:y,onClick:S,size:"large",variant:"contained",children:["Confirm",p&&e.jsx(ce,{children:e.jsx(T,{color:_.lightGray,size:12})})]})]})},le=l(M)` + width: 293px !important; + margin: 0 0 10px auto !important; +`,ce=l.span` + margin-top: 2px; +`,be=()=>{const{close:t}=E("addEdgeToNode");return e.jsx(Y,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{be as AddNodeEdgeModal}; diff --git a/build/assets/index-bb616035.js b/build/assets/index-bb616035.js deleted file mode 100644 index ea68d4f67..000000000 --- a/build/assets/index-bb616035.js +++ /dev/null @@ -1,95 +0,0 @@ -import{r as p,H as T,j as e,F as x,aW as I,t as n,T as v,v as _,aZ as L}from"./index-b416b1a9.js";import{ai as A,aP as B,aQ as E,aR as F,u as M,a0 as N,e as k,a1 as O,B as z}from"./index-1f5ac1eb.js";import{B as D}from"./index-8331965f.js";import{u as w}from"./index-5f0e754b.js";import{S as P,A as R,I as Y}from"./constants-6b0b8728.js";import{O as H}from"./constants-b2a2fa82.js";import{A as W,T as X}from"./index-69075348.js";import{C as Q}from"./ClipLoader-a0a9ce2c.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const U=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,f]=p.useState([]),[g,h]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){f([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(P,{onClick:()=>a(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(W,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},Z=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx($,{children:"Merge topic"})})}),e.jsxs(J,{swap:c,children:[e.jsx(q,{children:e.jsx(K,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(V,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(B,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(E,{})}),e.jsx(ne,{children:e.jsx(F,{})})]})]})]}),$=n(v)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,q=n(x)` - flex: 1 1 100%; -`,G=n.div` - position: absolute; - top: 26px; - bottom: 26px; - left: 4px; - width: 35px; - border-left: 1.5px solid #6b7a8d4d; - border-top: 1.5px solid #6b7a8d4d; - border-bottom: 1.5px solid #6b7a8d4d; - border-radius: 12px 0 0 12px; -`,J=n.div` - position: relative; - color: white; - font-family: 'Barlow'; - display: flex; - flex-direction: ${s=>s.swap?"column-reverse":"column"}; - margin-bottom: 10px; - padding-left: 38px; -`,K=n(X)` - position: relative; - width: 100%; - padding: 16px; - gap: 10px; - border-radius: 6px; - border: 1px solid #6b7a8d4d; - opacity: 0px; - display: flex; -`,V=n.div` - position: relative; - width: 100%; - padding: 15px; - gap: 10px; - border-radius: 6px; - border: 1.4px solid #6b7a8d4d; - opacity: 0px; - display: flex; - align-items: center; -`,ee=n.label` - color: #bac1c6; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - margin-bottom: 6px; -`,te=n.label` - color: #bac1c6; - background-color: #23252f; - font-size: 13px; - font-weight: 400; - line-height: 18px; - letter-spacing: 0.01em; - text-align: left; - position: absolute; - left: 15px; - top: -10px; -`,oe=n.div` - position: absolute; - top: 0; - right: 0; - transform: translateY(-50%) translateX(50%); - color: #23252f; -`,se=n.div` - position: absolute; - color: transparent; - top: 50%; - left: 0; - transform: translateY(-50%) translateX(-50%); - cursor: pointer; - width: 32px; - height: 32px; - background-color: #303342; - display: flex; - justify-content: center; - align-items: center; - border-radius: 8px; -`,ne=n.div` - position: absolute; - bottom: 0; - right: 0; - transform: translateY(10px) translateX(3px); - color: #6b7a8d; - line-height: 1; -`,be=()=>{const{close:s}=M("mergeToNode"),[a,d,c]=w(l=>[l.data,l.ids,l.total]),u=N({mode:"onChange"}),[f,g]=p.useState(!1),[h,j]=p.useState(!1),[r,b]=p.useState(null),[t,S]=p.useState(),o=k();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},m=async()=>{if(!(!r||!a)){g(!0);try{await L({from:t==null?void 0:t.ref_id,to:r==null?void 0:r.ref_id}),t!=null&&t.ref_id&&(a[t==null?void 0:t.ref_id]={...a[t==null?void 0:t.ref_id],edgeList:[Y],edgeCount:a[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==r.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{g(!1)}}};return e.jsx(D,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(O,{...u,children:[e.jsx(Z,{from:t,isSwapped:h,onSelect:b,selectedToNode:r,setIsSwapped:()=>j(!h)}),e.jsxs(ae,{color:"secondary","data-testid":"merge-topics-button",disabled:f||!r,onClick:m,size:"large",variant:"contained",children:["Merge topics",f&&e.jsx(re,{children:e.jsx(Q,{color:_.BLUE_PRESS_STATE,size:12})})]})]})})},ae=n(z)` - width: 293px !important; - margin: 0 0 10px auto !important; -`,re=n.span` - margin-top: 2px; -`;export{be as MergeNodeModal}; diff --git a/build/assets/index-5f0e754b.js b/build/assets/index-bd13c6c5.js similarity index 74% rename from build/assets/index-5f0e754b.js rename to build/assets/index-bd13c6c5.js index a89aa6396..1361021a5 100644 --- a/build/assets/index-5f0e754b.js +++ b/build/assets/index-bd13c6c5.js @@ -1 +1 @@ -import{p as f,a_ as m}from"./index-b416b1a9.js";import{D as y}from"./constants-6b0b8728.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const D=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{D as u}; +import{t as f,bs as m}from"./index-bde6e5ef.js";import{D as y}from"./constants-a3da365e.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-bde6e5ef.js b/build/assets/index-bde6e5ef.js new file mode 100644 index 000000000..bfa343d06 --- /dev/null +++ b/build/assets/index-bde6e5ef.js @@ -0,0 +1,834 @@ +var O5=Object.defineProperty;var F5=(et,tt,rt)=>tt in et?O5(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:rt}):et[tt]=rt;var Fp=(et,tt,rt)=>(F5(et,typeof tt!="symbol"?tt+"":tt,rt),rt);function _mergeNamespaces(et,tt){for(var rt=0;rtnt[it]})}}}return Object.freeze(Object.defineProperty(et,Symbol.toStringTag,{value:"Module"}))}(function(){const tt=document.createElement("link").relList;if(tt&&tt.supports&&tt.supports("modulepreload"))return;for(const it of document.querySelectorAll('link[rel="modulepreload"]'))nt(it);new MutationObserver(it=>{for(const st of it)if(st.type==="childList")for(const at of st.addedNodes)at.tagName==="LINK"&&at.rel==="modulepreload"&&nt(at)}).observe(document,{childList:!0,subtree:!0});function rt(it){const st={};return it.integrity&&(st.integrity=it.integrity),it.referrerPolicy&&(st.referrerPolicy=it.referrerPolicy),it.crossOrigin==="use-credentials"?st.credentials="include":it.crossOrigin==="anonymous"?st.credentials="omit":st.credentials="same-origin",st}function nt(it){if(it.ep)return;it.ep=!0;const st=rt(it);fetch(it.href,st)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(et){return et&&et.__esModule&&Object.prototype.hasOwnProperty.call(et,"default")?et.default:et}function getAugmentedNamespace(et){if(et.__esModule)return et;var tt=et.default;if(typeof tt=="function"){var rt=function nt(){return this instanceof nt?Reflect.construct(tt,arguments,this.constructor):tt.apply(this,arguments)};rt.prototype=tt.prototype}else rt={};return Object.defineProperty(rt,"__esModule",{value:!0}),Object.keys(et).forEach(function(nt){var it=Object.getOwnPropertyDescriptor(et,nt);Object.defineProperty(rt,nt,it.get?it:{enumerable:!0,get:function(){return et[nt]}})}),rt}var buffer$2={},base64Js={};base64Js.byteLength=byteLength$1;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup$2=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$3=0,len=code.length;i$30)throw new Error("Invalid string. Length must be a multiple of 4");var rt=et.indexOf("=");rt===-1&&(rt=tt);var nt=rt===tt?0:4-rt%4;return[rt,nt]}function byteLength$1(et){var tt=getLens(et),rt=tt[0],nt=tt[1];return(rt+nt)*3/4-nt}function _byteLength(et,tt,rt){return(tt+rt)*3/4-rt}function toByteArray(et){var tt,rt=getLens(et),nt=rt[0],it=rt[1],st=new Arr(_byteLength(et,nt,it)),at=0,ot=it>0?nt-4:nt,lt;for(lt=0;lt>16&255,st[at++]=tt>>8&255,st[at++]=tt&255;return it===2&&(tt=revLookup[et.charCodeAt(lt)]<<2|revLookup[et.charCodeAt(lt+1)]>>4,st[at++]=tt&255),it===1&&(tt=revLookup[et.charCodeAt(lt)]<<10|revLookup[et.charCodeAt(lt+1)]<<4|revLookup[et.charCodeAt(lt+2)]>>2,st[at++]=tt>>8&255,st[at++]=tt&255),st}function tripletToBase64(et){return lookup$2[et>>18&63]+lookup$2[et>>12&63]+lookup$2[et>>6&63]+lookup$2[et&63]}function encodeChunk(et,tt,rt){for(var nt,it=[],st=tt;stot?ot:at+st));return nt===1?(tt=et[rt-1],it.push(lookup$2[tt>>2]+lookup$2[tt<<4&63]+"==")):nt===2&&(tt=(et[rt-2]<<8)+et[rt-1],it.push(lookup$2[tt>>10]+lookup$2[tt>>4&63]+lookup$2[tt<<2&63]+"=")),it.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754.read=function(et,tt,rt,nt,it){var st,at,ot=it*8-nt-1,lt=(1<>1,dt=-7,bt=rt?it-1:0,gt=rt?-1:1,kt=et[tt+bt];for(bt+=gt,st=kt&(1<<-dt)-1,kt>>=-dt,dt+=ot;dt>0;st=st*256+et[tt+bt],bt+=gt,dt-=8);for(at=st&(1<<-dt)-1,st>>=-dt,dt+=nt;dt>0;at=at*256+et[tt+bt],bt+=gt,dt-=8);if(st===0)st=1-ut;else{if(st===lt)return at?NaN:(kt?-1:1)*(1/0);at=at+Math.pow(2,nt),st=st-ut}return(kt?-1:1)*at*Math.pow(2,st-nt)};ieee754.write=function(et,tt,rt,nt,it,st){var at,ot,lt,ut=st*8-it-1,dt=(1<>1,gt=it===23?Math.pow(2,-24)-Math.pow(2,-77):0,kt=nt?0:st-1,pt=nt?1:-1,yt=tt<0||tt===0&&1/tt<0?1:0;for(tt=Math.abs(tt),isNaN(tt)||tt===1/0?(ot=isNaN(tt)?1:0,at=dt):(at=Math.floor(Math.log(tt)/Math.LN2),tt*(lt=Math.pow(2,-at))<1&&(at--,lt*=2),at+bt>=1?tt+=gt/lt:tt+=gt*Math.pow(2,1-bt),tt*lt>=2&&(at++,lt/=2),at+bt>=dt?(ot=0,at=dt):at+bt>=1?(ot=(tt*lt-1)*Math.pow(2,it),at=at+bt):(ot=tt*Math.pow(2,bt-1)*Math.pow(2,it),at=0));it>=8;et[rt+kt]=ot&255,kt+=pt,ot/=256,it-=8);for(at=at<0;et[rt+kt]=at&255,kt+=pt,at/=256,ut-=8);et[rt+kt-pt]|=yt*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(et){const tt=base64Js,rt=ieee754,nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;et.Buffer=ot,et.SlowBuffer=wt,et.INSPECT_MAX_BYTES=50;const it=2147483647;et.kMaxLength=it,ot.TYPED_ARRAY_SUPPORT=st(),!ot.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function st(){try{const Yt=new Uint8Array(1),Ut={foo:function(){return 42}};return Object.setPrototypeOf(Ut,Uint8Array.prototype),Object.setPrototypeOf(Yt,Ut),Yt.foo()===42}catch{return!1}}Object.defineProperty(ot.prototype,"parent",{enumerable:!0,get:function(){if(ot.isBuffer(this))return this.buffer}}),Object.defineProperty(ot.prototype,"offset",{enumerable:!0,get:function(){if(ot.isBuffer(this))return this.byteOffset}});function at(Yt){if(Yt>it)throw new RangeError('The value "'+Yt+'" is invalid for option "size"');const Ut=new Uint8Array(Yt);return Object.setPrototypeOf(Ut,ot.prototype),Ut}function ot(Yt,Ut,Vt){if(typeof Yt=="number"){if(typeof Ut=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(Yt)}return lt(Yt,Ut,Vt)}ot.poolSize=8192;function lt(Yt,Ut,Vt){if(typeof Yt=="string")return gt(Yt,Ut);if(ArrayBuffer.isView(Yt))return pt(Yt);if(Yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt);if(Pr(Yt,ArrayBuffer)||Yt&&Pr(Yt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pr(Yt,SharedArrayBuffer)||Yt&&Pr(Yt.buffer,SharedArrayBuffer)))return yt(Yt,Ut,Vt);if(typeof Yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=Yt.valueOf&&Yt.valueOf();if(ir!=null&&ir!==Yt)return ot.from(ir,Ut,Vt);const kr=$t(Yt);if(kr)return kr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Yt[Symbol.toPrimitive]=="function")return ot.from(Yt[Symbol.toPrimitive]("string"),Ut,Vt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt)}ot.from=function(Yt,Ut,Vt){return lt(Yt,Ut,Vt)},Object.setPrototypeOf(ot.prototype,Uint8Array.prototype),Object.setPrototypeOf(ot,Uint8Array);function ut(Yt){if(typeof Yt!="number")throw new TypeError('"size" argument must be of type number');if(Yt<0)throw new RangeError('The value "'+Yt+'" is invalid for option "size"')}function dt(Yt,Ut,Vt){return ut(Yt),Yt<=0?at(Yt):Ut!==void 0?typeof Vt=="string"?at(Yt).fill(Ut,Vt):at(Yt).fill(Ut):at(Yt)}ot.alloc=function(Yt,Ut,Vt){return dt(Yt,Ut,Vt)};function bt(Yt){return ut(Yt),at(Yt<0?0:mt(Yt)|0)}ot.allocUnsafe=function(Yt){return bt(Yt)},ot.allocUnsafeSlow=function(Yt){return bt(Yt)};function gt(Yt,Ut){if((typeof Ut!="string"||Ut==="")&&(Ut="utf8"),!ot.isEncoding(Ut))throw new TypeError("Unknown encoding: "+Ut);const Vt=St(Yt,Ut)|0;let ir=at(Vt);const kr=ir.write(Yt,Ut);return kr!==Vt&&(ir=ir.slice(0,kr)),ir}function kt(Yt){const Ut=Yt.length<0?0:mt(Yt.length)|0,Vt=at(Ut);for(let ir=0;ir=it)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+it.toString(16)+" bytes");return Yt|0}function wt(Yt){return+Yt!=Yt&&(Yt=0),ot.alloc(+Yt)}ot.isBuffer=function(Ut){return Ut!=null&&Ut._isBuffer===!0&&Ut!==ot.prototype},ot.compare=function(Ut,Vt){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),Pr(Vt,Uint8Array)&&(Vt=ot.from(Vt,Vt.offset,Vt.byteLength)),!ot.isBuffer(Ut)||!ot.isBuffer(Vt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ut===Vt)return 0;let ir=Ut.length,kr=Vt.length;for(let $r=0,Br=Math.min(ir,kr);$rkr.length?(ot.isBuffer(Br)||(Br=ot.from(Br)),Br.copy(kr,$r)):Uint8Array.prototype.set.call(kr,Br,$r);else if(ot.isBuffer(Br))Br.copy(kr,$r);else throw new TypeError('"list" argument must be an Array of Buffers');$r+=Br.length}return kr};function St(Yt,Ut){if(ot.isBuffer(Yt))return Yt.length;if(ArrayBuffer.isView(Yt)||Pr(Yt,ArrayBuffer))return Yt.byteLength;if(typeof Yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Yt);const Vt=Yt.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Vt===0)return 0;let kr=!1;for(;;)switch(Ut){case"ascii":case"latin1":case"binary":return Vt;case"utf8":case"utf-8":return Vr(Yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt*2;case"hex":return Vt>>>1;case"base64":return or(Yt).length;default:if(kr)return ir?-1:Vr(Yt).length;Ut=(""+Ut).toLowerCase(),kr=!0}}ot.byteLength=St;function Bt(Yt,Ut,Vt){let ir=!1;if((Ut===void 0||Ut<0)&&(Ut=0),Ut>this.length||((Vt===void 0||Vt>this.length)&&(Vt=this.length),Vt<=0)||(Vt>>>=0,Ut>>>=0,Vt<=Ut))return"";for(Yt||(Yt="utf8");;)switch(Yt){case"hex":return Pt(this,Ut,Vt);case"utf8":case"utf-8":return ht(this,Ut,Vt);case"ascii":return Rt(this,Ut,Vt);case"latin1":case"binary":return At(this,Ut,Vt);case"base64":return Mt(this,Ut,Vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,Ut,Vt);default:if(ir)throw new TypeError("Unknown encoding: "+Yt);Yt=(Yt+"").toLowerCase(),ir=!0}}ot.prototype._isBuffer=!0;function Ft(Yt,Ut,Vt){const ir=Yt[Ut];Yt[Ut]=Yt[Vt],Yt[Vt]=ir}ot.prototype.swap16=function(){const Ut=this.length;if(Ut%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Vt=0;VtVt&&(Ut+=" ... "),""},nt&&(ot.prototype[nt]=ot.prototype.inspect),ot.prototype.compare=function(Ut,Vt,ir,kr,$r){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),!ot.isBuffer(Ut))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ut);if(Vt===void 0&&(Vt=0),ir===void 0&&(ir=Ut?Ut.length:0),kr===void 0&&(kr=0),$r===void 0&&($r=this.length),Vt<0||ir>Ut.length||kr<0||$r>this.length)throw new RangeError("out of range index");if(kr>=$r&&Vt>=ir)return 0;if(kr>=$r)return-1;if(Vt>=ir)return 1;if(Vt>>>=0,ir>>>=0,kr>>>=0,$r>>>=0,this===Ut)return 0;let Br=$r-kr,an=ir-Vt;const ln=Math.min(Br,an),rn=this.slice(kr,$r),kn=Ut.slice(Vt,ir);for(let fn=0;fn2147483647?Vt=2147483647:Vt<-2147483648&&(Vt=-2147483648),Vt=+Vt,Or(Vt)&&(Vt=kr?0:Yt.length-1),Vt<0&&(Vt=Yt.length+Vt),Vt>=Yt.length){if(kr)return-1;Vt=Yt.length-1}else if(Vt<0)if(kr)Vt=0;else return-1;if(typeof Ut=="string"&&(Ut=ot.from(Ut,ir)),ot.isBuffer(Ut))return Ut.length===0?-1:zt(Yt,Ut,Vt,ir,kr);if(typeof Ut=="number")return Ut=Ut&255,typeof Uint8Array.prototype.indexOf=="function"?kr?Uint8Array.prototype.indexOf.call(Yt,Ut,Vt):Uint8Array.prototype.lastIndexOf.call(Yt,Ut,Vt):zt(Yt,[Ut],Vt,ir,kr);throw new TypeError("val must be string, number or Buffer")}function zt(Yt,Ut,Vt,ir,kr){let $r=1,Br=Yt.length,an=Ut.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(Yt.length<2||Ut.length<2)return-1;$r=2,Br/=2,an/=2,Vt/=2}function ln(kn,fn){return $r===1?kn[fn]:kn.readUInt16BE(fn*$r)}let rn;if(kr){let kn=-1;for(rn=Vt;rnBr&&(Vt=Br-an),rn=Vt;rn>=0;rn--){let kn=!0;for(let fn=0;fnkr&&(ir=kr)):ir=kr;const $r=Ut.length;ir>$r/2&&(ir=$r/2);let Br;for(Br=0;Br>>0,isFinite(ir)?(ir=ir>>>0,kr===void 0&&(kr="utf8")):(kr=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $r=this.length-Vt;if((ir===void 0||ir>$r)&&(ir=$r),Ut.length>0&&(ir<0||Vt<0)||Vt>this.length)throw new RangeError("Attempt to write outside buffer bounds");kr||(kr="utf8");let Br=!1;for(;;)switch(kr){case"hex":return Ht(this,Ut,Vt,ir);case"utf8":case"utf-8":return Wt(this,Ut,Vt,ir);case"ascii":case"latin1":case"binary":return lr(this,Ut,Vt,ir);case"base64":return qt(this,Ut,Vt,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ot(this,Ut,Vt,ir);default:if(Br)throw new TypeError("Unknown encoding: "+kr);kr=(""+kr).toLowerCase(),Br=!0}},ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(Yt,Ut,Vt){return Ut===0&&Vt===Yt.length?tt.fromByteArray(Yt):tt.fromByteArray(Yt.slice(Ut,Vt))}function ht(Yt,Ut,Vt){Vt=Math.min(Yt.length,Vt);const ir=[];let kr=Ut;for(;kr239?4:$r>223?3:$r>191?2:1;if(kr+an<=Vt){let ln,rn,kn,fn;switch(an){case 1:$r<128&&(Br=$r);break;case 2:ln=Yt[kr+1],(ln&192)===128&&(fn=($r&31)<<6|ln&63,fn>127&&(Br=fn));break;case 3:ln=Yt[kr+1],rn=Yt[kr+2],(ln&192)===128&&(rn&192)===128&&(fn=($r&15)<<12|(ln&63)<<6|rn&63,fn>2047&&(fn<55296||fn>57343)&&(Br=fn));break;case 4:ln=Yt[kr+1],rn=Yt[kr+2],kn=Yt[kr+3],(ln&192)===128&&(rn&192)===128&&(kn&192)===128&&(fn=($r&15)<<18|(ln&63)<<12|(rn&63)<<6|kn&63,fn>65535&&fn<1114112&&(Br=fn))}}Br===null?(Br=65533,an=1):Br>65535&&(Br-=65536,ir.push(Br>>>10&1023|55296),Br=56320|Br&1023),ir.push(Br),kr+=an}return Tt(ir)}const Et=4096;function Tt(Yt){const Ut=Yt.length;if(Ut<=Et)return String.fromCharCode.apply(String,Yt);let Vt="",ir=0;for(;irir)&&(Vt=ir);let kr="";for(let $r=Ut;$rir&&(Ut=ir),Vt<0?(Vt+=ir,Vt<0&&(Vt=0)):Vt>ir&&(Vt=ir),VtVt)throw new RangeError("Trying to access beyond buffer length")}ot.prototype.readUintLE=ot.prototype.readUIntLE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut+--Vt],$r=1;for(;Vt>0&&($r*=256);)kr+=this[Ut+--Vt]*$r;return kr},ot.prototype.readUint8=ot.prototype.readUInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]},ot.prototype.readUint16LE=ot.prototype.readUInt16LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]|this[Ut+1]<<8},ot.prototype.readUint16BE=ot.prototype.readUInt16BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]<<8|this[Ut+1]},ot.prototype.readUint32LE=ot.prototype.readUInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),(this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16)+this[Ut+3]*16777216},ot.prototype.readUint32BE=ot.prototype.readUInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]*16777216+(this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3])},ot.prototype.readBigUInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt+this[++Ut]*2**8+this[++Ut]*2**16+this[++Ut]*2**24,$r=this[++Ut]+this[++Ut]*2**8+this[++Ut]*2**16+ir*2**24;return BigInt(kr)+(BigInt($r)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt*2**24+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut],$r=this[++Ut]*2**24+this[++Ut]*2**16+this[++Ut]*2**8+ir;return(BigInt(kr)<>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br=$r&&(kr-=Math.pow(2,8*Vt)),kr},ot.prototype.readIntBE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=Vt,$r=1,Br=this[Ut+--kr];for(;kr>0&&($r*=256);)Br+=this[Ut+--kr]*$r;return $r*=128,Br>=$r&&(Br-=Math.pow(2,8*Vt)),Br},ot.prototype.readInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]&128?(255-this[Ut]+1)*-1:this[Ut]},ot.prototype.readInt16LE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut]|this[Ut+1]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt16BE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut+1]|this[Ut]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16|this[Ut+3]<<24},ot.prototype.readInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]<<24|this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3]},ot.prototype.readBigInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=this[Ut+4]+this[Ut+5]*2**8+this[Ut+6]*2**16+(ir<<24);return(BigInt(kr)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=(Vt<<24)+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut];return(BigInt(kr)<>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!0,23,4)},ot.prototype.readFloatBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!1,23,4)},ot.prototype.readDoubleLE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!0,52,8)},ot.prototype.readDoubleBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!1,52,8)};function xt(Yt,Ut,Vt,ir,kr,$r){if(!ot.isBuffer(Yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ut>kr||Ut<$r)throw new RangeError('"value" argument is out of bounds');if(Vt+ir>Yt.length)throw new RangeError("Index out of range")}ot.prototype.writeUintLE=ot.prototype.writeUIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=1,Br=0;for(this[Vt]=Ut&255;++Br>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=ir-1,Br=1;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)this[Vt+$r]=Ut/Br&255;return Vt+ir},ot.prototype.writeUint8=ot.prototype.writeUInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,255,0),this[Vt]=Ut&255,Vt+1},ot.prototype.writeUint16LE=ot.prototype.writeUInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeUint16BE=ot.prototype.writeUInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeUint32LE=ot.prototype.writeUInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt+3]=Ut>>>24,this[Vt+2]=Ut>>>16,this[Vt+1]=Ut>>>8,this[Vt]=Ut&255,Vt+4},ot.prototype.writeUint32BE=ot.prototype.writeUInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4};function Lt(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Vt}function tr(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt+7]=$r,$r=$r>>8,Yt[Vt+6]=$r,$r=$r>>8,Yt[Vt+5]=$r,$r=$r>>8,Yt[Vt+4]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt+3]=Br,Br=Br>>8,Yt[Vt+2]=Br,Br=Br>>8,Yt[Vt+1]=Br,Br=Br>>8,Yt[Vt]=Br,Vt+8}ot.prototype.writeBigUInt64LE=gr(function(Ut,Vt=0){return Lt(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeBigUInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=0,Br=1,an=0;for(this[Vt]=Ut&255;++$r>0)-an&255;return Vt+ir},ot.prototype.writeIntBE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=ir-1,Br=1,an=0;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)Ut<0&&an===0&&this[Vt+$r+1]!==0&&(an=1),this[Vt+$r]=(Ut/Br>>0)-an&255;return Vt+ir},ot.prototype.writeInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,127,-128),Ut<0&&(Ut=255+Ut+1),this[Vt]=Ut&255,Vt+1},ot.prototype.writeInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,this[Vt+2]=Ut>>>16,this[Vt+3]=Ut>>>24,Vt+4},ot.prototype.writeInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),Ut<0&&(Ut=4294967295+Ut+1),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4},ot.prototype.writeBigInt64LE=gr(function(Ut,Vt=0){return Lt(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ot.prototype.writeBigInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function pr(Yt,Ut,Vt,ir,kr,$r){if(Vt+ir>Yt.length)throw new RangeError("Index out of range");if(Vt<0)throw new RangeError("Index out of range")}function Kt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,4),rt.write(Yt,Ut,Vt,ir,23,4),Vt+4}ot.prototype.writeFloatLE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!0,ir)},ot.prototype.writeFloatBE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!1,ir)};function Qt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,8),rt.write(Yt,Ut,Vt,ir,52,8),Vt+8}ot.prototype.writeDoubleLE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!0,ir)},ot.prototype.writeDoubleBE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!1,ir)},ot.prototype.copy=function(Ut,Vt,ir,kr){if(!ot.isBuffer(Ut))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!kr&&kr!==0&&(kr=this.length),Vt>=Ut.length&&(Vt=Ut.length),Vt||(Vt=0),kr>0&&kr=this.length)throw new RangeError("Index out of range");if(kr<0)throw new RangeError("sourceEnd out of bounds");kr>this.length&&(kr=this.length),Ut.length-Vt>>0,ir=ir===void 0?this.length:ir>>>0,Ut||(Ut=0);let $r;if(typeof Ut=="number")for($r=Vt;$r2**32?kr=_r(String(Vt)):typeof Vt=="bigint"&&(kr=String(Vt),(Vt>BigInt(2)**BigInt(32)||Vt<-(BigInt(2)**BigInt(32)))&&(kr=_r(kr)),kr+="n"),ir+=` It must be ${Ut}. Received ${kr}`,ir},RangeError);function _r(Yt){let Ut="",Vt=Yt.length;const ir=Yt[0]==="-"?1:0;for(;Vt>=ir+4;Vt-=3)Ut=`_${Yt.slice(Vt-3,Vt)}${Ut}`;return`${Yt.slice(0,Vt)}${Ut}`}function er(Yt,Ut,Vt){Ar(Ut,"offset"),(Yt[Ut]===void 0||Yt[Ut+Vt]===void 0)&&Er(Ut,Yt.length-(Vt+1))}function Jt(Yt,Ut,Vt,ir,kr,$r){if(Yt>Vt||Yt3?Ut===0||Ut===BigInt(0)?an=`>= 0${Br} and < 2${Br} ** ${($r+1)*8}${Br}`:an=`>= -(2${Br} ** ${($r+1)*8-1}${Br}) and < 2 ** ${($r+1)*8-1}${Br}`:an=`>= ${Ut}${Br} and <= ${Vt}${Br}`,new Zt.ERR_OUT_OF_RANGE("value",an,Yt)}er(ir,kr,$r)}function Ar(Yt,Ut){if(typeof Yt!="number")throw new Zt.ERR_INVALID_ARG_TYPE(Ut,"number",Yt)}function Er(Yt,Ut,Vt){throw Math.floor(Yt)!==Yt?(Ar(Yt,Vt),new Zt.ERR_OUT_OF_RANGE(Vt||"offset","an integer",Yt)):Ut<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE(Vt||"offset",`>= ${Vt?1:0} and <= ${Ut}`,Yt)}const Dr=/[^+/0-9A-Za-z-_]/g;function Xr(Yt){if(Yt=Yt.split("=")[0],Yt=Yt.trim().replace(Dr,""),Yt.length<2)return"";for(;Yt.length%4!==0;)Yt=Yt+"=";return Yt}function Vr(Yt,Ut){Ut=Ut||1/0;let Vt;const ir=Yt.length;let kr=null;const $r=[];for(let Br=0;Br55295&&Vt<57344){if(!kr){if(Vt>56319){(Ut-=3)>-1&&$r.push(239,191,189);continue}else if(Br+1===ir){(Ut-=3)>-1&&$r.push(239,191,189);continue}kr=Vt;continue}if(Vt<56320){(Ut-=3)>-1&&$r.push(239,191,189),kr=Vt;continue}Vt=(kr-55296<<10|Vt-56320)+65536}else kr&&(Ut-=3)>-1&&$r.push(239,191,189);if(kr=null,Vt<128){if((Ut-=1)<0)break;$r.push(Vt)}else if(Vt<2048){if((Ut-=2)<0)break;$r.push(Vt>>6|192,Vt&63|128)}else if(Vt<65536){if((Ut-=3)<0)break;$r.push(Vt>>12|224,Vt>>6&63|128,Vt&63|128)}else if(Vt<1114112){if((Ut-=4)<0)break;$r.push(Vt>>18|240,Vt>>12&63|128,Vt>>6&63|128,Vt&63|128)}else throw new Error("Invalid code point")}return $r}function wr(Yt){const Ut=[];for(let Vt=0;Vt>8,kr=Vt%256,$r.push(kr),$r.push(ir);return $r}function or(Yt){return tt.toByteArray(Xr(Yt))}function xr(Yt,Ut,Vt,ir){let kr;for(kr=0;kr=Ut.length||kr>=Yt.length);++kr)Ut[kr+Vt]=Yt[kr];return kr}function Pr(Yt,Ut){return Yt instanceof Ut||Yt!=null&&Yt.constructor!=null&&Yt.constructor.name!=null&&Yt.constructor.name===Ut.name}function Or(Yt){return Yt!==Yt}const rr=function(){const Yt="0123456789abcdef",Ut=new Array(256);for(let Vt=0;Vt<16;++Vt){const ir=Vt*16;for(let kr=0;kr<16;++kr)Ut[ir+kr]=Yt[Vt]+Yt[kr]}return Ut}();function gr(Yt){return typeof BigInt>"u"?Ir:Yt}function Ir(){throw new Error("BigInt not supported")}})(buffer$2);var browser$d={exports:{}},process$1=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(et){if(cachedSetTimeout===setTimeout)return setTimeout(et,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(et,0);try{return cachedSetTimeout(et,0)}catch{try{return cachedSetTimeout.call(null,et,0)}catch{return cachedSetTimeout.call(this,et,0)}}}function runClearTimeout(et){if(cachedClearTimeout===clearTimeout)return clearTimeout(et);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(et);try{return cachedClearTimeout(et)}catch{try{return cachedClearTimeout.call(null,et)}catch{return cachedClearTimeout.call(this,et)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var et=runTimeout(cleanUpNextTick);draining=!0;for(var tt=queue.length;tt;){for(currentQueue=queue,queue=[];++queueIndex1)for(var rt=1;rt>>1,xt=At[Ct];if(0>>1;Ctit(pr,It))Ktit(Qt,pr)?(At[Ct]=Qt,At[Kt]=It,Ct=Kt):(At[Ct]=pr,At[tr]=It,Ct=tr);else if(Ktit(Qt,It))At[Ct]=Qt,At[Kt]=It,Ct=Kt;else break e}}return Pt}function it(At,Pt){var It=At.sortIndex-Pt.sortIndex;return It!==0?It:At.id-Pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var st=performance;et.unstable_now=function(){return st.now()}}else{var at=Date,ot=at.now();et.unstable_now=function(){return at.now()-ot}}var lt=[],ut=[],dt=1,bt=null,gt=3,kt=!1,pt=!1,yt=!1,$t=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function St(At){for(var Pt=rt(ut);Pt!==null;){if(Pt.callback===null)nt(ut);else if(Pt.startTime<=At)nt(ut),Pt.sortIndex=Pt.expirationTime,tt(lt,Pt);else break;Pt=rt(ut)}}function Bt(At){if(yt=!1,St(At),!pt)if(rt(lt)!==null)pt=!0,Tt(Ft);else{var Pt=rt(ut);Pt!==null&&Rt(Bt,Pt.startTime-At)}}function Ft(At,Pt){pt=!1,yt&&(yt=!1,mt(Ht),Ht=-1),kt=!0;var It=gt;try{for(St(Pt),bt=rt(lt);bt!==null&&(!(bt.expirationTime>Pt)||At&&!qt());){var Ct=bt.callback;if(typeof Ct=="function"){bt.callback=null,gt=bt.priorityLevel;var xt=Ct(bt.expirationTime<=Pt);Pt=et.unstable_now(),typeof xt=="function"?bt.callback=xt:bt===rt(lt)&&nt(lt),St(Pt)}else nt(lt);bt=rt(lt)}if(bt!==null)var Lt=!0;else{var tr=rt(ut);tr!==null&&Rt(Bt,tr.startTime-Pt),Lt=!1}return Lt}finally{bt=null,gt=It,kt=!1}}var Dt=!1,zt=null,Ht=-1,Wt=5,lr=-1;function qt(){return!(et.unstable_now()-lrAt||125Ct?(At.sortIndex=It,tt(ut,At),rt(lt)===null&&At===rt(ut)&&(yt?(mt(Ht),Ht=-1):yt=!0,Rt(Bt,It-Ct))):(At.sortIndex=xt,tt(lt,At),pt||kt||(pt=!0,Tt(Ft))),At},et.unstable_shouldYield=qt,et.unstable_wrapCallback=function(At){var Pt=gt;return function(){var It=gt;gt=Pt;try{return At.apply(this,arguments)}finally{gt=It}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aa=reactExports,ca=schedulerExports;function p$6(et){for(var tt="https://reactjs.org/docs/error-decoder.html?invariant="+et,rt=1;rt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(et){return ja.call(ma,et)?!0:ja.call(la,et)?!1:ka.test(et)?ma[et]=!0:(la[et]=!0,!1)}function pa(et,tt,rt,nt){if(rt!==null&&rt.type===0)return!1;switch(typeof tt){case"function":case"symbol":return!0;case"boolean":return nt?!1:rt!==null?!rt.acceptsBooleans:(et=et.toLowerCase().slice(0,5),et!=="data-"&&et!=="aria-");default:return!1}}function qa(et,tt,rt,nt){if(tt===null||typeof tt>"u"||pa(et,tt,rt,nt))return!0;if(nt)return!1;if(rt!==null)switch(rt.type){case 3:return!tt;case 4:return tt===!1;case 5:return isNaN(tt);case 6:return isNaN(tt)||1>tt}return!1}function v$7(et,tt,rt,nt,it,st,at){this.acceptsBooleans=tt===2||tt===3||tt===4,this.attributeName=nt,this.attributeNamespace=it,this.mustUseProperty=rt,this.propertyName=et,this.type=tt,this.sanitizeURL=st,this.removeEmptyString=at}var z$4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(et){z$4[et]=new v$7(et,0,!1,et,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(et){var tt=et[0];z$4[tt]=new v$7(tt,1,!1,et[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(et){z$4[et]=new v$7(et,2,!1,et.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(et){z$4[et]=new v$7(et,2,!1,et,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(et){z$4[et]=new v$7(et,3,!1,et.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(et){z$4[et]=new v$7(et,3,!0,et,null,!1,!1)});["capture","download"].forEach(function(et){z$4[et]=new v$7(et,4,!1,et,null,!1,!1)});["cols","rows","size","span"].forEach(function(et){z$4[et]=new v$7(et,6,!1,et,null,!1,!1)});["rowSpan","start"].forEach(function(et){z$4[et]=new v$7(et,5,!1,et.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(et){return et[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(et){var tt=et.replace(ra,sa);z$4[tt]=new v$7(tt,1,!1,et,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(et){var tt=et.replace(ra,sa);z$4[tt]=new v$7(tt,1,!1,et,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(et){var tt=et.replace(ra,sa);z$4[tt]=new v$7(tt,1,!1,et,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(et){z$4[et]=new v$7(et,1,!1,et.toLowerCase(),null,!1,!1)});z$4.xlinkHref=new v$7("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(et){z$4[et]=new v$7(et,1,!1,et.toLowerCase(),null,!0,!0)});function ta(et,tt,rt,nt){var it=z$4.hasOwnProperty(tt)?z$4[tt]:null;(it!==null?it.type!==0:nt||!(2ot||it[at]!==st[ot]){var lt=` +`+it[at].replace(" at new "," at ");return et.displayName&<.includes("")&&(lt=lt.replace("",et.displayName)),lt}while(1<=at&&0<=ot);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(et=et?et.displayName||et.name:"")?Ma(et):""}function Pa(et){switch(et.tag){case 5:return Ma(et.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return et=Oa(et.type,!1),et;case 11:return et=Oa(et.type.render,!1),et;case 1:return et=Oa(et.type,!0),et;default:return""}}function Qa(et){if(et==null)return null;if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et;switch(et){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof et=="object")switch(et.$$typeof){case Ca:return(et.displayName||"Context")+".Consumer";case Ba:return(et._context.displayName||"Context")+".Provider";case Da:var tt=et.render;return et=et.displayName,et||(et=tt.displayName||tt.name||"",et=et!==""?"ForwardRef("+et+")":"ForwardRef"),et;case Ga:return tt=et.displayName||null,tt!==null?tt:Qa(et.type)||"Memo";case Ha:tt=et._payload,et=et._init;try{return Qa(et(tt))}catch{}}return null}function Ra(et){var tt=et.type;switch(et.tag){case 24:return"Cache";case 9:return(tt.displayName||"Context")+".Consumer";case 10:return(tt._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return et=tt.render,et=et.displayName||et.name||"",tt.displayName||(et!==""?"ForwardRef("+et+")":"ForwardRef");case 7:return"Fragment";case 5:return tt;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(tt);case 8:return tt===za?"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 tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt}return null}function Sa(et){switch(typeof et){case"boolean":case"number":case"string":case"undefined":return et;case"object":return et;default:return""}}function Ta(et){var tt=et.type;return(et=et.nodeName)&&et.toLowerCase()==="input"&&(tt==="checkbox"||tt==="radio")}function Ua(et){var tt=Ta(et)?"checked":"value",rt=Object.getOwnPropertyDescriptor(et.constructor.prototype,tt),nt=""+et[tt];if(!et.hasOwnProperty(tt)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var it=rt.get,st=rt.set;return Object.defineProperty(et,tt,{configurable:!0,get:function(){return it.call(this)},set:function(at){nt=""+at,st.call(this,at)}}),Object.defineProperty(et,tt,{enumerable:rt.enumerable}),{getValue:function(){return nt},setValue:function(at){nt=""+at},stopTracking:function(){et._valueTracker=null,delete et[tt]}}}}function Va(et){et._valueTracker||(et._valueTracker=Ua(et))}function Wa(et){if(!et)return!1;var tt=et._valueTracker;if(!tt)return!0;var rt=tt.getValue(),nt="";return et&&(nt=Ta(et)?et.checked?"true":"false":et.value),et=nt,et!==rt?(tt.setValue(et),!0):!1}function Xa(et){if(et=et||(typeof document<"u"?document:void 0),typeof et>"u")return null;try{return et.activeElement||et.body}catch{return et.body}}function Ya(et,tt){var rt=tt.checked;return A$3({},tt,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??et._wrapperState.initialChecked})}function Za(et,tt){var rt=tt.defaultValue==null?"":tt.defaultValue,nt=tt.checked!=null?tt.checked:tt.defaultChecked;rt=Sa(tt.value!=null?tt.value:rt),et._wrapperState={initialChecked:nt,initialValue:rt,controlled:tt.type==="checkbox"||tt.type==="radio"?tt.checked!=null:tt.value!=null}}function ab(et,tt){tt=tt.checked,tt!=null&&ta(et,"checked",tt,!1)}function bb(et,tt){ab(et,tt);var rt=Sa(tt.value),nt=tt.type;if(rt!=null)nt==="number"?(rt===0&&et.value===""||et.value!=rt)&&(et.value=""+rt):et.value!==""+rt&&(et.value=""+rt);else if(nt==="submit"||nt==="reset"){et.removeAttribute("value");return}tt.hasOwnProperty("value")?cb(et,tt.type,rt):tt.hasOwnProperty("defaultValue")&&cb(et,tt.type,Sa(tt.defaultValue)),tt.checked==null&&tt.defaultChecked!=null&&(et.defaultChecked=!!tt.defaultChecked)}function db(et,tt,rt){if(tt.hasOwnProperty("value")||tt.hasOwnProperty("defaultValue")){var nt=tt.type;if(!(nt!=="submit"&&nt!=="reset"||tt.value!==void 0&&tt.value!==null))return;tt=""+et._wrapperState.initialValue,rt||tt===et.value||(et.value=tt),et.defaultValue=tt}rt=et.name,rt!==""&&(et.name=""),et.defaultChecked=!!et._wrapperState.initialChecked,rt!==""&&(et.name=rt)}function cb(et,tt,rt){(tt!=="number"||Xa(et.ownerDocument)!==et)&&(rt==null?et.defaultValue=""+et._wrapperState.initialValue:et.defaultValue!==""+rt&&(et.defaultValue=""+rt))}var eb=Array.isArray;function fb(et,tt,rt,nt){if(et=et.options,tt){tt={};for(var it=0;it"+tt.valueOf().toString()+"",tt=mb.firstChild;et.firstChild;)et.removeChild(et.firstChild);for(;tt.firstChild;)et.appendChild(tt.firstChild)}});function ob(et,tt){if(tt){var rt=et.firstChild;if(rt&&rt===et.lastChild&&rt.nodeType===3){rt.nodeValue=tt;return}}et.textContent=tt}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(et){qb.forEach(function(tt){tt=tt+et.charAt(0).toUpperCase()+et.substring(1),pb[tt]=pb[et]})});function rb(et,tt,rt){return tt==null||typeof tt=="boolean"||tt===""?"":rt||typeof tt!="number"||tt===0||pb.hasOwnProperty(et)&&pb[et]?(""+tt).trim():tt+"px"}function sb(et,tt){et=et.style;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=rt.indexOf("--")===0,it=rb(rt,tt[rt],nt);rt==="float"&&(rt="cssFloat"),nt?et.setProperty(rt,it):et[rt]=it}}var tb=A$3({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 ub(et,tt){if(tt){if(tb[et]&&(tt.children!=null||tt.dangerouslySetInnerHTML!=null))throw Error(p$6(137,et));if(tt.dangerouslySetInnerHTML!=null){if(tt.children!=null)throw Error(p$6(60));if(typeof tt.dangerouslySetInnerHTML!="object"||!("__html"in tt.dangerouslySetInnerHTML))throw Error(p$6(61))}if(tt.style!=null&&typeof tt.style!="object")throw Error(p$6(62))}}function vb(et,tt){if(et.indexOf("-")===-1)return typeof tt.is=="string";switch(et){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 wb=null;function xb(et){return et=et.target||et.srcElement||window,et.correspondingUseElement&&(et=et.correspondingUseElement),et.nodeType===3?et.parentNode:et}var yb=null,zb=null,Ab=null;function Bb(et){if(et=Cb(et)){if(typeof yb!="function")throw Error(p$6(280));var tt=et.stateNode;tt&&(tt=Db(tt),yb(et.stateNode,et.type,tt))}}function Eb(et){zb?Ab?Ab.push(et):Ab=[et]:zb=et}function Fb(){if(zb){var et=zb,tt=Ab;if(Ab=zb=null,Bb(et),tt)for(et=0;et>>=0,et===0?32:31-(pc(et)/qc|0)|0}var rc=64,sc=4194304;function tc(et){switch(et&-et){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 et&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return et&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return et}}function uc(et,tt){var rt=et.pendingLanes;if(rt===0)return 0;var nt=0,it=et.suspendedLanes,st=et.pingedLanes,at=rt&268435455;if(at!==0){var ot=at&~it;ot!==0?nt=tc(ot):(st&=at,st!==0&&(nt=tc(st)))}else at=rt&~it,at!==0?nt=tc(at):st!==0&&(nt=tc(st));if(nt===0)return 0;if(tt!==0&&tt!==nt&&!(tt&it)&&(it=nt&-nt,st=tt&-tt,it>=st||it===16&&(st&4194240)!==0))return tt;if(nt&4&&(nt|=rt&16),tt=et.entangledLanes,tt!==0)for(et=et.entanglements,tt&=nt;0rt;rt++)tt.push(et);return tt}function Ac(et,tt,rt){et.pendingLanes|=tt,tt!==536870912&&(et.suspendedLanes=0,et.pingedLanes=0),et=et.eventTimes,tt=31-oc(tt),et[tt]=rt}function Bc(et,tt){var rt=et.pendingLanes&~tt;et.pendingLanes=tt,et.suspendedLanes=0,et.pingedLanes=0,et.expiredLanes&=tt,et.mutableReadLanes&=tt,et.entangledLanes&=tt,tt=et.entanglements;var nt=et.eventTimes;for(et=et.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(et,tt){switch(et){case"keyup":return $d.indexOf(tt.keyCode)!==-1;case"keydown":return tt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(et){return et=et.detail,typeof et=="object"&&"data"in et?et.data:null}var ie$1=!1;function je$1(et,tt){switch(et){case"compositionend":return he$1(tt);case"keypress":return tt.which!==32?null:(fe$1=!0,ee$1);case"textInput":return et=tt.data,et===ee$1&&fe$1?null:et;default:return null}}function ke$1(et,tt){if(ie$1)return et==="compositionend"||!ae$1&&ge$1(et,tt)?(et=nd(),md=ld=kd=null,ie$1=!1,et):null;switch(et){case"paste":return null;case"keypress":if(!(tt.ctrlKey||tt.altKey||tt.metaKey)||tt.ctrlKey&&tt.altKey){if(tt.char&&1=tt)return{node:rt,offset:tt-et};et=nt}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je(rt)}}function Le(et,tt){return et&&tt?et===tt?!0:et&&et.nodeType===3?!1:tt&&tt.nodeType===3?Le(et,tt.parentNode):"contains"in et?et.contains(tt):et.compareDocumentPosition?!!(et.compareDocumentPosition(tt)&16):!1:!1}function Me$1(){for(var et=window,tt=Xa();tt instanceof et.HTMLIFrameElement;){try{var rt=typeof tt.contentWindow.location.href=="string"}catch{rt=!1}if(rt)et=tt.contentWindow;else break;tt=Xa(et.document)}return tt}function Ne$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt&&(tt==="input"&&(et.type==="text"||et.type==="search"||et.type==="tel"||et.type==="url"||et.type==="password")||tt==="textarea"||et.contentEditable==="true")}function Oe(et){var tt=Me$1(),rt=et.focusedElem,nt=et.selectionRange;if(tt!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(nt!==null&&Ne$1(rt)){if(tt=nt.start,et=nt.end,et===void 0&&(et=tt),"selectionStart"in rt)rt.selectionStart=tt,rt.selectionEnd=Math.min(et,rt.value.length);else if(et=(tt=rt.ownerDocument||document)&&tt.defaultView||window,et.getSelection){et=et.getSelection();var it=rt.textContent.length,st=Math.min(nt.start,it);nt=nt.end===void 0?st:Math.min(nt.end,it),!et.extend&&st>nt&&(it=nt,nt=st,st=it),it=Ke(rt,st);var at=Ke(rt,nt);it&&at&&(et.rangeCount!==1||et.anchorNode!==it.node||et.anchorOffset!==it.offset||et.focusNode!==at.node||et.focusOffset!==at.offset)&&(tt=tt.createRange(),tt.setStart(it.node,it.offset),et.removeAllRanges(),st>nt?(et.addRange(tt),et.extend(at.node,at.offset)):(tt.setEnd(at.node,at.offset),et.addRange(tt)))}}for(tt=[],et=rt;et=et.parentNode;)et.nodeType===1&&tt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(et,tt,rt){var nt=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te$1||Qe==null||Qe!==Xa(nt)||(nt=Qe,"selectionStart"in nt&&Ne$1(nt)?nt={start:nt.selectionStart,end:nt.selectionEnd}:(nt=(nt.ownerDocument&&nt.ownerDocument.defaultView||window).getSelection(),nt={anchorNode:nt.anchorNode,anchorOffset:nt.anchorOffset,focusNode:nt.focusNode,focusOffset:nt.focusOffset}),Se$1&&Ie(Se$1,nt)||(Se$1=nt,nt=oe$1(Re$1,"onSelect"),0Tf||(et.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(et,tt){Tf++,Sf[Tf]=et.current,et.current=tt}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(et,tt){var rt=et.type.contextTypes;if(!rt)return Vf;var nt=et.stateNode;if(nt&&nt.__reactInternalMemoizedUnmaskedChildContext===tt)return nt.__reactInternalMemoizedMaskedChildContext;var it={},st;for(st in rt)it[st]=tt[st];return nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=tt,et.__reactInternalMemoizedMaskedChildContext=it),it}function Zf(et){return et=et.childContextTypes,et!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(et,tt,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,tt),G$2(Wf,rt)}function bg(et,tt,rt){var nt=et.stateNode;if(tt=tt.childContextTypes,typeof nt.getChildContext!="function")return rt;nt=nt.getChildContext();for(var it in nt)if(!(it in tt))throw Error(p$6(108,Ra(et)||"Unknown",it));return A$3({},rt,nt)}function cg(et){return et=(et=et.stateNode)&&et.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$2(H$2,et),G$2(Wf,Wf.current),!0}function dg(et,tt,rt){var nt=et.stateNode;if(!nt)throw Error(p$6(169));rt?(et=bg(et,tt,Xf),nt.__reactInternalMemoizedMergedChildContext=et,E$2(Wf),E$2(H$2),G$2(H$2,et)):E$2(Wf),G$2(Wf,rt)}var eg=null,fg=!1,gg=!1;function hg(et){eg===null?eg=[et]:eg.push(et)}function ig(et){fg=!0,hg(et)}function jg(){if(!gg&&eg!==null){gg=!0;var et=0,tt=C$1;try{var rt=eg;for(C$1=1;et>=at,it-=at,rg=1<<32-oc(tt)+it|rt<Ht?(Wt=zt,zt=null):Wt=zt.sibling;var lr=gt(mt,zt,St[Ht],Bt);if(lr===null){zt===null&&(zt=Wt);break}et&&zt&&lr.alternate===null&&tt(mt,zt),wt=st(lr,wt,Ht),Dt===null?Ft=lr:Dt.sibling=lr,Dt=lr,zt=Wt}if(Ht===St.length)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;HtHt?(Wt=zt,zt=null):Wt=zt.sibling;var qt=gt(mt,zt,lr.value,Bt);if(qt===null){zt===null&&(zt=Wt);break}et&&zt&&qt.alternate===null&&tt(mt,zt),wt=st(qt,wt,Ht),Dt===null?Ft=qt:Dt.sibling=qt,Dt=qt,zt=Wt}if(lr.done)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;!lr.done;Ht++,lr=St.next())lr=bt(mt,lr.value,Bt),lr!==null&&(wt=st(lr,wt,Ht),Dt===null?Ft=lr:Dt.sibling=lr,Dt=lr);return I$2&&tg(mt,Ht),Ft}for(zt=nt(mt,zt);!lr.done;Ht++,lr=St.next())lr=kt(zt,mt,Ht,lr.value,Bt),lr!==null&&(et&&lr.alternate!==null&&zt.delete(lr.key===null?Ht:lr.key),wt=st(lr,wt,Ht),Dt===null?Ft=lr:Dt.sibling=lr,Dt=lr);return et&&zt.forEach(function(Ot){return tt(mt,Ot)}),I$2&&tg(mt,Ht),Ft}function $t(mt,wt,St,Bt){if(typeof St=="object"&&St!==null&&St.type===ya&&St.key===null&&(St=St.props.children),typeof St=="object"&&St!==null){switch(St.$$typeof){case va:e:{for(var Ft=St.key,Dt=wt;Dt!==null;){if(Dt.key===Ft){if(Ft=St.type,Ft===ya){if(Dt.tag===7){rt(mt,Dt.sibling),wt=it(Dt,St.props.children),wt.return=mt,mt=wt;break e}}else if(Dt.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===Ha&&uh(Ft)===Dt.type){rt(mt,Dt.sibling),wt=it(Dt,St.props),wt.ref=sh$1(mt,Dt,St),wt.return=mt,mt=wt;break e}rt(mt,Dt);break}else tt(mt,Dt);Dt=Dt.sibling}St.type===ya?(wt=Ah(St.props.children,mt.mode,Bt,St.key),wt.return=mt,mt=wt):(Bt=yh(St.type,St.key,St.props,null,mt.mode,Bt),Bt.ref=sh$1(mt,wt,St),Bt.return=mt,mt=Bt)}return at(mt);case wa:e:{for(Dt=St.key;wt!==null;){if(wt.key===Dt)if(wt.tag===4&&wt.stateNode.containerInfo===St.containerInfo&&wt.stateNode.implementation===St.implementation){rt(mt,wt.sibling),wt=it(wt,St.children||[]),wt.return=mt,mt=wt;break e}else{rt(mt,wt);break}else tt(mt,wt);wt=wt.sibling}wt=zh(St,mt.mode,Bt),wt.return=mt,mt=wt}return at(mt);case Ha:return Dt=St._init,$t(mt,wt,Dt(St._payload),Bt)}if(eb(St))return pt(mt,wt,St,Bt);if(Ka(St))return yt(mt,wt,St,Bt);th(mt,St)}return typeof St=="string"&&St!==""||typeof St=="number"?(St=""+St,wt!==null&&wt.tag===6?(rt(mt,wt.sibling),wt=it(wt,St),wt.return=mt,mt=wt):(rt(mt,wt),wt=xh(St,mt.mode,Bt),wt.return=mt,mt=wt),at(mt)):rt(mt,wt)}return $t}var Bh=vh(!0),Ch$1=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(et){if(et===Dh)throw Error(p$6(174));return et}function Ih(et,tt){switch(G$2(Gh,tt),G$2(Fh,et),G$2(Eh,Dh),et=tt.nodeType,et){case 9:case 11:tt=(tt=tt.documentElement)?tt.namespaceURI:lb(null,"");break;default:et=et===8?tt.parentNode:tt,tt=et.namespaceURI||null,et=et.tagName,tt=lb(tt,et)}E$2(Eh),G$2(Eh,tt)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(et){Hh(Gh.current);var tt=Hh(Eh.current),rt=lb(tt,et.type);tt!==rt&&(G$2(Fh,et),G$2(Eh,rt))}function Lh(et){Fh.current===et&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(et){for(var tt=et;tt!==null;){if(tt.tag===13){var rt=tt.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return tt}else if(tt.tag===19&&tt.memoizedProps.revealOrder!==void 0){if(tt.flags&128)return tt}else if(tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return null;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}return null}var Nh=[];function Oh(){for(var et=0;etrt?rt:4,et(!0);var nt=Qh.transition;Qh.transition={};try{et(!1),tt()}finally{C$1=rt,Qh.transition=nt}}function Fi(){return di().memoizedState}function Gi(et,tt,rt){var nt=lh(et);if(rt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(et))Ii(tt,rt);else if(rt=Yg(et,tt,rt,nt),rt!==null){var it=L$2();mh(rt,et,nt,it),Ji(rt,tt,nt)}}function ri(et,tt,rt){var nt=lh(et),it={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(et))Ii(tt,it);else{var st=et.alternate;if(et.lanes===0&&(st===null||st.lanes===0)&&(st=tt.lastRenderedReducer,st!==null))try{var at=tt.lastRenderedState,ot=st(at,rt);if(it.hasEagerState=!0,it.eagerState=ot,He$1(ot,at)){var lt=tt.interleaved;lt===null?(it.next=it,Xg(tt)):(it.next=lt.next,lt.next=it),tt.interleaved=it;return}}catch{}finally{}rt=Yg(et,tt,it,nt),rt!==null&&(it=L$2(),mh(rt,et,nt,it),Ji(rt,tt,nt))}}function Hi(et){var tt=et.alternate;return et===N$2||tt!==null&&tt===N$2}function Ii(et,tt){Th=Sh=!0;var rt=et.pending;rt===null?tt.next=tt:(tt.next=rt.next,rt.next=tt),et.pending=tt}function Ji(et,tt,rt){if(rt&4194240){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}var ai={readContext:Vg,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(et,tt){return ci().memoizedState=[et,tt===void 0?null:tt],et},useContext:Vg,useEffect:vi,useImperativeHandle:function(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,ti(4194308,4,yi.bind(null,tt,et),rt)},useLayoutEffect:function(et,tt){return ti(4194308,4,et,tt)},useInsertionEffect:function(et,tt){return ti(4,2,et,tt)},useMemo:function(et,tt){var rt=ci();return tt=tt===void 0?null:tt,et=et(),rt.memoizedState=[et,tt],et},useReducer:function(et,tt,rt){var nt=ci();return tt=rt!==void 0?rt(tt):tt,nt.memoizedState=nt.baseState=tt,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:et,lastRenderedState:tt},nt.queue=et,et=et.dispatch=Gi.bind(null,N$2,et),[nt.memoizedState,et]},useRef:function(et){var tt=ci();return et={current:et},tt.memoizedState=et},useState:qi,useDebugValue:Ai,useDeferredValue:function(et){return ci().memoizedState=et},useTransition:function(){var et=qi(!1),tt=et[0];return et=Ei.bind(null,et[1]),ci().memoizedState=et,[tt,et]},useMutableSource:function(){},useSyncExternalStore:function(et,tt,rt){var nt=N$2,it=ci();if(I$2){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=tt(),R$2===null)throw Error(p$6(349));Rh&30||ni(nt,tt,rt)}it.memoizedState=rt;var st={value:rt,getSnapshot:tt};return it.queue=st,vi(ki.bind(null,nt,st,et),[et]),nt.flags|=2048,li(9,mi.bind(null,nt,st,rt,tt),void 0,null),rt},useId:function(){var et=ci(),tt=R$2.identifierPrefix;if(I$2){var rt=sg,nt=rg;rt=(nt&~(1<<32-oc(nt)-1)).toString(32)+rt,tt=":"+tt+"R"+rt,rt=Uh++,0<\/script>",et=et.removeChild(et.firstChild)):typeof nt.is=="string"?et=at.createElement(rt,{is:nt.is}):(et=at.createElement(rt),rt==="select"&&(at=et,nt.multiple?at.multiple=!0:nt.size&&(at.size=nt.size))):et=at.createElementNS(et,rt),et[Of]=tt,et[Pf]=nt,Aj(et,tt,!1,!1),tt.stateNode=et;e:{switch(at=vb(rt,nt),rt){case"dialog":D$1("cancel",et),D$1("close",et),it=nt;break;case"iframe":case"object":case"embed":D$1("load",et),it=nt;break;case"video":case"audio":for(it=0;itHj&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304)}else{if(!nt)if(et=Mh(at),et!==null){if(tt.flags|=128,nt=!0,rt=et.updateQueue,rt!==null&&(tt.updateQueue=rt,tt.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!at.alternate&&!I$2)return S$2(tt),null}else 2*B$2()-st.renderingStartTime>Hj&&rt!==1073741824&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304);st.isBackwards?(at.sibling=tt.child,tt.child=at):(rt=st.last,rt!==null?rt.sibling=at:tt.child=at,st.last=at)}return st.tail!==null?(tt=st.tail,st.rendering=tt,st.tail=tt.sibling,st.renderingStartTime=B$2(),tt.sibling=null,rt=M$2.current,G$2(M$2,nt?rt&1|2:rt&1),tt):(S$2(tt),null);case 22:case 23:return Ij(),nt=tt.memoizedState!==null,et!==null&&et.memoizedState!==null!==nt&&(tt.flags|=8192),nt&&tt.mode&1?gj&1073741824&&(S$2(tt),tt.subtreeFlags&6&&(tt.flags|=8192)):S$2(tt),null;case 24:return null;case 25:return null}throw Error(p$6(156,tt.tag))}function Jj(et,tt){switch(wg(tt),tt.tag){case 1:return Zf(tt.type)&&$f(),et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),et=tt.flags,et&65536&&!(et&128)?(tt.flags=et&-65537|128,tt):null;case 5:return Lh(tt),null;case 13:if(E$2(M$2),et=tt.memoizedState,et!==null&&et.dehydrated!==null){if(tt.alternate===null)throw Error(p$6(340));Ig()}return et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(tt.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(et,tt){var rt=et.ref;if(rt!==null)if(typeof rt=="function")try{rt(null)}catch(nt){W$7(et,tt,nt)}else rt.current=null}function Nj(et,tt,rt){try{rt()}catch(nt){W$7(et,tt,nt)}}var Oj=!1;function Pj(et,tt){if(Cf=dd,et=Me$1(),Ne$1(et)){if("selectionStart"in et)var rt={start:et.selectionStart,end:et.selectionEnd};else e:{rt=(rt=et.ownerDocument)&&rt.defaultView||window;var nt=rt.getSelection&&rt.getSelection();if(nt&&nt.rangeCount!==0){rt=nt.anchorNode;var it=nt.anchorOffset,st=nt.focusNode;nt=nt.focusOffset;try{rt.nodeType,st.nodeType}catch{rt=null;break e}var at=0,ot=-1,lt=-1,ut=0,dt=0,bt=et,gt=null;t:for(;;){for(var kt;bt!==rt||it!==0&&bt.nodeType!==3||(ot=at+it),bt!==st||nt!==0&&bt.nodeType!==3||(lt=at+nt),bt.nodeType===3&&(at+=bt.nodeValue.length),(kt=bt.firstChild)!==null;)gt=bt,bt=kt;for(;;){if(bt===et)break t;if(gt===rt&&++ut===it&&(ot=at),gt===st&&++dt===nt&&(lt=at),(kt=bt.nextSibling)!==null)break;bt=gt,gt=bt.parentNode}bt=kt}rt=ot===-1||lt===-1?null:{start:ot,end:lt}}else rt=null}rt=rt||{start:0,end:0}}else rt=null;for(Df={focusedElem:et,selectionRange:rt},dd=!1,V$1=tt;V$1!==null;)if(tt=V$1,et=tt.child,(tt.subtreeFlags&1028)!==0&&et!==null)et.return=tt,V$1=et;else for(;V$1!==null;){tt=V$1;try{var pt=tt.alternate;if(tt.flags&1024)switch(tt.tag){case 0:case 11:case 15:break;case 1:if(pt!==null){var yt=pt.memoizedProps,$t=pt.memoizedState,mt=tt.stateNode,wt=mt.getSnapshotBeforeUpdate(tt.elementType===tt.type?yt:Lg(tt.type,yt),$t);mt.__reactInternalSnapshotBeforeUpdate=wt}break;case 3:var St=tt.stateNode.containerInfo;St.nodeType===1?St.textContent="":St.nodeType===9&&St.documentElement&&St.removeChild(St.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$6(163))}}catch(Bt){W$7(tt,tt.return,Bt)}if(et=tt.sibling,et!==null){et.return=tt.return,V$1=et;break}V$1=tt.return}return pt=Oj,Oj=!1,pt}function Qj(et,tt,rt){var nt=tt.updateQueue;if(nt=nt!==null?nt.lastEffect:null,nt!==null){var it=nt=nt.next;do{if((it.tag&et)===et){var st=it.destroy;it.destroy=void 0,st!==void 0&&Nj(tt,rt,st)}it=it.next}while(it!==nt)}}function Rj(et,tt){if(tt=tt.updateQueue,tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&et)===et){var nt=rt.create;rt.destroy=nt()}rt=rt.next}while(rt!==tt)}}function Sj(et){var tt=et.ref;if(tt!==null){var rt=et.stateNode;switch(et.tag){case 5:et=rt;break;default:et=rt}typeof tt=="function"?tt(et):tt.current=et}}function Tj(et){var tt=et.alternate;tt!==null&&(et.alternate=null,Tj(tt)),et.child=null,et.deletions=null,et.sibling=null,et.tag===5&&(tt=et.stateNode,tt!==null&&(delete tt[Of],delete tt[Pf],delete tt[of],delete tt[Qf],delete tt[Rf])),et.stateNode=null,et.return=null,et.dependencies=null,et.memoizedProps=null,et.memoizedState=null,et.pendingProps=null,et.stateNode=null,et.updateQueue=null}function Uj(et){return et.tag===5||et.tag===3||et.tag===4}function Vj(et){e:for(;;){for(;et.sibling===null;){if(et.return===null||Uj(et.return))return null;et=et.return}for(et.sibling.return=et.return,et=et.sibling;et.tag!==5&&et.tag!==6&&et.tag!==18;){if(et.flags&2||et.child===null||et.tag===4)continue e;et.child.return=et,et=et.child}if(!(et.flags&2))return et.stateNode}}function Wj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.nodeType===8?rt.parentNode.insertBefore(et,tt):rt.insertBefore(et,tt):(rt.nodeType===8?(tt=rt.parentNode,tt.insertBefore(et,rt)):(tt=rt,tt.appendChild(et)),rt=rt._reactRootContainer,rt!=null||tt.onclick!==null||(tt.onclick=Bf));else if(nt!==4&&(et=et.child,et!==null))for(Wj(et,tt,rt),et=et.sibling;et!==null;)Wj(et,tt,rt),et=et.sibling}function Xj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.insertBefore(et,tt):rt.appendChild(et);else if(nt!==4&&(et=et.child,et!==null))for(Xj(et,tt,rt),et=et.sibling;et!==null;)Xj(et,tt,rt),et=et.sibling}var X$1=null,Yj=!1;function Zj(et,tt,rt){for(rt=rt.child;rt!==null;)ak(et,tt,rt),rt=rt.sibling}function ak(et,tt,rt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,rt)}catch{}switch(rt.tag){case 5:U$1||Mj(rt,tt);case 6:var nt=X$1,it=Yj;X$1=null,Zj(et,tt,rt),X$1=nt,Yj=it,X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?et.parentNode.removeChild(rt):et.removeChild(rt)):X$1.removeChild(rt.stateNode));break;case 18:X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?Kf(et.parentNode,rt):et.nodeType===1&&Kf(et,rt),bd(et)):Kf(X$1,rt.stateNode));break;case 4:nt=X$1,it=Yj,X$1=rt.stateNode.containerInfo,Yj=!0,Zj(et,tt,rt),X$1=nt,Yj=it;break;case 0:case 11:case 14:case 15:if(!U$1&&(nt=rt.updateQueue,nt!==null&&(nt=nt.lastEffect,nt!==null))){it=nt=nt.next;do{var st=it,at=st.destroy;st=st.tag,at!==void 0&&(st&2||st&4)&&Nj(rt,tt,at),it=it.next}while(it!==nt)}Zj(et,tt,rt);break;case 1:if(!U$1&&(Mj(rt,tt),nt=rt.stateNode,typeof nt.componentWillUnmount=="function"))try{nt.props=rt.memoizedProps,nt.state=rt.memoizedState,nt.componentWillUnmount()}catch(ot){W$7(rt,tt,ot)}Zj(et,tt,rt);break;case 21:Zj(et,tt,rt);break;case 22:rt.mode&1?(U$1=(nt=U$1)||rt.memoizedState!==null,Zj(et,tt,rt),U$1=nt):Zj(et,tt,rt);break;default:Zj(et,tt,rt)}}function bk(et){var tt=et.updateQueue;if(tt!==null){et.updateQueue=null;var rt=et.stateNode;rt===null&&(rt=et.stateNode=new Lj),tt.forEach(function(nt){var it=ck.bind(null,et,nt);rt.has(nt)||(rt.add(nt),nt.then(it,it))})}}function dk(et,tt){var rt=tt.deletions;if(rt!==null)for(var nt=0;ntit&&(it=at),nt&=~st}if(nt=it,nt=B$2()-nt,nt=(120>nt?120:480>nt?480:1080>nt?1080:1920>nt?1920:3e3>nt?3e3:4320>nt?4320:1960*mk(nt/1960))-nt,10et?16:et,xk===null)var nt=!1;else{if(et=xk,xk=null,yk=0,K$6&6)throw Error(p$6(331));var it=K$6;for(K$6|=4,V$1=et.current;V$1!==null;){var st=V$1,at=st.child;if(V$1.flags&16){var ot=st.deletions;if(ot!==null){for(var lt=0;ltB$2()-gk?Lk(et,0):sk|=rt),Ek(et,tt)}function Zk(et,tt){tt===0&&(et.mode&1?(tt=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):tt=1);var rt=L$2();et=Zg(et,tt),et!==null&&(Ac(et,tt,rt),Ek(et,rt))}function vj(et){var tt=et.memoizedState,rt=0;tt!==null&&(rt=tt.retryLane),Zk(et,rt)}function ck(et,tt){var rt=0;switch(et.tag){case 13:var nt=et.stateNode,it=et.memoizedState;it!==null&&(rt=it.retryLane);break;case 19:nt=et.stateNode;break;default:throw Error(p$6(314))}nt!==null&&nt.delete(tt),Zk(et,rt)}var Wk;Wk=function(et,tt,rt){if(et!==null)if(et.memoizedProps!==tt.pendingProps||Wf.current)Ug=!0;else{if(!(et.lanes&rt)&&!(tt.flags&128))return Ug=!1,zj(et,tt,rt);Ug=!!(et.flags&131072)}else Ug=!1,I$2&&tt.flags&1048576&&ug(tt,ng,tt.index);switch(tt.lanes=0,tt.tag){case 2:var nt=tt.type;jj(et,tt),et=tt.pendingProps;var it=Yf(tt,H$2.current);Tg(tt,rt),it=Xh(null,tt,nt,et,it,rt);var st=bi();return tt.flags|=1,typeof it=="object"&&it!==null&&typeof it.render=="function"&&it.$$typeof===void 0?(tt.tag=1,tt.memoizedState=null,tt.updateQueue=null,Zf(nt)?(st=!0,cg(tt)):st=!1,tt.memoizedState=it.state!==null&&it.state!==void 0?it.state:null,ah(tt),it.updater=nh,tt.stateNode=it,it._reactInternals=tt,rh$1(tt,nt,et,rt),tt=kj(null,tt,nt,!0,st,rt)):(tt.tag=0,I$2&&st&&vg(tt),Yi(null,tt,it,rt),tt=tt.child),tt;case 16:nt=tt.elementType;e:{switch(jj(et,tt),et=tt.pendingProps,it=nt._init,nt=it(nt._payload),tt.type=nt,it=tt.tag=$k(nt),et=Lg(nt,et),it){case 0:tt=dj(null,tt,nt,et,rt);break e;case 1:tt=ij(null,tt,nt,et,rt);break e;case 11:tt=Zi(null,tt,nt,et,rt);break e;case 14:tt=aj(null,tt,nt,Lg(nt.type,et),rt);break e}throw Error(p$6(306,nt,""))}return tt;case 0:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),dj(et,tt,nt,it,rt);case 1:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),ij(et,tt,nt,it,rt);case 3:e:{if(lj(tt),et===null)throw Error(p$6(387));nt=tt.pendingProps,st=tt.memoizedState,it=st.element,bh(et,tt),gh(tt,nt,null,rt);var at=tt.memoizedState;if(nt=at.element,st.isDehydrated)if(st={element:nt,isDehydrated:!1,cache:at.cache,pendingSuspenseBoundaries:at.pendingSuspenseBoundaries,transitions:at.transitions},tt.updateQueue.baseState=st,tt.memoizedState=st,tt.flags&256){it=Ki(Error(p$6(423)),tt),tt=mj(et,tt,nt,rt,it);break e}else if(nt!==it){it=Ki(Error(p$6(424)),tt),tt=mj(et,tt,nt,rt,it);break e}else for(yg=Lf(tt.stateNode.containerInfo.firstChild),xg=tt,I$2=!0,zg=null,rt=Ch$1(tt,null,nt,rt),tt.child=rt;rt;)rt.flags=rt.flags&-3|4096,rt=rt.sibling;else{if(Ig(),nt===it){tt=$i(et,tt,rt);break e}Yi(et,tt,nt,rt)}tt=tt.child}return tt;case 5:return Kh$1(tt),et===null&&Eg(tt),nt=tt.type,it=tt.pendingProps,st=et!==null?et.memoizedProps:null,at=it.children,Ef(nt,it)?at=null:st!==null&&Ef(nt,st)&&(tt.flags|=32),hj(et,tt),Yi(et,tt,at,rt),tt.child;case 6:return et===null&&Eg(tt),null;case 13:return pj(et,tt,rt);case 4:return Ih(tt,tt.stateNode.containerInfo),nt=tt.pendingProps,et===null?tt.child=Bh(tt,null,nt,rt):Yi(et,tt,nt,rt),tt.child;case 11:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),Zi(et,tt,nt,it,rt);case 7:return Yi(et,tt,tt.pendingProps,rt),tt.child;case 8:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 12:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 10:e:{if(nt=tt.type._context,it=tt.pendingProps,st=tt.memoizedProps,at=it.value,G$2(Mg,nt._currentValue),nt._currentValue=at,st!==null)if(He$1(st.value,at)){if(st.children===it.children&&!Wf.current){tt=$i(et,tt,rt);break e}}else for(st=tt.child,st!==null&&(st.return=tt);st!==null;){var ot=st.dependencies;if(ot!==null){at=st.child;for(var lt=ot.firstContext;lt!==null;){if(lt.context===nt){if(st.tag===1){lt=ch$1(-1,rt&-rt),lt.tag=2;var ut=st.updateQueue;if(ut!==null){ut=ut.shared;var dt=ut.pending;dt===null?lt.next=lt:(lt.next=dt.next,dt.next=lt),ut.pending=lt}}st.lanes|=rt,lt=st.alternate,lt!==null&&(lt.lanes|=rt),Sg(st.return,rt,tt),ot.lanes|=rt;break}lt=lt.next}}else if(st.tag===10)at=st.type===tt.type?null:st.child;else if(st.tag===18){if(at=st.return,at===null)throw Error(p$6(341));at.lanes|=rt,ot=at.alternate,ot!==null&&(ot.lanes|=rt),Sg(at,rt,tt),at=st.sibling}else at=st.child;if(at!==null)at.return=st;else for(at=st;at!==null;){if(at===tt){at=null;break}if(st=at.sibling,st!==null){st.return=at.return,at=st;break}at=at.return}st=at}Yi(et,tt,it.children,rt),tt=tt.child}return tt;case 9:return it=tt.type,nt=tt.pendingProps.children,Tg(tt,rt),it=Vg(it),nt=nt(it),tt.flags|=1,Yi(et,tt,nt,rt),tt.child;case 14:return nt=tt.type,it=Lg(nt,tt.pendingProps),it=Lg(nt.type,it),aj(et,tt,nt,it,rt);case 15:return cj(et,tt,tt.type,tt.pendingProps,rt);case 17:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),jj(et,tt),tt.tag=1,Zf(nt)?(et=!0,cg(tt)):et=!1,Tg(tt,rt),ph(tt,nt,it),rh$1(tt,nt,it,rt),kj(null,tt,nt,!0,et,rt);case 19:return yj(et,tt,rt);case 22:return ej(et,tt,rt)}throw Error(p$6(156,tt.tag))};function Gk(et,tt){return ac(et,tt)}function al(et,tt,rt,nt){this.tag=et,this.key=rt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=tt,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=nt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg$1(et,tt,rt,nt){return new al(et,tt,rt,nt)}function bj(et){return et=et.prototype,!(!et||!et.isReactComponent)}function $k(et){if(typeof et=="function")return bj(et)?1:0;if(et!=null){if(et=et.$$typeof,et===Da)return 11;if(et===Ga)return 14}return 2}function wh(et,tt){var rt=et.alternate;return rt===null?(rt=Bg$1(et.tag,tt,et.key,et.mode),rt.elementType=et.elementType,rt.type=et.type,rt.stateNode=et.stateNode,rt.alternate=et,et.alternate=rt):(rt.pendingProps=tt,rt.type=et.type,rt.flags=0,rt.subtreeFlags=0,rt.deletions=null),rt.flags=et.flags&14680064,rt.childLanes=et.childLanes,rt.lanes=et.lanes,rt.child=et.child,rt.memoizedProps=et.memoizedProps,rt.memoizedState=et.memoizedState,rt.updateQueue=et.updateQueue,tt=et.dependencies,rt.dependencies=tt===null?null:{lanes:tt.lanes,firstContext:tt.firstContext},rt.sibling=et.sibling,rt.index=et.index,rt.ref=et.ref,rt}function yh(et,tt,rt,nt,it,st){var at=2;if(nt=et,typeof et=="function")bj(et)&&(at=1);else if(typeof et=="string")at=5;else e:switch(et){case ya:return Ah(rt.children,it,st,tt);case za:at=8,it|=8;break;case Aa:return et=Bg$1(12,rt,tt,it|2),et.elementType=Aa,et.lanes=st,et;case Ea:return et=Bg$1(13,rt,tt,it),et.elementType=Ea,et.lanes=st,et;case Fa:return et=Bg$1(19,rt,tt,it),et.elementType=Fa,et.lanes=st,et;case Ia:return qj(rt,it,st,tt);default:if(typeof et=="object"&&et!==null)switch(et.$$typeof){case Ba:at=10;break e;case Ca:at=9;break e;case Da:at=11;break e;case Ga:at=14;break e;case Ha:at=16,nt=null;break e}throw Error(p$6(130,et==null?et:typeof et,""))}return tt=Bg$1(at,rt,tt,it),tt.elementType=et,tt.type=nt,tt.lanes=st,tt}function Ah(et,tt,rt,nt){return et=Bg$1(7,et,nt,tt),et.lanes=rt,et}function qj(et,tt,rt,nt){return et=Bg$1(22,et,nt,tt),et.elementType=Ia,et.lanes=rt,et.stateNode={isHidden:!1},et}function xh(et,tt,rt){return et=Bg$1(6,et,null,tt),et.lanes=rt,et}function zh(et,tt,rt){return tt=Bg$1(4,et.children!==null?et.children:[],et.key,tt),tt.lanes=rt,tt.stateNode={containerInfo:et.containerInfo,pendingChildren:null,implementation:et.implementation},tt}function bl(et,tt,rt,nt,it){this.tag=tt,this.containerInfo=et,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=nt,this.onRecoverableError=it,this.mutableSourceEagerHydrationData=null}function cl(et,tt,rt,nt,it,st,at,ot,lt){return et=new bl(et,tt,rt,ot,lt),tt===1?(tt=1,st===!0&&(tt|=8)):tt=0,st=Bg$1(3,null,null,tt),et.current=st,st.stateNode=et,st.memoizedState={element:nt,isDehydrated:rt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),et}function dl(et,tt,rt){var nt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(et){console.error(et)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$5=reactDomExports;createRoot=client$1.createRoot=m$5.createRoot,client$1.hydrateRoot=m$5.hydrateRoot;const scriptRel="modulepreload",assetsURL=function(et){return"/"+et},seen={},__vitePreload=function(tt,rt,nt){if(!rt||rt.length===0)return tt();const it=document.getElementsByTagName("link");return Promise.all(rt.map(st=>{if(st=assetsURL(st),st in seen)return;seen[st]=!0;const at=st.endsWith(".css"),ot=at?'[rel="stylesheet"]':"";if(!!nt)for(let dt=it.length-1;dt>=0;dt--){const bt=it[dt];if(bt.href===st&&(!at||bt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${st}"]${ot}`))return;const ut=document.createElement("link");if(ut.rel=at?"stylesheet":scriptRel,at||(ut.as="script",ut.crossOrigin=""),ut.href=st,document.head.appendChild(ut),at)return new Promise((dt,bt)=>{ut.addEventListener("load",dt),ut.addEventListener("error",()=>bt(new Error(`Unable to preload CSS for ${st}`)))})})).then(()=>tt()).catch(st=>{const at=new Event("vite:preloadError",{cancelable:!0});if(at.payload=st,window.dispatchEvent(at),!at.defaultPrevented)throw st})},reportWebVitals=et=>{et&&et instanceof Function&&__vitePreload(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:tt,getFID:rt,getFCP:nt,getLCP:it,getTTFB:st})=>{tt(et),rt(et),nt(et),it(et),st(et)})};/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt"u")throw new Error(tt)}function warning(et,tt){if(!et){typeof console<"u"&&console.warn(tt);try{throw new Error(tt)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(et,tt){return{usr:et.state,key:et.key,idx:tt}}function createLocation(et,tt,rt,nt){return rt===void 0&&(rt=null),_extends$2({pathname:typeof et=="string"?et:et.pathname,search:"",hash:""},typeof tt=="string"?parsePath(tt):tt,{state:rt,key:tt&&tt.key||nt||createKey()})}function createPath(et){let{pathname:tt="/",search:rt="",hash:nt=""}=et;return rt&&rt!=="?"&&(tt+=rt.charAt(0)==="?"?rt:"?"+rt),nt&&nt!=="#"&&(tt+=nt.charAt(0)==="#"?nt:"#"+nt),tt}function parsePath(et){let tt={};if(et){let rt=et.indexOf("#");rt>=0&&(tt.hash=et.substr(rt),et=et.substr(0,rt));let nt=et.indexOf("?");nt>=0&&(tt.search=et.substr(nt),et=et.substr(0,nt)),et&&(tt.pathname=et)}return tt}function getUrlBasedHistory(et,tt,rt,nt){nt===void 0&&(nt={});let{window:it=document.defaultView,v5Compat:st=!1}=nt,at=it.history,ot=Action.Pop,lt=null,ut=dt();ut==null&&(ut=0,at.replaceState(_extends$2({},at.state,{idx:ut}),""));function dt(){return(at.state||{idx:null}).idx}function bt(){ot=Action.Pop;let $t=dt(),mt=$t==null?null:$t-ut;ut=$t,lt&<({action:ot,location:yt.location,delta:mt})}function gt($t,mt){ot=Action.Push;let wt=createLocation(yt.location,$t,mt);rt&&rt(wt,$t),ut=dt()+1;let St=getHistoryState(wt,ut),Bt=yt.createHref(wt);try{at.pushState(St,"",Bt)}catch(Ft){if(Ft instanceof DOMException&&Ft.name==="DataCloneError")throw Ft;it.location.assign(Bt)}st&<&<({action:ot,location:yt.location,delta:1})}function kt($t,mt){ot=Action.Replace;let wt=createLocation(yt.location,$t,mt);rt&&rt(wt,$t),ut=dt();let St=getHistoryState(wt,ut),Bt=yt.createHref(wt);at.replaceState(St,"",Bt),st&<&<({action:ot,location:yt.location,delta:0})}function pt($t){let mt=it.location.origin!=="null"?it.location.origin:it.location.href,wt=typeof $t=="string"?$t:createPath($t);return wt=wt.replace(/ $/,"%20"),invariant$1(mt,"No window.location.(origin|href) available to create URL for href: "+wt),new URL(wt,mt)}let yt={get action(){return ot},get location(){return et(it,at)},listen($t){if(lt)throw new Error("A history only accepts one active listener");return it.addEventListener(PopStateEventType,bt),lt=$t,()=>{it.removeEventListener(PopStateEventType,bt),lt=null}},createHref($t){return tt(it,$t)},createURL:pt,encodeLocation($t){let mt=pt($t);return{pathname:mt.pathname,search:mt.search,hash:mt.hash}},push:gt,replace:kt,go($t){return at.go($t)}};return yt}var ResultType;(function(et){et.data="data",et.deferred="deferred",et.redirect="redirect",et.error="error"})(ResultType||(ResultType={}));function matchRoutes(et,tt,rt){rt===void 0&&(rt="/");let nt=typeof tt=="string"?parsePath(tt):tt,it=stripBasename(nt.pathname||"/",rt);if(it==null)return null;let st=flattenRoutes(et);rankRouteBranches(st);let at=null;for(let ot=0;at==null&&ot{let lt={relativePath:ot===void 0?st.path||"":ot,caseSensitive:st.caseSensitive===!0,childrenIndex:at,route:st};lt.relativePath.startsWith("/")&&(invariant$1(lt.relativePath.startsWith(nt),'Absolute route path "'+lt.relativePath+'" nested under path '+('"'+nt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),lt.relativePath=lt.relativePath.slice(nt.length));let ut=joinPaths([nt,lt.relativePath]),dt=rt.concat(lt);st.children&&st.children.length>0&&(invariant$1(st.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+ut+'".')),flattenRoutes(st.children,tt,dt,ut)),!(st.path==null&&!st.index)&&tt.push({path:ut,score:computeScore(ut,st.index),routesMeta:dt})};return et.forEach((st,at)=>{var ot;if(st.path===""||!((ot=st.path)!=null&&ot.includes("?")))it(st,at);else for(let lt of explodeOptionalSegments(st.path))it(st,at,lt)}),tt}function explodeOptionalSegments(et){let tt=et.split("/");if(tt.length===0)return[];let[rt,...nt]=tt,it=rt.endsWith("?"),st=rt.replace(/\?$/,"");if(nt.length===0)return it?[st,""]:[st];let at=explodeOptionalSegments(nt.join("/")),ot=[];return ot.push(...at.map(lt=>lt===""?st:[st,lt].join("/"))),it&&ot.push(...at),ot.map(lt=>et.startsWith("/")&<===""?"/":lt)}function rankRouteBranches(et){et.sort((tt,rt)=>tt.score!==rt.score?rt.score-tt.score:compareIndexes(tt.routesMeta.map(nt=>nt.childrenIndex),rt.routesMeta.map(nt=>nt.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=et=>et==="*";function computeScore(et,tt){let rt=et.split("/"),nt=rt.length;return rt.some(isSplat)&&(nt+=splatPenalty),tt&&(nt+=indexRouteValue),rt.filter(it=>!isSplat(it)).reduce((it,st)=>it+(paramRe.test(st)?dynamicSegmentValue:st===""?emptySegmentValue:staticSegmentValue),nt)}function compareIndexes(et,tt){return et.length===tt.length&&et.slice(0,-1).every((nt,it)=>nt===tt[it])?et[et.length-1]-tt[tt.length-1]:0}function matchRouteBranch(et,tt){let{routesMeta:rt}=et,nt={},it="/",st=[];for(let at=0;at{let{paramName:gt,isOptional:kt}=dt;if(gt==="*"){let yt=ot[bt]||"";at=st.slice(0,st.length-yt.length).replace(/(.)\/+$/,"$1")}const pt=ot[bt];return kt&&!pt?ut[gt]=void 0:ut[gt]=(pt||"").replace(/%2F/g,"/"),ut},{}),pathname:st,pathnameBase:at,pattern:et}}function compilePath(et,tt,rt){tt===void 0&&(tt=!1),rt===void 0&&(rt=!0),warning(et==="*"||!et.endsWith("*")||et.endsWith("/*"),'Route path "'+et+'" will be treated as if it were '+('"'+et.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+et.replace(/\*$/,"/*")+'".'));let nt=[],it="^"+et.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(at,ot,lt)=>(nt.push({paramName:ot,isOptional:lt!=null}),lt?"/?([^\\/]+)?":"/([^\\/]+)"));return et.endsWith("*")?(nt.push({paramName:"*"}),it+=et==="*"||et==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):rt?it+="\\/*$":et!==""&&et!=="/"&&(it+="(?:(?=\\/|$))"),[new RegExp(it,tt?void 0:"i"),nt]}function decodePath(et){try{return et.split("/").map(tt=>decodeURIComponent(tt).replace(/\//g,"%2F")).join("/")}catch(tt){return warning(!1,'The URL path "'+et+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+tt+").")),et}}function stripBasename(et,tt){if(tt==="/")return et;if(!et.toLowerCase().startsWith(tt.toLowerCase()))return null;let rt=tt.endsWith("/")?tt.length-1:tt.length,nt=et.charAt(rt);return nt&&nt!=="/"?null:et.slice(rt)||"/"}function resolvePath(et,tt){tt===void 0&&(tt="/");let{pathname:rt,search:nt="",hash:it=""}=typeof et=="string"?parsePath(et):et;return{pathname:rt?rt.startsWith("/")?rt:resolvePathname(rt,tt):tt,search:normalizeSearch(nt),hash:normalizeHash(it)}}function resolvePathname(et,tt){let rt=tt.replace(/\/+$/,"").split("/");return et.split("/").forEach(it=>{it===".."?rt.length>1&&rt.pop():it!=="."&&rt.push(it)}),rt.length>1?rt.join("/"):"/"}function getInvalidPathError(et,tt,rt,nt){return"Cannot include a '"+et+"' character in a manually specified "+("`to."+tt+"` field ["+JSON.stringify(nt)+"]. Please separate it out to the ")+("`to."+rt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(et){return et.filter((tt,rt)=>rt===0||tt.route.path&&tt.route.path.length>0)}function getResolveToMatches(et,tt){let rt=getPathContributingMatches(et);return tt?rt.map((nt,it)=>it===et.length-1?nt.pathname:nt.pathnameBase):rt.map(nt=>nt.pathnameBase)}function resolveTo(et,tt,rt,nt){nt===void 0&&(nt=!1);let it;typeof et=="string"?it=parsePath(et):(it=_extends$2({},et),invariant$1(!it.pathname||!it.pathname.includes("?"),getInvalidPathError("?","pathname","search",it)),invariant$1(!it.pathname||!it.pathname.includes("#"),getInvalidPathError("#","pathname","hash",it)),invariant$1(!it.search||!it.search.includes("#"),getInvalidPathError("#","search","hash",it)));let st=et===""||it.pathname==="",at=st?"/":it.pathname,ot;if(at==null)ot=rt;else{let bt=tt.length-1;if(!nt&&at.startsWith("..")){let gt=at.split("/");for(;gt[0]==="..";)gt.shift(),bt-=1;it.pathname=gt.join("/")}ot=bt>=0?tt[bt]:"/"}let lt=resolvePath(it,ot),ut=at&&at!=="/"&&at.endsWith("/"),dt=(st||at===".")&&rt.endsWith("/");return!lt.pathname.endsWith("/")&&(ut||dt)&&(lt.pathname+="/"),lt}const joinPaths=et=>et.join("/").replace(/\/\/+/g,"/"),normalizePathname=et=>et.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=et=>!et||et==="?"?"":et.startsWith("?")?et:"?"+et,normalizeHash=et=>!et||et==="#"?"":et.startsWith("#")?et:"#"+et;function isRouteErrorResponse(et){return et!=null&&typeof et.status=="number"&&typeof et.statusText=="string"&&typeof et.internal=="boolean"&&"data"in et}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt{ot.current=!0}),reactExports.useCallback(function(ut,dt){if(dt===void 0&&(dt={}),!ot.current)return;if(typeof ut=="number"){nt.go(ut);return}let bt=resolveTo(ut,JSON.parse(at),st,dt.relative==="path");et==null&&tt!=="/"&&(bt.pathname=bt.pathname==="/"?tt:joinPaths([tt,bt.pathname])),(dt.replace?nt.replace:nt.push)(bt,dt.state,dt)},[tt,nt,at,st,et])}function useRoutes(et,tt){return useRoutesImpl(et,tt)}function useRoutesImpl(et,tt,rt,nt){useInRouterContext()||invariant$1(!1);let{navigator:it}=reactExports.useContext(NavigationContext),{matches:st}=reactExports.useContext(RouteContext),at=st[st.length-1],ot=at?at.params:{};at&&at.pathname;let lt=at?at.pathnameBase:"/";at&&at.route;let ut=useLocation(),dt;if(tt){var bt;let $t=typeof tt=="string"?parsePath(tt):tt;lt==="/"||(bt=$t.pathname)!=null&&bt.startsWith(lt)||invariant$1(!1),dt=$t}else dt=ut;let gt=dt.pathname||"/",kt=gt;if(lt!=="/"){let $t=lt.replace(/^\//,"").split("/");kt="/"+gt.replace(/^\//,"").split("/").slice($t.length).join("/")}let pt=matchRoutes(et,{pathname:kt}),yt=_renderMatches(pt&&pt.map($t=>Object.assign({},$t,{params:Object.assign({},ot,$t.params),pathname:joinPaths([lt,it.encodeLocation?it.encodeLocation($t.pathname).pathname:$t.pathname]),pathnameBase:$t.pathnameBase==="/"?lt:joinPaths([lt,it.encodeLocation?it.encodeLocation($t.pathnameBase).pathname:$t.pathnameBase])})),st,rt,nt);return tt&&yt?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$1({pathname:"/",search:"",hash:"",state:null,key:"default"},dt),navigationType:Action.Pop}},yt):yt}function DefaultErrorComponent(){let et=useRouteError(),tt=isRouteErrorResponse(et)?et.status+" "+et.statusText:et instanceof Error?et.message:JSON.stringify(et),rt=et instanceof Error?et.stack:null,it={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},st=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},tt),rt?reactExports.createElement("pre",{style:it},rt):null,st)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(tt){super(tt),this.state={location:tt.location,revalidation:tt.revalidation,error:tt.error}}static getDerivedStateFromError(tt){return{error:tt}}static getDerivedStateFromProps(tt,rt){return rt.location!==tt.location||rt.revalidation!=="idle"&&tt.revalidation==="idle"?{error:tt.error,location:tt.location,revalidation:tt.revalidation}:{error:tt.error!==void 0?tt.error:rt.error,location:rt.location,revalidation:tt.revalidation||rt.revalidation}}componentDidCatch(tt,rt){console.error("React Router caught the following error during render",tt,rt)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(et){let{routeContext:tt,match:rt,children:nt}=et,it=reactExports.useContext(DataRouterContext);return it&&it.static&&it.staticContext&&(rt.route.errorElement||rt.route.ErrorBoundary)&&(it.staticContext._deepestRenderedBoundaryId=rt.route.id),reactExports.createElement(RouteContext.Provider,{value:tt},nt)}function _renderMatches(et,tt,rt,nt){var it;if(tt===void 0&&(tt=[]),rt===void 0&&(rt=null),nt===void 0&&(nt=null),et==null){var st;if((st=rt)!=null&&st.errors)et=rt.matches;else return null}let at=et,ot=(it=rt)==null?void 0:it.errors;if(ot!=null){let dt=at.findIndex(bt=>bt.route.id&&(ot==null?void 0:ot[bt.route.id])!==void 0);dt>=0||invariant$1(!1),at=at.slice(0,Math.min(at.length,dt+1))}let lt=!1,ut=-1;if(rt&&nt&&nt.v7_partialHydration)for(let dt=0;dt=0?at=at.slice(0,ut+1):at=[at[0]];break}}}return at.reduceRight((dt,bt,gt)=>{let kt,pt=!1,yt=null,$t=null;rt&&(kt=ot&&bt.route.id?ot[bt.route.id]:void 0,yt=bt.route.errorElement||defaultErrorElement,lt&&(ut<0&>===0?(warningOnce("route-fallback",!1),pt=!0,$t=null):ut===gt&&(pt=!0,$t=bt.route.hydrateFallbackElement||null)));let mt=tt.concat(at.slice(0,gt+1)),wt=()=>{let St;return kt?St=yt:pt?St=$t:bt.route.Component?St=reactExports.createElement(bt.route.Component,null):bt.route.element?St=bt.route.element:St=dt,reactExports.createElement(RenderedRoute,{match:bt,routeContext:{outlet:dt,matches:mt,isDataRoute:rt!=null},children:St})};return rt&&(bt.route.ErrorBoundary||bt.route.errorElement||gt===0)?reactExports.createElement(RenderErrorBoundary,{location:rt.location,revalidation:rt.revalidation,component:yt,error:kt,children:wt(),routeContext:{outlet:null,matches:mt,isDataRoute:!0}}):wt()},null)}var DataRouterHook$1=function(et){return et.UseBlocker="useBlocker",et.UseRevalidator="useRevalidator",et.UseNavigateStable="useNavigate",et}(DataRouterHook$1||{}),DataRouterStateHook$1=function(et){return et.UseBlocker="useBlocker",et.UseLoaderData="useLoaderData",et.UseActionData="useActionData",et.UseRouteError="useRouteError",et.UseNavigation="useNavigation",et.UseRouteLoaderData="useRouteLoaderData",et.UseMatches="useMatches",et.UseRevalidator="useRevalidator",et.UseNavigateStable="useNavigate",et.UseRouteId="useRouteId",et}(DataRouterStateHook$1||{});function useDataRouterContext(et){let tt=reactExports.useContext(DataRouterContext);return tt||invariant$1(!1),tt}function useDataRouterState(et){let tt=reactExports.useContext(DataRouterStateContext);return tt||invariant$1(!1),tt}function useRouteContext(et){let tt=reactExports.useContext(RouteContext);return tt||invariant$1(!1),tt}function useCurrentRouteId(et){let tt=useRouteContext(),rt=tt.matches[tt.matches.length-1];return rt.route.id||invariant$1(!1),rt.route.id}function useRouteError(){var et;let tt=reactExports.useContext(RouteErrorContext),rt=useDataRouterState(DataRouterStateHook$1.UseRouteError),nt=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return tt!==void 0?tt:(et=rt.errors)==null?void 0:et[nt]}function useNavigateStable(){let{router:et}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),tt=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),rt=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{rt.current=!0}),reactExports.useCallback(function(it,st){st===void 0&&(st={}),rt.current&&(typeof it=="number"?et.navigate(it):et.navigate(it,_extends$1({fromRouteId:tt},st)))},[et,tt])}const alreadyWarned={};function warningOnce(et,tt,rt){!tt&&!alreadyWarned[et]&&(alreadyWarned[et]=!0)}function Route(et){invariant$1(!1)}function Router(et){let{basename:tt="/",children:rt=null,location:nt,navigationType:it=Action.Pop,navigator:st,static:at=!1,future:ot}=et;useInRouterContext()&&invariant$1(!1);let lt=tt.replace(/^\/*/,"/"),ut=reactExports.useMemo(()=>({basename:lt,navigator:st,static:at,future:_extends$1({v7_relativeSplatPath:!1},ot)}),[lt,ot,st,at]);typeof nt=="string"&&(nt=parsePath(nt));let{pathname:dt="/",search:bt="",hash:gt="",state:kt=null,key:pt="default"}=nt,yt=reactExports.useMemo(()=>{let $t=stripBasename(dt,lt);return $t==null?null:{location:{pathname:$t,search:bt,hash:gt,state:kt,key:pt},navigationType:it}},[lt,dt,bt,gt,kt,pt,it]);return yt==null?null:reactExports.createElement(NavigationContext.Provider,{value:ut},reactExports.createElement(LocationContext.Provider,{children:rt,value:yt}))}function Routes(et){let{children:tt,location:rt}=et;return useRoutes(createRoutesFromChildren(tt),rt)}new Promise(()=>{});function createRoutesFromChildren(et,tt){tt===void 0&&(tt=[]);let rt=[];return reactExports.Children.forEach(et,(nt,it)=>{if(!reactExports.isValidElement(nt))return;let st=[...tt,it];if(nt.type===reactExports.Fragment){rt.push.apply(rt,createRoutesFromChildren(nt.props.children,st));return}nt.type!==Route&&invariant$1(!1),!nt.props.index||!nt.props.children||invariant$1(!1);let at={id:nt.props.id||st.join("-"),caseSensitive:nt.props.caseSensitive,element:nt.props.element,Component:nt.props.Component,index:nt.props.index,path:nt.props.path,loader:nt.props.loader,action:nt.props.action,errorElement:nt.props.errorElement,ErrorBoundary:nt.props.ErrorBoundary,hasErrorBoundary:nt.props.ErrorBoundary!=null||nt.props.errorElement!=null,shouldRevalidate:nt.props.shouldRevalidate,handle:nt.props.handle,lazy:nt.props.lazy};nt.props.children&&(at.children=createRoutesFromChildren(nt.props.children,st)),rt.push(at)}),rt}/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function createSearchParams(et){return et===void 0&&(et=""),new URLSearchParams(typeof et=="string"||Array.isArray(et)||et instanceof URLSearchParams?et:Object.keys(et).reduce((tt,rt)=>{let nt=et[rt];return tt.concat(Array.isArray(nt)?nt.map(it=>[rt,it]):[[rt,nt]])},[]))}function getSearchParamsForLocation(et,tt){let rt=createSearchParams(et);return tt&&tt.forEach((nt,it)=>{rt.has(it)||tt.getAll(it).forEach(st=>{rt.append(it,st)})}),rt}const REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=$2AODx$react[START_TRANSITION];function BrowserRouter(et){let{basename:tt,children:rt,future:nt,window:it}=et,st=reactExports.useRef();st.current==null&&(st.current=createBrowserHistory({window:it,v5Compat:!0}));let at=st.current,[ot,lt]=reactExports.useState({action:at.action,location:at.location}),{v7_startTransition:ut}=nt||{},dt=reactExports.useCallback(bt=>{ut&&startTransitionImpl?startTransitionImpl(()=>lt(bt)):lt(bt)},[lt,ut]);return reactExports.useLayoutEffect(()=>at.listen(dt),[at,dt]),reactExports.createElement(Router,{basename:tt,children:rt,location:ot.location,navigationType:ot.action,navigator:at,future:nt})}var DataRouterHook;(function(et){et.UseScrollRestoration="useScrollRestoration",et.UseSubmit="useSubmit",et.UseSubmitFetcher="useSubmitFetcher",et.UseFetcher="useFetcher",et.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(et){et.UseFetcher="useFetcher",et.UseFetchers="useFetchers",et.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useSearchParams(et){let tt=reactExports.useRef(createSearchParams(et)),rt=reactExports.useRef(!1),nt=useLocation(),it=reactExports.useMemo(()=>getSearchParamsForLocation(nt.search,rt.current?null:tt.current),[nt.search]),st=useNavigate(),at=reactExports.useCallback((ot,lt)=>{const ut=createSearchParams(typeof ot=="function"?ot(it):ot);rt.current=!0,st("?"+ut,lt)},[st,it]);return[it,at]}const assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$3={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var tt=window;if(tt.sendToElectron)return tt.sendToElectron("sphinx-bridge",et);tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?tt.ReactNativeWebView.postMessage(JSON.stringify(et)):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.webkit.messageHandlers.sphinx.postMessage(et):tt.Android?tt.Android.receiveMessage(JSON.stringify(et)):tt.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var tt=window;if(tt.sendToElectron){tt.EE&&tt.EE.once("sphinx-bridge",et);return}else tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.addEventListener("message",function(rt){var nt={};try{nt=JSON.parse(rt.data)}catch{}et({data:nt})}):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.Android?tt.sphinxMessage=function(rt){var nt={};try{nt=JSON.parse(rt)}catch{}et({data:nt})}:tt.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var tt=window;tt.sendToElectron||(tt.ReactNativeWebView&&tt.ReactNativeWebView.postMessage?document.removeEventListener("message",et):tt.webkit&&tt.webkit.messageHandlers&&tt.webkit.messageHandlers.sphinx&&tt.webkit.messageHandlers.sphinx||tt.Android?tt.sphinxMessage=null:tt.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var tt=commonjsGlobal&&commonjsGlobal.__assign||function(){return tt=Object.assign||function(lt){for(var ut,dt=1,bt=arguments.length;dt0&&kt[kt.length-1])&&(mt[0]===6||mt[0]===2)){dt=0;continue}if(mt[0]===3&&(!kt||mt[1]>kt[0]&&mt[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:at}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.AUTHORIZE)];case 2:return dt=gt.sent(),dt.pubkey?(this.isEnabled=!0,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.authorize=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt,pt,yt;return nt(this,function($t){switch($t.label){case 0:bt&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),$t.label=1;case 1:return $t.trys.push([1,3,,4]),gt=dt||!1,[4,this.postMsg(st.AUTHORIZE,{challenge:ut,noBudget:gt})];case 2:return kt=$t.sent(),pt=kt.budget||kt.budget===0,(gt||pt)&&kt.pubkey?(this.isEnabled=!0,this.budget=kt.budget||0,this.pubkey=kt.pubkey,[2,kt]):[3,4];case 3:return yt=$t.sent(),this.logging&&console.log(yt),[3,4];case 4:return[2,null]}})})},lt.prototype.topup=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:this.logging&&console.log("=> TOP UP"),gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[3,4];case 4:return[2,null]}})})},lt.prototype.keysend=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt,kt;return nt(this,function(pt){switch(pt.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!ut||!dt)return[2,null];if(ut.length!==66)return[2,null];if(dt<1)return[2,null];if(dt>this.budget)return[2,null];pt.label=1;case 1:return pt.trys.push([1,3,,4]),bt={dest:ut,amt:dt},[4,this.postMsg(st.KEYSEND,bt)];case 2:return gt=pt.sent(),gt&>.success&&(this.budget=this.budget-dt,gt.budget=this.budget),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,null];case 4:return[2]}})})},lt.prototype.updated=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATED)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.sendPayment=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.PAYMENT,{paymentRequest:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.saveLsat=function(ut,dt,bt){return rt(this,void 0,void 0,function(){var gt,kt;return nt(this,function(pt){switch(pt.label){case 0:this.logging&&console.log("=> SAVE LSAT"),pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,this.postMsg(st.LSAT,{paymentRequest:ut,macaroon:dt,issuer:bt})];case 2:return gt=pt.sent(),[2,gt];case 3:return kt=pt.sent(),this.logging&&console.log(kt),[2,kt];case 4:return[2]}})})},lt.prototype.getLsat=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETLSAT,{issuer:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,bt];case 4:return[2]}})})},lt.prototype.updateLsat=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.UPDATELSAT,{identifier:ut,status:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,gt];case 4:return[2]}})})},lt.prototype.makeInvoice=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.INVOICE,{amt:ut,memo:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.signMessage=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{message:ut})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.verifyMessage=function(ut,dt){return rt(this,void 0,void 0,function(){var bt,gt;return nt(this,function(kt){switch(kt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.SIGN,{signature:ut,message:dt})];case 2:return bt=kt.sent(),[2,bt];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[2,null];case 4:return[2]}})})},lt.prototype.reload=function(ut){return rt(this,void 0,void 0,function(){var dt,bt,gt;return nt(this,function(kt){switch(kt.label){case 0:this.logging&&console.log("=> RELOAD"),kt.label=1;case 1:return kt.trys.push([1,3,,4]),[4,this.postMsg(st.RELOAD,{password:ut})];case 2:return dt=kt.sent(),bt=dt.budget||dt.budget===0,bt&&dt.pubkey?(this.isEnabled=!0,this.budget=dt.budget,this.pubkey=dt.pubkey,[2,dt]):[3,4];case 3:return gt=kt.sent(),this.logging&&console.log(gt),[3,4];case 4:return[2,null]}})})},lt.prototype.saveGraphData=function(ut){return rt(this,void 0,void 0,function(){var dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SAVEDATA,{data:{type:ut.type,metaData:ut.metaData}})];case 2:return dt=gt.sent(),[2,dt];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getPersonData=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETPERSONDATA)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.getBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.GETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.setBudget=function(){return rt(this,void 0,void 0,function(){var ut,dt,bt;return nt(this,function(gt){switch(gt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,this.postMsg(st.SETBUDGET)];case 2:return ut=gt.sent(),dt=ut.budget||ut.budget===0,dt?(this.budget=ut.budget,[2,ut]):[3,4];case 3:return bt=gt.sent(),this.logging&&console.log(bt),[2,null];case 4:return[2]}})})},lt.prototype.getSignedToken=function(){return rt(this,void 0,void 0,function(){var ut,dt;return nt(this,function(bt){switch(bt.label){case 0:if(this.logging&&console.log("=> GETSIGNEDTOKEN"),!this.isEnabled)return[2,null];bt.label=1;case 1:return bt.trys.push([1,3,,4]),[4,this.postMsg(st.GETSIGNEDTOKEN)];case 2:return ut=bt.sent(),[2,ut];case 3:return dt=bt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},lt.prototype.postMsg=function(ut,dt){var bt,gt=this;gt.active&&Promise.reject(new Error("User is busy")),gt.active=ut;var kt=window;return!((bt=kt.kmpJsBridge)===null||bt===void 0)&&bt.callNative?new Promise(function(pt,yt){kt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(tt({application:at,type:ut},dt||{})),function($t){var mt={};try{mt=JSON.parse($t)}catch{}Object.keys(mt).length===0||mt.application!==at||(gt.active=null,mt.error?yt(mt.error):pt(mt))})}):new Promise(function(pt,yt){it.postMessage(tt({application:at,type:ut},dt||{}));function $t(mt){!mt.data||mt.data.application!==at||(mt.data.error?(gt.active=null,yt(mt.data.error)):(gt.active=null,pt(mt.data)),it.removeEventer($t))}it.addEventer($t)})},lt}();et.default=ot})(lib$2);var dist$2=dist$3.exports;Object.defineProperty(dist$2,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$3.exports=sphinx;var distExports$1=dist$3.exports;const sphinx$1=getDefaultExportFromCjs(distExports$1),{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://bitcoin.sphinx.chat";function apiUrlFromSwarmHost(){let tt=window.location.origin;if(host.includes("swarm")){if(host.startsWith("nav")){const rt=host.split(".");rt[0]="boltwall",tt=`https://${rt.join(".")}`}}else origin$1.includes("localhost")&&(tt="https://bitcoin.sphinx.chat");return`${tt}/api`}function removeApi(et){const tt=/\/api$/;return et.replace(tt,"")}const request=async(et,tt,rt)=>{let nt=et;const it=new URL(et),st=new URLSearchParams(it.search),at=await getSignedMessageFromRelay();st.append("sig",at.signature),st.append("msg",at.message),it.search=st.toString(),nt=it.toString();const ot=new AbortController,lt=rt||ot.signal,ut=await fetch(nt,{...tt,signal:lt});if(!ut.ok)throw ut;return ut.json()},api$1={delete:(et,tt,rt)=>request(`${API_URL}${et}`,{headers:{...tt,"Content-Type":"application/json"},method:"DELETE"},rt),get:(et,tt,rt)=>request(`${API_URL}${et}`,tt?{headers:tt}:void 0,rt),post:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"POST"},nt),put:(et,tt,rt,nt)=>request(`${API_URL}${et}`,{body:tt,headers:{...rt,"Content-Type":"application/json"},method:"PUT"},nt)},colors={black:"rgb(0, 0, 0)",appearanceBg:"rgba(60, 64, 83, 0.3)",disableBtn:"rgba(35, 37, 47, 0.8)",bluePressState:"rgb(57, 97, 220)",addAttributeBtn:"rgba(107, 122, 141, 0.25)",blueTextAccent:"rgb(130, 180, 255)",colorPickerThing:"rgba(255, 158, 239, 1)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",BG4:"rgba(30, 30, 35, 0.9)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)",CLIP:"rgba(143, 38, 44, 1)",TEXT:"rgba(40, 74, 178, 1)",SHOW:"rgba(79, 111, 24, 1)",EPISODE:"rgba(109, 33, 151, 1)",ORGANIZATION:"rgba(153, 62, 19, 1)",TWEET:"rgba(22, 23, 29, 1)",PERSON:"rgba(7, 105, 82, 1)",EVENT:"rgba(137, 107, 0, 1)",TOPIC:"rgba(255, 255, 255, 0.85)",THING:"rgba(150, 39, 119, 1)",SUCESS:"rgba(73, 201, 152, 1)",SEEDQUESTION:"rgba(47, 58, 89, 1)",SEEDQUESTION_HOVER:"rgba(38, 42, 58, 1)",COLLAPSE_BUTTON:"rgba(48, 51, 66, 1)",SOURCE_TABLE_LINK:"rgba(171, 204, 254, 1)",AI_HIGHLIGHT:"rgba(0, 123, 255, 0.1)",createTestButton:"rgb(178, 255, 102)",MESSAGE_BG:"rgba(22, 22, 29, 0.89)",MESSAGE_BG_HOVER:"rgba(35, 37, 47, 0.3)"};//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(et){hookCallback=et}function isArray$5(et){return et instanceof Array||Object.prototype.toString.call(et)==="[object Array]"}function isObject$a(et){return et!=null&&Object.prototype.toString.call(et)==="[object Object]"}function hasOwnProp(et,tt){return Object.prototype.hasOwnProperty.call(et,tt)}function isObjectEmpty$1(et){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(et).length===0;var tt;for(tt in et)if(hasOwnProp(et,tt))return!1;return!0}function isUndefined$1(et){return et===void 0}function isNumber$1(et){return typeof et=="number"||Object.prototype.toString.call(et)==="[object Number]"}function isDate$1(et){return et instanceof Date||Object.prototype.toString.call(et)==="[object Date]"}function map$1(et,tt){var rt=[],nt,it=et.length;for(nt=0;nt>>0,nt;for(nt=0;nt0)for(rt=0;rt=0;return(st?rt?"+":"":"-")+Math.pow(10,Math.max(0,it)).toString().substr(1)+nt}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(et,tt,rt,nt){var it=nt;typeof nt=="string"&&(it=function(){return this[nt]()}),et&&(formatTokenFunctions[et]=it),tt&&(formatTokenFunctions[tt[0]]=function(){return zeroFill(it.apply(this,arguments),tt[1],tt[2])}),rt&&(formatTokenFunctions[rt]=function(){return this.localeData().ordinal(it.apply(this,arguments),et)})}function removeFormattingTokens(et){return et.match(/\[[\s\S]/)?et.replace(/^\[|\]$/g,""):et.replace(/\\/g,"")}function makeFormatFunction(et){var tt=et.match(formattingTokens),rt,nt;for(rt=0,nt=tt.length;rt=0&&localFormattingTokens.test(et);)et=et.replace(localFormattingTokens,nt),localFormattingTokens.lastIndex=0,rt-=1;return et}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(et){var tt=this._longDateFormat[et],rt=this._longDateFormat[et.toUpperCase()];return tt||!rt?tt:(this._longDateFormat[et]=rt.match(formattingTokens).map(function(nt){return nt==="MMMM"||nt==="MM"||nt==="DD"||nt==="dddd"?nt.slice(1):nt}).join(""),this._longDateFormat[et])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(et){return this._ordinal.replace("%d",et)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(et,tt,rt,nt){var it=this._relativeTime[rt];return isFunction$5(it)?it(et,tt,rt,nt):it.replace(/%d/i,et)}function pastFuture(et,tt){var rt=this._relativeTime[et>0?"future":"past"];return isFunction$5(rt)?rt(tt):rt.replace(/%s/i,tt)}var aliases$1={};function addUnitAlias(et,tt){var rt=et.toLowerCase();aliases$1[rt]=aliases$1[rt+"s"]=aliases$1[tt]=et}function normalizeUnits(et){return typeof et=="string"?aliases$1[et]||aliases$1[et.toLowerCase()]:void 0}function normalizeObjectUnits(et){var tt={},rt,nt;for(nt in et)hasOwnProp(et,nt)&&(rt=normalizeUnits(nt),rt&&(tt[rt]=et[nt]));return tt}var priorities={};function addUnitPriority(et,tt){priorities[et]=tt}function getPrioritizedUnits(et){var tt=[],rt;for(rt in et)hasOwnProp(et,rt)&&tt.push({unit:rt,priority:priorities[rt]});return tt.sort(function(nt,it){return nt.priority-it.priority}),tt}function isLeapYear(et){return et%4===0&&et%100!==0||et%400===0}function absFloor(et){return et<0?Math.ceil(et)||0:Math.floor(et)}function toInt(et){var tt=+et,rt=0;return tt!==0&&isFinite(tt)&&(rt=absFloor(tt)),rt}function makeGetSet(et,tt){return function(rt){return rt!=null?(set$1$1(this,et,rt),hooks.updateOffset(this,tt),this):get$1(this,et)}}function get$1(et,tt){return et.isValid()?et._d["get"+(et._isUTC?"UTC":"")+tt]():NaN}function set$1$1(et,tt,rt){et.isValid()&&!isNaN(rt)&&(tt==="FullYear"&&isLeapYear(et.year())&&et.month()===1&&et.date()===29?(rt=toInt(rt),et._d["set"+(et._isUTC?"UTC":"")+tt](rt,et.month(),daysInMonth(rt,et.month()))):et._d["set"+(et._isUTC?"UTC":"")+tt](rt))}function stringGet(et){return et=normalizeUnits(et),isFunction$5(this[et])?this[et]():this}function stringSet(et,tt){if(typeof et=="object"){et=normalizeObjectUnits(et);var rt=getPrioritizedUnits(et),nt,it=rt.length;for(nt=0;nt68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(et,tt,rt,nt,it,st,at){var ot;return et<100&&et>=0?(ot=new Date(et+400,tt,rt,nt,it,st,at),isFinite(ot.getFullYear())&&ot.setFullYear(et)):ot=new Date(et,tt,rt,nt,it,st,at),ot}function createUTCDate(et){var tt,rt;return et<100&&et>=0?(rt=Array.prototype.slice.call(arguments),rt[0]=et+400,tt=new Date(Date.UTC.apply(null,rt)),isFinite(tt.getUTCFullYear())&&tt.setUTCFullYear(et)):tt=new Date(Date.UTC.apply(null,arguments)),tt}function firstWeekOffset(et,tt,rt){var nt=7+tt-rt,it=(7+createUTCDate(et,0,nt).getUTCDay()-tt)%7;return-it+nt-1}function dayOfYearFromWeeks(et,tt,rt,nt,it){var st=(7+rt-nt)%7,at=firstWeekOffset(et,nt,it),ot=1+7*(tt-1)+st+at,lt,ut;return ot<=0?(lt=et-1,ut=daysInYear(lt)+ot):ot>daysInYear(et)?(lt=et+1,ut=ot-daysInYear(et)):(lt=et,ut=ot),{year:lt,dayOfYear:ut}}function weekOfYear(et,tt,rt){var nt=firstWeekOffset(et.year(),tt,rt),it=Math.floor((et.dayOfYear()-nt-1)/7)+1,st,at;return it<1?(at=et.year()-1,st=it+weeksInYear(at,tt,rt)):it>weeksInYear(et.year(),tt,rt)?(st=it-weeksInYear(et.year(),tt,rt),at=et.year()+1):(at=et.year(),st=it),{week:st,year:at}}function weeksInYear(et,tt,rt){var nt=firstWeekOffset(et,tt,rt),it=firstWeekOffset(et+1,tt,rt);return(daysInYear(et)-nt+it)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(et,tt,rt,nt){tt[nt.substr(0,1)]=toInt(et)});function localeWeek(et){return weekOfYear(et,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(et){var tt=this.localeData().week(this);return et==null?tt:this.add((et-tt)*7,"d")}function getSetISOWeek(et){var tt=weekOfYear(this,1,4).week;return et==null?tt:this.add((et-tt)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(et){return this.localeData().weekdaysMin(this,et)});addFormatToken("ddd",0,0,function(et){return this.localeData().weekdaysShort(this,et)});addFormatToken("dddd",0,0,function(et){return this.localeData().weekdays(this,et)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(et,tt){return tt.weekdaysMinRegex(et)});addRegexToken("ddd",function(et,tt){return tt.weekdaysShortRegex(et)});addRegexToken("dddd",function(et,tt){return tt.weekdaysRegex(et)});addWeekParseToken(["dd","ddd","dddd"],function(et,tt,rt,nt){var it=rt._locale.weekdaysParse(et,nt,rt._strict);it!=null?tt.d=it:getParsingFlags(rt).invalidWeekday=et});addWeekParseToken(["d","e","E"],function(et,tt,rt,nt){tt[nt]=toInt(et)});function parseWeekday(et,tt){return typeof et!="string"?et:isNaN(et)?(et=tt.weekdaysParse(et),typeof et=="number"?et:null):parseInt(et,10)}function parseIsoWeekday(et,tt){return typeof et=="string"?tt.weekdaysParse(et)%7||7:isNaN(et)?null:et}function shiftWeekdays(et,tt){return et.slice(tt,7).concat(et.slice(0,tt))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(et,tt){var rt=isArray$5(this._weekdays)?this._weekdays:this._weekdays[et&&et!==!0&&this._weekdays.isFormat.test(tt)?"format":"standalone"];return et===!0?shiftWeekdays(rt,this._week.dow):et?rt[et.day()]:rt}function localeWeekdaysShort(et){return et===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):et?this._weekdaysShort[et.day()]:this._weekdaysShort}function localeWeekdaysMin(et){return et===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):et?this._weekdaysMin[et.day()]:this._weekdaysMin}function handleStrictParse$1(et,tt,rt){var nt,it,st,at=et.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],nt=0;nt<7;++nt)st=createUTC([2e3,1]).day(nt),this._minWeekdaysParse[nt]=this.weekdaysMin(st,"").toLocaleLowerCase(),this._shortWeekdaysParse[nt]=this.weekdaysShort(st,"").toLocaleLowerCase(),this._weekdaysParse[nt]=this.weekdays(st,"").toLocaleLowerCase();return rt?tt==="dddd"?(it=indexOf.call(this._weekdaysParse,at),it!==-1?it:null):tt==="ddd"?(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1?it:null):(it=indexOf.call(this._minWeekdaysParse,at),it!==-1?it:null):tt==="dddd"?(it=indexOf.call(this._weekdaysParse,at),it!==-1||(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1)?it:(it=indexOf.call(this._minWeekdaysParse,at),it!==-1?it:null)):tt==="ddd"?(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1||(it=indexOf.call(this._weekdaysParse,at),it!==-1)?it:(it=indexOf.call(this._minWeekdaysParse,at),it!==-1?it:null)):(it=indexOf.call(this._minWeekdaysParse,at),it!==-1||(it=indexOf.call(this._weekdaysParse,at),it!==-1)?it:(it=indexOf.call(this._shortWeekdaysParse,at),it!==-1?it:null))}function localeWeekdaysParse(et,tt,rt){var nt,it,st;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,et,tt,rt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),nt=0;nt<7;nt++){if(it=createUTC([2e3,1]).day(nt),rt&&!this._fullWeekdaysParse[nt]&&(this._fullWeekdaysParse[nt]=new RegExp("^"+this.weekdays(it,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[nt]=new RegExp("^"+this.weekdaysShort(it,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[nt]=new RegExp("^"+this.weekdaysMin(it,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[nt]||(st="^"+this.weekdays(it,"")+"|^"+this.weekdaysShort(it,"")+"|^"+this.weekdaysMin(it,""),this._weekdaysParse[nt]=new RegExp(st.replace(".",""),"i")),rt&&tt==="dddd"&&this._fullWeekdaysParse[nt].test(et))return nt;if(rt&&tt==="ddd"&&this._shortWeekdaysParse[nt].test(et))return nt;if(rt&&tt==="dd"&&this._minWeekdaysParse[nt].test(et))return nt;if(!rt&&this._weekdaysParse[nt].test(et))return nt}}function getSetDayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;var tt=this._isUTC?this._d.getUTCDay():this._d.getDay();return et!=null?(et=parseWeekday(et,this.localeData()),this.add(et-tt,"d")):tt}function getSetLocaleDayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;var tt=(this.day()+7-this.localeData()._week.dow)%7;return et==null?tt:this.add(et-tt,"d")}function getSetISODayOfWeek(et){if(!this.isValid())return et!=null?this:NaN;if(et!=null){var tt=parseIsoWeekday(et,this.localeData());return this.day(this.day()%7?tt:tt-7)}else return this.day()||7}function weekdaysRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&et?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&et?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(et){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&et?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function et(dt,bt){return bt.length-dt.length}var tt=[],rt=[],nt=[],it=[],st,at,ot,lt,ut;for(st=0;st<7;st++)at=createUTC([2e3,1]).day(st),ot=regexEscape(this.weekdaysMin(at,"")),lt=regexEscape(this.weekdaysShort(at,"")),ut=regexEscape(this.weekdays(at,"")),tt.push(ot),rt.push(lt),nt.push(ut),it.push(ot),it.push(lt),it.push(ut);tt.sort(et),rt.sort(et),nt.sort(et),it.sort(et),this._weekdaysRegex=new RegExp("^("+it.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+rt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+tt.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(et,tt){addFormatToken(et,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),tt)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(et,tt){return tt._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(et,tt,rt){var nt=toInt(et);tt[HOUR]=nt===24?0:nt});addParseToken(["a","A"],function(et,tt,rt){rt._isPm=rt._locale.isPM(et),rt._meridiem=et});addParseToken(["h","hh"],function(et,tt,rt){tt[HOUR]=toInt(et),getParsingFlags(rt).bigHour=!0});addParseToken("hmm",function(et,tt,rt){var nt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt)),getParsingFlags(rt).bigHour=!0});addParseToken("hmmss",function(et,tt,rt){var nt=et.length-4,it=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt,2)),tt[SECOND]=toInt(et.substr(it)),getParsingFlags(rt).bigHour=!0});addParseToken("Hmm",function(et,tt,rt){var nt=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt))});addParseToken("Hmmss",function(et,tt,rt){var nt=et.length-4,it=et.length-2;tt[HOUR]=toInt(et.substr(0,nt)),tt[MINUTE]=toInt(et.substr(nt,2)),tt[SECOND]=toInt(et.substr(it))});function localeIsPM(et){return(et+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(et,tt,rt){return et>11?rt?"pm":"PM":rt?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(et,tt){var rt,nt=Math.min(et.length,tt.length);for(rt=0;rt0;){if(it=loadLocale(st.slice(0,rt).join("-")),it)return it;if(nt&&nt.length>=rt&&commonPrefix(st,nt)>=rt-1)break;rt--}tt++}return globalLocale}function isLocaleNameSane(et){return et.match("^[^/\\\\]*$")!=null}function loadLocale(et){var tt=null,rt;if(locales[et]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(et))try{tt=globalLocale._abbr,rt=require,rt("./locale/"+et),getSetGlobalLocale(tt)}catch{locales[et]=null}return locales[et]}function getSetGlobalLocale(et,tt){var rt;return et&&(isUndefined$1(tt)?rt=getLocale(et):rt=defineLocale(et,tt),rt?globalLocale=rt:typeof console<"u"&&console.warn&&console.warn("Locale "+et+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(et,tt){if(tt!==null){var rt,nt=baseConfig;if(tt.abbr=et,locales[et]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),nt=locales[et]._config;else if(tt.parentLocale!=null)if(locales[tt.parentLocale]!=null)nt=locales[tt.parentLocale]._config;else if(rt=loadLocale(tt.parentLocale),rt!=null)nt=rt._config;else return localeFamilies[tt.parentLocale]||(localeFamilies[tt.parentLocale]=[]),localeFamilies[tt.parentLocale].push({name:et,config:tt}),null;return locales[et]=new Locale(mergeConfigs(nt,tt)),localeFamilies[et]&&localeFamilies[et].forEach(function(it){defineLocale(it.name,it.config)}),getSetGlobalLocale(et),locales[et]}else return delete locales[et],null}function updateLocale(et,tt){if(tt!=null){var rt,nt,it=baseConfig;locales[et]!=null&&locales[et].parentLocale!=null?locales[et].set(mergeConfigs(locales[et]._config,tt)):(nt=loadLocale(et),nt!=null&&(it=nt._config),tt=mergeConfigs(it,tt),nt==null&&(tt.abbr=et),rt=new Locale(tt),rt.parentLocale=locales[et],locales[et]=rt),getSetGlobalLocale(et)}else locales[et]!=null&&(locales[et].parentLocale!=null?(locales[et]=locales[et].parentLocale,et===getSetGlobalLocale()&&getSetGlobalLocale(et)):locales[et]!=null&&delete locales[et]);return locales[et]}function getLocale(et){var tt;if(et&&et._locale&&et._locale._abbr&&(et=et._locale._abbr),!et)return globalLocale;if(!isArray$5(et)){if(tt=loadLocale(et),tt)return tt;et=[et]}return chooseLocale(et)}function listLocales(){return keys$4(locales)}function checkOverflow(et){var tt,rt=et._a;return rt&&getParsingFlags(et).overflow===-2&&(tt=rt[MONTH]<0||rt[MONTH]>11?MONTH:rt[DATE]<1||rt[DATE]>daysInMonth(rt[YEAR],rt[MONTH])?DATE:rt[HOUR]<0||rt[HOUR]>24||rt[HOUR]===24&&(rt[MINUTE]!==0||rt[SECOND]!==0||rt[MILLISECOND]!==0)?HOUR:rt[MINUTE]<0||rt[MINUTE]>59?MINUTE:rt[SECOND]<0||rt[SECOND]>59?SECOND:rt[MILLISECOND]<0||rt[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(et)._overflowDayOfYear&&(ttDATE)&&(tt=DATE),getParsingFlags(et)._overflowWeeks&&tt===-1&&(tt=WEEK),getParsingFlags(et)._overflowWeekday&&tt===-1&&(tt=WEEKDAY),getParsingFlags(et).overflow=tt),et}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(et){var tt,rt,nt=et._i,it=extendedIsoRegex.exec(nt)||basicIsoRegex.exec(nt),st,at,ot,lt,ut=isoDates.length,dt=isoTimes.length;if(it){for(getParsingFlags(et).iso=!0,tt=0,rt=ut;ttdaysInYear(at)||et._dayOfYear===0)&&(getParsingFlags(et)._overflowDayOfYear=!0),rt=createUTCDate(at,0,et._dayOfYear),et._a[MONTH]=rt.getUTCMonth(),et._a[DATE]=rt.getUTCDate()),tt=0;tt<3&&et._a[tt]==null;++tt)et._a[tt]=nt[tt]=it[tt];for(;tt<7;tt++)et._a[tt]=nt[tt]=et._a[tt]==null?tt===2?1:0:et._a[tt];et._a[HOUR]===24&&et._a[MINUTE]===0&&et._a[SECOND]===0&&et._a[MILLISECOND]===0&&(et._nextDay=!0,et._a[HOUR]=0),et._d=(et._useUTC?createUTCDate:createDate).apply(null,nt),st=et._useUTC?et._d.getUTCDay():et._d.getDay(),et._tzm!=null&&et._d.setUTCMinutes(et._d.getUTCMinutes()-et._tzm),et._nextDay&&(et._a[HOUR]=24),et._w&&typeof et._w.d<"u"&&et._w.d!==st&&(getParsingFlags(et).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(et){var tt,rt,nt,it,st,at,ot,lt,ut;tt=et._w,tt.GG!=null||tt.W!=null||tt.E!=null?(st=1,at=4,rt=defaults(tt.GG,et._a[YEAR],weekOfYear(createLocal(),1,4).year),nt=defaults(tt.W,1),it=defaults(tt.E,1),(it<1||it>7)&&(lt=!0)):(st=et._locale._week.dow,at=et._locale._week.doy,ut=weekOfYear(createLocal(),st,at),rt=defaults(tt.gg,et._a[YEAR],ut.year),nt=defaults(tt.w,ut.week),tt.d!=null?(it=tt.d,(it<0||it>6)&&(lt=!0)):tt.e!=null?(it=tt.e+st,(tt.e<0||tt.e>6)&&(lt=!0)):it=st),nt<1||nt>weeksInYear(rt,st,at)?getParsingFlags(et)._overflowWeeks=!0:lt!=null?getParsingFlags(et)._overflowWeekday=!0:(ot=dayOfYearFromWeeks(rt,nt,it,st,at),et._a[YEAR]=ot.year,et._dayOfYear=ot.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(et){if(et._f===hooks.ISO_8601){configFromISO(et);return}if(et._f===hooks.RFC_2822){configFromRFC2822(et);return}et._a=[],getParsingFlags(et).empty=!0;var tt=""+et._i,rt,nt,it,st,at,ot=tt.length,lt=0,ut,dt;for(it=expandFormat(et._f,et._locale).match(formattingTokens)||[],dt=it.length,rt=0;rt0&&getParsingFlags(et).unusedInput.push(at),tt=tt.slice(tt.indexOf(nt)+nt.length),lt+=nt.length),formatTokenFunctions[st]?(nt?getParsingFlags(et).empty=!1:getParsingFlags(et).unusedTokens.push(st),addTimeToArrayFromToken(st,nt,et)):et._strict&&!nt&&getParsingFlags(et).unusedTokens.push(st);getParsingFlags(et).charsLeftOver=ot-lt,tt.length>0&&getParsingFlags(et).unusedInput.push(tt),et._a[HOUR]<=12&&getParsingFlags(et).bigHour===!0&&et._a[HOUR]>0&&(getParsingFlags(et).bigHour=void 0),getParsingFlags(et).parsedDateParts=et._a.slice(0),getParsingFlags(et).meridiem=et._meridiem,et._a[HOUR]=meridiemFixWrap(et._locale,et._a[HOUR],et._meridiem),ut=getParsingFlags(et).era,ut!==null&&(et._a[YEAR]=et._locale.erasConvertYear(ut,et._a[YEAR])),configFromArray(et),checkOverflow(et)}function meridiemFixWrap(et,tt,rt){var nt;return rt==null?tt:et.meridiemHour!=null?et.meridiemHour(tt,rt):(et.isPM!=null&&(nt=et.isPM(rt),nt&&tt<12&&(tt+=12),!nt&&tt===12&&(tt=0)),tt)}function configFromStringAndArray(et){var tt,rt,nt,it,st,at,ot=!1,lt=et._f.length;if(lt===0){getParsingFlags(et).invalidFormat=!0,et._d=new Date(NaN);return}for(it=0;itthis?this:et:createInvalid()});function pickBy(et,tt){var rt,nt;if(tt.length===1&&isArray$5(tt[0])&&(tt=tt[0]),!tt.length)return createLocal();for(rt=tt[0],nt=1;ntthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined$1(this._isDSTShifted))return this._isDSTShifted;var et={},tt;return copyConfig(et,this),et=prepareConfig(et),et._a?(tt=et._isUTC?createUTC(et._a):createLocal(et._a),this._isDSTShifted=this.isValid()&&compareArrays(et._a,tt.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(et,tt){var rt=et,nt=null,it,st,at;return isDuration(et)?rt={ms:et._milliseconds,d:et._days,M:et._months}:isNumber$1(et)||!isNaN(+et)?(rt={},tt?rt[tt]=+et:rt.milliseconds=+et):(nt=aspNetRegex.exec(et))?(it=nt[1]==="-"?-1:1,rt={y:0,d:toInt(nt[DATE])*it,h:toInt(nt[HOUR])*it,m:toInt(nt[MINUTE])*it,s:toInt(nt[SECOND])*it,ms:toInt(absRound(nt[MILLISECOND]*1e3))*it}):(nt=isoRegex.exec(et))?(it=nt[1]==="-"?-1:1,rt={y:parseIso(nt[2],it),M:parseIso(nt[3],it),w:parseIso(nt[4],it),d:parseIso(nt[5],it),h:parseIso(nt[6],it),m:parseIso(nt[7],it),s:parseIso(nt[8],it)}):rt==null?rt={}:typeof rt=="object"&&("from"in rt||"to"in rt)&&(at=momentsDifference(createLocal(rt.from),createLocal(rt.to)),rt={},rt.ms=at.milliseconds,rt.M=at.months),st=new Duration(rt),isDuration(et)&&hasOwnProp(et,"_locale")&&(st._locale=et._locale),isDuration(et)&&hasOwnProp(et,"_isValid")&&(st._isValid=et._isValid),st}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(et,tt){var rt=et&&parseFloat(et.replace(",","."));return(isNaN(rt)?0:rt)*tt}function positiveMomentsDifference(et,tt){var rt={};return rt.months=tt.month()-et.month()+(tt.year()-et.year())*12,et.clone().add(rt.months,"M").isAfter(tt)&&--rt.months,rt.milliseconds=+tt-+et.clone().add(rt.months,"M"),rt}function momentsDifference(et,tt){var rt;return et.isValid()&&tt.isValid()?(tt=cloneWithOffset(tt,et),et.isBefore(tt)?rt=positiveMomentsDifference(et,tt):(rt=positiveMomentsDifference(tt,et),rt.milliseconds=-rt.milliseconds,rt.months=-rt.months),rt):{milliseconds:0,months:0}}function createAdder(et,tt){return function(rt,nt){var it,st;return nt!==null&&!isNaN(+nt)&&(deprecateSimple(tt,"moment()."+tt+"(period, number) is deprecated. Please use moment()."+tt+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),st=rt,rt=nt,nt=st),it=createDuration(rt,nt),addSubtract(this,it,et),this}}function addSubtract(et,tt,rt,nt){var it=tt._milliseconds,st=absRound(tt._days),at=absRound(tt._months);et.isValid()&&(nt=nt??!0,at&&setMonth(et,get$1(et,"Month")+at*rt),st&&set$1$1(et,"Date",get$1(et,"Date")+st*rt),it&&et._d.setTime(et._d.valueOf()+it*rt),nt&&hooks.updateOffset(et,st||at))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString$1(et){return typeof et=="string"||et instanceof String}function isMomentInput(et){return isMoment(et)||isDate$1(et)||isString$1(et)||isNumber$1(et)||isNumberOrStringArray(et)||isMomentInputObject(et)||et===null||et===void 0}function isMomentInputObject(et){var tt=isObject$a(et)&&!isObjectEmpty$1(et),rt=!1,nt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],it,st,at=nt.length;for(it=0;itrt.valueOf():rt.valueOf()9999?formatMoment(rt,tt?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$5(Date.prototype.toISOString)?tt?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(rt,"Z")):formatMoment(rt,tt?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var et="moment",tt="",rt,nt,it,st;return this.isLocal()||(et=this.utcOffset()===0?"moment.utc":"moment.parseZone",tt="Z"),rt="["+et+'("]',nt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",it="-MM-DD[T]HH:mm:ss.SSS",st=tt+'[")]',this.format(rt+nt+it+st)}function format(et){et||(et=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var tt=formatMoment(this,et);return this.localeData().postformat(tt)}function from$1(et,tt){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({to:this,from:et}).locale(this.locale()).humanize(!tt):this.localeData().invalidDate()}function fromNow(et){return this.from(createLocal(),et)}function to(et,tt){return this.isValid()&&(isMoment(et)&&et.isValid()||createLocal(et).isValid())?createDuration({from:this,to:et}).locale(this.locale()).humanize(!tt):this.localeData().invalidDate()}function toNow(et){return this.to(createLocal(),et)}function locale(et){var tt;return et===void 0?this._locale._abbr:(tt=getLocale(et),tt!=null&&(this._locale=tt),this)}var lang=deprecate$1("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(et){return et===void 0?this.localeData():this.locale(et)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(et,tt){return(et%tt+tt)%tt}function localStartOfDate(et,tt,rt){return et<100&&et>=0?new Date(et+400,tt,rt)-MS_PER_400_YEARS:new Date(et,tt,rt).valueOf()}function utcStartOfDate(et,tt,rt){return et<100&&et>=0?Date.UTC(et+400,tt,rt)-MS_PER_400_YEARS:Date.UTC(et,tt,rt)}function startOf(et){var tt,rt;if(et=normalizeUnits(et),et===void 0||et==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":tt=rt(this.year(),0,1);break;case"quarter":tt=rt(this.year(),this.month()-this.month()%3,1);break;case"month":tt=rt(this.year(),this.month(),1);break;case"week":tt=rt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":tt=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":tt=rt(this.year(),this.month(),this.date());break;case"hour":tt=this._d.valueOf(),tt-=mod$1(tt+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":tt=this._d.valueOf(),tt-=mod$1(tt,MS_PER_MINUTE);break;case"second":tt=this._d.valueOf(),tt-=mod$1(tt,MS_PER_SECOND);break}return this._d.setTime(tt),hooks.updateOffset(this,!0),this}function endOf(et){var tt,rt;if(et=normalizeUnits(et),et===void 0||et==="millisecond"||!this.isValid())return this;switch(rt=this._isUTC?utcStartOfDate:localStartOfDate,et){case"year":tt=rt(this.year()+1,0,1)-1;break;case"quarter":tt=rt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":tt=rt(this.year(),this.month()+1,1)-1;break;case"week":tt=rt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":tt=rt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":tt=rt(this.year(),this.month(),this.date()+1)-1;break;case"hour":tt=this._d.valueOf(),tt+=MS_PER_HOUR-mod$1(tt+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":tt=this._d.valueOf(),tt+=MS_PER_MINUTE-mod$1(tt,MS_PER_MINUTE)-1;break;case"second":tt=this._d.valueOf(),tt+=MS_PER_SECOND-mod$1(tt,MS_PER_SECOND)-1;break}return this._d.setTime(tt),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$3(){var et=this;return[et.year(),et.month(),et.date(),et.hour(),et.minute(),et.second(),et.millisecond()]}function toObject$1(){var et=this;return{years:et.year(),months:et.month(),date:et.date(),hours:et.hours(),minutes:et.minutes(),seconds:et.seconds(),milliseconds:et.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(et,tt,rt,nt){var it=rt._locale.erasParse(et,nt,rt._strict);it?getParsingFlags(rt).era=it:getParsingFlags(rt).invalidEra=et});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(et,tt,rt,nt){var it;rt._locale._eraYearOrdinalRegex&&(it=et.match(rt._locale._eraYearOrdinalRegex)),rt._locale.eraYearOrdinalParse?tt[YEAR]=rt._locale.eraYearOrdinalParse(et,it):tt[YEAR]=parseInt(et,10)});function localeEras(et,tt){var rt,nt,it,st=this._eras||getLocale("en")._eras;for(rt=0,nt=st.length;rt=0)return st[nt]}function localeErasConvertYear(et,tt){var rt=et.since<=et.until?1:-1;return tt===void 0?hooks(et.since).year():hooks(et.since).year()+(tt-et.offset)*rt}function getEraName(){var et,tt,rt,nt=this.localeData().eras();for(et=0,tt=nt.length;etst&&(tt=st),setWeekAll.call(this,et,tt,rt,nt,it))}function setWeekAll(et,tt,rt,nt,it){var st=dayOfYearFromWeeks(et,tt,rt,nt,it),at=createUTCDate(st.year,0,st.dayOfYear);return this.year(at.getUTCFullYear()),this.month(at.getUTCMonth()),this.date(at.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(et,tt){tt[MONTH]=(toInt(et)-1)*3});function getSetQuarter(et){return et==null?Math.ceil((this.month()+1)/3):this.month((et-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(et,tt){return et?tt._dayOfMonthOrdinalParse||tt._ordinalParse:tt._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(et,tt){tt[DATE]=toInt(et.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(et,tt,rt){rt._dayOfYear=toInt(et)});function getSetDayOfYear(et){var tt=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return et==null?tt:this.add(et-tt,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token$1,getSetMillisecond;for(token$1="SSSS";token$1.length<=9;token$1+="S")addRegexToken(token$1,matchUnsigned);function parseMs(et,tt){tt[MILLISECOND]=toInt(("0."+et)*1e3)}for(token$1="S";token$1.length<=9;token$1+="S")addParseToken(token$1,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add;proto$1.calendar=calendar$1;proto$1.clone=clone;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format;proto$1.from=from$1;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract;proto$1.toArray=toArray$3;proto$1.toObject=toObject$1;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString$2;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate$1("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate$1("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate$1("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate$1("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate$1("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(et){return createLocal(et*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(et){return et}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set$1;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1$1(et,tt,rt,nt){var it=getLocale(),st=createUTC().set(nt,tt);return it[rt](st,et)}function listMonthsImpl(et,tt,rt){if(isNumber$1(et)&&(tt=et,et=void 0),et=et||"",tt!=null)return get$1$1(et,tt,rt,"month");var nt,it=[];for(nt=0;nt<12;nt++)it[nt]=get$1$1(et,nt,rt,"month");return it}function listWeekdaysImpl(et,tt,rt,nt){typeof et=="boolean"?(isNumber$1(tt)&&(rt=tt,tt=void 0),tt=tt||""):(tt=et,rt=tt,et=!1,isNumber$1(tt)&&(rt=tt,tt=void 0),tt=tt||"");var it=getLocale(),st=et?it._week.dow:0,at,ot=[];if(rt!=null)return get$1$1(tt,(rt+st)%7,nt,"day");for(at=0;at<7;at++)ot[at]=get$1$1(tt,(at+st)%7,nt,"day");return ot}function listMonths(et,tt){return listMonthsImpl(et,tt,"months")}function listMonthsShort(et,tt){return listMonthsImpl(et,tt,"monthsShort")}function listWeekdays(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdays")}function listWeekdaysShort(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdaysShort")}function listWeekdaysMin(et,tt,rt){return listWeekdaysImpl(et,tt,rt,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(et){var tt=et%10,rt=toInt(et%100/10)===1?"th":tt===1?"st":tt===2?"nd":tt===3?"rd":"th";return et+rt}});hooks.lang=deprecate$1("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate$1("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs$1(){var et=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),et.milliseconds=mathAbs(et.milliseconds),et.seconds=mathAbs(et.seconds),et.minutes=mathAbs(et.minutes),et.hours=mathAbs(et.hours),et.months=mathAbs(et.months),et.years=mathAbs(et.years),this}function addSubtract$1(et,tt,rt,nt){var it=createDuration(tt,rt);return et._milliseconds+=nt*it._milliseconds,et._days+=nt*it._days,et._months+=nt*it._months,et._bubble()}function add$1(et,tt){return addSubtract$1(this,et,tt,1)}function subtract$1(et,tt){return addSubtract$1(this,et,tt,-1)}function absCeil(et){return et<0?Math.floor(et):Math.ceil(et)}function bubble(){var et=this._milliseconds,tt=this._days,rt=this._months,nt=this._data,it,st,at,ot,lt;return et>=0&&tt>=0&&rt>=0||et<=0&&tt<=0&&rt<=0||(et+=absCeil(monthsToDays(rt)+tt)*864e5,tt=0,rt=0),nt.milliseconds=et%1e3,it=absFloor(et/1e3),nt.seconds=it%60,st=absFloor(it/60),nt.minutes=st%60,at=absFloor(st/60),nt.hours=at%24,tt+=absFloor(at/24),lt=absFloor(daysToMonths(tt)),rt+=lt,tt-=absCeil(monthsToDays(lt)),ot=absFloor(rt/12),rt%=12,nt.days=tt,nt.months=rt,nt.years=ot,this}function daysToMonths(et){return et*4800/146097}function monthsToDays(et){return et*146097/4800}function as(et){if(!this.isValid())return NaN;var tt,rt,nt=this._milliseconds;if(et=normalizeUnits(et),et==="month"||et==="quarter"||et==="year")switch(tt=this._days+nt/864e5,rt=this._months+daysToMonths(tt),et){case"month":return rt;case"quarter":return rt/3;case"year":return rt/12}else switch(tt=this._days+Math.round(monthsToDays(this._months)),et){case"week":return tt/7+nt/6048e5;case"day":return tt+nt/864e5;case"hour":return tt*24+nt/36e5;case"minute":return tt*1440+nt/6e4;case"second":return tt*86400+nt/1e3;case"millisecond":return Math.floor(tt*864e5)+nt;default:throw new Error("Unknown unit "+et)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(et){return function(){return this.as(et)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1(){return createDuration(this)}function get$2(et){return et=normalizeUnits(et),this.isValid()?this[et+"s"]():NaN}function makeGetter(et){return function(){return this.isValid()?this._data[et]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round$1=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(et,tt,rt,nt,it){return it.relativeTime(tt||1,!!rt,et,nt)}function relativeTime$1(et,tt,rt,nt){var it=createDuration(et).abs(),st=round$1(it.as("s")),at=round$1(it.as("m")),ot=round$1(it.as("h")),lt=round$1(it.as("d")),ut=round$1(it.as("M")),dt=round$1(it.as("w")),bt=round$1(it.as("y")),gt=st<=rt.ss&&["s",st]||st0,gt[4]=nt,substituteTimeAgo.apply(null,gt)}function getSetRelativeTimeRounding(et){return et===void 0?round$1:typeof et=="function"?(round$1=et,!0):!1}function getSetRelativeTimeThreshold(et,tt){return thresholds[et]===void 0?!1:tt===void 0?thresholds[et]:(thresholds[et]=tt,et==="s"&&(thresholds.ss=tt-1),!0)}function humanize(et,tt){if(!this.isValid())return this.localeData().invalidDate();var rt=!1,nt=thresholds,it,st;return typeof et=="object"&&(tt=et,et=!1),typeof et=="boolean"&&(rt=et),typeof tt=="object"&&(nt=Object.assign({},thresholds,tt),tt.s!=null&&tt.ss==null&&(nt.ss=tt.s-1)),it=this.localeData(),st=relativeTime$1(this,!rt,nt,it),rt&&(st=it.pastFuture(+this,st)),it.postformat(st)}var abs$1$1=Math.abs;function sign$2(et){return(et>0)-(et<0)||+et}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var et=abs$1$1(this._milliseconds)/1e3,tt=abs$1$1(this._days),rt=abs$1$1(this._months),nt,it,st,at,ot=this.asSeconds(),lt,ut,dt,bt;return ot?(nt=absFloor(et/60),it=absFloor(nt/60),et%=60,nt%=60,st=absFloor(rt/12),rt%=12,at=et?et.toFixed(3).replace(/\.?0+$/,""):"",lt=ot<0?"-":"",ut=sign$2(this._months)!==sign$2(ot)?"-":"",dt=sign$2(this._days)!==sign$2(ot)?"-":"",bt=sign$2(this._milliseconds)!==sign$2(ot)?"-":"",lt+"P"+(st?ut+st+"Y":"")+(rt?ut+rt+"M":"")+(tt?dt+tt+"D":"")+(it||nt||et?"T":"")+(it?bt+it+"H":"")+(nt?bt+nt+"M":"")+(et?bt+at+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs$1;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate$1("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(et,tt,rt){rt._d=new Date(parseFloat(et)*1e3)});addParseToken("x",function(et,tt,rt){rt._d=new Date(toInt(et))});//! moment.js +hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min;hooks.max=max$1;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$1;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const{origin}=window.location;hooks.relativeTimeThreshold("h",24);hooks.updateLocale("en",{relativeTime:{s:et=>`${et} ${et>1?"seconds":"second"}`,m:"1 minute",h:et=>`${et} ${et>1?"hours":"hour"}`,d:"1 day",M:"1 month"}});const isDevelopment=origin==="http://localhost:3000"||origin==="http://localhost:3001"||origin==="https://sphinx-jarvis-david.sphinx1.repl.co";API_URL.includes("boltwall");const GRAPH_FOG_COLOR="blue",GRAPH_GROUND_COLOR=13421772,GRAPH_LIGHT_INTENSITY=.8,NODE_ADD_ERROR="Submission failed, please try again.",NODE_RELATIVE_HIGHLIGHT_COLORS={children:{nodeColor:"green",segmentColor:4063109},guests:{nodeColor:"purple",segmentColor:14504191},topics:{nodeColor:"purple",segmentColor:5273842},pathway:{nodeColor:"#ffffff",segmentColor:16777215}},LINK="link",TWITTER_HANDLE="twitter_handle",GITHUB_REPOSITORY="github_repository",YOUTUBE_CHANNEL="youtube_channel",WEB_PAGE="web_page",RSS="rss",TWITTER_SOURCE="tweet",DOCUMENT="document",isE2E=!!{}.VITE_APP_IS_E2E,requiredRule={required:{message:"The field is required",value:!0}},nodes=[];function getCurrentUser(){if(window.CYPRESS_USER){const et=window.CYPRESS_USER;let tt;for(let rt=0;rtenableSphinx(),getLsat:async et=>getLsatSphinx(et),signMessage:async et=>signMessage(et),setBudget:async()=>setBudget(),saveLsat:async(et,tt,rt)=>saveLsat(et,tt,rt)},isSphinx=()=>sessionStorage.getItem("isSphinx")==="true",getLSat=async()=>{var et;try{const tt=(et=window.localStorage)==null?void 0:et.getItem("lsat");if(tt){const rt=JSON.parse(tt);return lsatToken(rt.macaroon,rt.preimage)}if(isSphinx()){let rt;const{host:nt}=window.location;return isE2E?rt=await sphinxBridge.getLsat(nt):rt=await distExports$1.getLsat(nt),rt.macaroon?(window.localStorage.setItem("lsat",JSON.stringify({macaroon:rt.macaroon,identifier:rt.identifier,preimage:rt.preimage})),lsatToken(rt.macaroon,rt.preimage)):""}return""}catch(tt){return console.warn(tt),""}};function lsatToken(et,tt){return`LSAT ${et}:${tt}`}var lodash={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */lodash.exports;(function(et,tt){(function(){var rt,nt="4.17.21",it=200,st="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ot="Invalid `variable` option passed into `_.template`",lt="__lodash_hash_undefined__",ut=500,dt="__lodash_placeholder__",bt=1,gt=2,kt=4,pt=1,yt=2,$t=1,mt=2,wt=4,St=8,Bt=16,Ft=32,Dt=64,zt=128,Ht=256,Wt=512,lr=30,qt="...",Ot=800,Mt=16,ht=1,Et=2,Tt=3,Rt=1/0,At=9007199254740991,Pt=17976931348623157e292,It=0/0,Ct=4294967295,xt=Ct-1,Lt=Ct>>>1,tr=[["ary",zt],["bind",$t],["bindKey",mt],["curry",St],["curryRight",Bt],["flip",Wt],["partial",Ft],["partialRight",Dt],["rearg",Ht]],pr="[object Arguments]",Kt="[object Array]",Qt="[object AsyncFunction]",Zt="[object Boolean]",ur="[object Date]",_r="[object DOMException]",er="[object Error]",Jt="[object Function]",Ar="[object GeneratorFunction]",Er="[object Map]",Dr="[object Number]",Xr="[object Null]",Vr="[object Object]",wr="[object Promise]",br="[object Proxy]",or="[object RegExp]",xr="[object Set]",Pr="[object String]",Or="[object Symbol]",rr="[object Undefined]",gr="[object WeakMap]",Ir="[object WeakSet]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Vt="[object Float32Array]",ir="[object Float64Array]",kr="[object Int8Array]",$r="[object Int16Array]",Br="[object Int32Array]",an="[object Uint8Array]",ln="[object Uint8ClampedArray]",rn="[object Uint16Array]",kn="[object Uint32Array]",fn=/\b__p \+= '';/g,gn=/\b(__p \+=) '' \+/g,fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,hs=RegExp(Ln.source),Cn=RegExp(En.source),xn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,_n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ls=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dn=/[\\^$.*+?()[\]{}|]/g,cs=RegExp(dn.source),Xt=/^\s+/,ar=/\s/,cr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,dr=/,? & /,Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cr=/[()=,{}\[\]\/\s]/,Nr=/\\(\\)?/g,Yr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,hn=/^\[object .+?Constructor\]$/,Tn=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,Rn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",Bn="\\u0300-\\u036f",pn="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",un=Bn+pn+wn,yn="\\u2700-\\u27bf",mn="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",Ur="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",en=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gr="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",sn=cn+Ur+jr+en,On="['’]",zn="["+$n+"]",Gn="["+sn+"]",Hn="["+un+"]",Tr="\\d+",Yn="["+yn+"]",es="["+mn+"]",ts="[^"+$n+sn+Tr+yn+mn+Gr+"]",Wn="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Hn+"|"+Wn+")",Qn="[^"+$n+"]",vs="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Gr+"]",bs="\\u200d",xs="(?:"+es+"|"+ts+")",Ss="(?:"+ps+"|"+ts+")",As="(?:"+On+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+On+"(?:D|LL|M|RE|S|T|VE))?",Is=rs+"?",$u="["+Zr+"]?",Lp="(?:"+bs+"(?:"+[Qn,vs,os].join("|")+")"+$u+Is+")*",Dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tu=$u+Is+Lp,jp="(?:"+[Yn,vs,os].join("|")+")"+Tu,Vp="(?:"+[Qn+Hn+"?",Hn,vs,os,zn].join("|")+")",Hp=RegExp(On,"g"),zp=RegExp(Hn,"g"),X0=RegExp(Wn+"(?="+Wn+")|"+Vp+Tu,"g"),Gp=RegExp([ps+"?"+es+"+"+As+"(?="+[Gn,ps,"$"].join("|")+")",Ss+"+"+Ps+"(?="+[Gn,ps+xs,"$"].join("|")+")",ps+"?"+xs+"+"+As,ps+"+"+Ps,Up,Dp,Tr,jp].join("|"),"g"),Wp=RegExp("["+bs+$n+un+Zr+"]"),qp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yp=-1,ws={};ws[Vt]=ws[ir]=ws[kr]=ws[$r]=ws[Br]=ws[an]=ws[ln]=ws[rn]=ws[kn]=!0,ws[pr]=ws[Kt]=ws[Yt]=ws[Zt]=ws[Ut]=ws[ur]=ws[er]=ws[Jt]=ws[Er]=ws[Dr]=ws[Vr]=ws[or]=ws[xr]=ws[Pr]=ws[gr]=!1;var gs={};gs[pr]=gs[Kt]=gs[Yt]=gs[Ut]=gs[Zt]=gs[ur]=gs[Vt]=gs[ir]=gs[kr]=gs[$r]=gs[Br]=gs[Er]=gs[Dr]=gs[Vr]=gs[or]=gs[xr]=gs[Pr]=gs[Or]=gs[an]=gs[ln]=gs[rn]=gs[kn]=!0,gs[er]=gs[Jt]=gs[gr]=!1;var Xp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zp={"&":"&","<":"<",">":">",'"':""","'":"'"},Jp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ey=parseFloat,ty=parseInt,Au=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ry=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Au||ry||Function("return this")(),Z0=tt&&!tt.nodeType&&tt,$o=Z0&&!0&&et&&!et.nodeType&&et,Pu=$o&&$o.exports===Z0,J0=Pu&&Au.process,Zs=function(){try{var Fr=$o&&$o.require&&$o.require("util").types;return Fr||J0&&J0.binding&&J0.binding("util")}catch{}}(),Iu=Zs&&Zs.isArrayBuffer,Bu=Zs&&Zs.isDate,Mu=Zs&&Zs.isMap,Cu=Zs&&Zs.isRegExp,Ru=Zs&&Zs.isSet,Ou=Zs&&Zs.isTypedArray;function Gs(Fr,Wr,Hr){switch(Hr.length){case 0:return Fr.call(Wr);case 1:return Fr.call(Wr,Hr[0]);case 2:return Fr.call(Wr,Hr[0],Hr[1]);case 3:return Fr.call(Wr,Hr[0],Hr[1],Hr[2])}return Fr.apply(Wr,Hr)}function ny(Fr,Wr,Hr,Sn){for(var qn=-1,us=Fr==null?0:Fr.length;++qn-1}function Q0(Fr,Wr,Hr){for(var Sn=-1,qn=Fr==null?0:Fr.length;++Sn-1;);return Hr}function Hu(Fr,Wr){for(var Hr=Fr.length;Hr--&&Oo(Wr,Fr[Hr],0)>-1;);return Hr}function hy(Fr,Wr){for(var Hr=Fr.length,Sn=0;Hr--;)Fr[Hr]===Wr&&++Sn;return Sn}var dy=_l(Xp),py=_l(Zp);function yy(Fr){return"\\"+Qp[Fr]}function my(Fr,Wr){return Fr==null?rt:Fr[Wr]}function Fo(Fr){return Wp.test(Fr)}function gy(Fr){return qp.test(Fr)}function vy(Fr){for(var Wr,Hr=[];!(Wr=Fr.next()).done;)Hr.push(Wr.value);return Hr}function Tl(Fr){var Wr=-1,Hr=Array(Fr.size);return Fr.forEach(function(Sn,qn){Hr[++Wr]=[qn,Sn]}),Hr}function zu(Fr,Wr){return function(Hr){return Fr(Wr(Hr))}}function bo(Fr,Wr){for(var Hr=-1,Sn=Fr.length,qn=0,us=[];++Hr-1}function s2(ct,vt){var Nt=this.__data__,Gt=T0(Nt,ct);return Gt<0?(++this.size,Nt.push([ct,vt])):Nt[Gt][1]=vt,this}oo.prototype.clear=t2,oo.prototype.delete=r2,oo.prototype.get=n2,oo.prototype.has=i2,oo.prototype.set=s2;function fo(ct){var vt=-1,Nt=ct==null?0:ct.length;for(this.clear();++vt=vt?ct:vt)),ct}function ga(ct,vt,Nt,Gt,nr,vr){var Sr,Mr=vt&bt,Lr=vt>,Jr=vt&kt;if(Nt&&(Sr=nr?Nt(ct,Gt,nr,vr):Nt(ct)),Sr!==rt)return Sr;if(!ks(ct))return ct;var Qr=Kn(ct);if(Qr){if(Sr=cm(ct),!Mr)return js(ct,Sr)}else{var nn=Ns(ct),vn=nn==Jt||nn==Ar;if(So(ct))return $1(ct,Mr);if(nn==Vr||nn==pr||vn&&!nr){if(Sr=Lr||vn?{}:G1(ct),!Mr)return Lr?J2(ct,w2(Sr,ct)):Z2(ct,t1(Sr,ct))}else{if(!gs[nn])return nr?ct:{};Sr=um(ct,nn,Mr)}}vr||(vr=new eo);var Mn=vr.get(ct);if(Mn)return Mn;vr.set(ct,Sr),wp(ct)?ct.forEach(function(Un){Sr.add(ga(Un,vt,Nt,Un,ct,vr))}):bp(ct)&&ct.forEach(function(Un,_i){Sr.set(_i,ga(Un,vt,Nt,_i,ct,vr))});var Dn=Jr?Lr?ru:tu:Lr?Hs:Cs,Zn=Qr?rt:Dn(ct);return Js(Zn||ct,function(Un,_i){Zn&&(_i=Un,Un=ct[_i]),t0(Sr,_i,ga(Un,vt,Nt,_i,ct,vr))}),Sr}function _2(ct){var vt=Cs(ct);return function(Nt){return r1(Nt,ct,vt)}}function r1(ct,vt,Nt){var Gt=Nt.length;if(ct==null)return!Gt;for(ct=ms(ct);Gt--;){var nr=Nt[Gt],vr=vt[nr],Sr=ct[nr];if(Sr===rt&&!(nr in ct)||!vr(Sr))return!1}return!0}function n1(ct,vt,Nt){if(typeof ct!="function")throw new Qs(at);return f0(function(){ct.apply(rt,Nt)},vt)}function r0(ct,vt,Nt,Gt){var nr=-1,vr=c0,Sr=!0,Mr=ct.length,Lr=[],Jr=vt.length;if(!Mr)return Lr;Nt&&(vt=_s(vt,Ws(Nt))),Gt?(vr=Q0,Sr=!1):vt.length>=it&&(vr=Yo,Sr=!1,vt=new Po(vt));e:for(;++nrnr?0:nr+Nt),Gt=Gt===rt||Gt>nr?nr:Xn(Gt),Gt<0&&(Gt+=nr),Gt=Nt>Gt?0:kp(Gt);Nt0&&Nt(Mr)?vt>1?Os(Mr,vt-1,Nt,Gt,nr):vo(nr,Mr):Gt||(nr[nr.length]=Mr)}return nr}var Rl=M1(),a1=M1(!0);function io(ct,vt){return ct&&Rl(ct,vt,Cs)}function Ol(ct,vt){return ct&&a1(ct,vt,Cs)}function P0(ct,vt){return go(vt,function(Nt){return po(ct[Nt])})}function Bo(ct,vt){vt=ko(vt,ct);for(var Nt=0,Gt=vt.length;ct!=null&&Ntvt}function S2(ct,vt){return ct!=null&&ys.call(ct,vt)}function $2(ct,vt){return ct!=null&&vt in ms(ct)}function T2(ct,vt,Nt){return ct>=Fs(vt,Nt)&&ct=120&&Qr.length>=120)?new Po(Sr&&Qr):rt}Qr=ct[0];var nn=-1,vn=Mr[0];e:for(;++nn-1;)Mr!==ct&&x0.call(Mr,Lr,1),x0.call(ct,Lr,1);return ct}function g1(ct,vt){for(var Nt=ct?vt.length:0,Gt=Nt-1;Nt--;){var nr=vt[Nt];if(Nt==Gt||nr!==vr){var vr=nr;ho(nr)?x0.call(ct,nr,1):Yl(ct,nr)}}return ct}function Hl(ct,vt){return ct+k0(Ju()*(vt-ct+1))}function U2(ct,vt,Nt,Gt){for(var nr=-1,vr=Ms(_0((vt-ct)/(Nt||1)),0),Sr=Hr(vr);vr--;)Sr[Gt?vr:++nr]=ct,ct+=Nt;return Sr}function Gl(ct,vt){var Nt="";if(!ct||vt<1||vt>At)return Nt;do vt%2&&(Nt+=ct),vt=k0(vt/2),vt&&(ct+=ct);while(vt);return Nt}function Jn(ct,vt){return lu(K1(ct,vt,zs),ct+"")}function j2(ct){return e1(qo(ct))}function V2(ct,vt){var Nt=qo(ct);return U0(Nt,Io(vt,0,Nt.length))}function s0(ct,vt,Nt,Gt){if(!ks(ct))return ct;vt=ko(vt,ct);for(var nr=-1,vr=vt.length,Sr=vr-1,Mr=ct;Mr!=null&&++nrnr?0:nr+vt),Nt=Nt>nr?nr:Nt,Nt<0&&(Nt+=nr),nr=vt>Nt?0:Nt-vt>>>0,vt>>>=0;for(var vr=Hr(nr);++Gt>>1,Sr=ct[vr];Sr!==null&&!Ks(Sr)&&(Nt?Sr<=vt:Sr=it){var Jr=vt?null:rm(ct);if(Jr)return h0(Jr);Sr=!1,nr=Yo,Lr=new Po}else Lr=vt?[]:Mr;e:for(;++Gt=Gt?ct:ba(ct,vt,Nt)}var S1=Cy||function(ct){return Rs.clearTimeout(ct)};function $1(ct,vt){if(vt)return ct.slice();var Nt=ct.length,Gt=qu?qu(Nt):new ct.constructor(Nt);return ct.copy(Gt),Gt}function Ql(ct){var vt=new ct.constructor(ct.byteLength);return new v0(vt).set(new v0(ct)),vt}function q2(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.byteLength)}function K2(ct){var vt=new ct.constructor(ct.source,tn.exec(ct));return vt.lastIndex=ct.lastIndex,vt}function Y2(ct){return e0?ms(e0.call(ct)):{}}function T1(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.length)}function A1(ct,vt){if(ct!==vt){var Nt=ct!==rt,Gt=ct===null,nr=ct===ct,vr=Ks(ct),Sr=vt!==rt,Mr=vt===null,Lr=vt===vt,Jr=Ks(vt);if(!Mr&&!Jr&&!vr&&ct>vt||vr&&Sr&&Lr&&!Mr&&!Jr||Gt&&Sr&&Lr||!Nt&&Lr||!nr)return 1;if(!Gt&&!vr&&!Jr&&ct=Mr)return Lr;var Jr=Nt[Gt];return Lr*(Jr=="desc"?-1:1)}}return ct.index-vt.index}function P1(ct,vt,Nt,Gt){for(var nr=-1,vr=ct.length,Sr=Nt.length,Mr=-1,Lr=vt.length,Jr=Ms(vr-Sr,0),Qr=Hr(Lr+Jr),nn=!Gt;++Mr1?Nt[nr-1]:rt,Sr=nr>2?Nt[2]:rt;for(vr=ct.length>3&&typeof vr=="function"?(nr--,vr):rt,Sr&&Ds(Nt[0],Nt[1],Sr)&&(vr=nr<3?rt:vr,nr=1),vt=ms(vt);++Gt-1?nr[vr?vt[Sr]:Sr]:rt}}function O1(ct){return uo(function(vt){var Nt=vt.length,Gt=Nt,nr=na.prototype.thru;for(ct&&vt.reverse();Gt--;){var vr=vt[Gt];if(typeof vr!="function")throw new Qs(at);if(nr&&!Sr&&L0(vr)=="wrapper")var Sr=new na([],!0)}for(Gt=Sr?Gt:Nt;++Gt1&&ss.reverse(),Qr&&Lr<_i&&(ss.length=Lr),this&&this!==Rs&&this instanceof Un&&(mo=Zn||a0(mo)),mo.apply(no,ss)}return Un}function F1(ct,vt){return function(Nt,Gt){return A2(Nt,ct,vt(Gt),{})}}function O0(ct,vt){return function(Nt,Gt){var nr;if(Nt===rt&&Gt===rt)return vt;if(Nt!==rt&&(nr=Nt),Gt!==rt){if(nr===rt)return Gt;typeof Nt=="string"||typeof Gt=="string"?(Nt=qs(Nt),Gt=qs(Gt)):(Nt=x1(Nt),Gt=x1(Gt)),nr=ct(Nt,Gt)}return nr}}function _c(ct){return uo(function(vt){return vt=_s(vt,Ws(Nn())),Jn(function(Nt){var Gt=this;return ct(vt,function(nr){return Gs(nr,Gt,Nt)})})})}function F0(ct,vt){vt=vt===rt?" ":qs(vt);var Nt=vt.length;if(Nt<2)return Nt?Gl(vt,ct):vt;var Gt=Gl(vt,_0(ct/No(vt)));return Fo(vt)?Eo($a(Gt),0,ct).join(""):Gt.slice(0,ct)}function tm(ct,vt,Nt,Gt){var nr=vt&$t,vr=a0(ct);function Sr(){for(var Mr=-1,Lr=arguments.length,Jr=-1,Qr=Gt.length,nn=Hr(Qr+Lr),vn=this&&this!==Rs&&this instanceof Sr?vr:ct;++JrMr))return!1;var Jr=vr.get(ct),Qr=vr.get(vt);if(Jr&&Qr)return Jr==vt&&Qr==ct;var nn=-1,vn=!0,Mn=Nt&yt?new Po:rt;for(vr.set(ct,vt),vr.set(vt,ct);++nn1?"& ":"")+vt[Gt],vt=vt.join(Nt>2?", ":" "),ct.replace(cr,`{ +/* [wrapped with `+vt+`] */ +`)}function dm(ct){return Kn(ct)||Ro(ct)||!!(Xu&&ct&&ct[Xu])}function ho(ct,vt){var Nt=typeof ct;return vt=vt??At,!!vt&&(Nt=="number"||Nt!="symbol"&&An.test(ct))&&ct>-1&&ct%1==0&&ct0){if(++vt>=Ot)return arguments[0]}else vt=0;return ct.apply(rt,arguments)}}function U0(ct,vt){var Nt=-1,Gt=ct.length,nr=Gt-1;for(vt=vt===rt?Gt:vt;++Nt1?ct[vt-1]:rt;return Nt=typeof Nt=="function"?(ct.pop(),Nt):rt,ap(ct,Nt)});function fp(ct){var vt=yr(ct);return vt.__chain__=!0,vt}function kv(ct,vt){return vt(ct),ct}function j0(ct,vt){return vt(ct)}var Ev=uo(function(ct){var vt=ct.length,Nt=vt?ct[0]:0,Gt=this.__wrapped__,nr=function(vr){return Cl(vr,ct)};return vt>1||this.__actions__.length||!(Gt instanceof ns)||!ho(Nt)?this.thru(nr):(Gt=Gt.slice(Nt,+Nt+(vt?1:0)),Gt.__actions__.push({func:j0,args:[nr],thisArg:rt}),new na(Gt,this.__chain__).thru(function(vr){return vt&&!vr.length&&vr.push(rt),vr}))});function Sv(){return fp(this)}function $v(){return new na(this.value(),this.__chain__)}function Tv(){this.__values__===rt&&(this.__values__=_p(this.value()));var ct=this.__index__>=this.__values__.length,vt=ct?rt:this.__values__[this.__index__++];return{done:ct,value:vt}}function Av(){return this}function Pv(ct){for(var vt,Nt=this;Nt instanceof $0;){var Gt=_d(Nt);Gt.__index__=0,Gt.__values__=rt,vt?nr.__wrapped__=Gt:vt=Gt;var nr=Gt;Nt=Nt.__wrapped__}return nr.__wrapped__=ct,vt}function Iv(){var ct=this.__wrapped__;if(ct instanceof ns){var vt=ct;return this.__actions__.length&&(vt=new ns(this)),vt=vt.reverse(),vt.__actions__.push({func:j0,args:[cu],thisArg:rt}),new na(vt,this.__chain__)}return this.thru(cu)}function Bv(){return k1(this.__wrapped__,this.__actions__)}var Mv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?++ct[Nt]:lo(ct,Nt,1)});function Cv(ct,vt,Nt){var Gt=Kn(ct)?Fu:k2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}function Rv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,Nn(vt,3))}var Ov=R1(ep),Fv=R1(tp);function Nv(ct,vt){return Os(V0(ct,vt),1)}function Lv(ct,vt){return Os(V0(ct,vt),Rt)}function Dv(ct,vt,Nt){return Nt=Nt===rt?1:Xn(Nt),Os(V0(ct,vt),Nt)}function lp(ct,vt){var Nt=Kn(ct)?Js:wo;return Nt(ct,Nn(vt,3))}function cp(ct,vt){var Nt=Kn(ct)?iy:i1;return Nt(ct,Nn(vt,3))}var Uv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?ct[Nt].push(vt):lo(ct,Nt,[vt])});function jv(ct,vt,Nt,Gt){ct=Vs(ct)?ct:qo(ct),Nt=Nt&&!Gt?Xn(Nt):0;var nr=ct.length;return Nt<0&&(Nt=Ms(nr+Nt,0)),q0(ct)?Nt<=nr&&ct.indexOf(vt,Nt)>-1:!!nr&&Oo(ct,vt,Nt)>-1}var Vv=Jn(function(ct,vt,Nt){var Gt=-1,nr=typeof vt=="function",vr=Vs(ct)?Hr(ct.length):[];return wo(ct,function(Sr){vr[++Gt]=nr?Gs(vt,Sr,Nt):n0(Sr,vt,Nt)}),vr}),Hv=C0(function(ct,vt,Nt){lo(ct,Nt,vt)});function V0(ct,vt){var Nt=Kn(ct)?_s:u1;return Nt(ct,Nn(vt,3))}function zv(ct,vt,Nt,Gt){return ct==null?[]:(Kn(vt)||(vt=vt==null?[]:[vt]),Nt=Gt?rt:Nt,Kn(Nt)||(Nt=Nt==null?[]:[Nt]),y1(ct,vt,Nt))}var Gv=C0(function(ct,vt,Nt){ct[Nt?0:1].push(vt)},function(){return[[],[]]});function Wv(ct,vt,Nt){var Gt=Kn(ct)?_f:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,wo)}function qv(ct,vt,Nt){var Gt=Kn(ct)?sy:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,i1)}function Kv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,G0(Nn(vt,3)))}function Yv(ct){var vt=Kn(ct)?e1:j2;return vt(ct)}function Xv(ct,vt,Nt){(Nt?Ds(ct,vt,Nt):vt===rt)?vt=1:vt=Xn(vt);var Gt=Kn(ct)?v2:V2;return Gt(ct,vt)}function Zv(ct){var vt=Kn(ct)?b2:z2;return vt(ct)}function Jv(ct){if(ct==null)return 0;if(Vs(ct))return q0(ct)?No(ct):ct.length;var vt=Ns(ct);return vt==Er||vt==xr?ct.size:Dl(ct).length}function Qv(ct,vt,Nt){var Gt=Kn(ct)?yl:G2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}var e3=Jn(function(ct,vt){if(ct==null)return[];var Nt=vt.length;return Nt>1&&Ds(ct,vt[0],vt[1])?vt=[]:Nt>2&&Ds(vt[0],vt[1],vt[2])&&(vt=[vt[0]]),y1(ct,Os(vt,1),[])}),H0=Ry||function(){return Rs.Date.now()};function t3(ct,vt){if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){if(--ct<1)return vt.apply(this,arguments)}}function up(ct,vt,Nt){return vt=Nt?rt:vt,vt=ct&&vt==null?ct.length:vt,co(ct,zt,rt,rt,rt,rt,vt)}function hp(ct,vt){var Nt;if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){return--ct>0&&(Nt=vt.apply(this,arguments)),ct<=1&&(vt=rt),Nt}}var hu=Jn(function(ct,vt,Nt){var Gt=$t;if(Nt.length){var nr=bo(Nt,Go(hu));Gt|=Ft}return co(ct,Gt,vt,Nt,nr)}),dp=Jn(function(ct,vt,Nt){var Gt=$t|mt;if(Nt.length){var nr=bo(Nt,Go(dp));Gt|=Ft}return co(vt,Gt,ct,Nt,nr)});function pp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,St,rt,rt,rt,rt,rt,vt);return Gt.placeholder=pp.placeholder,Gt}function yp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,Bt,rt,rt,rt,rt,rt,vt);return Gt.placeholder=yp.placeholder,Gt}function mp(ct,vt,Nt){var Gt,nr,vr,Sr,Mr,Lr,Jr=0,Qr=!1,nn=!1,vn=!0;if(typeof ct!="function")throw new Qs(at);vt=_a(vt)||0,ks(Nt)&&(Qr=!!Nt.leading,nn="maxWait"in Nt,vr=nn?Ms(_a(Nt.maxWait)||0,vt):vr,vn="trailing"in Nt?!!Nt.trailing:vn);function Mn(Ts){var no=Gt,mo=nr;return Gt=nr=rt,Jr=Ts,Sr=ct.apply(mo,no),Sr}function Dn(Ts){return Jr=Ts,Mr=f0(_i,vt),Qr?Mn(Ts):Sr}function Zn(Ts){var no=Ts-Lr,mo=Ts-Jr,Op=vt-no;return nn?Fs(Op,vr-mo):Op}function Un(Ts){var no=Ts-Lr,mo=Ts-Jr;return Lr===rt||no>=vt||no<0||nn&&mo>=vr}function _i(){var Ts=H0();if(Un(Ts))return ss(Ts);Mr=f0(_i,Zn(Ts))}function ss(Ts){return Mr=rt,vn&&Gt?Mn(Ts):(Gt=nr=rt,Sr)}function Ys(){Mr!==rt&&S1(Mr),Jr=0,Gt=Lr=nr=Mr=rt}function Us(){return Mr===rt?Sr:ss(H0())}function Xs(){var Ts=H0(),no=Un(Ts);if(Gt=arguments,nr=this,Lr=Ts,no){if(Mr===rt)return Dn(Lr);if(nn)return S1(Mr),Mr=f0(_i,vt),Mn(Lr)}return Mr===rt&&(Mr=f0(_i,vt)),Sr}return Xs.cancel=Ys,Xs.flush=Us,Xs}var r3=Jn(function(ct,vt){return n1(ct,1,vt)}),n3=Jn(function(ct,vt,Nt){return n1(ct,_a(vt)||0,Nt)});function i3(ct){return co(ct,Wt)}function z0(ct,vt){if(typeof ct!="function"||vt!=null&&typeof vt!="function")throw new Qs(at);var Nt=function(){var Gt=arguments,nr=vt?vt.apply(this,Gt):Gt[0],vr=Nt.cache;if(vr.has(nr))return vr.get(nr);var Sr=ct.apply(this,Gt);return Nt.cache=vr.set(nr,Sr)||vr,Sr};return Nt.cache=new(z0.Cache||fo),Nt}z0.Cache=fo;function G0(ct){if(typeof ct!="function")throw new Qs(at);return function(){var vt=arguments;switch(vt.length){case 0:return!ct.call(this);case 1:return!ct.call(this,vt[0]);case 2:return!ct.call(this,vt[0],vt[1]);case 3:return!ct.call(this,vt[0],vt[1],vt[2])}return!ct.apply(this,vt)}}function s3(ct){return hp(2,ct)}var a3=W2(function(ct,vt){vt=vt.length==1&&Kn(vt[0])?_s(vt[0],Ws(Nn())):_s(Os(vt,1),Ws(Nn()));var Nt=vt.length;return Jn(function(Gt){for(var nr=-1,vr=Fs(Gt.length,Nt);++nr=vt}),Ro=f1(function(){return arguments}())?f1:function(ct){return Es(ct)&&ys.call(ct,"callee")&&!Yu.call(ct,"callee")},Kn=Hr.isArray,w3=Iu?Ws(Iu):P2;function Vs(ct){return ct!=null&&W0(ct.length)&&!po(ct)}function $s(ct){return Es(ct)&&Vs(ct)}function _3(ct){return ct===!0||ct===!1||Es(ct)&&Ls(ct)==Zt}var So=Fy||Eu,k3=Bu?Ws(Bu):I2;function E3(ct){return Es(ct)&&ct.nodeType===1&&!l0(ct)}function S3(ct){if(ct==null)return!0;if(Vs(ct)&&(Kn(ct)||typeof ct=="string"||typeof ct.splice=="function"||So(ct)||Wo(ct)||Ro(ct)))return!ct.length;var vt=Ns(ct);if(vt==Er||vt==xr)return!ct.size;if(o0(ct))return!Dl(ct).length;for(var Nt in ct)if(ys.call(ct,Nt))return!1;return!0}function $3(ct,vt){return i0(ct,vt)}function T3(ct,vt,Nt){Nt=typeof Nt=="function"?Nt:rt;var Gt=Nt?Nt(ct,vt):rt;return Gt===rt?i0(ct,vt,rt,Nt):!!Gt}function pu(ct){if(!Es(ct))return!1;var vt=Ls(ct);return vt==er||vt==_r||typeof ct.message=="string"&&typeof ct.name=="string"&&!l0(ct)}function A3(ct){return typeof ct=="number"&&Zu(ct)}function po(ct){if(!ks(ct))return!1;var vt=Ls(ct);return vt==Jt||vt==Ar||vt==Qt||vt==br}function vp(ct){return typeof ct=="number"&&ct==Xn(ct)}function W0(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=At}function ks(ct){var vt=typeof ct;return ct!=null&&(vt=="object"||vt=="function")}function Es(ct){return ct!=null&&typeof ct=="object"}var bp=Mu?Ws(Mu):M2;function P3(ct,vt){return ct===vt||Ll(ct,vt,iu(vt))}function I3(ct,vt,Nt){return Nt=typeof Nt=="function"?Nt:rt,Ll(ct,vt,iu(vt),Nt)}function B3(ct){return xp(ct)&&ct!=+ct}function M3(ct){if(mm(ct))throw new qn(st);return l1(ct)}function C3(ct){return ct===null}function R3(ct){return ct==null}function xp(ct){return typeof ct=="number"||Es(ct)&&Ls(ct)==Dr}function l0(ct){if(!Es(ct)||Ls(ct)!=Vr)return!1;var vt=b0(ct);if(vt===null)return!0;var Nt=ys.call(vt,"constructor")&&vt.constructor;return typeof Nt=="function"&&Nt instanceof Nt&&y0.call(Nt)==Iy}var yu=Cu?Ws(Cu):C2;function O3(ct){return vp(ct)&&ct>=-At&&ct<=At}var wp=Ru?Ws(Ru):R2;function q0(ct){return typeof ct=="string"||!Kn(ct)&&Es(ct)&&Ls(ct)==Pr}function Ks(ct){return typeof ct=="symbol"||Es(ct)&&Ls(ct)==Or}var Wo=Ou?Ws(Ou):O2;function F3(ct){return ct===rt}function N3(ct){return Es(ct)&&Ns(ct)==gr}function L3(ct){return Es(ct)&&Ls(ct)==Ir}var D3=N0(Ul),U3=N0(function(ct,vt){return ct<=vt});function _p(ct){if(!ct)return[];if(Vs(ct))return q0(ct)?$a(ct):js(ct);if(Xo&&ct[Xo])return vy(ct[Xo]());var vt=Ns(ct),Nt=vt==Er?Tl:vt==xr?h0:qo;return Nt(ct)}function yo(ct){if(!ct)return ct===0?ct:0;if(ct=_a(ct),ct===Rt||ct===-Rt){var vt=ct<0?-1:1;return vt*Pt}return ct===ct?ct:0}function Xn(ct){var vt=yo(ct),Nt=vt%1;return vt===vt?Nt?vt-Nt:vt:0}function kp(ct){return ct?Io(Xn(ct),0,Ct):0}function _a(ct){if(typeof ct=="number")return ct;if(Ks(ct))return It;if(ks(ct)){var vt=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=ks(vt)?vt+"":vt}if(typeof ct!="string")return ct===0?ct:+ct;ct=ju(ct);var Nt=Vn.test(ct);return Nt||Tn.test(ct)?ty(ct.slice(2),Nt?2:8):qr.test(ct)?It:+ct}function Ep(ct){return so(ct,Hs(ct))}function j3(ct){return ct?Io(Xn(ct),-At,At):ct===0?ct:0}function ds(ct){return ct==null?"":qs(ct)}var V3=Ho(function(ct,vt){if(o0(vt)||Vs(vt)){so(vt,Cs(vt),ct);return}for(var Nt in vt)ys.call(vt,Nt)&&t0(ct,Nt,vt[Nt])}),Sp=Ho(function(ct,vt){so(vt,Hs(vt),ct)}),K0=Ho(function(ct,vt,Nt,Gt){so(vt,Hs(vt),ct,Gt)}),H3=Ho(function(ct,vt,Nt,Gt){so(vt,Cs(vt),ct,Gt)}),z3=uo(Cl);function G3(ct,vt){var Nt=Vo(ct);return vt==null?Nt:t1(Nt,vt)}var W3=Jn(function(ct,vt){ct=ms(ct);var Nt=-1,Gt=vt.length,nr=Gt>2?vt[2]:rt;for(nr&&Ds(vt[0],vt[1],nr)&&(Gt=1);++Nt1),vr}),so(ct,ru(ct),Nt),Gt&&(Nt=ga(Nt,bt|gt|kt,im));for(var nr=vt.length;nr--;)Yl(Nt,vt[nr]);return Nt});function c4(ct,vt){return Tp(ct,G0(Nn(vt)))}var u4=uo(function(ct,vt){return ct==null?{}:L2(ct,vt)});function Tp(ct,vt){if(ct==null)return{};var Nt=_s(ru(ct),function(Gt){return[Gt]});return vt=Nn(vt),m1(ct,Nt,function(Gt,nr){return vt(Gt,nr[0])})}function h4(ct,vt,Nt){vt=ko(vt,ct);var Gt=-1,nr=vt.length;for(nr||(nr=1,ct=rt);++Gtvt){var Gt=ct;ct=vt,vt=Gt}if(Nt||ct%1||vt%1){var nr=Ju();return Fs(ct+nr*(vt-ct+ey("1e-"+((nr+"").length-1))),vt)}return Hl(ct,vt)}var E4=zo(function(ct,vt,Nt){return vt=vt.toLowerCase(),ct+(Nt?Ip(vt):vt)});function Ip(ct){return vu(ds(ct).toLowerCase())}function Bp(ct){return ct=ds(ct),ct&&ct.replace(Rn,dy).replace(zp,"")}function S4(ct,vt,Nt){ct=ds(ct),vt=qs(vt);var Gt=ct.length;Nt=Nt===rt?Gt:Io(Xn(Nt),0,Gt);var nr=Nt;return Nt-=vt.length,Nt>=0&&ct.slice(Nt,nr)==vt}function $4(ct){return ct=ds(ct),ct&&Cn.test(ct)?ct.replace(En,py):ct}function T4(ct){return ct=ds(ct),ct&&cs.test(ct)?ct.replace(dn,"\\$&"):ct}var A4=zo(function(ct,vt,Nt){return ct+(Nt?"-":"")+vt.toLowerCase()}),P4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vt.toLowerCase()}),I4=C1("toLowerCase");function B4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;if(!vt||Gt>=vt)return ct;var nr=(vt-Gt)/2;return F0(k0(nr),Nt)+ct+F0(_0(nr),Nt)}function M4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;return vt&&Gt>>0,Nt?(ct=ds(ct),ct&&(typeof vt=="string"||vt!=null&&!yu(vt))&&(vt=qs(vt),!vt&&Fo(ct))?Eo($a(ct),0,Nt):ct.split(vt,Nt)):[]}var D4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vu(vt)});function U4(ct,vt,Nt){return ct=ds(ct),Nt=Nt==null?0:Io(Xn(Nt),0,ct.length),vt=qs(vt),ct.slice(Nt,Nt+vt.length)==vt}function j4(ct,vt,Nt){var Gt=yr.templateSettings;Nt&&Ds(ct,vt,Nt)&&(vt=rt),ct=ds(ct),vt=K0({},vt,Gt,U1);var nr=K0({},vt.imports,Gt.imports,U1),vr=Cs(nr),Sr=$l(nr,vr),Mr,Lr,Jr=0,Qr=vt.interpolate||Pn,nn="__p += '",vn=Al((vt.escape||Pn).source+"|"+Qr.source+"|"+(Qr===Fn?Yr:Pn).source+"|"+(vt.evaluate||Pn).source+"|$","g"),Mn="//# sourceURL="+(ys.call(vt,"sourceURL")?(vt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yp+"]")+` +`;ct.replace(vn,function(Un,_i,ss,Ys,Us,Xs){return ss||(ss=Ys),nn+=ct.slice(Jr,Xs).replace(In,yy),_i&&(Mr=!0,nn+=`' + +__e(`+_i+`) + +'`),Us&&(Lr=!0,nn+=`'; +`+Us+`; +__p += '`),ss&&(nn+=`' + +((__t = (`+ss+`)) == null ? '' : __t) + +'`),Jr=Xs+Un.length,Un}),nn+=`'; +`;var Dn=ys.call(vt,"variable")&&vt.variable;if(!Dn)nn=`with (obj) { +`+nn+` +} +`;else if(Cr.test(Dn))throw new qn(ot);nn=(Lr?nn.replace(fn,""):nn).replace(gn,"$1").replace(fs,"$1;"),nn="function("+(Dn||"obj")+`) { +`+(Dn?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Mr?", __e = _.escape":"")+(Lr?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+nn+`return __p +}`;var Zn=Cp(function(){return us(vr,Mn+"return "+nn).apply(rt,Sr)});if(Zn.source=nn,pu(Zn))throw Zn;return Zn}function V4(ct){return ds(ct).toLowerCase()}function H4(ct){return ds(ct).toUpperCase()}function z4(ct,vt,Nt){if(ct=ds(ct),ct&&(Nt||vt===rt))return ju(ct);if(!ct||!(vt=qs(vt)))return ct;var Gt=$a(ct),nr=$a(vt),vr=Vu(Gt,nr),Sr=Hu(Gt,nr)+1;return Eo(Gt,vr,Sr).join("")}function G4(ct,vt,Nt){if(ct=ds(ct),ct&&(Nt||vt===rt))return ct.slice(0,Gu(ct)+1);if(!ct||!(vt=qs(vt)))return ct;var Gt=$a(ct),nr=Hu(Gt,$a(vt))+1;return Eo(Gt,0,nr).join("")}function W4(ct,vt,Nt){if(ct=ds(ct),ct&&(Nt||vt===rt))return ct.replace(Xt,"");if(!ct||!(vt=qs(vt)))return ct;var Gt=$a(ct),nr=Vu(Gt,$a(vt));return Eo(Gt,nr).join("")}function q4(ct,vt){var Nt=lr,Gt=qt;if(ks(vt)){var nr="separator"in vt?vt.separator:nr;Nt="length"in vt?Xn(vt.length):Nt,Gt="omission"in vt?qs(vt.omission):Gt}ct=ds(ct);var vr=ct.length;if(Fo(ct)){var Sr=$a(ct);vr=Sr.length}if(Nt>=vr)return ct;var Mr=Nt-No(Gt);if(Mr<1)return Gt;var Lr=Sr?Eo(Sr,0,Mr).join(""):ct.slice(0,Mr);if(nr===rt)return Lr+Gt;if(Sr&&(Mr+=Lr.length-Mr),yu(nr)){if(ct.slice(Mr).search(nr)){var Jr,Qr=Lr;for(nr.global||(nr=Al(nr.source,ds(tn.exec(nr))+"g")),nr.lastIndex=0;Jr=nr.exec(Qr);)var nn=Jr.index;Lr=Lr.slice(0,nn===rt?Mr:nn)}}else if(ct.indexOf(qs(nr),Mr)!=Mr){var vn=Lr.lastIndexOf(nr);vn>-1&&(Lr=Lr.slice(0,vn))}return Lr+Gt}function K4(ct){return ct=ds(ct),ct&&hs.test(ct)?ct.replace(Ln,_y):ct}var Y4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vt.toUpperCase()}),vu=C1("toUpperCase");function Mp(ct,vt,Nt){return ct=ds(ct),vt=Nt?rt:vt,vt===rt?gy(ct)?Sy(ct):fy(ct):ct.match(vt)||[]}var Cp=Jn(function(ct,vt){try{return Gs(ct,rt,vt)}catch(Nt){return pu(Nt)?Nt:new qn(Nt)}}),X4=uo(function(ct,vt){return Js(vt,function(Nt){Nt=ao(Nt),lo(ct,Nt,hu(ct[Nt],ct))}),ct});function Z4(ct){var vt=ct==null?0:ct.length,Nt=Nn();return ct=vt?_s(ct,function(Gt){if(typeof Gt[1]!="function")throw new Qs(at);return[Nt(Gt[0]),Gt[1]]}):[],Jn(function(Gt){for(var nr=-1;++nrAt)return[];var Nt=Ct,Gt=Fs(ct,Ct);vt=Nn(vt),ct-=Ct;for(var nr=Sl(Gt,vt);++Nt0||vt<0)?new ns(Nt):(ct<0?Nt=Nt.takeRight(-ct):ct&&(Nt=Nt.drop(ct)),vt!==rt&&(vt=Xn(vt),Nt=vt<0?Nt.dropRight(-vt):Nt.take(vt-ct)),Nt)},ns.prototype.takeRightWhile=function(ct){return this.reverse().takeWhile(ct).reverse()},ns.prototype.toArray=function(){return this.take(Ct)},io(ns.prototype,function(ct,vt){var Nt=/^(?:filter|find|map|reject)|While$/.test(vt),Gt=/^(?:head|last)$/.test(vt),nr=yr[Gt?"take"+(vt=="last"?"Right":""):vt],vr=Gt||/^find/.test(vt);nr&&(yr.prototype[vt]=function(){var Sr=this.__wrapped__,Mr=Gt?[1]:arguments,Lr=Sr instanceof ns,Jr=Mr[0],Qr=Lr||Kn(Sr),nn=function(_i){var ss=nr.apply(yr,vo([_i],Mr));return Gt&&vn?ss[0]:ss};Qr&&Nt&&typeof Jr=="function"&&Jr.length!=1&&(Lr=Qr=!1);var vn=this.__chain__,Mn=!!this.__actions__.length,Dn=vr&&!vn,Zn=Lr&&!Mn;if(!vr&&Qr){Sr=Zn?Sr:new ns(this);var Un=ct.apply(Sr,Mr);return Un.__actions__.push({func:j0,args:[nn],thisArg:rt}),new na(Un,vn)}return Dn&&Zn?ct.apply(this,Mr):(Un=this.thru(nn),Dn?Gt?Un.value()[0]:Un.value():Un)})}),Js(["pop","push","shift","sort","splice","unshift"],function(ct){var vt=d0[ct],Nt=/^(?:push|sort|unshift)$/.test(ct)?"tap":"thru",Gt=/^(?:pop|shift)$/.test(ct);yr.prototype[ct]=function(){var nr=arguments;if(Gt&&!this.__chain__){var vr=this.value();return vt.apply(Kn(vr)?vr:[],nr)}return this[Nt](function(Sr){return vt.apply(Kn(Sr)?Sr:[],nr)})}}),io(ns.prototype,function(ct,vt){var Nt=yr[vt];if(Nt){var Gt=Nt.name+"";ys.call(jo,Gt)||(jo[Gt]=[]),jo[Gt].push({name:vt,func:Nt})}}),jo[R0(rt,mt).name]=[{name:"wrapper",func:rt}],ns.prototype.clone=qy,ns.prototype.reverse=Ky,ns.prototype.value=Yy,yr.prototype.at=Ev,yr.prototype.chain=Sv,yr.prototype.commit=$v,yr.prototype.next=Tv,yr.prototype.plant=Pv,yr.prototype.reverse=Iv,yr.prototype.toJSON=yr.prototype.valueOf=yr.prototype.value=Bv,yr.prototype.first=yr.prototype.head,Xo&&(yr.prototype[Xo]=Av),yr},Lo=$y();$o?(($o.exports=Lo)._=Lo,Z0._=Lo):Rs._=Lo}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const getElementsMemoized=()=>{const et={};return()=>{if(et.inner&&et.body)return et;const tt=document.querySelector("body"),rt=document.createElement("div"),nt=document.createElement("div"),it=document.createElement("div"),st=document.createElement("div"),at=()=>{rt.classList.toggle("hide")};return it.addEventListener("click",at),st.addEventListener("click",at),rt.classList.add("loggerWrapper"),rt.classList.add("hide"),nt.classList.add("loggerInner"),it.classList.add("close"),st.classList.add("open"),it.textContent="X",st.textContent="OPEN LOG",tt==null||tt.appendChild(rt),tt==null||tt.appendChild(st),rt.appendChild(it),rt.appendChild(nt),et.body=tt,et.inner=nt,{body:tt,inner:nt}}},getElements=getElementsMemoized(),variants=["log","info","warn","error"],logMessage=(et,tt)=>{const{inner:rt}=getElements(),nt=document.createElement("span");nt.textContent=et,nt.classList.add("message"),nt.classList.add(tt),rt.appendChild(nt)},overrideConsole=()=>{window.location.hostname.includes("local")};var reactIs$2={exports:{}},reactIs_production_min$1={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var b$4=Symbol.for("react.element"),c$3=Symbol.for("react.portal"),d$3=Symbol.for("react.fragment"),e$3=Symbol.for("react.strict_mode"),f$5=Symbol.for("react.profiler"),g$6=Symbol.for("react.provider"),h$7=Symbol.for("react.context"),k$5=Symbol.for("react.server_context"),l$3=Symbol.for("react.forward_ref"),m$4=Symbol.for("react.suspense"),n$4=Symbol.for("react.suspense_list"),p$5=Symbol.for("react.memo"),q$5=Symbol.for("react.lazy"),t$4=Symbol.for("react.offscreen"),u$4;u$4=Symbol.for("react.module.reference");function v$6(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case b$4:switch(et=et.type,et){case d$3:case f$5:case e$3:case m$4:case n$4:return et;default:switch(et=et&&et.$$typeof,et){case k$5:case h$7:case l$3:case q$5:case p$5:case g$6:return et;default:return tt}}case c$3:return tt}}}reactIs_production_min$1.ContextConsumer=h$7;reactIs_production_min$1.ContextProvider=g$6;reactIs_production_min$1.Element=b$4;reactIs_production_min$1.ForwardRef=l$3;reactIs_production_min$1.Fragment=d$3;reactIs_production_min$1.Lazy=q$5;reactIs_production_min$1.Memo=p$5;reactIs_production_min$1.Portal=c$3;reactIs_production_min$1.Profiler=f$5;reactIs_production_min$1.StrictMode=e$3;reactIs_production_min$1.Suspense=m$4;reactIs_production_min$1.SuspenseList=n$4;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(et){return v$6(et)===h$7};reactIs_production_min$1.isContextProvider=function(et){return v$6(et)===g$6};reactIs_production_min$1.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===b$4};reactIs_production_min$1.isForwardRef=function(et){return v$6(et)===l$3};reactIs_production_min$1.isFragment=function(et){return v$6(et)===d$3};reactIs_production_min$1.isLazy=function(et){return v$6(et)===q$5};reactIs_production_min$1.isMemo=function(et){return v$6(et)===p$5};reactIs_production_min$1.isPortal=function(et){return v$6(et)===c$3};reactIs_production_min$1.isProfiler=function(et){return v$6(et)===f$5};reactIs_production_min$1.isStrictMode=function(et){return v$6(et)===e$3};reactIs_production_min$1.isSuspense=function(et){return v$6(et)===m$4};reactIs_production_min$1.isSuspenseList=function(et){return v$6(et)===n$4};reactIs_production_min$1.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===d$3||et===f$5||et===e$3||et===m$4||et===n$4||et===t$4||typeof et=="object"&&et!==null&&(et.$$typeof===q$5||et.$$typeof===p$5||et.$$typeof===g$6||et.$$typeof===h$7||et.$$typeof===l$3||et.$$typeof===u$4||et.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$6;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports;function stylis_min(et){function tt(xt,Lt,tr,pr,Kt){for(var Qt=0,Zt=0,ur=0,_r=0,er,Jt,Ar=0,Er=0,Dr,Xr=Dr=er=0,Vr=0,wr=0,br=0,or=0,xr=tr.length,Pr=xr-1,Or,rr="",gr="",Ir="",Yt="",Ut;Vrer)&&(or=(rr=rr.replace(" ",":")).length),0pr&&(pr=(Lt=Lt.trim()).charCodeAt(0)),pr){case 38:return Lt.replace(mt,"$1"+xt.trim());case 58:return xt.trim()+Lt.replace(mt,"$1"+xt.trim());default:if(0<1*tr&&0Zt.charCodeAt(8))break;case 115:Kt=Kt.replace(Zt,"-webkit-"+Zt)+";"+Kt;break;case 207:case 102:Kt=Kt.replace(Zt,"-webkit-"+(102tr.charCodeAt(0)&&(tr=tr.trim()),Ct=tr,tr=[Ct],01?tt-1:0),nt=1;nt0?" Args: "+rt.join(", "):""))}var T$1=function(){function et(rt){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=rt}var tt=et.prototype;return tt.indexOfGroup=function(rt){for(var nt=0,it=0;it=this.groupSizes.length){for(var it=this.groupSizes,st=it.length,at=st;rt>=at;)(at<<=1)<0&&j(16,""+rt);this.groupSizes=new Uint32Array(at),this.groupSizes.set(it),this.length=at;for(var ot=st;ot=this.length||this.groupSizes[rt]===0)return nt;for(var it=this.groupSizes[rt],st=this.indexOfGroup(rt),at=st+it,ot=st;ot=V&&(V=tt+1),x$2.set(et,tt),k$3.set(tt,et)},G$1="style["+A$1+'][data-styled-version="5.3.9"]',L$1=new RegExp("^"+A$1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(et,tt,rt){for(var nt,it=rt.split(","),st=0,at=it.length;st=0;ut--){var dt=lt[ut];if(dt&&dt.nodeType===1&&dt.hasAttribute(A$1))return dt}}(rt),st=it!==void 0?it.nextSibling:null;nt.setAttribute(A$1,"active"),nt.setAttribute("data-styled-version","5.3.9");var at=q$3();return at&&nt.setAttribute("nonce",at),rt.insertBefore(nt,st),nt},$$1=function(){function et(rt){var nt=this.element=H$1(rt);nt.appendChild(document.createTextNode("")),this.sheet=function(it){if(it.sheet)return it.sheet;for(var st=document.styleSheets,at=0,ot=st.length;at=0){var it=document.createTextNode(nt),st=this.nodes[rt];return this.element.insertBefore(it,st||null),this.length++,!0}return!1},tt.deleteRule=function(rt){this.element.removeChild(this.nodes[rt]),this.length--},tt.getRule=function(rt){return rt0&&(bt+=gt+",")}),st+=""+ut+dt+'{content:"'+bt+`"}/*!sc*/ +`}}}return st}(this)},et}(),K$5=/(a)(d)/gi,Q$1=function(et){return String.fromCharCode(et+(et>25?39:97))};function ee(et){var tt,rt="";for(tt=Math.abs(et);tt>52;tt=tt/52|0)rt=Q$1(tt%52)+rt;return(Q$1(tt%52)+rt).replace(K$5,"$1-$2")}var te=function(et,tt){for(var rt=tt.length;rt;)et=33*et^tt.charCodeAt(--rt);return et},ne=function(et){return te(5381,et)};function re$1(et){for(var tt=0;tt>>0);if(!rt.hasNameForId(it,ot)){var lt=nt(at,"."+ot,void 0,it);rt.insertRules(it,ot,lt)}st.push(ot),this.staticRulesId=ot}else{for(var ut=this.rules.length,dt=te(this.baseHash,nt.hash),bt="",gt=0;gt>>0);if(!rt.hasNameForId(it,$t)){var mt=nt(bt,"."+$t,void 0,it);rt.insertRules(it,$t,mt)}st.push($t)}}return st.join(" ")},et}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(et){var tt,rt,nt,it,st=et===void 0?E$1:et,at=st.options,ot=at===void 0?E$1:at,lt=st.plugins,ut=lt===void 0?w$3:lt,dt=new stylis_min(ot),bt=[],gt=function(yt){function $t(mt){if(mt)try{yt(mt+"}")}catch{}}return function(mt,wt,St,Bt,Ft,Dt,zt,Ht,Wt,lr){switch(mt){case 1:if(Wt===0&&wt.charCodeAt(0)===64)return yt(wt+";"),"";break;case 2:if(Ht===0)return wt+"/*|*/";break;case 3:switch(Ht){case 102:case 112:return yt(St[0]+wt),"";default:return wt+(lr===0?"/*|*/":"")}case-2:wt.split("/*|*/}").forEach($t)}}}(function(yt){bt.push(yt)}),kt=function(yt,$t,mt){return $t===0&&ae.indexOf(mt[rt.length])!==-1||mt.match(it)?yt:"."+tt};function pt(yt,$t,mt,wt){wt===void 0&&(wt="&");var St=yt.replace(ie,""),Bt=$t&&mt?mt+" "+$t+" { "+St+" }":St;return tt=wt,rt=$t,nt=new RegExp("\\"+rt+"\\b","g"),it=new RegExp("(\\"+rt+"\\b){2,}"),dt(mt||!$t?"":$t,Bt)}return dt.use([].concat(ut,[function(yt,$t,mt){yt===2&&mt.length&&mt[0].lastIndexOf(rt)>0&&(mt[0]=mt[0].replace(nt,kt))},gt,function(yt){if(yt===-2){var $t=bt;return bt=[],$t}}])),pt.hash=ut.length?ut.reduce(function(yt,$t){return $t.name||j(15),te(yt,$t.name)},5381).toString():"",pt}var ue=React.createContext();ue.Consumer;var de=React.createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return reactExports.useContext(ue)||he}function me(){return reactExports.useContext(de)||pe}var ve=function(){function et(tt,rt){var nt=this;this.inject=function(it,st){st===void 0&&(st=pe);var at=nt.name+st.hash;it.hasNameForId(nt.id,at)||it.insertRules(nt.id,at,st(nt.rules,at,"@keyframes"))},this.toString=function(){return j(12,String(nt.name))},this.name=tt,this.id="sc-keyframes-"+tt,this.rules=rt}return et.prototype.getName=function(tt){return tt===void 0&&(tt=pe),this.name+tt.hash},et}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(et){return"-"+et.toLowerCase()};function be(et){return ge.test(et)?et.replace(Se,Ee).replace(we,"-ms-"):et}var _e=function(et){return et==null||et===!1||et===""};function Ne(et,tt,rt,nt){if(Array.isArray(et)){for(var it,st=[],at=0,ot=et.length;at1?tt-1:0),nt=1;nt?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(et){return et.replace(De,"-").replace(je,"")}var xe=function(et){return ee(ne(et)>>>0)};function ke(et){return typeof et=="string"&&!0}var Ve=function(et){return typeof et=="function"||typeof et=="object"&&et!==null&&!Array.isArray(et)},Be=function(et){return et!=="__proto__"&&et!=="constructor"&&et!=="prototype"};function ze(et,tt,rt){var nt=et[rt];Ve(tt)&&Ve(nt)?Me(nt,tt):et[rt]=tt}function Me(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt=0||(lr[Ht]=Dt[Ht]);return lr}(tt,["componentId"]),Ft=St&&St+"-"+(ke(wt)?wt:Te(_$3(wt)));return qe(wt,v$4({},Bt,{attrs:gt,componentId:Ft}),rt)},Object.defineProperty(pt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(wt){this._foldedDefaultProps=nt?Me({},et.defaultProps,wt):wt}}),Object.defineProperty(pt,"toString",{value:function(){return"."+pt.styledComponentId}}),it&&hoistNonReactStatics$1(pt,et,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),pt}var He=function(et){return function tt(rt,nt,it){if(it===void 0&&(it=E$1),!reactIsExports$1.isValidElementType(nt))return j(1,String(nt));var st=function(){return rt(nt,it,Ce.apply(void 0,arguments))};return st.withConfig=function(at){return tt(rt,nt,v$4({},it,{},at))},st.attrs=function(at){return tt(rt,nt,v$4({},it,{attrs:Array.prototype.concat(it.attrs,at).filter(Boolean)}))},st}(qe,et)};["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","figcaption","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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(et){He[et]=He(et)});var $e=function(){function et(rt,nt){this.rules=rt,this.componentId=nt,this.isStatic=re$1(rt),Z.registerId(this.componentId+1)}var tt=et.prototype;return tt.createStyles=function(rt,nt,it,st){var at=st(Ne(this.rules,nt,it,st).join(""),""),ot=this.componentId+rt;it.insertRules(ot,ot,at)},tt.removeStyles=function(rt,nt){nt.clearRules(this.componentId+rt)},tt.renderStyles=function(rt,nt,it,st){rt>2&&Z.registerId(this.componentId+rt),this.removeStyles(rt,it),this.createStyles(rt,nt,it,st)},et}();function We(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt1?tt-1:0),nt=1;nt(tt,...rt)=>{const nt=Ce(tt,...rt);return nt.join("").trim()?Ce` + @media ${et} { + ${nt} + } + `:[""]},breakpoints={large:1024,medium:640,small:0},media={large:cssWithMediaQuery(`(min-width: ${breakpoints.large}px)`),medium:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px)`),mediumOnly:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px) and (max-width: ${breakpoints.large-1}px)`),small:cssWithMediaQuery(`(min-width: ${breakpoints.small}px)`),smallOnly:cssWithMediaQuery(`(min-width: ${breakpoints.small}px) and (max-width: ${breakpoints.medium-1}px)`)};var dist$1={},identifier$1={},assert$o={exports:{}},errors$3={},util={},types$7={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var tt={},rt=Symbol("test"),nt=Object(rt);if(typeof rt=="string"||Object.prototype.toString.call(rt)!=="[object Symbol]"||Object.prototype.toString.call(nt)!=="[object Symbol]")return!1;var it=42;tt[rt]=it;for(rt in tt)return!1;if(typeof Object.keys=="function"&&Object.keys(tt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(tt).length!==0)return!1;var st=Object.getOwnPropertySymbols(tt);if(st.length!==1||st[0]!==rt||!Object.prototype.propertyIsEnumerable.call(tt,rt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var at=Object.getOwnPropertyDescriptor(tt,rt);if(at.value!==it||at.enumerable!==!0)return!1}return!0},hasSymbols$3=shams$1,shams=function(){return hasSymbols$3()&&!!Symbol.toStringTag},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$2=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(tt,rt){for(var nt=[],it=0;it"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(et){var errorProto=getProto$1(getProto$1(et));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function et(tt){var rt;if(tt==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(tt==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(tt==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(tt==="%AsyncGenerator%"){var nt=et("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var it=et("%AsyncGenerator%");it&&getProto$1&&(rt=getProto$1(it.prototype))}return INTRINSICS[tt]=rt,rt},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=function(tt){var rt=$strSlice(tt,0,1),nt=$strSlice(tt,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var it=[];return $replace(tt,rePropName,function(st,at,ot,lt){it[it.length]=ot?$replace(lt,reEscapeChar,"$1"):at||st}),it},getBaseIntrinsic=function(tt,rt){var nt=tt,it;if(hasOwn(LEGACY_ALIASES,nt)&&(it=LEGACY_ALIASES[nt],nt="%"+it[0]+"%"),hasOwn(INTRINSICS,nt)){var st=INTRINSICS[nt];if(st===needsEval&&(st=doEval(nt)),typeof st>"u"&&!rt)throw new $TypeError$2("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:it,name:nt,value:st}}throw new $SyntaxError$1("intrinsic "+tt+" does not exist!")},getIntrinsic=function(tt,rt){if(typeof tt!="string"||tt.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,tt)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath$1(tt),it=nt.length>0?nt[0]:"",st=getBaseIntrinsic("%"+it+"%",rt),at=st.name,ot=st.value,lt=!1,ut=st.alias;ut&&(it=ut[0],$spliceApply(nt,$concat([0,1],ut)));for(var dt=1,bt=!0;dt=nt.length){var yt=$gOPD$1(ot,gt);bt=!!yt,bt&&"get"in yt&&!("originalValue"in yt.get)?ot=yt.get:ot=ot[gt]}else bt=hasOwn(ot,gt),ot=ot[gt];bt&&!lt&&(INTRINSICS[at]=ot)}}return ot},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function(tt,rt,nt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof rt!="string"&&typeof rt!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,at=arguments.length>5?arguments[5]:null,ot=arguments.length>6?arguments[6]:!1,lt=!!gopd&&gopd(tt,rt);if($defineProperty)$defineProperty(tt,rt,{configurable:at===null&<?lt.configurable:!at,enumerable:it===null&<?lt.enumerable:!it,value:nt,writable:st===null&<?lt.writable:!st});else if(ot||!it&&!st&&!at)tt[rt]=nt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(tt,rt){if(typeof tt!="function")throw new $TypeError("`fn` is not a function");if(typeof rt!="number"||rt<0||rt>4294967295||$floor(rt)!==rt)throw new $TypeError("`length` must be a positive 32-bit integer");var nt=arguments.length>2&&!!arguments[2],it=!0,st=!0;if("length"in tt&&gOPD$1){var at=gOPD$1(tt,"length");at&&!at.configurable&&(it=!1),at&&!at.writable&&(st=!1)}return(it||st||!nt)&&(hasDescriptors?define(tt,"length",rt,!0,!0):define(tt,"length",rt)),tt};(function(et){var tt=functionBind,rt=getIntrinsic,nt=setFunctionLength,it=rt("%TypeError%"),st=rt("%Function.prototype.apply%"),at=rt("%Function.prototype.call%"),ot=rt("%Reflect.apply%",!0)||tt.call(at,st),lt=rt("%Object.defineProperty%",!0),ut=rt("%Math.max%");if(lt)try{lt({},"a",{value:1})}catch{lt=null}et.exports=function(gt){if(typeof gt!="function")throw new it("a function is required");var kt=ot(tt,at,arguments);return nt(kt,1+ut(0,gt.length-(arguments.length-1)),!0)};var dt=function(){return ot(tt,st,arguments)};lt?lt(et.exports,"apply",{value:dt}):et.exports.apply=dt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$3=function(tt,rt){var nt=GetIntrinsic(tt,!!rt);return typeof nt=="function"&&$indexOf$1(tt,".prototype.")>-1?callBind$1(nt):nt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(tt){return hasToStringTag$3&&tt&&typeof tt=="object"&&Symbol.toStringTag in tt?!1:$toString$1(tt)==="[object Arguments]"},isLegacyArguments=function(tt){return isStandardArguments(tt)?!0:tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&$toString$1(tt)!=="[object Array]"&&$toString$1(tt.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$3=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(tt){if(typeof tt!="function")return!1;if(isFnRegex.test(fnToStr$1.call(tt)))return!0;if(!hasToStringTag$2){var rt=toStr$3.call(tt);return rt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var nt=getGeneratorFunc();GeneratorFunction=nt?getProto(nt):!1}return getProto(tt)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(et){et!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(tt){try{var rt=fnToStr.call(tt);return constructorRegex.test(rt)}catch{return!1}},tryFunctionObject=function(tt){try{return isES6ClassFn(tt)?!1:(fnToStr.call(tt),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(tt){if((isIE68||!tt)&&(typeof tt>"u"||typeof tt=="object"))try{var rt=toStr$2.call(tt);return(rt===ddaClass||rt===ddaClass2||rt===ddaClass3||rt===objectClass)&&tt("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;try{reflectApply(tt,null,badArrayLike)}catch(rt){if(rt!==isCallableMarker)return!1}return!isES6ClassFn(tt)&&tryFunctionObject(tt)}:function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(tt);if(isES6ClassFn(tt))return!1;var rt=toStr$2.call(tt);return rt!==fnClass&&rt!==genClass&&!/^\[object HTML/.test(rt)?!1:tryFunctionObject(tt)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$a=Object.prototype.hasOwnProperty,forEachArray=function(tt,rt,nt){for(var it=0,st=tt.length;it=3&&(it=nt),toStr$1.call(tt)==="[object Array]"?forEachArray(tt,rt,it):typeof tt=="string"?forEachString(tt,rt,it):forEachObject(tt,rt,it)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$3=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var tt=[],rt=0;rt"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(tt,rt){for(var nt=0;nt-1?rt:rt!=="Object"?!1:trySlices(tt)}return gOPD?tryTypedArrays(tt):null},whichTypedArray=whichTypedArray$1,isTypedArray$2=function(tt){return!!whichTypedArray(tt)};(function(et){var tt=isArguments$3,rt=isGeneratorFunction,nt=whichTypedArray$1,it=isTypedArray$2;function st(br){return br.call.bind(br)}var at=typeof BigInt<"u",ot=typeof Symbol<"u",lt=st(Object.prototype.toString),ut=st(Number.prototype.valueOf),dt=st(String.prototype.valueOf),bt=st(Boolean.prototype.valueOf);if(at)var gt=st(BigInt.prototype.valueOf);if(ot)var kt=st(Symbol.prototype.valueOf);function pt(br,or){if(typeof br!="object")return!1;try{return or(br),!0}catch{return!1}}et.isArgumentsObject=tt,et.isGeneratorFunction=rt,et.isTypedArray=it;function yt(br){return typeof Promise<"u"&&br instanceof Promise||br!==null&&typeof br=="object"&&typeof br.then=="function"&&typeof br.catch=="function"}et.isPromise=yt;function $t(br){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(br):it(br)||Lt(br)}et.isArrayBufferView=$t;function mt(br){return nt(br)==="Uint8Array"}et.isUint8Array=mt;function wt(br){return nt(br)==="Uint8ClampedArray"}et.isUint8ClampedArray=wt;function St(br){return nt(br)==="Uint16Array"}et.isUint16Array=St;function Bt(br){return nt(br)==="Uint32Array"}et.isUint32Array=Bt;function Ft(br){return nt(br)==="Int8Array"}et.isInt8Array=Ft;function Dt(br){return nt(br)==="Int16Array"}et.isInt16Array=Dt;function zt(br){return nt(br)==="Int32Array"}et.isInt32Array=zt;function Ht(br){return nt(br)==="Float32Array"}et.isFloat32Array=Ht;function Wt(br){return nt(br)==="Float64Array"}et.isFloat64Array=Wt;function lr(br){return nt(br)==="BigInt64Array"}et.isBigInt64Array=lr;function qt(br){return nt(br)==="BigUint64Array"}et.isBigUint64Array=qt;function Ot(br){return lt(br)==="[object Map]"}Ot.working=typeof Map<"u"&&Ot(new Map);function Mt(br){return typeof Map>"u"?!1:Ot.working?Ot(br):br instanceof Map}et.isMap=Mt;function ht(br){return lt(br)==="[object Set]"}ht.working=typeof Set<"u"&&ht(new Set);function Et(br){return typeof Set>"u"?!1:ht.working?ht(br):br instanceof Set}et.isSet=Et;function Tt(br){return lt(br)==="[object WeakMap]"}Tt.working=typeof WeakMap<"u"&&Tt(new WeakMap);function Rt(br){return typeof WeakMap>"u"?!1:Tt.working?Tt(br):br instanceof WeakMap}et.isWeakMap=Rt;function At(br){return lt(br)==="[object WeakSet]"}At.working=typeof WeakSet<"u"&&At(new WeakSet);function Pt(br){return At(br)}et.isWeakSet=Pt;function It(br){return lt(br)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function Ct(br){return typeof ArrayBuffer>"u"?!1:It.working?It(br):br instanceof ArrayBuffer}et.isArrayBuffer=Ct;function xt(br){return lt(br)==="[object DataView]"}xt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&xt(new DataView(new ArrayBuffer(1),0,1));function Lt(br){return typeof DataView>"u"?!1:xt.working?xt(br):br instanceof DataView}et.isDataView=Lt;var tr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pr(br){return lt(br)==="[object SharedArrayBuffer]"}function Kt(br){return typeof tr>"u"?!1:(typeof pr.working>"u"&&(pr.working=pr(new tr)),pr.working?pr(br):br instanceof tr)}et.isSharedArrayBuffer=Kt;function Qt(br){return lt(br)==="[object AsyncFunction]"}et.isAsyncFunction=Qt;function Zt(br){return lt(br)==="[object Map Iterator]"}et.isMapIterator=Zt;function ur(br){return lt(br)==="[object Set Iterator]"}et.isSetIterator=ur;function _r(br){return lt(br)==="[object Generator]"}et.isGeneratorObject=_r;function er(br){return lt(br)==="[object WebAssembly.Module]"}et.isWebAssemblyCompiledModule=er;function Jt(br){return pt(br,ut)}et.isNumberObject=Jt;function Ar(br){return pt(br,dt)}et.isStringObject=Ar;function Er(br){return pt(br,bt)}et.isBooleanObject=Er;function Dr(br){return at&&pt(br,gt)}et.isBigIntObject=Dr;function Xr(br){return ot&&pt(br,kt)}et.isSymbolObject=Xr;function Vr(br){return Jt(br)||Ar(br)||Er(br)||Dr(br)||Xr(br)}et.isBoxedPrimitive=Vr;function wr(br){return typeof Uint8Array<"u"&&(Ct(br)||Kt(br))}et.isAnyArrayBuffer=wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(br){Object.defineProperty(et,br,{enumerable:!1,value:function(){throw new Error(br+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(tt){return tt&&typeof tt=="object"&&typeof tt.copy=="function"&&typeof tt.fill=="function"&&typeof tt.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(tt,rt){rt&&(tt.super_=rt,tt.prototype=Object.create(rt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(tt,rt){if(rt){tt.super_=rt;var nt=function(){};nt.prototype=rt.prototype,tt.prototype=new nt,tt.prototype.constructor=tt}};var inherits_browserExports=inherits_browser.exports;(function(et){var tt=Object.getOwnPropertyDescriptors||function(Lt){for(var tr=Object.keys(Lt),pr={},Kt=0;Kt=Kt)return ur;switch(ur){case"%s":return String(pr[tr++]);case"%d":return Number(pr[tr++]);case"%j":try{return JSON.stringify(pr[tr++])}catch{return"[Circular]"}default:return ur}}),Zt=pr[tr];tr"u")return function(){return et.deprecate(xt,Lt).apply(this,arguments)};var tr=!1;function pr(){if(!tr){if(process.throwDeprecation)throw new Error(Lt);process.traceDeprecation?console.trace(Lt):console.error(Lt),tr=!0}return xt.apply(this,arguments)}return pr};var nt={},it=/^$/;if({}.NODE_DEBUG){var st={}.NODE_DEBUG;st=st.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),it=new RegExp("^"+st+"$","i")}et.debuglog=function(xt){if(xt=xt.toUpperCase(),!nt[xt])if(it.test(xt)){var Lt=process.pid;nt[xt]=function(){var tr=et.format.apply(et,arguments);console.error("%s %d: %s",xt,Lt,tr)}}else nt[xt]=function(){};return nt[xt]};function at(xt,Lt){var tr={seen:[],stylize:lt};return arguments.length>=3&&(tr.depth=arguments[2]),arguments.length>=4&&(tr.colors=arguments[3]),mt(Lt)?tr.showHidden=Lt:Lt&&et._extend(tr,Lt),zt(tr.showHidden)&&(tr.showHidden=!1),zt(tr.depth)&&(tr.depth=2),zt(tr.colors)&&(tr.colors=!1),zt(tr.customInspect)&&(tr.customInspect=!0),tr.colors&&(tr.stylize=ot),dt(tr,xt,tr.depth)}et.inspect=at,at.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},at.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ot(xt,Lt){var tr=at.styles[Lt];return tr?"\x1B["+at.colors[tr][0]+"m"+xt+"\x1B["+at.colors[tr][1]+"m":xt}function lt(xt,Lt){return xt}function ut(xt){var Lt={};return xt.forEach(function(tr,pr){Lt[tr]=!0}),Lt}function dt(xt,Lt,tr){if(xt.customInspect&&Lt&&Ot(Lt.inspect)&&Lt.inspect!==et.inspect&&!(Lt.constructor&&Lt.constructor.prototype===Lt)){var pr=Lt.inspect(tr,xt);return Ft(pr)||(pr=dt(xt,pr,tr)),pr}var Kt=bt(xt,Lt);if(Kt)return Kt;var Qt=Object.keys(Lt),Zt=ut(Qt);if(xt.showHidden&&(Qt=Object.getOwnPropertyNames(Lt)),qt(Lt)&&(Qt.indexOf("message")>=0||Qt.indexOf("description")>=0))return gt(Lt);if(Qt.length===0){if(Ot(Lt)){var ur=Lt.name?": "+Lt.name:"";return xt.stylize("[Function"+ur+"]","special")}if(Ht(Lt))return xt.stylize(RegExp.prototype.toString.call(Lt),"regexp");if(lr(Lt))return xt.stylize(Date.prototype.toString.call(Lt),"date");if(qt(Lt))return gt(Lt)}var _r="",er=!1,Jt=["{","}"];if($t(Lt)&&(er=!0,Jt=["[","]"]),Ot(Lt)){var Ar=Lt.name?": "+Lt.name:"";_r=" [Function"+Ar+"]"}if(Ht(Lt)&&(_r=" "+RegExp.prototype.toString.call(Lt)),lr(Lt)&&(_r=" "+Date.prototype.toUTCString.call(Lt)),qt(Lt)&&(_r=" "+gt(Lt)),Qt.length===0&&(!er||Lt.length==0))return Jt[0]+_r+Jt[1];if(tr<0)return Ht(Lt)?xt.stylize(RegExp.prototype.toString.call(Lt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(Lt);var Er;return er?Er=kt(xt,Lt,tr,Zt,Qt):Er=Qt.map(function(Dr){return pt(xt,Lt,tr,Zt,Dr,er)}),xt.seen.pop(),yt(Er,_r,Jt)}function bt(xt,Lt){if(zt(Lt))return xt.stylize("undefined","undefined");if(Ft(Lt)){var tr="'"+JSON.stringify(Lt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(tr,"string")}if(Bt(Lt))return xt.stylize(""+Lt,"number");if(mt(Lt))return xt.stylize(""+Lt,"boolean");if(wt(Lt))return xt.stylize("null","null")}function gt(xt){return"["+Error.prototype.toString.call(xt)+"]"}function kt(xt,Lt,tr,pr,Kt){for(var Qt=[],Zt=0,ur=Lt.length;Zt-1&&(Qt?ur=ur.split(` +`).map(function(er){return" "+er}).join(` +`).slice(2):ur=` +`+ur.split(` +`).map(function(er){return" "+er}).join(` +`))):ur=xt.stylize("[Circular]","special")),zt(Zt)){if(Qt&&Kt.match(/^\d+$/))return ur;Zt=JSON.stringify(""+Kt),Zt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Zt=Zt.slice(1,-1),Zt=xt.stylize(Zt,"name")):(Zt=Zt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Zt=xt.stylize(Zt,"string"))}return Zt+": "+ur}function yt(xt,Lt,tr){var pr=xt.reduce(function(Kt,Qt){return Qt.indexOf(` +`)>=0,Kt+Qt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pr>60?tr[0]+(Lt===""?"":Lt+` + `)+" "+xt.join(`, + `)+" "+tr[1]:tr[0]+Lt+" "+xt.join(", ")+" "+tr[1]}et.types=types$7;function $t(xt){return Array.isArray(xt)}et.isArray=$t;function mt(xt){return typeof xt=="boolean"}et.isBoolean=mt;function wt(xt){return xt===null}et.isNull=wt;function St(xt){return xt==null}et.isNullOrUndefined=St;function Bt(xt){return typeof xt=="number"}et.isNumber=Bt;function Ft(xt){return typeof xt=="string"}et.isString=Ft;function Dt(xt){return typeof xt=="symbol"}et.isSymbol=Dt;function zt(xt){return xt===void 0}et.isUndefined=zt;function Ht(xt){return Wt(xt)&&ht(xt)==="[object RegExp]"}et.isRegExp=Ht,et.types.isRegExp=Ht;function Wt(xt){return typeof xt=="object"&&xt!==null}et.isObject=Wt;function lr(xt){return Wt(xt)&&ht(xt)==="[object Date]"}et.isDate=lr,et.types.isDate=lr;function qt(xt){return Wt(xt)&&(ht(xt)==="[object Error]"||xt instanceof Error)}et.isError=qt,et.types.isNativeError=qt;function Ot(xt){return typeof xt=="function"}et.isFunction=Ot;function Mt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt>"u"}et.isPrimitive=Mt,et.isBuffer=isBufferBrowser;function ht(xt){return Object.prototype.toString.call(xt)}function Et(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var Tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Rt(){var xt=new Date,Lt=[Et(xt.getHours()),Et(xt.getMinutes()),Et(xt.getSeconds())].join(":");return[xt.getDate(),Tt[xt.getMonth()],Lt].join(" ")}et.log=function(){console.log("%s - %s",Rt(),et.format.apply(et,arguments))},et.inherits=inherits_browserExports,et._extend=function(xt,Lt){if(!Lt||!Wt(Lt))return xt;for(var tr=Object.keys(Lt),pr=tr.length;pr--;)xt[tr[pr]]=Lt[tr[pr]];return xt};function At(xt,Lt){return Object.prototype.hasOwnProperty.call(xt,Lt)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;et.promisify=function(Lt){if(typeof Lt!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&Lt[Pt]){var tr=Lt[Pt];if(typeof tr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tr,Pt,{value:tr,enumerable:!1,writable:!1,configurable:!0}),tr}function tr(){for(var pr,Kt,Qt=new Promise(function(_r,er){pr=_r,Kt=er}),Zt=[],ur=0;ur"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 gt(Ft){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},gt(Ft)}var kt={},pt,yt;function $t(Ft,Dt,zt){zt||(zt=Error);function Ht(lr,qt,Ot){return typeof Dt=="string"?Dt:Dt(lr,qt,Ot)}var Wt=function(lr){at(Ot,lr);var qt=lt(Ot);function Ot(Mt,ht,Et){var Tt;return st(this,Ot),Tt=qt.call(this,Ht(Mt,ht,Et)),Tt.code=Ft,Tt}return rt(Ot)}(zt);kt[Ft]=Wt}function mt(Ft,Dt){if(Array.isArray(Ft)){var zt=Ft.length;return Ft=Ft.map(function(Ht){return String(Ht)}),zt>2?"one of ".concat(Dt," ").concat(Ft.slice(0,zt-1).join(", "),", or ")+Ft[zt-1]:zt===2?"one of ".concat(Dt," ").concat(Ft[0]," or ").concat(Ft[1]):"of ".concat(Dt," ").concat(Ft[0])}else return"of ".concat(Dt," ").concat(String(Ft))}function wt(Ft,Dt,zt){return Ft.substr(!zt||zt<0?0:+zt,Dt.length)===Dt}function St(Ft,Dt,zt){return(zt===void 0||zt>Ft.length)&&(zt=Ft.length),Ft.substring(zt-Dt.length,zt)===Dt}function Bt(Ft,Dt,zt){return typeof zt!="number"&&(zt=0),zt+Dt.length>Ft.length?!1:Ft.indexOf(Dt,zt)!==-1}return $t("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),$t("ERR_INVALID_ARG_TYPE",function(Ft,Dt,zt){pt===void 0&&(pt=requireAssert()),pt(typeof Ft=="string","'name' must be a string");var Ht;typeof Dt=="string"&&wt(Dt,"not ")?(Ht="must not be",Dt=Dt.replace(/^not /,"")):Ht="must be";var Wt;if(St(Ft," argument"))Wt="The ".concat(Ft," ").concat(Ht," ").concat(mt(Dt,"type"));else{var lr=Bt(Ft,".")?"property":"argument";Wt='The "'.concat(Ft,'" ').concat(lr," ").concat(Ht," ").concat(mt(Dt,"type"))}return Wt+=". Received type ".concat(et(zt)),Wt},TypeError),$t("ERR_INVALID_ARG_VALUE",function(Ft,Dt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";yt===void 0&&(yt=util);var Ht=yt.inspect(Dt);return Ht.length>128&&(Ht="".concat(Ht.slice(0,128),"...")),"The argument '".concat(Ft,"' ").concat(zt,". Received ").concat(Ht)},TypeError),$t("ERR_INVALID_RETURN_VALUE",function(Ft,Dt,zt){var Ht;return zt&&zt.constructor&&zt.constructor.name?Ht="instance of ".concat(zt.constructor.name):Ht="type ".concat(et(zt)),"Expected ".concat(Ft,' to be returned from the "').concat(Dt,'"')+" function but got ".concat(Ht,".")},TypeError),$t("ERR_MISSING_ARGS",function(){for(var Ft=arguments.length,Dt=new Array(Ft),zt=0;zt0,"At least one arg needs to be specified");var Ht="The ",Wt=Dt.length;switch(Dt=Dt.map(function(lr){return'"'.concat(lr,'"')}),Wt){case 1:Ht+="".concat(Dt[0]," argument");break;case 2:Ht+="".concat(Dt[0]," and ").concat(Dt[1]," arguments");break;default:Ht+=Dt.slice(0,Wt-1).join(", "),Ht+=", and ".concat(Dt[Wt-1]," arguments");break}return"".concat(Ht," must be specified")},TypeError),errors$3.codes=kt,errors$3}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function et(Pt,It){var Ct=Object.keys(Pt);if(Object.getOwnPropertySymbols){var xt=Object.getOwnPropertySymbols(Pt);It&&(xt=xt.filter(function(Lt){return Object.getOwnPropertyDescriptor(Pt,Lt).enumerable})),Ct.push.apply(Ct,xt)}return Ct}function tt(Pt){for(var It=1;It"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 yt(Pt){return Function.toString.call(Pt).indexOf("[native code]")!==-1}function $t(Pt,It){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xt,Lt){return xt.__proto__=Lt,xt},$t(Pt,It)}function mt(Pt){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ct){return Ct.__proto__||Object.getPrototypeOf(Ct)},mt(Pt)}function wt(Pt){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},wt(Pt)}var St=util,Bt=St.inspect,Ft=requireErrors(),Dt=Ft.codes.ERR_INVALID_ARG_TYPE;function zt(Pt,It,Ct){return(Ct===void 0||Ct>Pt.length)&&(Ct=Pt.length),Pt.substring(Ct-It.length,Ct)===It}function Ht(Pt,It){if(It=Math.floor(It),Pt.length==0||It==0)return"";var Ct=Pt.length*It;for(It=Math.floor(Math.log(It)/Math.log(2));It;)Pt+=Pt,It--;return Pt+=Pt.substring(0,Ct-Pt.length),Pt}var Wt="",lr="",qt="",Ot="",Mt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ht=10;function Et(Pt){var It=Object.keys(Pt),Ct=Object.create(Object.getPrototypeOf(Pt));return It.forEach(function(xt){Ct[xt]=Pt[xt]}),Object.defineProperty(Ct,"message",{value:Pt.message}),Ct}function Tt(Pt){return Bt(Pt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Rt(Pt,It,Ct){var xt="",Lt="",tr=0,pr="",Kt=!1,Qt=Tt(Pt),Zt=Qt.split(` +`),ur=Tt(It).split(` +`),_r=0,er="";if(Ct==="strictEqual"&&wt(Pt)==="object"&&wt(It)==="object"&&Pt!==null&&It!==null&&(Ct="strictEqualObject"),Zt.length===1&&ur.length===1&&Zt[0]!==ur[0]){var Jt=Zt[0].length+ur[0].length;if(Jt<=ht){if((wt(Pt)!=="object"||Pt===null)&&(wt(It)!=="object"||It===null)&&(Pt!==0||It!==0))return"".concat(Mt[Ct],` + +`)+"".concat(Zt[0]," !== ").concat(ur[0],` +`)}else if(Ct!=="strictEqualObject"){var Ar=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(Jt2&&(er=` + `.concat(Ht(" ",_r),"^"),_r=0)}}}for(var Er=Zt[Zt.length-1],Dr=ur[ur.length-1];Er===Dr&&(_r++<2?pr=` + `.concat(Er).concat(pr):xt=Er,Zt.pop(),ur.pop(),!(Zt.length===0||ur.length===0));)Er=Zt[Zt.length-1],Dr=ur[ur.length-1];var Xr=Math.max(Zt.length,ur.length);if(Xr===0){var Vr=Qt.split(` +`);if(Vr.length>30)for(Vr[26]="".concat(Wt,"...").concat(Ot);Vr.length>27;)Vr.pop();return"".concat(Mt.notIdentical,` + +`).concat(Vr.join(` +`),` +`)}_r>3&&(pr=` +`.concat(Wt,"...").concat(Ot).concat(pr),Kt=!0),xt!==""&&(pr=` + `.concat(xt).concat(pr),xt="");var wr=0,br=Mt[Ct]+` +`.concat(lr,"+ actual").concat(Ot," ").concat(qt,"- expected").concat(Ot),or=" ".concat(Wt,"...").concat(Ot," Lines skipped");for(_r=0;_r1&&_r>2&&(xr>4?(Lt+=` +`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Lt+=` + `.concat(ur[_r-2]),wr++),Lt+=` + `.concat(ur[_r-1]),wr++),tr=_r,xt+=` +`.concat(qt,"-").concat(Ot," ").concat(ur[_r]),wr++;else if(ur.length<_r+1)xr>1&&_r>2&&(xr>4?(Lt+=` +`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Lt+=` + `.concat(Zt[_r-2]),wr++),Lt+=` + `.concat(Zt[_r-1]),wr++),tr=_r,Lt+=` +`.concat(lr,"+").concat(Ot," ").concat(Zt[_r]),wr++;else{var Pr=ur[_r],Or=Zt[_r],rr=Or!==Pr&&(!zt(Or,",")||Or.slice(0,-1)!==Pr);rr&&zt(Pr,",")&&Pr.slice(0,-1)===Or&&(rr=!1,Or+=","),rr?(xr>1&&_r>2&&(xr>4?(Lt+=` +`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Lt+=` + `.concat(Zt[_r-2]),wr++),Lt+=` + `.concat(Zt[_r-1]),wr++),tr=_r,Lt+=` +`.concat(lr,"+").concat(Ot," ").concat(Or),xt+=` +`.concat(qt,"-").concat(Ot," ").concat(Pr),wr+=2):(Lt+=xt,xt="",(xr===1||_r===0)&&(Lt+=` + `.concat(Or),wr++))}if(wr>20&&_r30)for(Jt[26]="".concat(Wt,"...").concat(Ot);Jt.length>27;)Jt.pop();Jt.length===1?tr=Ct.call(this,"".concat(er," ").concat(Jt[0])):tr=Ct.call(this,"".concat(er,` + +`).concat(Jt.join(` +`),` +`))}else{var Ar=Tt(Zt),Er="",Dr=Mt[Kt];Kt==="notDeepEqual"||Kt==="notEqual"?(Ar="".concat(Mt[Kt],` + +`).concat(Ar),Ar.length>1024&&(Ar="".concat(Ar.slice(0,1021),"..."))):(Er="".concat(Tt(ur)),Ar.length>512&&(Ar="".concat(Ar.slice(0,509),"...")),Er.length>512&&(Er="".concat(Er.slice(0,509),"...")),Kt==="deepEqual"||Kt==="equal"?Ar="".concat(Dr,` + +`).concat(Ar,` + +should equal + +`):Er=" ".concat(Kt," ").concat(Er)),tr=Ct.call(this,"".concat(Ar).concat(Er))}return Error.stackTraceLimit=_r,tr.generatedMessage=!pr,Object.defineProperty(bt(tr),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),tr.code="ERR_ASSERTION",tr.actual=Zt,tr.expected=ur,tr.operator=Kt,Error.captureStackTrace&&Error.captureStackTrace(bt(tr),Qt),tr.stack,tr.name="AssertionError",dt(tr)}return st(xt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:It,value:function(tr,pr){return Bt(this,tt(tt({},pr),{},{customInspect:!1,depth:0}))}}]),xt}(gt(Error),Bt.custom);return assertion_error=At,assertion_error}var toStr=Object.prototype.toString,isArguments$2=function(tt){var rt=toStr.call(tt),nt=rt==="[object Arguments]";return nt||(nt=rt!=="[object Array]"&&tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&toStr.call(tt.callee)==="[object Function]"),nt},implementation$5,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$5;hasRequiredImplementation$1=1;var et;if(!Object.keys){var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,nt=isArguments$2,it=Object.prototype.propertyIsEnumerable,st=!it.call({toString:null},"toString"),at=it.call(function(){},"prototype"),ot=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],lt=function(gt){var kt=gt.constructor;return kt&&kt.prototype===gt},ut={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},dt=function(){if(typeof window>"u")return!1;for(var gt in window)try{if(!ut["$"+gt]&&tt.call(window,gt)&&window[gt]!==null&&typeof window[gt]=="object")try{lt(window[gt])}catch{return!0}}catch{return!0}return!1}(),bt=function(gt){if(typeof window>"u"||!dt)return lt(gt);try{return lt(gt)}catch{return!1}};et=function(kt){var pt=kt!==null&&typeof kt=="object",yt=rt.call(kt)==="[object Function]",$t=nt(kt),mt=pt&&rt.call(kt)==="[object String]",wt=[];if(!pt&&!yt&&!$t)throw new TypeError("Object.keys called on a non-object");var St=at&&yt;if(mt&&kt.length>0&&!tt.call(kt,0))for(var Bt=0;Bt0)for(var Ft=0;Ft2?arguments[2]:{},gt=et(dt);tt&&(gt=nt.call(gt,Object.getOwnPropertySymbols(dt)));for(var kt=0;ktrr.length)&&(gr=rr.length);for(var Ir=0,Yt=new Array(gr);Ir10)return!0;for(var gr=0;gr57)return!0}return rr.length===10&&rr>=Math.pow(2,32)}function At(rr){return Object.keys(rr).filter(Rt).concat(bt(rr).filter(Object.prototype.propertyIsEnumerable.bind(rr)))}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function Pt(rr,gr){if(rr===gr)return 0;for(var Ir=rr.length,Yt=gr.length,Ut=0,Vt=Math.min(Ir,Yt);Ut1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er>BigInt(128),it=tt&BIG_U128_MAX;return rt=writeBigU128(et,it,rt),rt=writeBigU128(et,nt,rt),rt}function writeBigU128(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U128_MAX;const nt=tt>>BigInt(64),it=tt&BIG_U64_MAX;return rt=writeBigU64(et,it,rt),rt=writeBigU64(et,nt,rt),rt}function writeBigU64(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U64_MAX;const nt=Number(tt>>BigInt(32)),it=Number(tt&BigInt(4294967295));return rt=writeU32(et,it,rt),rt=writeU32(et,nt,rt),rt}function writeBigU56(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U56_MAX;const nt=Number(tt>>BigInt(32)),it=Number(tt&BigInt(4294967295));return rt=writeU32(et,it,rt),rt=writeU24(et,nt,rt),rt}function writeU64(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),write64(et,tt,rt,!1)}function writeU56(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),write56(et,tt,rt,!1)}function writeU48(et,tt,rt){enforce$6(Number.isSafeInteger(tt),"num","integer");const nt=tt*HI|0;return et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,et[rt++]=nt,et[rt++]=nt>>>8,rt}function writeU40(et,tt,rt){enforce$6(Number.isSafeInteger(tt),"num","integer");const nt=tt*HI|0;return et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,et[rt++]=nt,rt}function writeU32(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,rt}function writeU24(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt++]=tt,tt>>>=8,et[rt++]=tt,tt>>>=8,et[rt++]=tt,rt}function writeU16(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt++]=tt,et[rt++]=tt>>>8,rt}function writeU8(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt]=tt,rt+1}function writeUBE(et,tt,rt,nt){switch(nt){case 8:return writeU64BE(et,tt,rt);case 7:return writeU56BE(et,tt,rt);case 6:return writeU48BE(et,tt,rt);case 5:return writeU40BE(et,tt,rt);case 4:return writeU32BE(et,tt,rt);case 3:return writeU24BE(et,tt,rt);case 2:return writeU16BE(et,tt,rt);case 1:return writeU8(et,tt,rt);default:throw new EncodingError$4(rt,"Invalid write length")}}function writeBigU256BE(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U256_MAX;const nt=tt>>BigInt(128),it=tt&BIG_U128_MAX;return rt=writeBigU128BE(et,nt,rt),rt=writeBigU128BE(et,it,rt),rt}function writeBigU128BE(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U128_MAX;const nt=tt>>BigInt(64),it=tt&BIG_U64_MAX;return rt=writeBigU64BE(et,nt,rt),rt=writeBigU64BE(et,it,rt),rt}function writeBigU64BE(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U64_MAX;const nt=Number(tt>>BigInt(32)),it=Number(tt&BigInt(4294967295));return rt=writeU32BE(et,nt,rt),rt=writeU32BE(et,it,rt),rt}function writeBigU56BE(et,tt,rt){enforce$6(typeof tt=="bigint","num","bigint"),tt&=BIG_U56_MAX;const nt=Number(tt>>BigInt(32)),it=Number(tt&BigInt(4294967295));return rt=writeU24BE(et,nt,rt),rt=writeU32BE(et,it,rt),rt}function writeU64BE(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),write64(et,tt,rt,!0)}function writeU56BE(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),write56(et,tt,rt,!0)}function writeU48BE(et,tt,rt){enforce$6(Number.isSafeInteger(tt),"num","integer");const nt=tt*HI|0;return et[rt++]=nt>>>8,et[rt++]=nt,et[rt+3]=tt,tt>>>=8,et[rt+2]=tt,tt>>>=8,et[rt+1]=tt,tt>>>=8,et[rt]=tt,rt+4}function writeU40BE(et,tt,rt){enforce$6(Number.isSafeInteger(tt),"num","integer");const nt=tt*HI|0;return et[rt++]=nt,et[rt+3]=tt,tt>>>=8,et[rt+2]=tt,tt>>>=8,et[rt+1]=tt,tt>>>=8,et[rt]=tt,rt+4}function writeU32BE(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt+3]=tt,tt>>>=8,et[rt+2]=tt,tt>>>=8,et[rt+1]=tt,tt>>>=8,et[rt]=tt,rt+4}function writeU24BE(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt+2]=tt,tt>>>=8,et[rt+1]=tt,tt>>>=8,et[rt]=tt,rt+3}function writeU16BE(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),et[rt++]=tt>>>8,et[rt++]=tt,rt}function writeI(et,tt,rt,nt){switch(nt){case 8:return writeU64(et,tt,rt);case 7:return writeU56(et,tt,rt);case 6:return writeU48(et,tt,rt);case 5:return writeU40(et,tt,rt);case 4:return writeU24(et,tt,rt);case 3:return writeU32(et,tt,rt);case 2:return writeU16(et,tt,rt);case 1:return writeU8(et,tt,rt);default:throw new EncodingError$4(rt,"Invalid write length")}}function writeBigI64(et,tt,rt){return writeBigU64(et,tt,rt)}function writeBigI56(et,tt,rt){return writeBigU56(et,tt,rt)}function writeI64(et,tt,rt){return writeU64(et,tt,rt)}function writeI56(et,tt,rt){return writeU56(et,tt,rt)}function writeI48(et,tt,rt){return writeU48(et,tt,rt)}function writeI40(et,tt,rt){return writeU40(et,tt,rt)}function writeI32(et,tt,rt){return writeU32(et,tt,rt)}function writeI24(et,tt,rt){return writeU24(et,tt,rt)}function writeI16(et,tt,rt){return writeU16(et,tt,rt)}function writeI8(et,tt,rt){return writeU8(et,tt,rt)}function writeIBE(et,tt,rt,nt){switch(nt){case 8:return writeU64BE(et,tt,rt);case 7:return writeU56BE(et,tt,rt);case 6:return writeU48BE(et,tt,rt);case 5:return writeU40BE(et,tt,rt);case 4:return writeU32BE(et,tt,rt);case 3:return writeU24BE(et,tt,rt);case 2:return writeU16BE(et,tt,rt);case 1:return writeU8(et,tt,rt);default:throw new EncodingError$4(rt,"Invalid write length")}}function writeBigI64BE(et,tt,rt){return writeBigU64BE(et,tt,rt)}function writeBigI56BE(et,tt,rt){return writeBigU56BE(et,tt,rt)}function writeI64BE(et,tt,rt){return writeU64BE(et,tt,rt)}function writeI56BE(et,tt,rt){return writeU56BE(et,tt,rt)}function writeI48BE(et,tt,rt){return writeU48BE(et,tt,rt)}function writeI40BE(et,tt,rt){return writeU40BE(et,tt,rt)}function writeI32BE(et,tt,rt){return writeU32BE(et,tt,rt)}function writeI24BE(et,tt,rt){return writeU24BE(et,tt,rt)}function writeI16BE(et,tt,rt){return writeU16BE(et,tt,rt)}function _writeDoubleForwards(et,tt,rt){return enforce$6(isNumber(tt),"num","number"),F64_ARRAY[0]=tt,et[rt++]=F648_ARRAY[0],et[rt++]=F648_ARRAY[1],et[rt++]=F648_ARRAY[2],et[rt++]=F648_ARRAY[3],et[rt++]=F648_ARRAY[4],et[rt++]=F648_ARRAY[5],et[rt++]=F648_ARRAY[6],et[rt++]=F648_ARRAY[7],rt}function _writeDoubleBackwards(et,tt,rt){return enforce$6(isNumber(tt),"num","number"),F64_ARRAY[0]=tt,et[rt++]=F648_ARRAY[7],et[rt++]=F648_ARRAY[6],et[rt++]=F648_ARRAY[5],et[rt++]=F648_ARRAY[4],et[rt++]=F648_ARRAY[3],et[rt++]=F648_ARRAY[2],et[rt++]=F648_ARRAY[1],et[rt++]=F648_ARRAY[0],rt}function _writeFloatForwards(et,tt,rt){return enforce$6(isNumber(tt),"num","number"),F32_ARRAY[0]=tt,et[rt++]=F328_ARRAY[0],et[rt++]=F328_ARRAY[1],et[rt++]=F328_ARRAY[2],et[rt++]=F328_ARRAY[3],rt}function _writeFloatBackwards(et,tt,rt){return enforce$6(isNumber(tt),"num","number"),F32_ARRAY[0]=tt,et[rt++]=F328_ARRAY[3],et[rt++]=F328_ARRAY[2],et[rt++]=F328_ARRAY[1],et[rt++]=F328_ARRAY[0],rt}const writeFloat=BIG_ENDIAN?_writeFloatBackwards:_writeFloatForwards,writeFloatBE=BIG_ENDIAN?_writeFloatForwards:_writeFloatBackwards,writeDouble=BIG_ENDIAN?_writeDoubleBackwards:_writeDoubleForwards,writeDoubleBE=BIG_ENDIAN?_writeDoubleForwards:_writeDoubleBackwards;function readVarint(et,tt){let rt,nt;switch(checkRead(tt4294967295,tt,"Non-canonical varint");break;case 254:nt=5,checkRead(tt+nt<=et.length,tt),rt=readU32(et,tt+1),check$e(rt>65535,tt,"Non-canonical varint");break;case 253:nt=3,checkRead(tt+nt<=et.length,tt),rt=readU16(et,tt+1),check$e(rt>=253,tt,"Non-canonical varint");break;default:nt=1,rt=et[tt];break}return new Varint(nt,rt)}function writeVarint(et,tt,rt){return enforce$6(Number.isSafeInteger(tt),"num","integer"),tt<253?(et[rt++]=tt,rt):tt<=65535?(et[rt++]=253,writeU16(et,tt,rt)):tt<=4294967295?(et[rt++]=254,writeU32(et,tt,rt)):(et[rt++]=255,writeU64(et,tt,rt))}function sizeVarint(et){return enforce$6(Number.isSafeInteger(et),"num","integer"),et<253?1:et<=65535?3:et<=4294967295?5:9}function readVarint2(et,tt){let rt=0,nt=0;for(;;){checkRead(tt>>0===tt,"off","integer"),enforce$6(rt>>>0===rt,"size","integer"),tt+rt>et.length)throw new EncodingError$4(tt,"Out of bounds read");return et.slice(tt,tt+rt)}function readBytes(et,tt,rt){if(enforce$6(Buffer.isBuffer(et),"data","buffer"),enforce$6(tt>>>0===tt,"off","integer"),enforce$6(rt>>>0===rt,"size","integer"),tt+rt>et.length)throw new EncodingError$4(tt,"Out of bounds read");const nt=Buffer.allocUnsafeSlow(rt);return et.copy(nt,0,tt,tt+rt),nt}function writeBytes(et,tt,rt){if(enforce$6(Buffer.isBuffer(et),"data","buffer"),enforce$6(Buffer.isBuffer(tt),"value","buffer"),enforce$6(rt>>>0===rt,"off","integer"),rt+tt.length>et.length)throw new EncodingError$4(rt,"Out of bounds write");return tt.copy(et,rt,0,tt.length)}function readString(et,tt,rt,nt){if(nt==null&&(nt="binary"),enforce$6(Buffer.isBuffer(et),"data","buffer"),enforce$6(tt>>>0===tt,"off","integer"),enforce$6(rt>>>0===rt,"size","integer"),enforce$6(typeof nt=="string","enc","string"),tt+rt>et.length)throw new EncodingError$4(tt,"Out of bounds read");return et.toString(nt,tt,tt+rt)}function writeString(et,tt,rt,nt){if(nt==null&&(nt="binary"),enforce$6(Buffer.isBuffer(et),"data","buffer"),enforce$6(typeof tt=="string","str","string"),enforce$6(rt>>>0===rt,"off","integer"),enforce$6(typeof nt=="string","enc","string"),tt.length===0)return 0;const it=Buffer.byteLength(tt,nt);if(rt+it>et.length)throw new EncodingError$4(rt,"Out of bounds write");return et.write(tt,rt,nt)}function realloc(et,tt){enforce$6(Buffer.isBuffer(et),"data","buffer");const rt=Buffer.allocUnsafeSlow(tt);return et.copy(rt,0),rt}function copy$1(et){return enforce$6(Buffer.isBuffer(et),"data","buffer"),realloc(et,et.length)}function concat(et,tt){enforce$6(Buffer.isBuffer(et),"a","buffer"),enforce$6(Buffer.isBuffer(tt),"b","buffer");const rt=et.length+tt.length,nt=Buffer.allocUnsafeSlow(rt);return et.copy(nt,0),tt.copy(nt,et.length),nt}function sizeVarBytes(et){return enforce$6(Buffer.isBuffer(et),"data","buffer"),sizeVarint(et.length)+et.length}function sizeVarlen(et){return sizeVarint(et)+et}function sizeVarString(et,tt){if(tt==null&&(tt="binary"),enforce$6(typeof et=="string","str","string"),enforce$6(typeof tt=="string","enc","string"),et.length===0)return 1;const rt=Buffer.byteLength(et,tt);return sizeVarint(rt)+rt}function isSafe(et,tt){return et<0&&(et=~et,tt===0&&(et+=1)),(et&4292870144)===0}function write64(et,tt,rt,nt){let it=!1;tt<0&&(tt=-tt,it=!0);let st=tt*HI|0,at=tt|0;return it&&(at===0?st=~st+1|0:(st=~st,at=~at+1)),nt?(rt=writeI32BE(et,st,rt),rt=writeI32BE(et,at,rt)):(rt=writeI32(et,at,rt),rt=writeI32(et,st,rt)),rt}function write56(et,tt,rt,nt){let it=!1;tt<0&&(tt=-tt,it=!0);let st=tt*HI|0,at=tt|0;return it&&(at===0?st=~st+1|0:(st=~st,at=~at+1)),nt?(rt=writeI24BE(et,st,rt),rt=writeI32BE(et,at,rt)):(rt=writeI32(et,at,rt),rt=writeI24(et,st,rt)),rt}class Varint{constructor(tt,rt){this.size=tt,this.value=rt}}function isNumber(et){return typeof et=="number"&&isFinite(et)}function checkRead(et,tt){if(!et)throw new EncodingError$4(tt,"Out of bounds read",checkRead)}function check$e(et,tt,rt){if(!et)throw new EncodingError$4(tt,rt,check$e)}function throwNoBigInt(){throw new Error("BigInt not supported.")}function ensureBigInt(et){return typeof BigInt=="function"?et:throwNoBigInt}encoding$4.readU=readU;encoding$4.readBigU256=ensureBigInt(readBigU256);encoding$4.readBigU128=ensureBigInt(readBigU128);encoding$4.readBigU64=ensureBigInt(readBigU64);encoding$4.readBigU56=ensureBigInt(readBigU56);encoding$4.readU64=readU64;encoding$4.readU56=readU56;encoding$4.readU48=readU48;encoding$4.readU40=readU40;encoding$4.readU32=readU32;encoding$4.readU24=readU24;encoding$4.readU16=readU16;encoding$4.readU8=readU8;encoding$4.readUBE=readUBE;encoding$4.readBigU256BE=ensureBigInt(readBigU256BE);encoding$4.readBigU128BE=ensureBigInt(readBigU128BE);encoding$4.readBigU64BE=ensureBigInt(readBigU64BE);encoding$4.readBigU56BE=ensureBigInt(readBigU56BE);encoding$4.readU64BE=readU64BE;encoding$4.readU56BE=readU56BE;encoding$4.readU48BE=readU48BE;encoding$4.readU40BE=readU40BE;encoding$4.readU32BE=readU32BE;encoding$4.readU24BE=readU24BE;encoding$4.readU16BE=readU16BE;encoding$4.readI=readI;encoding$4.readBigI64=ensureBigInt(readBigI64);encoding$4.readBigI56=ensureBigInt(readBigI56);encoding$4.readI64=readI64;encoding$4.readI56=readI56;encoding$4.readI48=readI48;encoding$4.readI40=readI40;encoding$4.readI32=readI32;encoding$4.readI24=readI24;encoding$4.readI16=readI16;encoding$4.readI8=readI8;encoding$4.readIBE=readIBE;encoding$4.readBigI64BE=ensureBigInt(readBigI64BE);encoding$4.readBigI56BE=ensureBigInt(readBigI56BE);encoding$4.readI64BE=readI64BE;encoding$4.readI56BE=readI56BE;encoding$4.readI48BE=readI48BE;encoding$4.readI40BE=readI40BE;encoding$4.readI32BE=readI32BE;encoding$4.readI24BE=readI24BE;encoding$4.readI16BE=readI16BE;encoding$4.readFloat=readFloat;encoding$4.readFloatBE=readFloatBE;encoding$4.readDouble=readDouble;encoding$4.readDoubleBE=readDoubleBE;encoding$4.writeU=writeU;encoding$4.writeBigU256=ensureBigInt(writeBigU256);encoding$4.writeBigU128=ensureBigInt(writeBigU128);encoding$4.writeBigU64=ensureBigInt(writeBigU64);encoding$4.writeBigU56=ensureBigInt(writeBigU56);encoding$4.writeU64=writeU64;encoding$4.writeU56=writeU56;encoding$4.writeU48=writeU48;encoding$4.writeU40=writeU40;encoding$4.writeU32=writeU32;encoding$4.writeU24=writeU24;encoding$4.writeU16=writeU16;encoding$4.writeU8=writeU8;encoding$4.writeUBE=writeUBE;encoding$4.writeBigU256BE=ensureBigInt(writeBigU256BE);encoding$4.writeBigU128BE=ensureBigInt(writeBigU128BE);encoding$4.writeBigU64BE=ensureBigInt(writeBigU64BE);encoding$4.writeBigU56BE=ensureBigInt(writeBigU56BE);encoding$4.writeU64BE=writeU64BE;encoding$4.writeU56BE=writeU56BE;encoding$4.writeU48BE=writeU48BE;encoding$4.writeU40BE=writeU40BE;encoding$4.writeU32BE=writeU32BE;encoding$4.writeU24BE=writeU24BE;encoding$4.writeU16BE=writeU16BE;encoding$4.writeI=writeI;encoding$4.writeBigI64=ensureBigInt(writeBigI64);encoding$4.writeBigI56=ensureBigInt(writeBigI56);encoding$4.writeI64=writeI64;encoding$4.writeI56=writeI56;encoding$4.writeI48=writeI48;encoding$4.writeI40=writeI40;encoding$4.writeI32=writeI32;encoding$4.writeI24=writeI24;encoding$4.writeI16=writeI16;encoding$4.writeI8=writeI8;encoding$4.writeIBE=writeIBE;encoding$4.writeBigI64BE=ensureBigInt(writeBigI64BE);encoding$4.writeBigI56BE=ensureBigInt(writeBigI56BE);encoding$4.writeI64BE=writeI64BE;encoding$4.writeI56BE=writeI56BE;encoding$4.writeI48BE=writeI48BE;encoding$4.writeI40BE=writeI40BE;encoding$4.writeI32BE=writeI32BE;encoding$4.writeI24BE=writeI24BE;encoding$4.writeI16BE=writeI16BE;encoding$4.writeFloat=writeFloat;encoding$4.writeFloatBE=writeFloatBE;encoding$4.writeDouble=writeDouble;encoding$4.writeDoubleBE=writeDoubleBE;encoding$4.readVarint=readVarint;encoding$4.writeVarint=writeVarint;encoding$4.sizeVarint=sizeVarint;encoding$4.readVarint2=readVarint2;encoding$4.writeVarint2=writeVarint2;encoding$4.sizeVarint2=sizeVarint2;encoding$4.sliceBytes=sliceBytes;encoding$4.readBytes=readBytes;encoding$4.writeBytes=writeBytes;encoding$4.readString=readString;encoding$4.writeString=writeString;encoding$4.realloc=realloc;encoding$4.copy=copy$1;encoding$4.concat=concat;encoding$4.sizeVarBytes=sizeVarBytes;encoding$4.sizeVarlen=sizeVarlen;encoding$4.sizeVarString=sizeVarString;/*! + * reader.js - buffer reader for bcoin + * Copyright (c) 2014-2015, Fedor Indutny (MIT License) + * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). + * https://github.com/bcoin-org/bcoin + */const enforce$5=enforce_1,encoding$3=encoding$4,EncodingError$3=error,EMPTY$1=Buffer.alloc(0);let BufferReader$3=class{constructor(tt,rt=!1){Fp(this,"data");enforce$5(Buffer.isBuffer(tt),"data","buffer"),enforce$5(typeof rt=="boolean","zeroCopy","boolean"),this.data=tt,this.offset=0,this.zeroCopy=rt,this.stack=[]}check(tt){if(this.offset+tt>this.data.length)throw new EncodingError$3(this.offset,"Out of bounds read",this.check)}getSize(){return this.data.length}left(){return this.check(0),this.data.length-this.offset}seek(tt){if(enforce$5(Number.isSafeInteger(tt),"off","integer"),this.offset+tt<0)throw new EncodingError$3(this.offset,"Out of bounds read");return this.check(tt),this.offset+=tt,this}start(){return this.stack.push(this.offset),this.offset}end(){if(this.stack.length===0)throw new Error("Cannot end without a stack item.");const tt=this.stack.pop();return this.offset-tt}endData(tt=!1){if(enforce$5(typeof tt=="boolean","zeroCopy","boolean"),this.stack.length===0)throw new Error("Cannot end without a stack item.");const rt=this.stack.pop(),nt=this.offset,it=nt-rt,st=this.data;if(it===st.length)return st;if(this.zeroCopy||tt)return st.slice(rt,nt);const at=Buffer.allocUnsafeSlow(it);return st.copy(at,0,rt,nt),at}destroy(){return this.data=EMPTY$1,this.offset=0,this.stack.length=0,this}readU8(){this.check(1);const tt=this.data[this.offset];return this.offset+=1,tt}readU16(){this.check(2);const tt=encoding$3.readU16(this.data,this.offset);return this.offset+=2,tt}readU16BE(){this.check(2);const tt=encoding$3.readU16BE(this.data,this.offset);return this.offset+=2,tt}readU24(){this.check(3);const tt=encoding$3.readU24(this.data,this.offset);return this.offset+=3,tt}readU24BE(){this.check(3);const tt=encoding$3.readU24BE(this.data,this.offset);return this.offset+=3,tt}readU32(){this.check(4);const tt=encoding$3.readU32(this.data,this.offset);return this.offset+=4,tt}readU32BE(){this.check(4);const tt=encoding$3.readU32BE(this.data,this.offset);return this.offset+=4,tt}readU40(){this.check(5);const tt=encoding$3.readU40(this.data,this.offset);return this.offset+=5,tt}readU40BE(){this.check(5);const tt=encoding$3.readU40BE(this.data,this.offset);return this.offset+=5,tt}readU48(){this.check(6);const tt=encoding$3.readU48(this.data,this.offset);return this.offset+=6,tt}readU48BE(){this.check(6);const tt=encoding$3.readU48BE(this.data,this.offset);return this.offset+=6,tt}readU56(){this.check(7);const tt=encoding$3.readU56(this.data,this.offset);return this.offset+=7,tt}readU56BE(){this.check(7);const tt=encoding$3.readU56BE(this.data,this.offset);return this.offset+=7,tt}readBigU56(){this.check(7);const tt=encoding$3.readBigU56(this.data,this.offset);return this.offset+=7,tt}readBigU56BE(){this.check(7);const tt=encoding$3.readBigU56BE(this.data,this.offset);return this.offset+=7,tt}readU64(){this.check(8);const tt=encoding$3.readU64(this.data,this.offset);return this.offset+=8,tt}readU64BE(){this.check(8);const tt=encoding$3.readU64BE(this.data,this.offset);return this.offset+=8,tt}readBigU64(){this.check(8);const tt=encoding$3.readBigU64(this.data,this.offset);return this.offset+=8,tt}readBigU64BE(){this.check(8);const tt=encoding$3.readBigU64BE(this.data,this.offset);return this.offset+=8,tt}readBigU128(){this.check(16);const tt=encoding$3.readBigU128(this.data,this.offset);return this.offset+=16,tt}readBigU128BE(){this.check(16);const tt=encoding$3.readBigU128BE(this.data,this.offset);return this.offset+=16,tt}readBigU256(){this.check(32);const tt=encoding$3.readBigU256(this.data,this.offset);return this.offset+=32,tt}readBigU256BE(){this.check(32);const tt=encoding$3.readBigU256BE(this.data,this.offset);return this.offset+=32,tt}readI8(){this.check(1);const tt=encoding$3.readI8(this.data,this.offset);return this.offset+=1,tt}readI16(){this.check(2);const tt=encoding$3.readI16(this.data,this.offset);return this.offset+=2,tt}readI16BE(){this.check(2);const tt=encoding$3.readI16BE(this.data,this.offset);return this.offset+=2,tt}readI24(){this.check(3);const tt=encoding$3.readI24(this.data,this.offset);return this.offset+=3,tt}readI24BE(){this.check(3);const tt=encoding$3.readI24BE(this.data,this.offset);return this.offset+=3,tt}readI32(){this.check(4);const tt=encoding$3.readI32(this.data,this.offset);return this.offset+=4,tt}readI32BE(){this.check(4);const tt=encoding$3.readI32BE(this.data,this.offset);return this.offset+=4,tt}readI40(){this.check(5);const tt=encoding$3.readI40(this.data,this.offset);return this.offset+=5,tt}readI40BE(){this.check(5);const tt=encoding$3.readI40BE(this.data,this.offset);return this.offset+=5,tt}readI48(){this.check(6);const tt=encoding$3.readI48(this.data,this.offset);return this.offset+=6,tt}readI48BE(){this.check(6);const tt=encoding$3.readI48BE(this.data,this.offset);return this.offset+=6,tt}readI56(){this.check(7);const tt=encoding$3.readI56(this.data,this.offset);return this.offset+=7,tt}readI56BE(){this.check(7);const tt=encoding$3.readI56BE(this.data,this.offset);return this.offset+=7,tt}readBigI56(){this.check(7);const tt=encoding$3.readBigI56(this.data,this.offset);return this.offset+=7,tt}readBigI56BE(){this.check(7);const tt=encoding$3.readBigI56BE(this.data,this.offset);return this.offset+=7,tt}readI64(){this.check(8);const tt=encoding$3.readI64(this.data,this.offset);return this.offset+=8,tt}readI64BE(){this.check(8);const tt=encoding$3.readI64BE(this.data,this.offset);return this.offset+=8,tt}readBigI64(){this.check(8);const tt=encoding$3.readBigI64(this.data,this.offset);return this.offset+=8,tt}readBigI64BE(){this.check(8);const tt=encoding$3.readBigI64BE(this.data,this.offset);return this.offset+=8,tt}readFloat(){this.check(4);const tt=encoding$3.readFloat(this.data,this.offset);return this.offset+=4,tt}readFloatBE(){this.check(4);const tt=encoding$3.readFloatBE(this.data,this.offset);return this.offset+=4,tt}readDouble(){this.check(8);const tt=encoding$3.readDouble(this.data,this.offset);return this.offset+=8,tt}readDoubleBE(){this.check(8);const tt=encoding$3.readDoubleBE(this.data,this.offset);return this.offset+=8,tt}readVarint(){const{size:tt,value:rt}=encoding$3.readVarint(this.data,this.offset);return this.offset+=tt,rt}readVarint2(){const{size:tt,value:rt}=encoding$3.readVarint2(this.data,this.offset);return this.offset+=tt,rt}readBytes(tt,rt=!1){enforce$5(tt>>>0===tt,"size","integer"),enforce$5(typeof rt=="boolean","zeroCopy","boolean"),this.check(tt);let nt;return this.zeroCopy||rt?nt=this.data.slice(this.offset,this.offset+tt):(nt=Buffer.allocUnsafeSlow(tt),this.data.copy(nt,0,this.offset,this.offset+tt)),this.offset+=tt,nt}readVarBytes(tt=!1){return this.readBytes(this.readVarint(),tt)}readChild(tt){enforce$5(tt>>>0===tt,"size","integer"),this.check(tt);const rt=this.data.slice(0,this.offset+tt),nt=new this.constructor(rt);return nt.offset=this.offset,this.offset+=tt,nt}readString(tt,rt){rt==null&&(rt="binary"),enforce$5(tt>>>0===tt,"size","integer"),enforce$5(typeof rt=="string","enc","string"),this.check(tt);const nt=this.data.toString(rt,this.offset,this.offset+tt);return this.offset+=tt,nt}readHash(tt){return tt?this.readString(32,tt):this.readBytes(32)}readVarString(tt,rt=0){tt==null&&(tt="binary"),enforce$5(typeof tt=="string","enc","string"),enforce$5(rt>>>0===rt,"limit","integer");const nt=this.readVarint();if(rt!==0&&nt>rt)throw new EncodingError$3(this.offset,"String exceeds limit");return this.readString(nt,tt)}readNullString(tt){tt==null&&(tt="binary"),enforce$5(typeof tt=="string","enc","string");let rt=this.offset;for(;rt0&&(rt=this.stack[this.stack.length-1]);const nt=this.data.slice(rt,this.offset),it=tt.digest?tt.digest(nt):tt(nt);return encoding$3.readU32(it,0)}verifyChecksum(tt){const rt=this.createChecksum(tt),nt=this.readU32();if(rt!==nt)throw new EncodingError$3(this.offset,"Checksum mismatch");return rt}};var reader=BufferReader$3;/*! + * writer.js - buffer writer for bcoin + * Copyright (c) 2014-2015, Fedor Indutny (MIT License) + * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). + * https://github.com/bcoin-org/bcoin + */const enforce$4=enforce_1,encoding$2=encoding$4,EncodingError$2=error,SEEK=0,U8=1,U16=2,U16BE=3,U24=4,U24BE=5,U32=6,U32BE=7,U40=8,U40BE=9,U48=10,U48BE=11,U56=12,U56BE=13,U64=14,U64BE=15,I8=16,I16=17,I16BE=18,I24=19,I24BE=20,I32=21,I32BE=22,I40=23,I40BE=24,I48=25,I48BE=26,I56=27,I56BE=28,I64=29,I64BE=30,FL=31,FLBE=32,DBL=33,DBLBE=34,VARINT=35,VARINT2=36,BYTES=37,STR=38,CHECKSUM=39,FILL=40,BIG_U56=41,BIG_U56BE=42,BIG_U64=43,BIG_U64BE=44,BIG_I56=45,BIG_I56BE=46,BIG_I64=47,BIG_I64BE=48,BIG_U128=49,BIG_U128BE=50,BIG_U256=51,BIG_U256BE=52;let BufferWriter$3=class{constructor(){this.ops=[],this.offset=0}render(){const tt=Buffer.allocUnsafeSlow(this.offset);let rt=0;for(const nt of this.ops)switch(nt.type){case SEEK:rt+=nt.value;break;case U8:rt=encoding$2.writeU8(tt,nt.value,rt);break;case U16:rt=encoding$2.writeU16(tt,nt.value,rt);break;case U16BE:rt=encoding$2.writeU16BE(tt,nt.value,rt);break;case U24:rt=encoding$2.writeU24(tt,nt.value,rt);break;case U24BE:rt=encoding$2.writeU24BE(tt,nt.value,rt);break;case U32:rt=encoding$2.writeU32(tt,nt.value,rt);break;case U32BE:rt=encoding$2.writeU32BE(tt,nt.value,rt);break;case U40:rt=encoding$2.writeU40(tt,nt.value,rt);break;case U40BE:rt=encoding$2.writeU40BE(tt,nt.value,rt);break;case U48:rt=encoding$2.writeU48(tt,nt.value,rt);break;case U48BE:rt=encoding$2.writeU48BE(tt,nt.value,rt);break;case U56:rt=encoding$2.writeU56(tt,nt.value,rt);break;case U56BE:rt=encoding$2.writeU56BE(tt,nt.value,rt);break;case U64:rt=encoding$2.writeU64(tt,nt.value,rt);break;case U64BE:rt=encoding$2.writeU64BE(tt,nt.value,rt);break;case I8:rt=encoding$2.writeI8(tt,nt.value,rt);break;case I16:rt=encoding$2.writeI16(tt,nt.value,rt);break;case I16BE:rt=encoding$2.writeI16BE(tt,nt.value,rt);break;case I24:rt=encoding$2.writeI24(tt,nt.value,rt);break;case I24BE:rt=encoding$2.writeI24BE(tt,nt.value,rt);break;case I32:rt=encoding$2.writeI32(tt,nt.value,rt);break;case I32BE:rt=encoding$2.writeI32BE(tt,nt.value,rt);break;case I40:rt=encoding$2.writeI40(tt,nt.value,rt);break;case I40BE:rt=encoding$2.writeI40BE(tt,nt.value,rt);break;case I48:rt=encoding$2.writeI48(tt,nt.value,rt);break;case I48BE:rt=encoding$2.writeI48BE(tt,nt.value,rt);break;case I56:rt=encoding$2.writeI56(tt,nt.value,rt);break;case I56BE:rt=encoding$2.writeI56BE(tt,nt.value,rt);break;case I64:rt=encoding$2.writeI64(tt,nt.value,rt);break;case I64BE:rt=encoding$2.writeI64BE(tt,nt.value,rt);break;case FL:rt=encoding$2.writeFloat(tt,nt.value,rt);break;case FLBE:rt=encoding$2.writeFloatBE(tt,nt.value,rt);break;case DBL:rt=encoding$2.writeDouble(tt,nt.value,rt);break;case DBLBE:rt=encoding$2.writeDoubleBE(tt,nt.value,rt);break;case VARINT:rt=encoding$2.writeVarint(tt,nt.value,rt);break;case VARINT2:rt=encoding$2.writeVarint2(tt,nt.value,rt);break;case BYTES:rt+=nt.data.copy(tt,rt);break;case STR:rt+=tt.write(nt.value,rt,nt.enc);break;case CHECKSUM:rt+=nt.func(tt.slice(0,rt)).copy(tt,rt,0,4);break;case FILL:tt.fill(nt.value,rt,rt+nt.size),rt+=nt.size;break;case BIG_U56:rt=encoding$2.writeBigU56(tt,nt.value,rt);break;case BIG_U56BE:rt=encoding$2.writeBigU56BE(tt,nt.value,rt);break;case BIG_U64:rt=encoding$2.writeBigU64(tt,nt.value,rt);break;case BIG_U64BE:rt=encoding$2.writeBigU64BE(tt,nt.value,rt);break;case BIG_I56:rt=encoding$2.writeBigI56(tt,nt.value,rt);break;case BIG_I56BE:rt=encoding$2.writeBigI56BE(tt,nt.value,rt);break;case BIG_I64:rt=encoding$2.writeBigI64(tt,nt.value,rt);break;case BIG_I64BE:rt=encoding$2.writeBigI64BE(tt,nt.value,rt);break;case BIG_U128:rt=encoding$2.writeBigU128(tt,nt.value,rt);break;case BIG_U128BE:rt=encoding$2.writeBigU128BE(tt,nt.value,rt);break;case BIG_U256:rt=encoding$2.writeBigU256(tt,nt.value,rt);break;case BIG_U256BE:rt=encoding$2.writeBigU256BE(tt,nt.value,rt);break;default:throw new Error("Invalid type.")}if(rt!==tt.length)throw new EncodingError$2(rt,"Out of bounds write");return this.destroy(),tt}encode(){return this.render()}finish(tt){if(enforce$4(tt>>>0===tt,"size","integer"),this.offset>tt)throw new EncodingError$2(this.offset,"Out of bounds write");return this.fill(0,tt-this.offset),this.render()}getSize(){return this.offset}seek(tt){if(enforce$4(Number.isSafeInteger(tt),"off","integer"),this.offset+tt<0)throw new EncodingError$2(this.offset,"Out of bounds write");return this.offset+=tt,this.ops.push(new NumberOp(SEEK,tt)),this}destroy(){return this.ops.length=0,this.offset=0,this}writeU8(tt){return this.offset+=1,this.ops.push(new NumberOp(U8,tt)),this}writeU16(tt){return this.offset+=2,this.ops.push(new NumberOp(U16,tt)),this}writeU16BE(tt){return this.offset+=2,this.ops.push(new NumberOp(U16BE,tt)),this}writeU24(tt){return this.offset+=3,this.ops.push(new NumberOp(U24,tt)),this}writeU24BE(tt){return this.offset+=3,this.ops.push(new NumberOp(U24BE,tt)),this}writeU32(tt){return this.offset+=4,this.ops.push(new NumberOp(U32,tt)),this}writeU32BE(tt){return this.offset+=4,this.ops.push(new NumberOp(U32BE,tt)),this}writeU40(tt){return this.offset+=5,this.ops.push(new NumberOp(U40,tt)),this}writeU40BE(tt){return this.offset+=5,this.ops.push(new NumberOp(U40BE,tt)),this}writeU48(tt){return this.offset+=6,this.ops.push(new NumberOp(U48,tt)),this}writeU48BE(tt){return this.offset+=6,this.ops.push(new NumberOp(U48BE,tt)),this}writeU56(tt){return this.offset+=7,this.ops.push(new NumberOp(U56,tt)),this}writeU56BE(tt){return this.offset+=7,this.ops.push(new NumberOp(U56BE,tt)),this}writeBigU56(tt){return this.offset+=7,this.ops.push(new BigOp(BIG_U56,tt)),this}writeBigU56BE(tt){return this.offset+=7,this.ops.push(new BigOp(BIG_U56BE,tt)),this}writeU64(tt){return this.offset+=8,this.ops.push(new NumberOp(U64,tt)),this}writeU64BE(tt){return this.offset+=8,this.ops.push(new NumberOp(U64BE,tt)),this}writeBigU64(tt){return this.offset+=8,this.ops.push(new BigOp(BIG_U64,tt)),this}writeBigU64BE(tt){return this.offset+=8,this.ops.push(new BigOp(BIG_U64BE,tt)),this}writeBigU128(tt){return this.offset+=16,this.ops.push(new BigOp(BIG_U128,tt)),this}writeBigU128BE(tt){return this.offset+=16,this.ops.push(new BigOp(BIG_U128BE,tt)),this}writeBigU256(tt){return this.offset+=32,this.ops.push(new BigOp(BIG_U256,tt)),this}writeBigU256BE(tt){return this.offset+=32,this.ops.push(new BigOp(BIG_U256BE,tt)),this}writeI8(tt){return this.offset+=1,this.ops.push(new NumberOp(I8,tt)),this}writeI16(tt){return this.offset+=2,this.ops.push(new NumberOp(I16,tt)),this}writeI16BE(tt){return this.offset+=2,this.ops.push(new NumberOp(I16BE,tt)),this}writeI24(tt){return this.offset+=3,this.ops.push(new NumberOp(I24,tt)),this}writeI24BE(tt){return this.offset+=3,this.ops.push(new NumberOp(I24BE,tt)),this}writeI32(tt){return this.offset+=4,this.ops.push(new NumberOp(I32,tt)),this}writeI32BE(tt){return this.offset+=4,this.ops.push(new NumberOp(I32BE,tt)),this}writeI40(tt){return this.offset+=5,this.ops.push(new NumberOp(I40,tt)),this}writeI40BE(tt){return this.offset+=5,this.ops.push(new NumberOp(I40BE,tt)),this}writeI48(tt){return this.offset+=6,this.ops.push(new NumberOp(I48,tt)),this}writeI48BE(tt){return this.offset+=6,this.ops.push(new NumberOp(I48BE,tt)),this}writeI56(tt){return this.offset+=7,this.ops.push(new NumberOp(I56,tt)),this}writeI56BE(tt){return this.offset+=7,this.ops.push(new NumberOp(I56BE,tt)),this}writeBigI56(tt){return this.offset+=7,this.ops.push(new BigOp(BIG_I56,tt)),this}writeBigI56BE(tt){return this.offset+=7,this.ops.push(new BigOp(BIG_I56BE,tt)),this}writeI64(tt){return this.offset+=8,this.ops.push(new NumberOp(I64,tt)),this}writeI64BE(tt){return this.offset+=8,this.ops.push(new NumberOp(I64BE,tt)),this}writeBigI64(tt){return this.offset+=8,this.ops.push(new BigOp(BIG_I64,tt)),this}writeBigI64BE(tt){return this.offset+=8,this.ops.push(new BigOp(BIG_I64BE,tt)),this}writeFloat(tt){return this.offset+=4,this.ops.push(new NumberOp(FL,tt)),this}writeFloatBE(tt){return this.offset+=4,this.ops.push(new NumberOp(FLBE,tt)),this}writeDouble(tt){return this.offset+=8,this.ops.push(new NumberOp(DBL,tt)),this}writeDoubleBE(tt){return this.offset+=8,this.ops.push(new NumberOp(DBLBE,tt)),this}writeVarint(tt){return this.offset+=encoding$2.sizeVarint(tt),this.ops.push(new NumberOp(VARINT,tt)),this}writeVarint2(tt){return this.offset+=encoding$2.sizeVarint2(tt),this.ops.push(new NumberOp(VARINT2,tt)),this}writeBytes(tt){return enforce$4(Buffer.isBuffer(tt),"value","buffer"),tt.length===0?this:(this.offset+=tt.length,this.ops.push(new BufferOp(BYTES,tt)),this)}writeVarBytes(tt){return enforce$4(Buffer.isBuffer(tt),"value","buffer"),this.offset+=encoding$2.sizeVarint(tt.length),this.ops.push(new NumberOp(VARINT,tt.length)),tt.length===0?this:(this.offset+=tt.length,this.ops.push(new BufferOp(BYTES,tt)),this)}copy(tt,rt,nt){enforce$4(Buffer.isBuffer(tt),"value","buffer"),enforce$4(rt>>>0===rt,"start","integer"),enforce$4(nt>>>0===nt,"end","integer"),enforce$4(nt>=rt,"start","integer");const it=tt.slice(rt,nt);return this.writeBytes(it),this}writeString(tt,rt){return rt==null&&(rt="binary"),enforce$4(typeof tt=="string","value","string"),enforce$4(typeof rt=="string","enc","string"),tt.length===0?this:(this.offset+=Buffer.byteLength(tt,rt),this.ops.push(new StringOp(STR,tt,rt)),this)}writeHash(tt){return typeof tt!="string"?(enforce$4(Buffer.isBuffer(tt),"value","buffer"),enforce$4(tt.length===32,"value","32-byte hash"),this.writeBytes(tt),this):(enforce$4(tt.length===64,"value","32-byte hash"),this.writeString(tt,"hex"),this)}writeVarString(tt,rt){if(rt==null&&(rt="binary"),enforce$4(typeof tt=="string","value","string"),enforce$4(typeof rt=="string","enc","string"),tt.length===0)return this.ops.push(new NumberOp(VARINT,0)),this;const nt=Buffer.byteLength(tt,rt);return this.offset+=encoding$2.sizeVarint(nt),this.offset+=nt,this.ops.push(new NumberOp(VARINT,nt)),this.ops.push(new StringOp(STR,tt,rt)),this}writeNullString(tt,rt){return this.writeString(tt,rt),this.writeU8(0),this}writeChecksum(tt){return tt&&typeof tt.digest=="function"&&(tt=tt.digest.bind(tt)),enforce$4(typeof tt=="function","hash","function"),this.offset+=4,this.ops.push(new FunctionOp(CHECKSUM,tt)),this}fill(tt,rt){return enforce$4((tt&255)===tt,"value","byte"),enforce$4(rt>>>0===rt,"size","integer"),rt===0?this:(this.offset+=rt,this.ops.push(new FillOp(FILL,tt,rt)),this)}pad(tt,rt=0){return this.fill(rt,tt)}};class WriteOp{constructor(tt){this.type=tt}}class NumberOp extends WriteOp{constructor(tt,rt){super(tt),this.value=rt}}class BigOp extends WriteOp{constructor(tt,rt){super(tt),this.value=rt}}class BufferOp extends WriteOp{constructor(tt,rt){super(tt),this.data=rt}}class StringOp extends WriteOp{constructor(tt,rt,nt){super(tt),this.value=rt,this.enc=nt}}class FunctionOp extends WriteOp{constructor(tt,rt){super(tt),this.func=rt}}class FillOp extends WriteOp{constructor(tt,rt,nt){super(tt),this.value=rt,this.size=nt}}var writer=BufferWriter$3;/*! + * staticwriter.js - buffer writer for bcoin + * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). + * https://github.com/bcoin-org/bcoin + */const enforce$3=enforce_1,encoding$1=encoding$4,EncodingError$1=error,EMPTY=Buffer.alloc(0),POOL_SIZE=102400;let POOL=null,StaticWriter$2=class Su{constructor(tt){this.data=EMPTY,this.offset=0,tt!=null&&this.init(tt)}check(tt){if(this.offset+tt>this.data.length)throw new EncodingError$1(this.offset,"Out of bounds write",this.check)}init(tt){return Buffer.isBuffer(tt)?(this.data=tt,this.offset=0,this):(enforce$3(tt>>>0===tt,"size","integer"),this.data=Buffer.allocUnsafeSlow(tt),this.offset=0,this)}static pool(tt){if(enforce$3(tt>>>0===tt,"size","integer"),tt<=POOL_SIZE){POOL||(POOL=Buffer.allocUnsafeSlow(POOL_SIZE));const rt=new Su;return rt.data=POOL.slice(0,tt),rt}return new Su(tt)}render(){const{data:tt,offset:rt}=this;if(rt!==tt.length)throw new EncodingError$1(rt,"Out of bounds write");return this.destroy(),tt}encode(){return this.render()}slice(){const{data:tt,offset:rt}=this;if(rt>tt.length)throw new EncodingError$1(rt,"Out of bounds write");return this.destroy(),tt.slice(0,rt)}finish(){const{data:tt,offset:rt}=this;if(rt>tt.length)throw new EncodingError$1(rt,"Out of bounds write");return tt.fill(0,rt,tt.length),this.destroy(),tt}getSize(){return this.offset}seek(tt){if(enforce$3(Number.isSafeInteger(tt),"off","integer"),this.offset+tt<0)throw new EncodingError$1(this.offset,"Out of bounds write");return this.check(tt),this.offset+=tt,this}destroy(){return this.data=EMPTY,this.offset=0,this}writeU8(tt){return this.check(1),this.offset=encoding$1.writeU8(this.data,tt,this.offset),this}writeU16(tt){return this.check(2),this.offset=encoding$1.writeU16(this.data,tt,this.offset),this}writeU16BE(tt){return this.check(2),this.offset=encoding$1.writeU16BE(this.data,tt,this.offset),this}writeU24(tt){return this.check(3),this.offset=encoding$1.writeU24(this.data,tt,this.offset),this}writeU24BE(tt){return this.check(3),this.offset=encoding$1.writeU24BE(this.data,tt,this.offset),this}writeU32(tt){return this.check(4),this.offset=encoding$1.writeU32(this.data,tt,this.offset),this}writeU32BE(tt){return this.check(4),this.offset=encoding$1.writeU32BE(this.data,tt,this.offset),this}writeU40(tt){return this.check(5),this.offset=encoding$1.writeU40(this.data,tt,this.offset),this}writeU40BE(tt){return this.check(5),this.offset=encoding$1.writeU40BE(this.data,tt,this.offset),this}writeU48(tt){return this.check(6),this.offset=encoding$1.writeU48(this.data,tt,this.offset),this}writeU48BE(tt){return this.check(6),this.offset=encoding$1.writeU48BE(this.data,tt,this.offset),this}writeU56(tt){return this.check(7),this.offset=encoding$1.writeU56(this.data,tt,this.offset),this}writeU56BE(tt){return this.check(7),this.offset=encoding$1.writeU56BE(this.data,tt,this.offset),this}writeBigU56(tt){return this.check(7),this.offset=encoding$1.writeBigU56(this.data,tt,this.offset),this}writeBigU56BE(tt){return this.check(7),this.offset=encoding$1.writeBigU56BE(this.data,tt,this.offset),this}writeU64(tt){return this.check(8),this.offset=encoding$1.writeU64(this.data,tt,this.offset),this}writeU64BE(tt){return this.check(8),this.offset=encoding$1.writeU64BE(this.data,tt,this.offset),this}writeBigU64(tt){return this.check(8),this.offset=encoding$1.writeBigU64(this.data,tt,this.offset),this}writeBigU64BE(tt){return this.check(8),this.offset=encoding$1.writeBigU64BE(this.data,tt,this.offset),this}writeBigU128(tt){return this.check(16),this.offset=encoding$1.writeBigU128(this.data,tt,this.offset),this}writeBigU128BE(tt){return this.check(16),this.offset=encoding$1.writeBigU128BE(this.data,tt,this.offset),this}writeBigU256(tt){return this.check(32),this.offset=encoding$1.writeBigU256(this.data,tt,this.offset),this}writeBigU256BE(tt){return this.check(32),this.offset=encoding$1.writeBigU256BE(this.data,tt,this.offset),this}writeI8(tt){return this.check(1),this.offset=encoding$1.writeI8(this.data,tt,this.offset),this}writeI16(tt){return this.check(2),this.offset=encoding$1.writeI16(this.data,tt,this.offset),this}writeI16BE(tt){return this.check(2),this.offset=encoding$1.writeI16BE(this.data,tt,this.offset),this}writeI24(tt){return this.check(3),this.offset=encoding$1.writeI24(this.data,tt,this.offset),this}writeI24BE(tt){return this.check(3),this.offset=encoding$1.writeI24BE(this.data,tt,this.offset),this}writeI32(tt){return this.check(4),this.offset=encoding$1.writeI32(this.data,tt,this.offset),this}writeI32BE(tt){return this.check(4),this.offset=encoding$1.writeI32BE(this.data,tt,this.offset),this}writeI40(tt){return this.check(5),this.offset=encoding$1.writeI40(this.data,tt,this.offset),this}writeI40BE(tt){return this.check(5),this.offset=encoding$1.writeI40BE(this.data,tt,this.offset),this}writeI48(tt){return this.check(6),this.offset=encoding$1.writeI48(this.data,tt,this.offset),this}writeI48BE(tt){return this.check(6),this.offset=encoding$1.writeI48BE(this.data,tt,this.offset),this}writeI56(tt){return this.check(7),this.offset=encoding$1.writeI56(this.data,tt,this.offset),this}writeI56BE(tt){return this.check(7),this.offset=encoding$1.writeI56BE(this.data,tt,this.offset),this}writeBigI56(tt){return this.check(7),this.offset=encoding$1.writeBigI56(this.data,tt,this.offset),this}writeBigI56BE(tt){return this.check(7),this.offset=encoding$1.writeBigI56BE(this.data,tt,this.offset),this}writeI64(tt){return this.check(8),this.offset=encoding$1.writeI64(this.data,tt,this.offset),this}writeI64BE(tt){return this.check(8),this.offset=encoding$1.writeI64BE(this.data,tt,this.offset),this}writeBigI64(tt){return this.check(8),this.offset=encoding$1.writeBigI64(this.data,tt,this.offset),this}writeBigI64BE(tt){return this.check(8),this.offset=encoding$1.writeBigI64BE(this.data,tt,this.offset),this}writeFloat(tt){return this.check(4),this.offset=encoding$1.writeFloat(this.data,tt,this.offset),this}writeFloatBE(tt){return this.check(4),this.offset=encoding$1.writeFloatBE(this.data,tt,this.offset),this}writeDouble(tt){return this.check(8),this.offset=encoding$1.writeDouble(this.data,tt,this.offset),this}writeDoubleBE(tt){return this.check(8),this.offset=encoding$1.writeDoubleBE(this.data,tt,this.offset),this}writeVarint(tt){return this.offset=encoding$1.writeVarint(this.data,tt,this.offset),this}writeVarint2(tt){return this.offset=encoding$1.writeVarint2(this.data,tt,this.offset),this}writeBytes(tt){return enforce$3(Buffer.isBuffer(tt),"value","buffer"),this.check(tt.length),this.offset+=tt.copy(this.data,this.offset),this}writeVarBytes(tt){return enforce$3(Buffer.isBuffer(tt),"value","buffer"),this.writeVarint(tt.length),this.writeBytes(tt),this}copy(tt,rt,nt){return enforce$3(Buffer.isBuffer(tt),"value","buffer"),enforce$3(rt>>>0===rt,"start","integer"),enforce$3(nt>>>0===nt,"end","integer"),enforce$3(nt>=rt,"start","integer"),this.check(nt-rt),this.offset+=tt.copy(this.data,this.offset,rt,nt),this}writeString(tt,rt){if(rt==null&&(rt="binary"),enforce$3(typeof tt=="string","value","string"),enforce$3(typeof rt=="string","enc","string"),tt.length===0)return this;const nt=Buffer.byteLength(tt,rt);return this.check(nt),this.offset+=this.data.write(tt,this.offset,rt),this}writeHash(tt){return typeof tt!="string"?(enforce$3(Buffer.isBuffer(tt),"value","buffer"),enforce$3(tt.length===32,"value","32-byte hash"),this.writeBytes(tt),this):(enforce$3(tt.length===64,"value","32-byte hash"),this.check(32),this.offset+=this.data.write(tt,this.offset,"hex"),this)}writeVarString(tt,rt){if(rt==null&&(rt="binary"),enforce$3(typeof tt=="string","value","string"),enforce$3(typeof rt=="string","enc","string"),tt.length===0)return this.writeVarint(0),this;const nt=Buffer.byteLength(tt,rt);return this.writeVarint(nt),this.check(nt),this.offset+=this.data.write(tt,this.offset,rt),this}writeNullString(tt,rt){return this.writeString(tt,rt),this.writeU8(0),this}writeChecksum(tt){(!tt||typeof tt.digest!="function")&&enforce$3(typeof tt=="function","hash","function"),this.check(4);const rt=this.data.slice(0,this.offset);return(tt.digest?tt.digest(rt):tt(rt)).copy(this.data,this.offset,0,4),this.offset+=4,this}fill(tt,rt){return enforce$3((tt&255)===tt,"value","byte"),enforce$3(rt>>>0===rt,"size","integer"),rt===0?this:(this.check(rt),this.data.fill(tt,this.offset,this.offset+rt),this.offset+=rt,this)}pad(tt,rt=0){return this.fill(rt,tt)}};var staticwriter=StaticWriter$2;/*! + * struct.js - struct object for bcoin + * Copyright (c) 2018, Christopher Jeffrey (MIT License). + * https://github.com/bcoin-org/bcoin + */const enforce$2=enforce_1,BufferReader$2=reader,BufferWriter$2=writer,StaticWriter$1=staticwriter,{custom:custom$1}=customBrowser;let Struct$1=class{constructor(){}inject(tt){return enforce$2(tt instanceof this.constructor,"obj","struct"),this.decode(tt.encode())}clone(){return new this.constructor().inject(this)}getSize(tt){return-1}write(tt,rt){return tt}read(tt,rt){return this}toString(){return Object.prototype.toString.call(this)}fromString(tt,rt){return this}getJSON(){return this}fromJSON(tt,rt){return this}fromOptions(tt,rt){return this}from(tt,rt){return this.fromOptions(tt,rt)}format(){return this.getJSON()}encode(tt){const rt=this.getSize(tt),nt=rt===-1?new BufferWriter$2:new StaticWriter$1(rt);return this.write(nt,tt),nt.render()}decode(tt,rt){const nt=new BufferReader$2(tt);return this.read(nt,rt),this}toHex(tt){return this.encode(tt).toString("hex")}fromHex(tt,rt){enforce$2(typeof tt=="string","str","string");const nt=tt.length>>>1,it=Buffer.from(tt,"hex");if(it.length!==nt)throw new Error("Invalid hex string.");return this.decode(it,rt)}toBase64(tt){return this.encode(tt).toString("base64")}fromBase64(tt,rt){enforce$2(typeof tt=="string","str","string");const nt=Buffer.from(tt,"base64");if(tt.length>size64(nt.length))throw new Error("Invalid base64 string.");return this.decode(nt,rt)}toJSON(){return this.getJSON()}[custom$1](){return this.format()}static read(tt,rt){return new this().read(tt,rt)}static decode(tt,rt){return new this().decode(tt,rt)}static fromHex(tt,rt){return new this().fromHex(tt,rt)}static fromBase64(tt,rt){return new this().fromBase64(tt,rt)}static fromString(tt,rt){return new this().fromString(tt,rt)}static fromJSON(tt,rt){return new this().fromJSON(tt,rt)}static fromOptions(tt,rt){return new this().fromOptions(tt,rt)}static from(tt,rt){return new this().from(tt,rt)}toWriter(tt,rt){return this.write(tt,rt)}fromReader(tt,rt){return this.read(tt,rt)}toRaw(tt){return this.encode(tt)}fromRaw(tt,rt){return this.decode(tt,rt)}static fromReader(tt,rt){return this.read(tt,rt)}static fromRaw(tt,rt){return this.decode(tt,rt)}};function size64(et){return(4*et/3+3&-4)>>>0}var struct=Struct$1;/*! + * bufio.js - buffer utilities for javascript + * Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). + * https://github.com/bcoin-org/bcoin + */const custom=customBrowser,encoding=encoding$4,enforce$1=enforce_1,EncodingError=error,BufferReader$1=reader,BufferWriter$1=writer,StaticWriter=staticwriter,Struct=struct;bufio.custom=custom;bufio.encoding=encoding;bufio.EncodingError=EncodingError;bufio.BufferReader=BufferReader$1;bufio.BufferWriter=BufferWriter$1;bufio.StaticWriter=StaticWriter;bufio.Struct=Struct;bufio.read=function(tt,rt){return new BufferReader$1(tt,rt)};bufio.write=function(tt){return tt!=null?new StaticWriter(tt):new BufferWriter$1};bufio.pool=function(tt){return StaticWriter.pool(tt)};function _read(et,tt){return function(rt,nt){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(nt>>>0===nt,"off","integer"),nt+tt>rt.length)throw new EncodingError(nt,"Out of bounds read");return et(rt,nt)}}function _readn(et){return function(tt,rt,nt){if(enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),enforce$1(nt>>>0===nt,"len","integer"),rt+nt>tt.length)throw new EncodingError(rt,"Out of bounds read");return et(tt,rt,nt)}}function _readvar(et){return function(tt,rt){return enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),et(tt,rt)}}function _write(et,tt){return function(rt,nt,it){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(it>>>0===it,"off","integer"),it+tt>rt.length)throw new EncodingError(it,"Out of bounds write");return et(rt,nt,it)}}function _writen(et){return function(tt,rt,nt,it){if(enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(nt>>>0===nt,"off","integer"),enforce$1(it>>>0===it,"len","integer"),nt+it>tt.length)throw new EncodingError(nt,"Out of bounds write");return et(tt,rt,nt,it)}}function _writecb(et,tt){return function(rt,nt,it){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(it>>>0===it,"off","integer"),it+tt(nt)>rt.length)throw new EncodingError(it,"Out of bounds write");return et(rt,nt,it)}}bufio.readU=_readn(encoding.readU);bufio.readBigU256=_read(encoding.readBigU256,32);bufio.readBigU128=_read(encoding.readBigU128,16);bufio.readBigU64=_read(encoding.readBigU64,8);bufio.readBigU56=_read(encoding.readBigU56,7);bufio.readU64=_read(encoding.readU64,8);bufio.readU56=_read(encoding.readU56,7);bufio.readU48=_read(encoding.readU48,6);bufio.readU40=_read(encoding.readU40,5);bufio.readU32=_read(encoding.readU32,4);bufio.readU24=_read(encoding.readU24,3);bufio.readU16=_read(encoding.readU16,2);bufio.readU8=_read(encoding.readU8,1);bufio.readUBE=_readn(encoding.readUBE);bufio.readBigU256BE=_read(encoding.readBigU256BE,32);bufio.readBigU128BE=_read(encoding.readBigU128BE,16);bufio.readBigU64BE=_read(encoding.readBigU64BE,8);bufio.readBigU56BE=_read(encoding.readBigU56BE,7);bufio.readU64BE=_read(encoding.readU64BE,8);bufio.readU56BE=_read(encoding.readU56BE,7);bufio.readU48BE=_read(encoding.readU48BE,6);bufio.readU40BE=_read(encoding.readU40BE,5);bufio.readU32BE=_read(encoding.readU32BE,4);bufio.readU24BE=_read(encoding.readU24BE,3);bufio.readU16BE=_read(encoding.readU16BE,2);bufio.readI=_readn(encoding.readI);bufio.readBigI64=_read(encoding.readBigI64,8);bufio.readBigI56=_read(encoding.readBigI56,7);bufio.readI64=_read(encoding.readI64,8);bufio.readI56=_read(encoding.readI56,7);bufio.readI48=_read(encoding.readI48,6);bufio.readI40=_read(encoding.readI40,5);bufio.readI32=_read(encoding.readI32,4);bufio.readI24=_read(encoding.readI24,3);bufio.readI16=_read(encoding.readI16,2);bufio.readI8=_read(encoding.readI8,1);bufio.readIBE=_readn(encoding.readIBE);bufio.readBigI64BE=_read(encoding.readBigI64BE,8);bufio.readBigI56BE=_read(encoding.readBigI56BE,7);bufio.readI64BE=_read(encoding.readI64BE,8);bufio.readI56BE=_read(encoding.readI56BE,7);bufio.readI48BE=_read(encoding.readI48BE,6);bufio.readI40BE=_read(encoding.readI40BE,5);bufio.readI32BE=_read(encoding.readI32BE,4);bufio.readI24BE=_read(encoding.readI24BE,3);bufio.readI16BE=_read(encoding.readI16BE,2);bufio.readFloat=_read(encoding.readFloat,4);bufio.readFloatBE=_read(encoding.readFloatBE,4);bufio.readDouble=_read(encoding.readDouble,8);bufio.readDoubleBE=_read(encoding.readDoubleBE,8);bufio.writeU=_writen(encoding.writeU);bufio.writeBigU256=_write(encoding.writeBigU256,32);bufio.writeBigU128=_write(encoding.writeBigU128,16);bufio.writeBigU64=_write(encoding.writeBigU64,8);bufio.writeBigU56=_write(encoding.writeBigU56,7);bufio.writeU64=_write(encoding.writeU64,8);bufio.writeU56=_write(encoding.writeU56,7);bufio.writeU48=_write(encoding.writeU48,6);bufio.writeU40=_write(encoding.writeU40,5);bufio.writeU32=_write(encoding.writeU32,4);bufio.writeU24=_write(encoding.writeU24,3);bufio.writeU16=_write(encoding.writeU16,2);bufio.writeU8=_write(encoding.writeU8,1);bufio.writeUBE=_writen(encoding.writeUBE);bufio.writeBigU256BE=_write(encoding.writeBigU256BE,32);bufio.writeBigU128BE=_write(encoding.writeBigU128BE,16);bufio.writeBigU64BE=_write(encoding.writeBigU64BE,8);bufio.writeBigU56BE=_write(encoding.writeBigU56BE,7);bufio.writeU64BE=_write(encoding.writeU64BE,8);bufio.writeU56BE=_write(encoding.writeU56BE,7);bufio.writeU48BE=_write(encoding.writeU48BE,6);bufio.writeU40BE=_write(encoding.writeU40BE,5);bufio.writeU32BE=_write(encoding.writeU32BE,4);bufio.writeU24BE=_write(encoding.writeU24BE,3);bufio.writeU16BE=_write(encoding.writeU16BE,2);bufio.writeI=_writen(encoding.writeI);bufio.writeBigI64=_write(encoding.writeBigI64,8);bufio.writeBigI56=_write(encoding.writeBigI56,7);bufio.writeI64=_write(encoding.writeI64,8);bufio.writeI56=_write(encoding.writeI56,7);bufio.writeI48=_write(encoding.writeI48,6);bufio.writeI40=_write(encoding.writeI40,5);bufio.writeI32=_write(encoding.writeI32,4);bufio.writeI24=_write(encoding.writeI24,3);bufio.writeI16=_write(encoding.writeI16,2);bufio.writeI8=_write(encoding.writeI8,1);bufio.writeIBE=_writen(encoding.writeIBE);bufio.writeBigI64BE=_write(encoding.writeBigI64BE,8);bufio.writeBigI56BE=_write(encoding.writeBigI56BE,7);bufio.writeI64BE=_write(encoding.writeI64BE,8);bufio.writeI56BE=_write(encoding.writeI56BE,7);bufio.writeI48BE=_write(encoding.writeI48BE,6);bufio.writeI40BE=_write(encoding.writeI40BE,5);bufio.writeI32BE=_write(encoding.writeI32BE,4);bufio.writeI24BE=_write(encoding.writeI24BE,3);bufio.writeI16BE=_write(encoding.writeI16BE,2);bufio.writeFloat=_write(encoding.writeFloat,4);bufio.writeFloatBE=_write(encoding.writeFloatBE,4);bufio.writeDouble=_write(encoding.writeDouble,8);bufio.writeDoubleBE=_write(encoding.writeDoubleBE,8);bufio.readVarint=_readvar(encoding.readVarint);bufio.writeVarint=_writecb(encoding.writeVarint,encoding.sizeVarint);bufio.sizeVarint=encoding.sizeVarint;bufio.readVarint2=_readvar(encoding.readVarint2);bufio.writeVarint2=_writecb(encoding.writeVarint2,encoding.sizeVarint2);bufio.sizeVarint2=encoding.sizeVarint2;bufio.sliceBytes=encoding.sliceBytes;bufio.readBytes=encoding.readBytes;bufio.writeBytes=encoding.writeBytes;bufio.readString=encoding.readString;bufio.writeString=encoding.writeString;bufio.realloc=encoding.realloc;bufio.copy=encoding.copy;bufio.concat=encoding.concat;bufio.sizeVarBytes=encoding.sizeVarBytes;bufio.sizeVarlen=encoding.sizeVarlen;bufio.sizeVarString=encoding.sizeVarString;var cryptoBrowserify={},browser$c={exports:{}},safeBuffer$1={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(et,tt){var rt=buffer$2,nt=rt.Buffer;function it(at,ot){for(var lt in at)ot[lt]=at[lt]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?et.exports=rt:(it(rt,tt),tt.Buffer=st);function st(at,ot,lt){return nt(at,ot,lt)}st.prototype=Object.create(nt.prototype),it(nt,st),st.from=function(at,ot,lt){if(typeof at=="number")throw new TypeError("Argument must not be a number");return nt(at,ot,lt)},st.alloc=function(at,ot,lt){if(typeof at!="number")throw new TypeError("Argument must be a number");var ut=nt(at);return ot!==void 0?typeof lt=="string"?ut.fill(ot,lt):ut.fill(ot):ut.fill(0),ut},st.allocUnsafe=function(at){if(typeof at!="number")throw new TypeError("Argument must be a number");return nt(at)},st.allocUnsafeSlow=function(at){if(typeof at!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(at)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$H=safeBufferExports.Buffer,crypto$4=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$4&&crypto$4.getRandomValues?browser$c.exports=randomBytes$2:browser$c.exports=oldBrowser$1;function randomBytes$2(et,tt){if(et>MAX_UINT32)throw new RangeError("requested too many random bytes");var rt=Buffer$H.allocUnsafe(et);if(et>0)if(et>MAX_BYTES)for(var nt=0;nt0&&(at=rt[0]),at instanceof Error)throw at;var ot=new Error("Unhandled error."+(at?" ("+at.message+")":""));throw ot.context=at,ot}var lt=st[tt];if(lt===void 0)return!1;if(typeof lt=="function")ReflectApply(lt,this,rt);else for(var ut=lt.length,dt=arrayClone(lt,ut),nt=0;nt0&&at.length>it&&!at.warned){at.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+at.length+" "+String(tt)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=et,ot.type=tt,ot.count=at.length,ProcessEmitWarning(ot)}return et}EventEmitter.prototype.addListener=function(tt,rt){return _addListener(this,tt,rt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(tt,rt){return _addListener(this,tt,rt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,tt,rt){var nt={fired:!1,wrapFn:void 0,target:et,type:tt,listener:rt},it=onceWrapper.bind(nt);return it.listener=rt,nt.wrapFn=it,it}EventEmitter.prototype.once=function(tt,rt){return checkListener(rt),this.on(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.prependOnceListener=function(tt,rt){return checkListener(rt),this.prependListener(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.removeListener=function(tt,rt){var nt,it,st,at,ot;if(checkListener(rt),it=this._events,it===void 0)return this;if(nt=it[tt],nt===void 0)return this;if(nt===rt||nt.listener===rt)--this._eventsCount===0?this._events=Object.create(null):(delete it[tt],it.removeListener&&this.emit("removeListener",tt,nt.listener||rt));else if(typeof nt!="function"){for(st=-1,at=nt.length-1;at>=0;at--)if(nt[at]===rt||nt[at].listener===rt){ot=nt[at].listener,st=at;break}if(st<0)return this;st===0?nt.shift():spliceOne(nt,st),nt.length===1&&(it[tt]=nt[0]),it.removeListener!==void 0&&this.emit("removeListener",tt,ot||rt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(tt){var rt,nt,it;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[tt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[tt]),this;if(arguments.length===0){var st=Object.keys(nt),at;for(it=0;it=0;it--)this.removeListener(tt,rt[it]);return this};function _listeners(et,tt,rt){var nt=et._events;if(nt===void 0)return[];var it=nt[tt];return it===void 0?[]:typeof it=="function"?rt?[it.listener||it]:[it]:rt?unwrapListeners(it):arrayClone(it,it.length)}EventEmitter.prototype.listeners=function(tt){return _listeners(this,tt,!0)};EventEmitter.prototype.rawListeners=function(tt){return _listeners(this,tt,!1)};EventEmitter.listenerCount=function(et,tt){return typeof et.listenerCount=="function"?et.listenerCount(tt):listenerCount.call(et,tt)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(et){var tt=this._events;if(tt!==void 0){var rt=tt[et];if(typeof rt=="function")return 1;if(rt!==void 0)return rt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(et,tt){for(var rt=new Array(tt),nt=0;nt0?this.tail.next=mt:this.head=mt,this.tail=mt,++this.length}},{key:"unshift",value:function($t){var mt={data:$t,next:this.head};this.length===0&&(this.tail=mt),this.head=mt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var $t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,$t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function($t){if(this.length===0)return"";for(var mt=this.head,wt=""+mt.data;mt=mt.next;)wt+=$t+mt.data;return wt}},{key:"concat",value:function($t){if(this.length===0)return ut.alloc(0);for(var mt=ut.allocUnsafe($t>>>0),wt=this.head,St=0;wt;)kt(wt.data,mt,St),St+=wt.data.length,wt=wt.next;return mt}},{key:"consume",value:function($t,mt){var wt;return $tBt.length?Bt.length:$t;if(Ft===Bt.length?St+=Bt:St+=Bt.slice(0,$t),$t-=Ft,$t===0){Ft===Bt.length?(++wt,mt.next?this.head=mt.next:this.head=this.tail=null):(this.head=mt,mt.data=Bt.slice(Ft));break}++wt}return this.length-=wt,St}},{key:"_getBuffer",value:function($t){var mt=ut.allocUnsafe($t),wt=this.head,St=1;for(wt.data.copy(mt),$t-=wt.data.length;wt=wt.next;){var Bt=wt.data,Ft=$t>Bt.length?Bt.length:$t;if(Bt.copy(mt,mt.length-$t,0,Ft),$t-=Ft,$t===0){Ft===Bt.length?(++St,wt.next?this.head=wt.next:this.head=this.tail=null):(this.head=wt,wt.data=Bt.slice(Ft));break}++St}return this.length-=St,mt}},{key:gt,value:function($t,mt){return bt(this,tt(tt({},mt),{},{depth:0,customInspect:!1}))}}]),pt}(),buffer_list}function destroy(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,it=this._writableState&&this._writableState.destroyed;return nt||it?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,et)):process.nextTick(emitErrorNT,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(st){!tt&&st?rt._writableState?rt._writableState.errorEmitted?process.nextTick(emitCloseNT,rt):(rt._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,rt,st)):process.nextTick(emitErrorAndCloseNT,rt,st):tt?(process.nextTick(emitCloseNT,rt),tt(st)):process.nextTick(emitCloseNT,rt)}),this)}function emitErrorAndCloseNT(et,tt){emitErrorNT(et,tt),emitCloseNT(et)}function emitCloseNT(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,tt){et.emit("error",tt)}function errorOrDestroy(et,tt){var rt=et._readableState,nt=et._writableState;rt&&rt.autoDestroy||nt&&nt.autoDestroy?et.destroy(tt):et.emit("error",tt)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose$1(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}var codes={};function createErrorType(et,tt,rt){rt||(rt=Error);function nt(st,at,ot){return typeof tt=="string"?tt:tt(st,at,ot)}var it=function(st){_inheritsLoose$1(at,st);function at(ot,lt,ut){return st.call(this,nt(ot,lt,ut))||this}return at}(rt);it.prototype.name=rt.name,it.prototype.code=et,codes[et]=it}function oneOf(et,tt){if(Array.isArray(et)){var rt=et.length;return et=et.map(function(nt){return String(nt)}),rt>2?"one of ".concat(tt," ").concat(et.slice(0,rt-1).join(", "),", or ")+et[rt-1]:rt===2?"one of ".concat(tt," ").concat(et[0]," or ").concat(et[1]):"of ".concat(tt," ").concat(et[0])}else return"of ".concat(tt," ").concat(String(et))}function startsWith(et,tt,rt){return et.substr(!rt||rt<0?0:+rt,tt.length)===tt}function endsWith(et,tt,rt){return(rt===void 0||rt>et.length)&&(rt=et.length),et.substring(rt-tt.length,rt)===tt}function includes(et,tt,rt){return typeof rt!="number"&&(rt=0),rt+tt.length>et.length?!1:et.indexOf(tt,rt)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(et,tt){return'The value "'+tt+'" is invalid for option "'+et+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(et,tt,rt){var nt;typeof tt=="string"&&startsWith(tt,"not ")?(nt="must not be",tt=tt.replace(/^not /,"")):nt="must be";var it;if(endsWith(et," argument"))it="The ".concat(et," ").concat(nt," ").concat(oneOf(tt,"type"));else{var st=includes(et,".")?"property":"argument";it='The "'.concat(et,'" ').concat(st," ").concat(nt," ").concat(oneOf(tt,"type"))}return it+=". Received type ".concat(typeof rt),it},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,tt,rt){return et.highWaterMark!=null?et.highWaterMark:tt?et[rt]:null}function getHighWaterMark(et,tt,rt,nt){var it=highWaterMarkFrom(tt,nt,rt);if(it!=null){if(!(isFinite(it)&&Math.floor(it)===it)||it<0){var st=nt?rt:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(st,it)}return Math.floor(it)}return et.objectMode?16:16*1024}var state={getHighWaterMark},browser$b=deprecate;function deprecate(et,tt){if(config("noDeprecation"))return et;var rt=!1;function nt(){if(!rt){if(config("throwDeprecation"))throw new Error(tt);config("traceDeprecation")?console.trace(tt):console.warn(tt),rt=!0}return et.apply(this,arguments)}return nt}function config(et){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var tt=commonjsGlobal.localStorage[et];return tt==null?!1:String(tt).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Ht;function et(Kt){var Qt=this;this.next=null,this.entry=null,this.finish=function(){pr(Qt,Kt)}}var tt;Ht.WritableState=Dt;var rt={deprecate:browser$b},nt=streamBrowser,it=buffer$2.Buffer,st=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function at(Kt){return it.from(Kt)}function ot(Kt){return it.isBuffer(Kt)||Kt instanceof st}var lt=destroy_1,ut=state,dt=ut.getHighWaterMark,bt=errorsBrowser.codes,gt=bt.ERR_INVALID_ARG_TYPE,kt=bt.ERR_METHOD_NOT_IMPLEMENTED,pt=bt.ERR_MULTIPLE_CALLBACK,yt=bt.ERR_STREAM_CANNOT_PIPE,$t=bt.ERR_STREAM_DESTROYED,mt=bt.ERR_STREAM_NULL_VALUES,wt=bt.ERR_STREAM_WRITE_AFTER_END,St=bt.ERR_UNKNOWN_ENCODING,Bt=lt.errorOrDestroy;inherits_browserExports(Ht,nt);function Ft(){}function Dt(Kt,Qt,Zt){tt=tt||require_stream_duplex(),Kt=Kt||{},typeof Zt!="boolean"&&(Zt=Qt instanceof tt),this.objectMode=!!Kt.objectMode,Zt&&(this.objectMode=this.objectMode||!!Kt.writableObjectMode),this.highWaterMark=dt(this,Kt,"writableHighWaterMark",Zt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ur=Kt.decodeStrings===!1;this.decodeStrings=!ur,this.defaultEncoding=Kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_r){Tt(Qt,_r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Kt.emitClose!==!1,this.autoDestroy=!!Kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}Dt.prototype.getBuffer=function(){for(var Qt=this.bufferedRequest,Zt=[];Qt;)Zt.push(Qt),Qt=Qt.next;return Zt},function(){try{Object.defineProperty(Dt.prototype,"buffer",{get:rt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ht,Symbol.hasInstance,{value:function(Qt){return zt.call(this,Qt)?!0:this!==Ht?!1:Qt&&Qt._writableState instanceof Dt}})):zt=function(Qt){return Qt instanceof this};function Ht(Kt){tt=tt||require_stream_duplex();var Qt=this instanceof tt;if(!Qt&&!zt.call(Ht,this))return new Ht(Kt);this._writableState=new Dt(Kt,this,Qt),this.writable=!0,Kt&&(typeof Kt.write=="function"&&(this._write=Kt.write),typeof Kt.writev=="function"&&(this._writev=Kt.writev),typeof Kt.destroy=="function"&&(this._destroy=Kt.destroy),typeof Kt.final=="function"&&(this._final=Kt.final)),nt.call(this)}Ht.prototype.pipe=function(){Bt(this,new yt)};function Wt(Kt,Qt){var Zt=new wt;Bt(Kt,Zt),process.nextTick(Qt,Zt)}function lr(Kt,Qt,Zt,ur){var _r;return Zt===null?_r=new mt:typeof Zt!="string"&&!Qt.objectMode&&(_r=new gt("chunk",["string","Buffer"],Zt)),_r?(Bt(Kt,_r),process.nextTick(ur,_r),!1):!0}Ht.prototype.write=function(Kt,Qt,Zt){var ur=this._writableState,_r=!1,er=!ur.objectMode&&ot(Kt);return er&&!it.isBuffer(Kt)&&(Kt=at(Kt)),typeof Qt=="function"&&(Zt=Qt,Qt=null),er?Qt="buffer":Qt||(Qt=ur.defaultEncoding),typeof Zt!="function"&&(Zt=Ft),ur.ending?Wt(this,Zt):(er||lr(this,ur,Kt,Zt))&&(ur.pendingcb++,_r=Ot(this,ur,er,Kt,Qt,Zt)),_r},Ht.prototype.cork=function(){this._writableState.corked++},Ht.prototype.uncork=function(){var Kt=this._writableState;Kt.corked&&(Kt.corked--,!Kt.writing&&!Kt.corked&&!Kt.bufferProcessing&&Kt.bufferedRequest&&Pt(this,Kt))},Ht.prototype.setDefaultEncoding=function(Qt){if(typeof Qt=="string"&&(Qt=Qt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qt+"").toLowerCase())>-1))throw new St(Qt);return this._writableState.defaultEncoding=Qt,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qt(Kt,Qt,Zt){return!Kt.objectMode&&Kt.decodeStrings!==!1&&typeof Qt=="string"&&(Qt=it.from(Qt,Zt)),Qt}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ot(Kt,Qt,Zt,ur,_r,er){if(!Zt){var Jt=qt(Qt,ur,_r);ur!==Jt&&(Zt=!0,_r="buffer",ur=Jt)}var Ar=Qt.objectMode?1:ur.length;Qt.length+=Ar;var Er=Qt.length>5===6?2:et>>4===14?3:et>>3===30?4:et>>6===2?-1:-2}function utf8CheckIncomplete(et,tt,rt){var nt=tt.length-1;if(nt=0?(it>0&&(et.lastNeed=it-1),it):--nt=0?(it>0&&(et.lastNeed=it-2),it):--nt=0?(it>0&&(it===2?it=0:et.lastNeed=it-3),it):0))}function utf8CheckExtraBytes(et,tt,rt){if((tt[0]&192)!==128)return et.lastNeed=0,"�";if(et.lastNeed>1&&tt.length>1){if((tt[1]&192)!==128)return et.lastNeed=1,"�";if(et.lastNeed>2&&tt.length>2&&(tt[2]&192)!==128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var tt=this.lastTotal-this.lastNeed,rt=utf8CheckExtraBytes(this,et);if(rt!==void 0)return rt;if(this.lastNeed<=et.length)return et.copy(this.lastChar,tt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,tt,0,et.length),this.lastNeed-=et.length}function utf8Text(et,tt){var rt=utf8CheckIncomplete(this,et,tt);if(!this.lastNeed)return et.toString("utf8",tt);this.lastTotal=rt;var nt=et.length-(rt-this.lastNeed);return et.copy(this.lastChar,0,nt),et.toString("utf8",tt,nt)}function utf8End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+"�":tt}function utf16Text(et,tt){if((et.length-tt)%2===0){var rt=et.toString("utf16le",tt);if(rt){var nt=rt.charCodeAt(rt.length-1);if(nt>=55296&&nt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",tt,et.length-1)}function utf16End(et){var tt=et&&et.length?this.write(et):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return tt+this.lastChar.toString("utf16le",0,rt)}return tt}function base64Text(et,tt){var rt=(et.length-tt)%3;return rt===0?et.toString("base64",tt):(this.lastNeed=3-rt,this.lastTotal=3,rt===1?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",tt,et.length-rt))}function base64End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+this.lastChar.toString("base64",0,3-this.lastNeed):tt}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(et){var tt=!1;return function(){if(!tt){tt=!0;for(var rt=arguments.length,nt=new Array(rt),it=0;it0)if(typeof Jt!="string"&&!Xr.objectMode&&Object.getPrototypeOf(Jt)!==nt.prototype&&(Jt=st(Jt)),Er)Xr.endEmitted?Ft(er,new mt):qt(er,Xr,Jt,!0);else if(Xr.ended)Ft(er,new yt);else{if(Xr.destroyed)return!1;Xr.reading=!1,Xr.decoder&&!Ar?(Jt=Xr.decoder.write(Jt),Xr.objectMode||Jt.length!==0?qt(er,Xr,Jt,!1):Pt(er,Xr)):qt(er,Xr,Jt,!1)}else Er||(Xr.reading=!1,Pt(er,Xr))}return!Xr.ended&&(Xr.length=Mt?er=Mt:(er--,er|=er>>>1,er|=er>>>2,er|=er>>>4,er|=er>>>8,er|=er>>>16,er++),er}function Et(er,Jt){return er<=0||Jt.length===0&&Jt.ended?0:Jt.objectMode?1:er!==er?Jt.flowing&&Jt.length?Jt.buffer.head.data.length:Jt.length:(er>Jt.highWaterMark&&(Jt.highWaterMark=ht(er)),er<=Jt.length?er:Jt.ended?Jt.length:(Jt.needReadable=!0,0))}Wt.prototype.read=function(er){lt("read",er),er=parseInt(er,10);var Jt=this._readableState,Ar=er;if(er!==0&&(Jt.emittedReadable=!1),er===0&&Jt.needReadable&&((Jt.highWaterMark!==0?Jt.length>=Jt.highWaterMark:Jt.length>0)||Jt.ended))return lt("read: emitReadable",Jt.length,Jt.ended),Jt.length===0&&Jt.ended?Zt(this):Rt(this),null;if(er=Et(er,Jt),er===0&&Jt.ended)return Jt.length===0&&Zt(this),null;var Er=Jt.needReadable;lt("need readable",Er),(Jt.length===0||Jt.length-er0?Dr=Qt(er,Jt):Dr=null,Dr===null?(Jt.needReadable=Jt.length<=Jt.highWaterMark,er=0):(Jt.length-=er,Jt.awaitDrain=0),Jt.length===0&&(Jt.ended||(Jt.needReadable=!0),Ar!==er&&Jt.ended&&Zt(this)),Dr!==null&&this.emit("data",Dr),Dr};function Tt(er,Jt){if(lt("onEofChunk"),!Jt.ended){if(Jt.decoder){var Ar=Jt.decoder.end();Ar&&Ar.length&&(Jt.buffer.push(Ar),Jt.length+=Jt.objectMode?1:Ar.length)}Jt.ended=!0,Jt.sync?Rt(er):(Jt.needReadable=!1,Jt.emittedReadable||(Jt.emittedReadable=!0,At(er)))}}function Rt(er){var Jt=er._readableState;lt("emitReadable",Jt.needReadable,Jt.emittedReadable),Jt.needReadable=!1,Jt.emittedReadable||(lt("emitReadable",Jt.flowing),Jt.emittedReadable=!0,process.nextTick(At,er))}function At(er){var Jt=er._readableState;lt("emitReadable_",Jt.destroyed,Jt.length,Jt.ended),!Jt.destroyed&&(Jt.length||Jt.ended)&&(er.emit("readable"),Jt.emittedReadable=!1),Jt.needReadable=!Jt.flowing&&!Jt.ended&&Jt.length<=Jt.highWaterMark,Kt(er)}function Pt(er,Jt){Jt.readingMore||(Jt.readingMore=!0,process.nextTick(It,er,Jt))}function It(er,Jt){for(;!Jt.reading&&!Jt.ended&&(Jt.length1&&_r(Er.pipes,er)!==-1)&&!or&&(lt("false write response, pause",Er.awaitDrain),Er.awaitDrain++),Ar.pause())}function Or(Yt){lt("onerror",Yt),Ir(),er.removeListener("error",Or),tt(er,"error")===0&&Ft(er,Yt)}zt(er,"error",Or);function rr(){er.removeListener("finish",gr),Ir()}er.once("close",rr);function gr(){lt("onfinish"),er.removeListener("close",rr),Ir()}er.once("finish",gr);function Ir(){lt("unpipe"),Ar.unpipe(er)}return er.emit("pipe",Ar),Er.flowing||(lt("pipe resume"),Ar.resume()),er};function Ct(er){return function(){var Ar=er._readableState;lt("pipeOnDrain",Ar.awaitDrain),Ar.awaitDrain&&Ar.awaitDrain--,Ar.awaitDrain===0&&tt(er,"data")&&(Ar.flowing=!0,Kt(er))}}Wt.prototype.unpipe=function(er){var Jt=this._readableState,Ar={hasUnpiped:!1};if(Jt.pipesCount===0)return this;if(Jt.pipesCount===1)return er&&er!==Jt.pipes?this:(er||(er=Jt.pipes),Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1,er&&er.emit("unpipe",this,Ar),this);if(!er){var Er=Jt.pipes,Dr=Jt.pipesCount;Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1;for(var Xr=0;Xr0,Er.flowing!==!1&&this.resume()):er==="readable"&&!Er.endEmitted&&!Er.readableListening&&(Er.readableListening=Er.needReadable=!0,Er.flowing=!1,Er.emittedReadable=!1,lt("on readable",Er.length,Er.reading),Er.length?Rt(this):Er.reading||process.nextTick(Lt,this)),Ar},Wt.prototype.addListener=Wt.prototype.on,Wt.prototype.removeListener=function(er,Jt){var Ar=rt.prototype.removeListener.call(this,er,Jt);return er==="readable"&&process.nextTick(xt,this),Ar},Wt.prototype.removeAllListeners=function(er){var Jt=rt.prototype.removeAllListeners.apply(this,arguments);return(er==="readable"||er===void 0)&&process.nextTick(xt,this),Jt};function xt(er){var Jt=er._readableState;Jt.readableListening=er.listenerCount("readable")>0,Jt.resumeScheduled&&!Jt.paused?Jt.flowing=!0:er.listenerCount("data")>0&&er.resume()}function Lt(er){lt("readable nexttick read 0"),er.read(0)}Wt.prototype.resume=function(){var er=this._readableState;return er.flowing||(lt("resume"),er.flowing=!er.readableListening,tr(this,er)),er.paused=!1,this};function tr(er,Jt){Jt.resumeScheduled||(Jt.resumeScheduled=!0,process.nextTick(pr,er,Jt))}function pr(er,Jt){lt("resume",Jt.reading),Jt.reading||er.read(0),Jt.resumeScheduled=!1,er.emit("resume"),Kt(er),Jt.flowing&&!Jt.reading&&er.read(0)}Wt.prototype.pause=function(){return lt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(lt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Kt(er){var Jt=er._readableState;for(lt("flow",Jt.flowing);Jt.flowing&&er.read()!==null;);}Wt.prototype.wrap=function(er){var Jt=this,Ar=this._readableState,Er=!1;er.on("end",function(){if(lt("wrapped end"),Ar.decoder&&!Ar.ended){var Vr=Ar.decoder.end();Vr&&Vr.length&&Jt.push(Vr)}Jt.push(null)}),er.on("data",function(Vr){if(lt("wrapped data"),Ar.decoder&&(Vr=Ar.decoder.write(Vr)),!(Ar.objectMode&&Vr==null)&&!(!Ar.objectMode&&(!Vr||!Vr.length))){var wr=Jt.push(Vr);wr||(Er=!0,er.pause())}});for(var Dr in er)this[Dr]===void 0&&typeof er[Dr]=="function"&&(this[Dr]=function(wr){return function(){return er[wr].apply(er,arguments)}}(Dr));for(var Xr=0;Xr=Jt.length?(Jt.decoder?Ar=Jt.buffer.join(""):Jt.buffer.length===1?Ar=Jt.buffer.first():Ar=Jt.buffer.concat(Jt.length),Jt.buffer.clear()):Ar=Jt.buffer.consume(er,Jt.decoder),Ar}function Zt(er){var Jt=er._readableState;lt("endReadable",Jt.endEmitted),Jt.endEmitted||(Jt.ended=!0,process.nextTick(ur,Jt,er))}function ur(er,Jt){if(lt("endReadableNT",er.endEmitted,er.length),!er.endEmitted&&er.length===0&&(er.endEmitted=!0,Jt.readable=!1,Jt.emit("end"),er.autoDestroy)){var Ar=Jt._writableState;(!Ar||Ar.autoDestroy&&Ar.finished)&&Jt.destroy()}}typeof Symbol=="function"&&(Wt.from=function(er,Jt){return Bt===void 0&&(Bt=requireFromBrowser()),Bt(Wt,er,Jt)});function _r(er,Jt){for(var Ar=0,Er=er.length;Ar0;return destroyer(at,lt,ut,function(dt){it||(it=dt),dt&&st.forEach(call),!lt&&(st.forEach(call),nt(it))})});return tt.reduce(pipe)}var pipeline_1=pipeline;(function(et,tt){tt=et.exports=require_stream_readable(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable(),tt.Duplex=require_stream_duplex(),tt.Transform=_stream_transform,tt.PassThrough=_stream_passthrough,tt.finished=endOfStream,tt.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$F=safeBufferExports.Buffer,Transform$5=readableBrowserExports.Transform,inherits$v=inherits_browserExports;function throwIfNotStringOrBuffer(et,tt){if(!Buffer$F.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$2(et){Transform$5.call(this),this._block=Buffer$F.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$v(HashBase$2,Transform$5);HashBase$2.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(it){nt=it}rt(nt)};HashBase$2.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$2.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$F.isBuffer(et)||(et=Buffer$F.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var it=this._blockOffset;it0;++st)this._length[st]+=at,at=this._length[st]/4294967296|0,at>0&&(this._length[st]-=4294967296*at);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$u=inherits_browserExports,HashBase$1=hashBase,Buffer$E=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$u(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var et=ARRAY16$1,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);var rt=this._a,nt=this._b,it=this._c,st=this._d;rt=fnF(rt,nt,it,st,et[0],3614090360,7),st=fnF(st,rt,nt,it,et[1],3905402710,12),it=fnF(it,st,rt,nt,et[2],606105819,17),nt=fnF(nt,it,st,rt,et[3],3250441966,22),rt=fnF(rt,nt,it,st,et[4],4118548399,7),st=fnF(st,rt,nt,it,et[5],1200080426,12),it=fnF(it,st,rt,nt,et[6],2821735955,17),nt=fnF(nt,it,st,rt,et[7],4249261313,22),rt=fnF(rt,nt,it,st,et[8],1770035416,7),st=fnF(st,rt,nt,it,et[9],2336552879,12),it=fnF(it,st,rt,nt,et[10],4294925233,17),nt=fnF(nt,it,st,rt,et[11],2304563134,22),rt=fnF(rt,nt,it,st,et[12],1804603682,7),st=fnF(st,rt,nt,it,et[13],4254626195,12),it=fnF(it,st,rt,nt,et[14],2792965006,17),nt=fnF(nt,it,st,rt,et[15],1236535329,22),rt=fnG(rt,nt,it,st,et[1],4129170786,5),st=fnG(st,rt,nt,it,et[6],3225465664,9),it=fnG(it,st,rt,nt,et[11],643717713,14),nt=fnG(nt,it,st,rt,et[0],3921069994,20),rt=fnG(rt,nt,it,st,et[5],3593408605,5),st=fnG(st,rt,nt,it,et[10],38016083,9),it=fnG(it,st,rt,nt,et[15],3634488961,14),nt=fnG(nt,it,st,rt,et[4],3889429448,20),rt=fnG(rt,nt,it,st,et[9],568446438,5),st=fnG(st,rt,nt,it,et[14],3275163606,9),it=fnG(it,st,rt,nt,et[3],4107603335,14),nt=fnG(nt,it,st,rt,et[8],1163531501,20),rt=fnG(rt,nt,it,st,et[13],2850285829,5),st=fnG(st,rt,nt,it,et[2],4243563512,9),it=fnG(it,st,rt,nt,et[7],1735328473,14),nt=fnG(nt,it,st,rt,et[12],2368359562,20),rt=fnH(rt,nt,it,st,et[5],4294588738,4),st=fnH(st,rt,nt,it,et[8],2272392833,11),it=fnH(it,st,rt,nt,et[11],1839030562,16),nt=fnH(nt,it,st,rt,et[14],4259657740,23),rt=fnH(rt,nt,it,st,et[1],2763975236,4),st=fnH(st,rt,nt,it,et[4],1272893353,11),it=fnH(it,st,rt,nt,et[7],4139469664,16),nt=fnH(nt,it,st,rt,et[10],3200236656,23),rt=fnH(rt,nt,it,st,et[13],681279174,4),st=fnH(st,rt,nt,it,et[0],3936430074,11),it=fnH(it,st,rt,nt,et[3],3572445317,16),nt=fnH(nt,it,st,rt,et[6],76029189,23),rt=fnH(rt,nt,it,st,et[9],3654602809,4),st=fnH(st,rt,nt,it,et[12],3873151461,11),it=fnH(it,st,rt,nt,et[15],530742520,16),nt=fnH(nt,it,st,rt,et[2],3299628645,23),rt=fnI(rt,nt,it,st,et[0],4096336452,6),st=fnI(st,rt,nt,it,et[7],1126891415,10),it=fnI(it,st,rt,nt,et[14],2878612391,15),nt=fnI(nt,it,st,rt,et[5],4237533241,21),rt=fnI(rt,nt,it,st,et[12],1700485571,6),st=fnI(st,rt,nt,it,et[3],2399980690,10),it=fnI(it,st,rt,nt,et[10],4293915773,15),nt=fnI(nt,it,st,rt,et[1],2240044497,21),rt=fnI(rt,nt,it,st,et[8],1873313359,6),st=fnI(st,rt,nt,it,et[15],4264355552,10),it=fnI(it,st,rt,nt,et[6],2734768916,15),nt=fnI(nt,it,st,rt,et[13],1309151649,21),rt=fnI(rt,nt,it,st,et[4],4149444226,6),st=fnI(st,rt,nt,it,et[11],3174756917,10),it=fnI(it,st,rt,nt,et[2],718787259,15),nt=fnI(nt,it,st,rt,et[9],3951481745,21),this._a=this._a+rt|0,this._b=this._b+nt|0,this._c=this._c+it|0,this._d=this._d+st|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$E.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et};function rotl$3(et,tt){return et<>>32-tt}function fnF(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&rt|~tt&nt)+it+st|0,at)+tt|0}function fnG(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&nt|rt&~nt)+it+st|0,at)+tt|0}function fnH(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt^rt^nt)+it+st|0,at)+tt|0}function fnI(et,tt,rt,nt,it,st,at){return rotl$3(et+(rt^(tt|~nt))+it+st|0,at)+tt|0}var md5_js=MD5$3,Buffer$D=buffer$2.Buffer,inherits$t=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$t(RIPEMD160$5,HashBase);RIPEMD160$5.prototype._update=function(){for(var et=ARRAY16,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);for(var rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._a|0,lt=this._b|0,ut=this._c|0,dt=this._d|0,bt=this._e|0,gt=0;gt<80;gt+=1){var kt,pt;gt<16?(kt=fn1(rt,nt,it,st,at,et[zl[gt]],hl[0],sl[gt]),pt=fn5(ot,lt,ut,dt,bt,et[zr[gt]],hr[0],sr[gt])):gt<32?(kt=fn2(rt,nt,it,st,at,et[zl[gt]],hl[1],sl[gt]),pt=fn4(ot,lt,ut,dt,bt,et[zr[gt]],hr[1],sr[gt])):gt<48?(kt=fn3(rt,nt,it,st,at,et[zl[gt]],hl[2],sl[gt]),pt=fn3(ot,lt,ut,dt,bt,et[zr[gt]],hr[2],sr[gt])):gt<64?(kt=fn4(rt,nt,it,st,at,et[zl[gt]],hl[3],sl[gt]),pt=fn2(ot,lt,ut,dt,bt,et[zr[gt]],hr[3],sr[gt])):(kt=fn5(rt,nt,it,st,at,et[zl[gt]],hl[4],sl[gt]),pt=fn1(ot,lt,ut,dt,bt,et[zr[gt]],hr[4],sr[gt])),rt=at,at=st,st=rotl$2(it,10),it=nt,nt=kt,ot=bt,bt=dt,dt=rotl$2(ut,10),ut=lt,lt=pt}var yt=this._b+it+dt|0;this._b=this._c+st+bt|0,this._c=this._d+at+ot|0,this._d=this._e+rt+lt|0,this._e=this._a+nt+ut|0,this._a=yt};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$D.alloc?Buffer$D.alloc(20):new Buffer$D(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et};function rotl$2(et,tt){return et<>>32-tt}function fn1(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^rt^nt)+st+at|0,ot)+it|0}function fn2(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&rt|~tt&nt)+st+at|0,ot)+it|0}function fn3(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+((tt|~rt)^nt)+st+at|0,ot)+it|0}function fn4(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&nt|rt&~nt)+st+at|0,ot)+it|0}function fn5(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^(rt|~nt))+st+at|0,ot)+it|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},Buffer$C=safeBufferExports.Buffer;function Hash$9(et,tt){this._block=Buffer$C.alloc(et),this._finalSize=tt,this._blockSize=et,this._len=0}Hash$9.prototype.update=function(et,tt){typeof et=="string"&&(tt=tt||"utf8",et=Buffer$C.from(et,tt));for(var rt=this._block,nt=this._blockSize,it=et.length,st=this._len,at=0;at=this._finalSize&&(this._update(this._block),this._block.fill(0));var rt=this._len*8;if(rt<=4294967295)this._block.writeUInt32BE(rt,this._blockSize-4);else{var nt=(rt&4294967295)>>>0,it=(rt-nt)/4294967296;this._block.writeUInt32BE(it,this._blockSize-8),this._block.writeUInt32BE(nt,this._blockSize-4)}this._update(this._block);var st=this._hash();return et?st.toString(et):st};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$5=Hash$9,inherits$s=inherits_browserExports,Hash$8=hash$5,Buffer$B=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$8.call(this,64,56)}inherits$s(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(et){return et<<5|et>>>27}function rotl30$1(et){return et<<30|et>>>2}function ft$1(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16];for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5$1(rt)+ft$1(ut,nt,it,st)+at+tt[lt]+K$4[ut]|0;at=st,st=it,it=rotl30$1(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha.prototype._hash=function(){var et=Buffer$B.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha$4=Sha,inherits$r=inherits_browserExports,Hash$7=hash$5,Buffer$A=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$7.call(this,64,56)}inherits$r(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=rotl1(tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16]);for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5(rt)+ft(ut,nt,it,st)+at+tt[lt]+K$3[ut]|0;at=st,st=it,it=rotl30(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha1.prototype._hash=function(){var et=Buffer$A.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha1$1=Sha1,inherits$q=inherits_browserExports,Hash$6=hash$5,Buffer$z=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$6.call(this,64,56)}inherits$q(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(et,tt,rt){return rt^et&(tt^rt)}function maj$1(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0$1(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1$1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}Sha256$1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._f|0,lt=this._g|0,ut=this._h|0,dt=0;dt<16;++dt)tt[dt]=et.readInt32BE(dt*4);for(;dt<64;++dt)tt[dt]=gamma1(tt[dt-2])+tt[dt-7]+gamma0(tt[dt-15])+tt[dt-16]|0;for(var bt=0;bt<64;++bt){var gt=ut+sigma1$1(at)+ch(at,ot,lt)+K$2[bt]+tt[bt]|0,kt=sigma0$1(rt)+maj$1(rt,nt,it)|0;ut=lt,lt=ot,ot=at,at=st+gt|0,st=it,it=nt,nt=rt,rt=gt+kt|0}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0,this._f=ot+this._f|0,this._g=lt+this._g|0,this._h=ut+this._h|0};Sha256$1.prototype._hash=function(){var et=Buffer$z.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et};var sha256$4=Sha256$1,inherits$p=inherits_browserExports,Sha256=sha256$4,Hash$5=hash$5,Buffer$y=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$5.call(this,64,56)}inherits$p(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var et=Buffer$y.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et};var sha224$1=Sha224,inherits$o=inherits_browserExports,Hash$4=hash$5,Buffer$x=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$4.call(this,128,112)}inherits$o(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(et,tt,rt){return rt^et&(tt^rt)}function maj(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0(et,tt){return(et>>>28|tt<<4)^(tt>>>2|et<<30)^(tt>>>7|et<<25)}function sigma1(et,tt){return(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23)}function Gamma0(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^et>>>7}function Gamma0l(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^(et>>>7|tt<<25)}function Gamma1(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^et>>>6}function Gamma1l(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^(et>>>6|tt<<26)}function getCarry(et,tt){return et>>>0>>0?1:0}Sha512.prototype._update=function(et){for(var tt=this._w,rt=this._ah|0,nt=this._bh|0,it=this._ch|0,st=this._dh|0,at=this._eh|0,ot=this._fh|0,lt=this._gh|0,ut=this._hh|0,dt=this._al|0,bt=this._bl|0,gt=this._cl|0,kt=this._dl|0,pt=this._el|0,yt=this._fl|0,$t=this._gl|0,mt=this._hl|0,wt=0;wt<32;wt+=2)tt[wt]=et.readInt32BE(wt*4),tt[wt+1]=et.readInt32BE(wt*4+4);for(;wt<160;wt+=2){var St=tt[wt-30],Bt=tt[wt-15*2+1],Ft=Gamma0(St,Bt),Dt=Gamma0l(Bt,St);St=tt[wt-2*2],Bt=tt[wt-2*2+1];var zt=Gamma1(St,Bt),Ht=Gamma1l(Bt,St),Wt=tt[wt-7*2],lr=tt[wt-7*2+1],qt=tt[wt-16*2],Ot=tt[wt-16*2+1],Mt=Dt+lr|0,ht=Ft+Wt+getCarry(Mt,Dt)|0;Mt=Mt+Ht|0,ht=ht+zt+getCarry(Mt,Ht)|0,Mt=Mt+Ot|0,ht=ht+qt+getCarry(Mt,Ot)|0,tt[wt]=ht,tt[wt+1]=Mt}for(var Et=0;Et<160;Et+=2){ht=tt[Et],Mt=tt[Et+1];var Tt=maj(rt,nt,it),Rt=maj(dt,bt,gt),At=sigma0(rt,dt),Pt=sigma0(dt,rt),It=sigma1(at,pt),Ct=sigma1(pt,at),xt=K$1[Et],Lt=K$1[Et+1],tr=Ch(at,ot,lt),pr=Ch(pt,yt,$t),Kt=mt+Ct|0,Qt=ut+It+getCarry(Kt,mt)|0;Kt=Kt+pr|0,Qt=Qt+tr+getCarry(Kt,pr)|0,Kt=Kt+Lt|0,Qt=Qt+xt+getCarry(Kt,Lt)|0,Kt=Kt+Mt|0,Qt=Qt+ht+getCarry(Kt,Mt)|0;var Zt=Pt+Rt|0,ur=At+Tt+getCarry(Zt,Pt)|0;ut=lt,mt=$t,lt=ot,$t=yt,ot=at,yt=pt,pt=kt+Kt|0,at=st+Qt+getCarry(pt,kt)|0,st=it,kt=gt,it=nt,gt=bt,nt=rt,bt=dt,dt=Kt+Zt|0,rt=Qt+ur+getCarry(dt,Kt)|0}this._al=this._al+dt|0,this._bl=this._bl+bt|0,this._cl=this._cl+gt|0,this._dl=this._dl+kt|0,this._el=this._el+pt|0,this._fl=this._fl+yt|0,this._gl=this._gl+$t|0,this._hl=this._hl+mt|0,this._ah=this._ah+rt+getCarry(this._al,dt)|0,this._bh=this._bh+nt+getCarry(this._bl,bt)|0,this._ch=this._ch+it+getCarry(this._cl,gt)|0,this._dh=this._dh+st+getCarry(this._dl,kt)|0,this._eh=this._eh+at+getCarry(this._el,pt)|0,this._fh=this._fh+ot+getCarry(this._fl,yt)|0,this._gh=this._gh+lt+getCarry(this._gl,$t)|0,this._hh=this._hh+ut+getCarry(this._hl,mt)|0};Sha512.prototype._hash=function(){var et=Buffer$x.allocUnsafe(64);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),tt(this._gh,this._gl,48),tt(this._hh,this._hl,56),et};var sha512$1=Sha512,inherits$n=inherits_browserExports,SHA512$2=sha512$1,Hash$3=hash$5,Buffer$w=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$3.call(this,128,112)}inherits$n(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var et=Buffer$w.allocUnsafe(48);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),et};var sha384$1=Sha384,exports$1=sha_js.exports=function(tt){tt=tt.toLowerCase();var rt=exports$1[tt];if(!rt)throw new Error(tt+" is not supported (we accept pull requests)");return new rt};exports$1.sha=sha$4;exports$1.sha1=sha1$1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$4;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$m=inherits_browserExports;inherits$m(Stream,EE);Stream.Readable=require_stream_readable();Stream.Writable=require_stream_writable();Stream.Duplex=require_stream_duplex();Stream.Transform=_stream_transform;Stream.PassThrough=_stream_passthrough;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(et,tt){var rt=this;function nt(dt){et.writable&&et.write(dt)===!1&&rt.pause&&rt.pause()}rt.on("data",nt);function it(){rt.readable&&rt.resume&&rt.resume()}et.on("drain",it),!et._isStdio&&(!tt||tt.end!==!1)&&(rt.on("end",at),rt.on("close",ot));var st=!1;function at(){st||(st=!0,et.end())}function ot(){st||(st=!0,typeof et.destroy=="function"&&et.destroy())}function lt(dt){if(ut(),EE.listenerCount(this,"error")===0)throw dt}rt.on("error",lt),et.on("error",lt);function ut(){rt.removeListener("data",nt),et.removeListener("drain",it),rt.removeListener("end",at),rt.removeListener("close",ot),rt.removeListener("error",lt),et.removeListener("error",lt),rt.removeListener("end",ut),rt.removeListener("close",ut),et.removeListener("close",ut)}return rt.on("end",ut),rt.on("close",ut),et.on("close",ut),et.emit("pipe",rt),et};var Buffer$v=safeBufferExports.Buffer,Transform$4=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$l=inherits_browserExports;function CipherBase$1(et){Transform$4.call(this),this.hashMode=typeof et=="string",this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$l(CipherBase$1,Transform$4);CipherBase$1.prototype.update=function(et,tt,rt){typeof et=="string"&&(et=Buffer$v.from(et,tt));var nt=this._update(et);return this.hashMode?this:(rt&&(nt=this._toString(nt,rt)),nt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(et,tt,rt){var nt;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(it){nt=it}finally{rt(nt)}};CipherBase$1.prototype._flush=function(et){var tt;try{this.push(this.__final())}catch(rt){tt=rt}et(tt)};CipherBase$1.prototype._finalOrDigest=function(et){var tt=this.__final()||Buffer$v.alloc(0);return et&&(tt=this._toString(tt,et,!0)),tt};CipherBase$1.prototype._toString=function(et,tt,rt){if(this._decoder||(this._decoder=new StringDecoder(tt),this._encoding=tt),this._encoding!==tt)throw new Error("can't switch encodings");var nt=this._decoder.write(et);return rt&&(nt+=this._decoder.end()),nt};var cipherBase=CipherBase$1,inherits$k=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(et){Base$5.call(this,"digest"),this._hash=et}inherits$k(Hash$2,Base$5);Hash$2.prototype._update=function(et){this._hash.update(et)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$a=function(tt){return tt=tt.toLowerCase(),tt==="md5"?new MD5$2:tt==="rmd160"||tt==="ripemd160"?new RIPEMD160$4:new Hash$2(sha$3(tt))},inherits$j=inherits_browserExports,Buffer$u=safeBufferExports.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$u.alloc(128),blocksize=64;function Hmac$3(et,tt){Base$4.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$u.from(tt)),this._alg=et,this._key=tt,tt.length>blocksize?tt=et(tt):tt.lengthrt){var nt=et==="rmd160"?new RIPEMD160$3:sha$2(et);tt=nt.update(tt).digest()}else tt.lengthMAX_ALLOC||tt!==tt)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$s=safeBufferExports.Buffer,toBuffer$3=function(et,tt,rt){if(Buffer$s.isBuffer(et))return et;if(typeof et=="string")return Buffer$s.from(et,tt);if(ArrayBuffer.isView(et))return Buffer$s.from(et.buffer);throw new TypeError(rt+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$2=ripemd160$1,sha$1=sha_jsExports,Buffer$r=safeBufferExports.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$2=toBuffer$3,ZEROS=Buffer$r.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(et,tt,rt){var nt=getDigest(et),it=et==="sha512"||et==="sha384"?128:64;tt.length>it?tt=nt(tt):tt.length>>0};utils$p.writeUInt32BE=function(tt,rt,nt){tt[0+nt]=rt>>>24,tt[1+nt]=rt>>>16&255,tt[2+nt]=rt>>>8&255,tt[3+nt]=rt&255};utils$p.ip=function(tt,rt,nt,it){for(var st=0,at=0,ot=6;ot>=0;ot-=2){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>>lt+ot&1}for(var ot=6;ot>=0;ot-=2){for(var lt=1;lt<=25;lt+=8)at<<=1,at|=rt>>>lt+ot&1;for(var lt=1;lt<=25;lt+=8)at<<=1,at|=tt>>>lt+ot&1}nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.rip=function(tt,rt,nt,it){for(var st=0,at=0,ot=0;ot<4;ot++)for(var lt=24;lt>=0;lt-=8)st<<=1,st|=rt>>>lt+ot&1,st<<=1,st|=tt>>>lt+ot&1;for(var ot=4;ot<8;ot++)for(var lt=24;lt>=0;lt-=8)at<<=1,at|=rt>>>lt+ot&1,at<<=1,at|=tt>>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.pc1=function(tt,rt,nt,it){for(var st=0,at=0,ot=7;ot>=5;ot--){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var ot=1;ot<=3;ot++){for(var lt=0;lt<=24;lt+=8)at<<=1,at|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.r28shl=function(tt,rt){return tt<>>28-rt};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$p.pc2=function(tt,rt,nt,it){for(var st=0,at=0,ot=pc2table.length>>>1,lt=0;lt>>pc2table[lt]&1;for(var lt=ot;lt>>pc2table[lt]&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.expand=function(tt,rt,nt){var it=0,st=0;it=(tt&1)<<5|tt>>>27;for(var at=23;at>=15;at-=4)it<<=6,it|=tt>>>at&63;for(var at=11;at>=3;at-=4)st|=tt>>>at&63,st<<=6;st|=(tt&31)<<1|tt>>>31,rt[nt+0]=it>>>0,rt[nt+1]=st>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$p.substitute=function(tt,rt){for(var nt=0,it=0;it<4;it++){var st=tt>>>18-it*6&63,at=sTable[it*64+st];nt<<=4,nt|=at}for(var it=0;it<4;it++){var st=rt>>>18-it*6&63,at=sTable[4*64+it*64+st];nt<<=4,nt|=at}return nt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$p.permute=function(tt){for(var rt=0,nt=0;nt>>permuteTable[nt]&1;return rt>>>0};utils$p.padSplit=function(tt,rt,nt){for(var it=tt.toString(2);it.length0;it--)rt+=this._buffer(tt,rt),nt+=this._flushBuffer(st,nt);return rt+=this._buffer(tt,rt),st};Cipher$3.prototype.final=function(tt){var rt;tt&&(rt=this.update(tt));var nt;return this.type==="encrypt"?nt=this._finalEncrypt():nt=this._finalDecrypt(),rt?rt.concat(nt):nt};Cipher$3.prototype._pad=function(tt,rt){if(rt===0)return!1;for(;rt>>1];nt=utils$o.r28shl(nt,at),it=utils$o.r28shl(it,at),utils$o.pc2(nt,it,tt.keys,st)}};DES$3.prototype._update=function(tt,rt,nt,it){var st=this._desState,at=utils$o.readUInt32BE(tt,rt),ot=utils$o.readUInt32BE(tt,rt+4);utils$o.ip(at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],this.type==="encrypt"?this._encrypt(st,at,ot,st.tmp,0):this._decrypt(st,at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],utils$o.writeUInt32BE(nt,at,it),utils$o.writeUInt32BE(nt,ot,it+4)};DES$3.prototype._pad=function(tt,rt){if(this.padding===!1)return!1;for(var nt=tt.length-rt,it=rt;it>>0,at=kt}utils$o.rip(ot,at,it,st)};DES$3.prototype._decrypt=function(tt,rt,nt,it,st){for(var at=nt,ot=rt,lt=tt.keys.length-2;lt>=0;lt-=2){var ut=tt.keys[lt],dt=tt.keys[lt+1];utils$o.expand(at,tt.tmp,0),ut^=tt.tmp[0],dt^=tt.tmp[1];var bt=utils$o.substitute(ut,dt),gt=utils$o.permute(bt),kt=at;at=(ot^gt)>>>0,ot=kt}utils$o.rip(at,ot,it,st)};var cbc$1={},assert$k=minimalisticAssert,inherits$g=inherits_browserExports,proto={};function CBCState(et){assert$k.equal(et.length,8,"Invalid IV length"),this.iv=new Array(8);for(var tt=0;tt>it%8,et._prev=shiftIn(et._prev,rt?ot:lt);return at}function shiftIn(et,tt){var rt=et.length,nt=-1,it=Buffer$m.allocUnsafe(et.length);for(et=Buffer$m.concat([et,Buffer$m.from([tt])]);++nt>7;return it}cfb1.encrypt=function(et,tt,rt){for(var nt=tt.length,it=Buffer$m.allocUnsafe(nt),st=-1;++st>>24]^at[dt>>>16&255]^ot[bt>>>8&255]^lt[gt&255]^tt[mt++],pt=st[dt>>>24]^at[bt>>>16&255]^ot[gt>>>8&255]^lt[ut&255]^tt[mt++],yt=st[bt>>>24]^at[gt>>>16&255]^ot[ut>>>8&255]^lt[dt&255]^tt[mt++],$t=st[gt>>>24]^at[ut>>>16&255]^ot[dt>>>8&255]^lt[bt&255]^tt[mt++],ut=kt,dt=pt,bt=yt,gt=$t;return kt=(nt[ut>>>24]<<24|nt[dt>>>16&255]<<16|nt[bt>>>8&255]<<8|nt[gt&255])^tt[mt++],pt=(nt[dt>>>24]<<24|nt[bt>>>16&255]<<16|nt[gt>>>8&255]<<8|nt[ut&255])^tt[mt++],yt=(nt[bt>>>24]<<24|nt[gt>>>16&255]<<16|nt[ut>>>8&255]<<8|nt[dt&255])^tt[mt++],$t=(nt[gt>>>24]<<24|nt[ut>>>16&255]<<16|nt[dt>>>8&255]<<8|nt[bt&255])^tt[mt++],kt=kt>>>0,pt=pt>>>0,yt=yt>>>0,$t=$t>>>0,[kt,pt,yt,$t]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var et=new Array(256),tt=0;tt<256;tt++)tt<128?et[tt]=tt<<1:et[tt]=tt<<1^283;for(var rt=[],nt=[],it=[[],[],[],[]],st=[[],[],[],[]],at=0,ot=0,lt=0;lt<256;++lt){var ut=ot^ot<<1^ot<<2^ot<<3^ot<<4;ut=ut>>>8^ut&255^99,rt[at]=ut,nt[ut]=at;var dt=et[at],bt=et[dt],gt=et[bt],kt=et[ut]*257^ut*16843008;it[0][at]=kt<<24|kt>>>8,it[1][at]=kt<<16|kt>>>16,it[2][at]=kt<<8|kt>>>24,it[3][at]=kt,kt=gt*16843009^bt*65537^dt*257^at*16843008,st[0][ut]=kt<<24|kt>>>8,st[1][ut]=kt<<16|kt>>>16,st[2][ut]=kt<<8|kt>>>24,st[3][ut]=kt,at===0?at=ot=1:(at=dt^et[et[et[gt^dt]]],ot^=et[et[ot]])}return{SBOX:rt,INV_SBOX:nt,SUB_MIX:it,INV_SUB_MIX:st}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var et=this._key,tt=et.length,rt=tt+6,nt=(rt+1)*4,it=[],st=0;st>>24,at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255],at^=RCON[st/tt|0]<<24):tt>6&&st%tt===4&&(at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255]),it[st]=it[st-tt]^at}for(var ot=[],lt=0;lt>>24]]^G.INV_SUB_MIX[1][G.SBOX[dt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[dt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[dt&255]]}this._nRounds=rt,this._keySchedule=it,this._invKeySchedule=ot};AES.prototype.encryptBlockRaw=function(et){return et=asUInt32Array(et),cryptBlock(et,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(et){var tt=this.encryptBlockRaw(et),rt=Buffer$k.allocUnsafe(16);return rt.writeUInt32BE(tt[0],0),rt.writeUInt32BE(tt[1],4),rt.writeUInt32BE(tt[2],8),rt.writeUInt32BE(tt[3],12),rt};AES.prototype.decryptBlock=function(et){et=asUInt32Array(et);var tt=et[1];et[1]=et[3],et[3]=tt;var rt=cryptBlock(et,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),nt=Buffer$k.allocUnsafe(16);return nt.writeUInt32BE(rt[0],0),nt.writeUInt32BE(rt[3],4),nt.writeUInt32BE(rt[2],8),nt.writeUInt32BE(rt[1],12),nt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$j=safeBufferExports.Buffer,ZEROES=Buffer$j.alloc(16,0);function toArray$2(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var tt=Buffer$j.allocUnsafe(16);return tt.writeUInt32BE(et[0]>>>0,0),tt.writeUInt32BE(et[1]>>>0,4),tt.writeUInt32BE(et[2]>>>0,8),tt.writeUInt32BE(et[3]>>>0,12),tt}function GHASH$1(et){this.h=et,this.state=Buffer$j.alloc(16,0),this.cache=Buffer$j.allocUnsafe(0)}GHASH$1.prototype.ghash=function(et){for(var tt=-1;++tt0;rt--)et[rt]=et[rt]>>>1|(et[rt-1]&1)<<31;et[0]=et[0]>>>1,it&&(et[0]=et[0]^225<<24)}this.state=fromArray(tt)};GHASH$1.prototype.update=function(et){this.cache=Buffer$j.concat([this.cache,et]);for(var tt;this.cache.length>=16;)tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tt)};GHASH$1.prototype.final=function(et,tt){return this.cache.length&&this.ghash(Buffer$j.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,et,0,tt])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$i=safeBufferExports.Buffer,Transform$3=cipherBase,inherits$d=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(et,tt){var rt=0;et.length!==tt.length&&rt++;for(var nt=Math.min(et.length,tt.length),it=0;it0||nt>0;){var lt=new MD5;lt.update(ot),lt.update(et),tt&<.update(tt),ot=lt.digest();var ut=0;if(it>0){var dt=st.length-it;ut=Math.min(it,ot.length),ot.copy(st,dt,0,ut),it-=ut}if(ut0){var bt=at.length-nt,gt=Math.min(nt,ot.length-ut);ot.copy(at,bt,ut,ut+gt),nt-=gt}}return ot.fill(0),{key:st,iv:at}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$f=safeBufferExports.Buffer,StreamCipher$1=streamCipher,Transform$1=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$b=inherits_browserExports;function Cipher(et,tt,rt){Transform$1.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(tt),this._prev=Buffer$f.from(rt),this._mode=et,this._autopadding=!0}inherits$b(Cipher,Transform$1);Cipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get();)rt=this._mode.encrypt(this,tt),nt.push(rt);return Buffer$f.concat(nt)};var PADDING=Buffer$f.alloc(16,16);Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter$1(){this.cache=Buffer$f.allocUnsafe(0)}Splitter$1.prototype.add=function(et){this.cache=Buffer$f.concat([this.cache,et])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null};Splitter$1.prototype.flush=function(){for(var et=16-this.cache.length,tt=Buffer$f.allocUnsafe(et),rt=-1;++rt16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt}else if(this.cache.length>=16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(et){var tt=et[15];if(tt<1||tt>16)throw new Error("unable to decrypt data");for(var rt=-1;++rt0?Ot:Mt},st.min=function(Ot,Mt){return Ot.cmp(Mt)<0?Ot:Mt},st.prototype._init=function(Ot,Mt,ht){if(typeof Ot=="number")return this._initNumber(Ot,Mt,ht);if(typeof Ot=="object")return this._initArray(Ot,Mt,ht);Mt==="hex"&&(Mt=16),nt(Mt===(Mt|0)&&Mt>=2&&Mt<=36),Ot=Ot.toString().replace(/\s+/g,"");var Et=0;Ot[0]==="-"&&(Et++,this.negative=1),Et=0;Et-=3)Rt=Ot[Et]|Ot[Et-1]<<8|Ot[Et-2]<<16,this.words[Tt]|=Rt<>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);else if(ht==="le")for(Et=0,Tt=0;Et>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);return this.strip()};function ot(qt,Ot){var Mt=qt.charCodeAt(Ot);return Mt>=65&&Mt<=70?Mt-55:Mt>=97&&Mt<=102?Mt-87:Mt-48&15}function lt(qt,Ot,Mt){var ht=ot(qt,Mt);return Mt-1>=Ot&&(ht|=ot(qt,Mt-1)<<4),ht}st.prototype._parseHex=function(Ot,Mt,ht){this.length=Math.ceil((Ot.length-Mt)/6),this.words=new Array(this.length);for(var Et=0;Et=Mt;Et-=2)At=lt(Ot,Mt,Et)<=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8;else{var Pt=Ot.length-Mt;for(Et=Pt%2===0?Mt+1:Mt;Et=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8}this.strip()};function ut(qt,Ot,Mt,ht){for(var Et=0,Tt=Math.min(qt.length,Mt),Rt=Ot;Rt=49?Et+=At-49+10:At>=17?Et+=At-17+10:Et+=At}return Et}st.prototype._parseBase=function(Ot,Mt,ht){this.words=[0],this.length=1;for(var Et=0,Tt=1;Tt<=67108863;Tt*=Mt)Et++;Et--,Tt=Tt/Mt|0;for(var Rt=Ot.length-ht,At=Rt%Et,Pt=Math.min(Rt,Rt-At)+ht,It=0,Ct=ht;Ct1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},st.prototype.inspect=function(){return(this.red?""};var dt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],bt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(Ot,Mt){Ot=Ot||10,Mt=Mt|0||1;var ht;if(Ot===16||Ot==="hex"){ht="";for(var Et=0,Tt=0,Rt=0;Rt>>24-Et&16777215,Tt!==0||Rt!==this.length-1?ht=dt[6-Pt.length]+Pt+ht:ht=Pt+ht,Et+=2,Et>=26&&(Et-=26,Rt--)}for(Tt!==0&&(ht=Tt.toString(16)+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}if(Ot===(Ot|0)&&Ot>=2&&Ot<=36){var It=bt[Ot],Ct=gt[Ot];ht="";var xt=this.clone();for(xt.negative=0;!xt.isZero();){var Lt=xt.modn(Ct).toString(Ot);xt=xt.idivn(Ct),xt.isZero()?ht=Lt+ht:ht=dt[It-Lt.length]+Lt+ht}for(this.isZero()&&(ht="0"+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var Ot=this.words[0];return this.length===2?Ot+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ot+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ot:Ot},st.prototype.toJSON=function(){return this.toString(16)},st.prototype.toBuffer=function(Ot,Mt){return nt(typeof at<"u"),this.toArrayLike(at,Ot,Mt)},st.prototype.toArray=function(Ot,Mt){return this.toArrayLike(Array,Ot,Mt)},st.prototype.toArrayLike=function(Ot,Mt,ht){var Et=this.byteLength(),Tt=ht||Math.max(1,Et);nt(Et<=Tt,"byte array longer than desired length"),nt(Tt>0,"Requested array length <= 0"),this.strip();var Rt=Mt==="le",At=new Ot(Tt),Pt,It,Ct=this.clone();if(Rt){for(It=0;!Ct.isZero();It++)Pt=Ct.andln(255),Ct.iushrn(8),At[It]=Pt;for(;It=4096&&(ht+=13,Mt>>>=13),Mt>=64&&(ht+=7,Mt>>>=7),Mt>=8&&(ht+=4,Mt>>>=4),Mt>=2&&(ht+=2,Mt>>>=2),ht+Mt},st.prototype._zeroBits=function(Ot){if(Ot===0)return 26;var Mt=Ot,ht=0;return Mt&8191||(ht+=13,Mt>>>=13),Mt&127||(ht+=7,Mt>>>=7),Mt&15||(ht+=4,Mt>>>=4),Mt&3||(ht+=2,Mt>>>=2),Mt&1||ht++,ht},st.prototype.bitLength=function(){var Ot=this.words[this.length-1],Mt=this._countBits(Ot);return(this.length-1)*26+Mt};function kt(qt){for(var Ot=new Array(qt.bitLength()),Mt=0;Mt>>Et}return Ot}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ot=0,Mt=0;MtOt.length?this.clone().ior(Ot):Ot.clone().ior(this)},st.prototype.uor=function(Ot){return this.length>Ot.length?this.clone().iuor(Ot):Ot.clone().iuor(this)},st.prototype.iuand=function(Ot){var Mt;this.length>Ot.length?Mt=Ot:Mt=this;for(var ht=0;htOt.length?this.clone().iand(Ot):Ot.clone().iand(this)},st.prototype.uand=function(Ot){return this.length>Ot.length?this.clone().iuand(Ot):Ot.clone().iuand(this)},st.prototype.iuxor=function(Ot){var Mt,ht;this.length>Ot.length?(Mt=this,ht=Ot):(Mt=Ot,ht=this);for(var Et=0;EtOt.length?this.clone().ixor(Ot):Ot.clone().ixor(this)},st.prototype.uxor=function(Ot){return this.length>Ot.length?this.clone().iuxor(Ot):Ot.clone().iuxor(this)},st.prototype.inotn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Math.ceil(Ot/26)|0,ht=Ot%26;this._expand(Mt),ht>0&&Mt--;for(var Et=0;Et0&&(this.words[Et]=~this.words[Et]&67108863>>26-ht),this.strip()},st.prototype.notn=function(Ot){return this.clone().inotn(Ot)},st.prototype.setn=function(Ot,Mt){nt(typeof Ot=="number"&&Ot>=0);var ht=Ot/26|0,Et=Ot%26;return this._expand(ht+1),Mt?this.words[ht]=this.words[ht]|1<Ot.length?(ht=this,Et=Ot):(ht=Ot,Et=this);for(var Tt=0,Rt=0;Rt>>26;for(;Tt!==0&&Rt>>26;if(this.length=ht.length,Tt!==0)this.words[this.length]=Tt,this.length++;else if(ht!==this)for(;RtOt.length?this.clone().iadd(Ot):Ot.clone().iadd(this)},st.prototype.isub=function(Ot){if(Ot.negative!==0){Ot.negative=0;var Mt=this.iadd(Ot);return Ot.negative=1,Mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ot),this.negative=1,this._normSign();var ht=this.cmp(Ot);if(ht===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Et,Tt;ht>0?(Et=this,Tt=Ot):(Et=Ot,Tt=this);for(var Rt=0,At=0;At>26,this.words[At]=Mt&67108863;for(;Rt!==0&&At>26,this.words[At]=Mt&67108863;if(Rt===0&&At>>26,xt=Pt&67108863,Lt=Math.min(It,Ot.length-1),tr=Math.max(0,It-qt.length+1);tr<=Lt;tr++){var pr=It-tr|0;Et=qt.words[pr]|0,Tt=Ot.words[tr]|0,Rt=Et*Tt+xt,Ct+=Rt/67108864|0,xt=Rt&67108863}Mt.words[It]=xt|0,Pt=Ct|0}return Pt!==0?Mt.words[It]=Pt|0:Mt.length--,Mt.strip()}var yt=function(Ot,Mt,ht){var Et=Ot.words,Tt=Mt.words,Rt=ht.words,At=0,Pt,It,Ct,xt=Et[0]|0,Lt=xt&8191,tr=xt>>>13,pr=Et[1]|0,Kt=pr&8191,Qt=pr>>>13,Zt=Et[2]|0,ur=Zt&8191,_r=Zt>>>13,er=Et[3]|0,Jt=er&8191,Ar=er>>>13,Er=Et[4]|0,Dr=Er&8191,Xr=Er>>>13,Vr=Et[5]|0,wr=Vr&8191,br=Vr>>>13,or=Et[6]|0,xr=or&8191,Pr=or>>>13,Or=Et[7]|0,rr=Or&8191,gr=Or>>>13,Ir=Et[8]|0,Yt=Ir&8191,Ut=Ir>>>13,Vt=Et[9]|0,ir=Vt&8191,kr=Vt>>>13,$r=Tt[0]|0,Br=$r&8191,an=$r>>>13,ln=Tt[1]|0,rn=ln&8191,kn=ln>>>13,fn=Tt[2]|0,gn=fn&8191,fs=fn>>>13,Ln=Tt[3]|0,En=Ln&8191,hs=Ln>>>13,Cn=Tt[4]|0,xn=Cn&8191,is=Cn>>>13,Fn=Tt[5]|0,_n=Fn&8191,ls=Fn>>>13,jn=Tt[6]|0,dn=jn&8191,cs=jn>>>13,Xt=Tt[7]|0,ar=Xt&8191,cr=Xt>>>13,jt=Tt[8]|0,dr=jt&8191,Rr=jt>>>13,Cr=Tt[9]|0,Nr=Cr&8191,Yr=Cr>>>13;ht.negative=Ot.negative^Mt.negative,ht.length=19,Pt=Math.imul(Lt,Br),It=Math.imul(Lt,an),It=It+Math.imul(tr,Br)|0,Ct=Math.imul(tr,an);var tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(tn>>>26)|0,tn&=67108863,Pt=Math.imul(Kt,Br),It=Math.imul(Kt,an),It=It+Math.imul(Qt,Br)|0,Ct=Math.imul(Qt,an),Pt=Pt+Math.imul(Lt,rn)|0,It=It+Math.imul(Lt,kn)|0,It=It+Math.imul(tr,rn)|0,Ct=Ct+Math.imul(tr,kn)|0;var qr=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(qr>>>26)|0,qr&=67108863,Pt=Math.imul(ur,Br),It=Math.imul(ur,an),It=It+Math.imul(_r,Br)|0,Ct=Math.imul(_r,an),Pt=Pt+Math.imul(Kt,rn)|0,It=It+Math.imul(Kt,kn)|0,It=It+Math.imul(Qt,rn)|0,Ct=Ct+Math.imul(Qt,kn)|0,Pt=Pt+Math.imul(Lt,gn)|0,It=It+Math.imul(Lt,fs)|0,It=It+Math.imul(tr,gn)|0,Ct=Ct+Math.imul(tr,fs)|0;var Vn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Pt=Math.imul(Jt,Br),It=Math.imul(Jt,an),It=It+Math.imul(Ar,Br)|0,Ct=Math.imul(Ar,an),Pt=Pt+Math.imul(ur,rn)|0,It=It+Math.imul(ur,kn)|0,It=It+Math.imul(_r,rn)|0,Ct=Ct+Math.imul(_r,kn)|0,Pt=Pt+Math.imul(Kt,gn)|0,It=It+Math.imul(Kt,fs)|0,It=It+Math.imul(Qt,gn)|0,Ct=Ct+Math.imul(Qt,fs)|0,Pt=Pt+Math.imul(Lt,En)|0,It=It+Math.imul(Lt,hs)|0,It=It+Math.imul(tr,En)|0,Ct=Ct+Math.imul(tr,hs)|0;var hn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(Dr,Br),It=Math.imul(Dr,an),It=It+Math.imul(Xr,Br)|0,Ct=Math.imul(Xr,an),Pt=Pt+Math.imul(Jt,rn)|0,It=It+Math.imul(Jt,kn)|0,It=It+Math.imul(Ar,rn)|0,Ct=Ct+Math.imul(Ar,kn)|0,Pt=Pt+Math.imul(ur,gn)|0,It=It+Math.imul(ur,fs)|0,It=It+Math.imul(_r,gn)|0,Ct=Ct+Math.imul(_r,fs)|0,Pt=Pt+Math.imul(Kt,En)|0,It=It+Math.imul(Kt,hs)|0,It=It+Math.imul(Qt,En)|0,Ct=Ct+Math.imul(Qt,hs)|0,Pt=Pt+Math.imul(Lt,xn)|0,It=It+Math.imul(Lt,is)|0,It=It+Math.imul(tr,xn)|0,Ct=Ct+Math.imul(tr,is)|0;var Tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(wr,Br),It=Math.imul(wr,an),It=It+Math.imul(br,Br)|0,Ct=Math.imul(br,an),Pt=Pt+Math.imul(Dr,rn)|0,It=It+Math.imul(Dr,kn)|0,It=It+Math.imul(Xr,rn)|0,Ct=Ct+Math.imul(Xr,kn)|0,Pt=Pt+Math.imul(Jt,gn)|0,It=It+Math.imul(Jt,fs)|0,It=It+Math.imul(Ar,gn)|0,Ct=Ct+Math.imul(Ar,fs)|0,Pt=Pt+Math.imul(ur,En)|0,It=It+Math.imul(ur,hs)|0,It=It+Math.imul(_r,En)|0,Ct=Ct+Math.imul(_r,hs)|0,Pt=Pt+Math.imul(Kt,xn)|0,It=It+Math.imul(Kt,is)|0,It=It+Math.imul(Qt,xn)|0,Ct=Ct+Math.imul(Qt,is)|0,Pt=Pt+Math.imul(Lt,_n)|0,It=It+Math.imul(Lt,ls)|0,It=It+Math.imul(tr,_n)|0,Ct=Ct+Math.imul(tr,ls)|0;var An=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(xr,Br),It=Math.imul(xr,an),It=It+Math.imul(Pr,Br)|0,Ct=Math.imul(Pr,an),Pt=Pt+Math.imul(wr,rn)|0,It=It+Math.imul(wr,kn)|0,It=It+Math.imul(br,rn)|0,Ct=Ct+Math.imul(br,kn)|0,Pt=Pt+Math.imul(Dr,gn)|0,It=It+Math.imul(Dr,fs)|0,It=It+Math.imul(Xr,gn)|0,Ct=Ct+Math.imul(Xr,fs)|0,Pt=Pt+Math.imul(Jt,En)|0,It=It+Math.imul(Jt,hs)|0,It=It+Math.imul(Ar,En)|0,Ct=Ct+Math.imul(Ar,hs)|0,Pt=Pt+Math.imul(ur,xn)|0,It=It+Math.imul(ur,is)|0,It=It+Math.imul(_r,xn)|0,Ct=Ct+Math.imul(_r,is)|0,Pt=Pt+Math.imul(Kt,_n)|0,It=It+Math.imul(Kt,ls)|0,It=It+Math.imul(Qt,_n)|0,Ct=Ct+Math.imul(Qt,ls)|0,Pt=Pt+Math.imul(Lt,dn)|0,It=It+Math.imul(Lt,cs)|0,It=It+Math.imul(tr,dn)|0,Ct=Ct+Math.imul(tr,cs)|0;var Rn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Pt=Math.imul(rr,Br),It=Math.imul(rr,an),It=It+Math.imul(gr,Br)|0,Ct=Math.imul(gr,an),Pt=Pt+Math.imul(xr,rn)|0,It=It+Math.imul(xr,kn)|0,It=It+Math.imul(Pr,rn)|0,Ct=Ct+Math.imul(Pr,kn)|0,Pt=Pt+Math.imul(wr,gn)|0,It=It+Math.imul(wr,fs)|0,It=It+Math.imul(br,gn)|0,Ct=Ct+Math.imul(br,fs)|0,Pt=Pt+Math.imul(Dr,En)|0,It=It+Math.imul(Dr,hs)|0,It=It+Math.imul(Xr,En)|0,Ct=Ct+Math.imul(Xr,hs)|0,Pt=Pt+Math.imul(Jt,xn)|0,It=It+Math.imul(Jt,is)|0,It=It+Math.imul(Ar,xn)|0,Ct=Ct+Math.imul(Ar,is)|0,Pt=Pt+Math.imul(ur,_n)|0,It=It+Math.imul(ur,ls)|0,It=It+Math.imul(_r,_n)|0,Ct=Ct+Math.imul(_r,ls)|0,Pt=Pt+Math.imul(Kt,dn)|0,It=It+Math.imul(Kt,cs)|0,It=It+Math.imul(Qt,dn)|0,Ct=Ct+Math.imul(Qt,cs)|0,Pt=Pt+Math.imul(Lt,ar)|0,It=It+Math.imul(Lt,cr)|0,It=It+Math.imul(tr,ar)|0,Ct=Ct+Math.imul(tr,cr)|0;var Pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(Yt,Br),It=Math.imul(Yt,an),It=It+Math.imul(Ut,Br)|0,Ct=Math.imul(Ut,an),Pt=Pt+Math.imul(rr,rn)|0,It=It+Math.imul(rr,kn)|0,It=It+Math.imul(gr,rn)|0,Ct=Ct+Math.imul(gr,kn)|0,Pt=Pt+Math.imul(xr,gn)|0,It=It+Math.imul(xr,fs)|0,It=It+Math.imul(Pr,gn)|0,Ct=Ct+Math.imul(Pr,fs)|0,Pt=Pt+Math.imul(wr,En)|0,It=It+Math.imul(wr,hs)|0,It=It+Math.imul(br,En)|0,Ct=Ct+Math.imul(br,hs)|0,Pt=Pt+Math.imul(Dr,xn)|0,It=It+Math.imul(Dr,is)|0,It=It+Math.imul(Xr,xn)|0,Ct=Ct+Math.imul(Xr,is)|0,Pt=Pt+Math.imul(Jt,_n)|0,It=It+Math.imul(Jt,ls)|0,It=It+Math.imul(Ar,_n)|0,Ct=Ct+Math.imul(Ar,ls)|0,Pt=Pt+Math.imul(ur,dn)|0,It=It+Math.imul(ur,cs)|0,It=It+Math.imul(_r,dn)|0,Ct=Ct+Math.imul(_r,cs)|0,Pt=Pt+Math.imul(Kt,ar)|0,It=It+Math.imul(Kt,cr)|0,It=It+Math.imul(Qt,ar)|0,Ct=Ct+Math.imul(Qt,cr)|0,Pt=Pt+Math.imul(Lt,dr)|0,It=It+Math.imul(Lt,Rr)|0,It=It+Math.imul(tr,dr)|0,Ct=Ct+Math.imul(tr,Rr)|0;var In=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(In>>>26)|0,In&=67108863,Pt=Math.imul(ir,Br),It=Math.imul(ir,an),It=It+Math.imul(kr,Br)|0,Ct=Math.imul(kr,an),Pt=Pt+Math.imul(Yt,rn)|0,It=It+Math.imul(Yt,kn)|0,It=It+Math.imul(Ut,rn)|0,Ct=Ct+Math.imul(Ut,kn)|0,Pt=Pt+Math.imul(rr,gn)|0,It=It+Math.imul(rr,fs)|0,It=It+Math.imul(gr,gn)|0,Ct=Ct+Math.imul(gr,fs)|0,Pt=Pt+Math.imul(xr,En)|0,It=It+Math.imul(xr,hs)|0,It=It+Math.imul(Pr,En)|0,Ct=Ct+Math.imul(Pr,hs)|0,Pt=Pt+Math.imul(wr,xn)|0,It=It+Math.imul(wr,is)|0,It=It+Math.imul(br,xn)|0,Ct=Ct+Math.imul(br,is)|0,Pt=Pt+Math.imul(Dr,_n)|0,It=It+Math.imul(Dr,ls)|0,It=It+Math.imul(Xr,_n)|0,Ct=Ct+Math.imul(Xr,ls)|0,Pt=Pt+Math.imul(Jt,dn)|0,It=It+Math.imul(Jt,cs)|0,It=It+Math.imul(Ar,dn)|0,Ct=Ct+Math.imul(Ar,cs)|0,Pt=Pt+Math.imul(ur,ar)|0,It=It+Math.imul(ur,cr)|0,It=It+Math.imul(_r,ar)|0,Ct=Ct+Math.imul(_r,cr)|0,Pt=Pt+Math.imul(Kt,dr)|0,It=It+Math.imul(Kt,Rr)|0,It=It+Math.imul(Qt,dr)|0,Ct=Ct+Math.imul(Qt,Rr)|0,Pt=Pt+Math.imul(Lt,Nr)|0,It=It+Math.imul(Lt,Yr)|0,It=It+Math.imul(tr,Nr)|0,Ct=Ct+Math.imul(tr,Yr)|0;var $n=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(ir,rn),It=Math.imul(ir,kn),It=It+Math.imul(kr,rn)|0,Ct=Math.imul(kr,kn),Pt=Pt+Math.imul(Yt,gn)|0,It=It+Math.imul(Yt,fs)|0,It=It+Math.imul(Ut,gn)|0,Ct=Ct+Math.imul(Ut,fs)|0,Pt=Pt+Math.imul(rr,En)|0,It=It+Math.imul(rr,hs)|0,It=It+Math.imul(gr,En)|0,Ct=Ct+Math.imul(gr,hs)|0,Pt=Pt+Math.imul(xr,xn)|0,It=It+Math.imul(xr,is)|0,It=It+Math.imul(Pr,xn)|0,Ct=Ct+Math.imul(Pr,is)|0,Pt=Pt+Math.imul(wr,_n)|0,It=It+Math.imul(wr,ls)|0,It=It+Math.imul(br,_n)|0,Ct=Ct+Math.imul(br,ls)|0,Pt=Pt+Math.imul(Dr,dn)|0,It=It+Math.imul(Dr,cs)|0,It=It+Math.imul(Xr,dn)|0,Ct=Ct+Math.imul(Xr,cs)|0,Pt=Pt+Math.imul(Jt,ar)|0,It=It+Math.imul(Jt,cr)|0,It=It+Math.imul(Ar,ar)|0,Ct=Ct+Math.imul(Ar,cr)|0,Pt=Pt+Math.imul(ur,dr)|0,It=It+Math.imul(ur,Rr)|0,It=It+Math.imul(_r,dr)|0,Ct=Ct+Math.imul(_r,Rr)|0,Pt=Pt+Math.imul(Kt,Nr)|0,It=It+Math.imul(Kt,Yr)|0,It=It+Math.imul(Qt,Nr)|0,Ct=Ct+Math.imul(Qt,Yr)|0;var Bn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Pt=Math.imul(ir,gn),It=Math.imul(ir,fs),It=It+Math.imul(kr,gn)|0,Ct=Math.imul(kr,fs),Pt=Pt+Math.imul(Yt,En)|0,It=It+Math.imul(Yt,hs)|0,It=It+Math.imul(Ut,En)|0,Ct=Ct+Math.imul(Ut,hs)|0,Pt=Pt+Math.imul(rr,xn)|0,It=It+Math.imul(rr,is)|0,It=It+Math.imul(gr,xn)|0,Ct=Ct+Math.imul(gr,is)|0,Pt=Pt+Math.imul(xr,_n)|0,It=It+Math.imul(xr,ls)|0,It=It+Math.imul(Pr,_n)|0,Ct=Ct+Math.imul(Pr,ls)|0,Pt=Pt+Math.imul(wr,dn)|0,It=It+Math.imul(wr,cs)|0,It=It+Math.imul(br,dn)|0,Ct=Ct+Math.imul(br,cs)|0,Pt=Pt+Math.imul(Dr,ar)|0,It=It+Math.imul(Dr,cr)|0,It=It+Math.imul(Xr,ar)|0,Ct=Ct+Math.imul(Xr,cr)|0,Pt=Pt+Math.imul(Jt,dr)|0,It=It+Math.imul(Jt,Rr)|0,It=It+Math.imul(Ar,dr)|0,Ct=Ct+Math.imul(Ar,Rr)|0,Pt=Pt+Math.imul(ur,Nr)|0,It=It+Math.imul(ur,Yr)|0,It=It+Math.imul(_r,Nr)|0,Ct=Ct+Math.imul(_r,Yr)|0;var pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(ir,En),It=Math.imul(ir,hs),It=It+Math.imul(kr,En)|0,Ct=Math.imul(kr,hs),Pt=Pt+Math.imul(Yt,xn)|0,It=It+Math.imul(Yt,is)|0,It=It+Math.imul(Ut,xn)|0,Ct=Ct+Math.imul(Ut,is)|0,Pt=Pt+Math.imul(rr,_n)|0,It=It+Math.imul(rr,ls)|0,It=It+Math.imul(gr,_n)|0,Ct=Ct+Math.imul(gr,ls)|0,Pt=Pt+Math.imul(xr,dn)|0,It=It+Math.imul(xr,cs)|0,It=It+Math.imul(Pr,dn)|0,Ct=Ct+Math.imul(Pr,cs)|0,Pt=Pt+Math.imul(wr,ar)|0,It=It+Math.imul(wr,cr)|0,It=It+Math.imul(br,ar)|0,Ct=Ct+Math.imul(br,cr)|0,Pt=Pt+Math.imul(Dr,dr)|0,It=It+Math.imul(Dr,Rr)|0,It=It+Math.imul(Xr,dr)|0,Ct=Ct+Math.imul(Xr,Rr)|0,Pt=Pt+Math.imul(Jt,Nr)|0,It=It+Math.imul(Jt,Yr)|0,It=It+Math.imul(Ar,Nr)|0,Ct=Ct+Math.imul(Ar,Yr)|0;var wn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(wn>>>26)|0,wn&=67108863,Pt=Math.imul(ir,xn),It=Math.imul(ir,is),It=It+Math.imul(kr,xn)|0,Ct=Math.imul(kr,is),Pt=Pt+Math.imul(Yt,_n)|0,It=It+Math.imul(Yt,ls)|0,It=It+Math.imul(Ut,_n)|0,Ct=Ct+Math.imul(Ut,ls)|0,Pt=Pt+Math.imul(rr,dn)|0,It=It+Math.imul(rr,cs)|0,It=It+Math.imul(gr,dn)|0,Ct=Ct+Math.imul(gr,cs)|0,Pt=Pt+Math.imul(xr,ar)|0,It=It+Math.imul(xr,cr)|0,It=It+Math.imul(Pr,ar)|0,Ct=Ct+Math.imul(Pr,cr)|0,Pt=Pt+Math.imul(wr,dr)|0,It=It+Math.imul(wr,Rr)|0,It=It+Math.imul(br,dr)|0,Ct=Ct+Math.imul(br,Rr)|0,Pt=Pt+Math.imul(Dr,Nr)|0,It=It+Math.imul(Dr,Yr)|0,It=It+Math.imul(Xr,Nr)|0,Ct=Ct+Math.imul(Xr,Yr)|0;var un=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(un>>>26)|0,un&=67108863,Pt=Math.imul(ir,_n),It=Math.imul(ir,ls),It=It+Math.imul(kr,_n)|0,Ct=Math.imul(kr,ls),Pt=Pt+Math.imul(Yt,dn)|0,It=It+Math.imul(Yt,cs)|0,It=It+Math.imul(Ut,dn)|0,Ct=Ct+Math.imul(Ut,cs)|0,Pt=Pt+Math.imul(rr,ar)|0,It=It+Math.imul(rr,cr)|0,It=It+Math.imul(gr,ar)|0,Ct=Ct+Math.imul(gr,cr)|0,Pt=Pt+Math.imul(xr,dr)|0,It=It+Math.imul(xr,Rr)|0,It=It+Math.imul(Pr,dr)|0,Ct=Ct+Math.imul(Pr,Rr)|0,Pt=Pt+Math.imul(wr,Nr)|0,It=It+Math.imul(wr,Yr)|0,It=It+Math.imul(br,Nr)|0,Ct=Ct+Math.imul(br,Yr)|0;var yn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(yn>>>26)|0,yn&=67108863,Pt=Math.imul(ir,dn),It=Math.imul(ir,cs),It=It+Math.imul(kr,dn)|0,Ct=Math.imul(kr,cs),Pt=Pt+Math.imul(Yt,ar)|0,It=It+Math.imul(Yt,cr)|0,It=It+Math.imul(Ut,ar)|0,Ct=Ct+Math.imul(Ut,cr)|0,Pt=Pt+Math.imul(rr,dr)|0,It=It+Math.imul(rr,Rr)|0,It=It+Math.imul(gr,dr)|0,Ct=Ct+Math.imul(gr,Rr)|0,Pt=Pt+Math.imul(xr,Nr)|0,It=It+Math.imul(xr,Yr)|0,It=It+Math.imul(Pr,Nr)|0,Ct=Ct+Math.imul(Pr,Yr)|0;var mn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(mn>>>26)|0,mn&=67108863,Pt=Math.imul(ir,ar),It=Math.imul(ir,cr),It=It+Math.imul(kr,ar)|0,Ct=Math.imul(kr,cr),Pt=Pt+Math.imul(Yt,dr)|0,It=It+Math.imul(Yt,Rr)|0,It=It+Math.imul(Ut,dr)|0,Ct=Ct+Math.imul(Ut,Rr)|0,Pt=Pt+Math.imul(rr,Nr)|0,It=It+Math.imul(rr,Yr)|0,It=It+Math.imul(gr,Nr)|0,Ct=Ct+Math.imul(gr,Yr)|0;var cn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(cn>>>26)|0,cn&=67108863,Pt=Math.imul(ir,dr),It=Math.imul(ir,Rr),It=It+Math.imul(kr,dr)|0,Ct=Math.imul(kr,Rr),Pt=Pt+Math.imul(Yt,Nr)|0,It=It+Math.imul(Yt,Yr)|0,It=It+Math.imul(Ut,Nr)|0,Ct=Ct+Math.imul(Ut,Yr)|0;var Ur=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Pt=Math.imul(ir,Nr),It=Math.imul(ir,Yr),It=It+Math.imul(kr,Nr)|0,Ct=Math.imul(kr,Yr);var jr=(At+Pt|0)+((It&8191)<<13)|0;return At=(Ct+(It>>>13)|0)+(jr>>>26)|0,jr&=67108863,Rt[0]=tn,Rt[1]=qr,Rt[2]=Vn,Rt[3]=hn,Rt[4]=Tn,Rt[5]=An,Rt[6]=Rn,Rt[7]=Pn,Rt[8]=In,Rt[9]=$n,Rt[10]=Bn,Rt[11]=pn,Rt[12]=wn,Rt[13]=un,Rt[14]=yn,Rt[15]=mn,Rt[16]=cn,Rt[17]=Ur,Rt[18]=jr,At!==0&&(Rt[19]=At,ht.length++),ht};Math.imul||(yt=pt);function $t(qt,Ot,Mt){Mt.negative=Ot.negative^qt.negative,Mt.length=qt.length+Ot.length;for(var ht=0,Et=0,Tt=0;Tt>>26)|0,Et+=Rt>>>26,Rt&=67108863}Mt.words[Tt]=At,ht=Rt,Rt=Et}return ht!==0?Mt.words[Tt]=ht:Mt.length--,Mt.strip()}function mt(qt,Ot,Mt){var ht=new wt;return ht.mulp(qt,Ot,Mt)}st.prototype.mulTo=function(Ot,Mt){var ht,Et=this.length+Ot.length;return this.length===10&&Ot.length===10?ht=yt(this,Ot,Mt):Et<63?ht=pt(this,Ot,Mt):Et<1024?ht=$t(this,Ot,Mt):ht=mt(this,Ot,Mt),ht};function wt(qt,Ot){this.x=qt,this.y=Ot}wt.prototype.makeRBT=function(Ot){for(var Mt=new Array(Ot),ht=st.prototype._countBits(Ot)-1,Et=0;Et>=1;return Et},wt.prototype.permute=function(Ot,Mt,ht,Et,Tt,Rt){for(var At=0;At>>1)Tt++;return 1<>>13,ht[2*Rt+1]=Tt&8191,Tt=Tt>>>13;for(Rt=2*Mt;Rt>=26,Mt+=Et/67108864|0,Mt+=Tt>>>26,this.words[ht]=Tt&67108863}return Mt!==0&&(this.words[ht]=Mt,this.length++),this},st.prototype.muln=function(Ot){return this.clone().imuln(Ot)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(Ot){var Mt=kt(Ot);if(Mt.length===0)return new st(1);for(var ht=this,Et=0;Et=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=67108863>>>26-Mt<<26-Mt,Tt;if(Mt!==0){var Rt=0;for(Tt=0;Tt>>26-Mt}Rt&&(this.words[Tt]=Rt,this.length++)}if(ht!==0){for(Tt=this.length-1;Tt>=0;Tt--)this.words[Tt+ht]=this.words[Tt];for(Tt=0;Tt=0);var Et;Mt?Et=(Mt-Mt%26)/26:Et=0;var Tt=Ot%26,Rt=Math.min((Ot-Tt)/26,this.length),At=67108863^67108863>>>Tt<Rt)for(this.length-=Rt,It=0;It=0&&(Ct!==0||It>=Et);It--){var xt=this.words[It]|0;this.words[It]=Ct<<26-Tt|xt>>>Tt,Ct=xt&At}return Pt&&Ct!==0&&(Pt.words[Pt.length++]=Ct),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},st.prototype.ishrn=function(Ot,Mt,ht){return nt(this.negative===0),this.iushrn(Ot,Mt,ht)},st.prototype.shln=function(Ot){return this.clone().ishln(Ot)},st.prototype.ushln=function(Ot){return this.clone().iushln(Ot)},st.prototype.shrn=function(Ot){return this.clone().ishrn(Ot)},st.prototype.ushrn=function(Ot){return this.clone().iushrn(Ot)},st.prototype.testn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<=0);var Mt=Ot%26,ht=(Ot-Mt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=ht)return this;if(Mt!==0&&ht++,this.length=Math.min(ht,this.length),Mt!==0){var Et=67108863^67108863>>>Mt<=67108864;Mt++)this.words[Mt]-=67108864,Mt===this.length-1?this.words[Mt+1]=1:this.words[Mt+1]++;return this.length=Math.max(this.length,Mt+1),this},st.prototype.isubn=function(Ot){if(nt(typeof Ot=="number"),nt(Ot<67108864),Ot<0)return this.iaddn(-Ot);if(this.negative!==0)return this.negative=0,this.iaddn(Ot),this.negative=1,this;if(this.words[0]-=Ot,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Mt=0;Mt>26)-(Pt/67108864|0),this.words[Tt+ht]=Rt&67108863}for(;Tt>26,this.words[Tt+ht]=Rt&67108863;if(At===0)return this.strip();for(nt(At===-1),At=0,Tt=0;Tt>26,this.words[Tt]=Rt&67108863;return this.negative=1,this.strip()},st.prototype._wordDiv=function(Ot,Mt){var ht=this.length-Ot.length,Et=this.clone(),Tt=Ot,Rt=Tt.words[Tt.length-1]|0,At=this._countBits(Rt);ht=26-At,ht!==0&&(Tt=Tt.ushln(ht),Et.iushln(ht),Rt=Tt.words[Tt.length-1]|0);var Pt=Et.length-Tt.length,It;if(Mt!=="mod"){It=new st(null),It.length=Pt+1,It.words=new Array(It.length);for(var Ct=0;Ct=0;Lt--){var tr=(Et.words[Tt.length+Lt]|0)*67108864+(Et.words[Tt.length+Lt-1]|0);for(tr=Math.min(tr/Rt|0,67108863),Et._ishlnsubmul(Tt,tr,Lt);Et.negative!==0;)tr--,Et.negative=0,Et._ishlnsubmul(Tt,1,Lt),Et.isZero()||(Et.negative^=1);It&&(It.words[Lt]=tr)}return It&&It.strip(),Et.strip(),Mt!=="div"&&ht!==0&&Et.iushrn(ht),{div:It||null,mod:Et}},st.prototype.divmod=function(Ot,Mt,ht){if(nt(!Ot.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Et,Tt,Rt;return this.negative!==0&&Ot.negative===0?(Rt=this.neg().divmod(Ot,Mt),Mt!=="mod"&&(Et=Rt.div.neg()),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.iadd(Ot)),{div:Et,mod:Tt}):this.negative===0&&Ot.negative!==0?(Rt=this.divmod(Ot.neg(),Mt),Mt!=="mod"&&(Et=Rt.div.neg()),{div:Et,mod:Rt.mod}):this.negative&Ot.negative?(Rt=this.neg().divmod(Ot.neg(),Mt),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.isub(Ot)),{div:Rt.div,mod:Tt}):Ot.length>this.length||this.cmp(Ot)<0?{div:new st(0),mod:this}:Ot.length===1?Mt==="div"?{div:this.divn(Ot.words[0]),mod:null}:Mt==="mod"?{div:null,mod:new st(this.modn(Ot.words[0]))}:{div:this.divn(Ot.words[0]),mod:new st(this.modn(Ot.words[0]))}:this._wordDiv(Ot,Mt)},st.prototype.div=function(Ot){return this.divmod(Ot,"div",!1).div},st.prototype.mod=function(Ot){return this.divmod(Ot,"mod",!1).mod},st.prototype.umod=function(Ot){return this.divmod(Ot,"mod",!0).mod},st.prototype.divRound=function(Ot){var Mt=this.divmod(Ot);if(Mt.mod.isZero())return Mt.div;var ht=Mt.div.negative!==0?Mt.mod.isub(Ot):Mt.mod,Et=Ot.ushrn(1),Tt=Ot.andln(1),Rt=ht.cmp(Et);return Rt<0||Tt===1&&Rt===0?Mt.div:Mt.div.negative!==0?Mt.div.isubn(1):Mt.div.iaddn(1)},st.prototype.modn=function(Ot){nt(Ot<=67108863);for(var Mt=(1<<26)%Ot,ht=0,Et=this.length-1;Et>=0;Et--)ht=(Mt*ht+(this.words[Et]|0))%Ot;return ht},st.prototype.idivn=function(Ot){nt(Ot<=67108863);for(var Mt=0,ht=this.length-1;ht>=0;ht--){var Et=(this.words[ht]|0)+Mt*67108864;this.words[ht]=Et/Ot|0,Mt=Et%Ot}return this.strip()},st.prototype.divn=function(Ot){return this.clone().idivn(Ot)},st.prototype.egcd=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=new st(0),At=new st(1),Pt=0;Mt.isEven()&&ht.isEven();)Mt.iushrn(1),ht.iushrn(1),++Pt;for(var It=ht.clone(),Ct=Mt.clone();!Mt.isZero();){for(var xt=0,Lt=1;!(Mt.words[0]&Lt)&&xt<26;++xt,Lt<<=1);if(xt>0)for(Mt.iushrn(xt);xt-- >0;)(Et.isOdd()||Tt.isOdd())&&(Et.iadd(It),Tt.isub(Ct)),Et.iushrn(1),Tt.iushrn(1);for(var tr=0,pr=1;!(ht.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(ht.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(It),At.isub(Ct)),Rt.iushrn(1),At.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Rt),Tt.isub(At)):(ht.isub(Mt),Rt.isub(Et),At.isub(Tt))}return{a:Rt,b:At,gcd:ht.iushln(Pt)}},st.prototype._invmp=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=ht.clone();Mt.cmpn(1)>0&&ht.cmpn(1)>0;){for(var At=0,Pt=1;!(Mt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(Mt.iushrn(At);At-- >0;)Et.isOdd()&&Et.iadd(Rt),Et.iushrn(1);for(var It=0,Ct=1;!(ht.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(ht.iushrn(It);It-- >0;)Tt.isOdd()&&Tt.iadd(Rt),Tt.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Tt)):(ht.isub(Mt),Tt.isub(Et))}var xt;return Mt.cmpn(1)===0?xt=Et:xt=Tt,xt.cmpn(0)<0&&xt.iadd(Ot),xt},st.prototype.gcd=function(Ot){if(this.isZero())return Ot.abs();if(Ot.isZero())return this.abs();var Mt=this.clone(),ht=Ot.clone();Mt.negative=0,ht.negative=0;for(var Et=0;Mt.isEven()&&ht.isEven();Et++)Mt.iushrn(1),ht.iushrn(1);do{for(;Mt.isEven();)Mt.iushrn(1);for(;ht.isEven();)ht.iushrn(1);var Tt=Mt.cmp(ht);if(Tt<0){var Rt=Mt;Mt=ht,ht=Rt}else if(Tt===0||ht.cmpn(1)===0)break;Mt.isub(ht)}while(!0);return ht.iushln(Et)},st.prototype.invm=function(Ot){return this.egcd(Ot).a.umod(Ot)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(Ot){return this.words[0]&Ot},st.prototype.bincn=function(Ot){nt(typeof Ot=="number");var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<>>26,At&=67108863,this.words[Rt]=At}return Tt!==0&&(this.words[Rt]=Tt,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(Ot){var Mt=Ot<0;if(this.negative!==0&&!Mt)return-1;if(this.negative===0&&Mt)return 1;this.strip();var ht;if(this.length>1)ht=1;else{Mt&&(Ot=-Ot),nt(Ot<=67108863,"Number is too big");var Et=this.words[0]|0;ht=Et===Ot?0:EtOt.length)return 1;if(this.length=0;ht--){var Et=this.words[ht]|0,Tt=Ot.words[ht]|0;if(Et!==Tt){EtTt&&(Mt=1);break}}return Mt},st.prototype.gtn=function(Ot){return this.cmpn(Ot)===1},st.prototype.gt=function(Ot){return this.cmp(Ot)===1},st.prototype.gten=function(Ot){return this.cmpn(Ot)>=0},st.prototype.gte=function(Ot){return this.cmp(Ot)>=0},st.prototype.ltn=function(Ot){return this.cmpn(Ot)===-1},st.prototype.lt=function(Ot){return this.cmp(Ot)===-1},st.prototype.lten=function(Ot){return this.cmpn(Ot)<=0},st.prototype.lte=function(Ot){return this.cmp(Ot)<=0},st.prototype.eqn=function(Ot){return this.cmpn(Ot)===0},st.prototype.eq=function(Ot){return this.cmp(Ot)===0},st.red=function(Ot){return new Wt(Ot)},st.prototype.toRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Ot.convertTo(this)._forceRed(Ot)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(Ot){return this.red=Ot,this},st.prototype.forceRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Ot)},st.prototype.redAdd=function(Ot){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ot)},st.prototype.redIAdd=function(Ot){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ot)},st.prototype.redSub=function(Ot){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ot)},st.prototype.redISub=function(Ot){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ot)},st.prototype.redShl=function(Ot){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ot)},st.prototype.redMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.mul(this,Ot)},st.prototype.redIMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.imul(this,Ot)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(Ot){return nt(this.red&&!Ot.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ot)};var St={k256:null,p224:null,p192:null,p25519:null};function Bt(qt,Ot){this.name=qt,this.p=new st(Ot,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Bt.prototype._tmp=function(){var Ot=new st(null);return Ot.words=new Array(Math.ceil(this.n/13)),Ot},Bt.prototype.ireduce=function(Ot){var Mt=Ot,ht;do this.split(Mt,this.tmp),Mt=this.imulK(Mt),Mt=Mt.iadd(this.tmp),ht=Mt.bitLength();while(ht>this.n);var Et=ht0?Mt.isub(this.p):Mt.strip!==void 0?Mt.strip():Mt._strip(),Mt},Bt.prototype.split=function(Ot,Mt){Ot.iushrn(this.n,0,Mt)},Bt.prototype.imulK=function(Ot){return Ot.imul(this.k)};function Ft(){Bt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(Ft,Bt),Ft.prototype.split=function(Ot,Mt){for(var ht=4194303,Et=Math.min(Ot.length,9),Tt=0;Tt>>22,Rt=At}Rt>>>=22,Ot.words[Tt-10]=Rt,Rt===0&&Ot.length>10?Ot.length-=10:Ot.length-=9},Ft.prototype.imulK=function(Ot){Ot.words[Ot.length]=0,Ot.words[Ot.length+1]=0,Ot.length+=2;for(var Mt=0,ht=0;ht>>=26,Ot.words[ht]=Tt,Mt=Et}return Mt!==0&&(Ot.words[Ot.length++]=Mt),Ot},st._prime=function(Ot){if(St[Ot])return St[Ot];var Mt;if(Ot==="k256")Mt=new Ft;else if(Ot==="p224")Mt=new Dt;else if(Ot==="p192")Mt=new zt;else if(Ot==="p25519")Mt=new Ht;else throw new Error("Unknown prime "+Ot);return St[Ot]=Mt,Mt};function Wt(qt){if(typeof qt=="string"){var Ot=st._prime(qt);this.m=Ot.p,this.prime=Ot}else nt(qt.gtn(1),"modulus must be greater than 1"),this.m=qt,this.prime=null}Wt.prototype._verify1=function(Ot){nt(Ot.negative===0,"red works only with positives"),nt(Ot.red,"red works only with red numbers")},Wt.prototype._verify2=function(Ot,Mt){nt((Ot.negative|Mt.negative)===0,"red works only with positives"),nt(Ot.red&&Ot.red===Mt.red,"red works only with red numbers")},Wt.prototype.imod=function(Ot){return this.prime?this.prime.ireduce(Ot)._forceRed(this):Ot.umod(this.m)._forceRed(this)},Wt.prototype.neg=function(Ot){return Ot.isZero()?Ot.clone():this.m.sub(Ot)._forceRed(this)},Wt.prototype.add=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.add(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht._forceRed(this)},Wt.prototype.iadd=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.iadd(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht},Wt.prototype.sub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.sub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht._forceRed(this)},Wt.prototype.isub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.isub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht},Wt.prototype.shl=function(Ot,Mt){return this._verify1(Ot),this.imod(Ot.ushln(Mt))},Wt.prototype.imul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.imul(Mt))},Wt.prototype.mul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.mul(Mt))},Wt.prototype.isqr=function(Ot){return this.imul(Ot,Ot.clone())},Wt.prototype.sqr=function(Ot){return this.mul(Ot,Ot)},Wt.prototype.sqrt=function(Ot){if(Ot.isZero())return Ot.clone();var Mt=this.m.andln(3);if(nt(Mt%2===1),Mt===3){var ht=this.m.add(new st(1)).iushrn(2);return this.pow(Ot,ht)}for(var Et=this.m.subn(1),Tt=0;!Et.isZero()&&Et.andln(1)===0;)Tt++,Et.iushrn(1);nt(!Et.isZero());var Rt=new st(1).toRed(this),At=Rt.redNeg(),Pt=this.m.subn(1).iushrn(1),It=this.m.bitLength();for(It=new st(2*It*It).toRed(this);this.pow(It,Pt).cmp(At)!==0;)It.redIAdd(At);for(var Ct=this.pow(It,Et),xt=this.pow(Ot,Et.addn(1).iushrn(1)),Lt=this.pow(Ot,Et),tr=Tt;Lt.cmp(Rt)!==0;){for(var pr=Lt,Kt=0;pr.cmp(Rt)!==0;Kt++)pr=pr.redSqr();nt(Kt=0;Tt--){for(var Ct=Mt.words[Tt],xt=It-1;xt>=0;xt--){var Lt=Ct>>xt&1;if(Rt!==Et[0]&&(Rt=this.sqr(Rt)),Lt===0&&At===0){Pt=0;continue}At<<=1,At|=Lt,Pt++,!(Pt!==ht&&(Tt!==0||xt!==0))&&(Rt=this.mul(Rt,Et[At]),Pt=0,At=0)}It=26}return Rt},Wt.prototype.convertTo=function(Ot){var Mt=Ot.umod(this.m);return Mt===Ot?Mt.clone():Mt},Wt.prototype.convertFrom=function(Ot){var Mt=Ot.clone();return Mt.red=null,Mt},st.mont=function(Ot){return new lr(Ot)};function lr(qt){Wt.call(this,qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(lr,Wt),lr.prototype.convertTo=function(Ot){return this.imod(Ot.ushln(this.shift))},lr.prototype.convertFrom=function(Ot){var Mt=this.imod(Ot.mul(this.rinv));return Mt.red=null,Mt},lr.prototype.imul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return Ot.words[0]=0,Ot.length=1,Ot;var ht=Ot.imul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.mul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return new st(0)._forceRed(this);var ht=Ot.mul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.invm=function(Ot){var Mt=this.imod(Ot._invmp(this.m).mul(this.r2));return Mt._forceRed(this)}})(et,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var et;brorand.exports=function(it){return et||(et=new tt(null)),et.generate(it)};function tt(nt){this.rand=nt}if(brorand.exports.Rand=tt,tt.prototype.generate=function(it){return this._rand(it)},tt.prototype._rand=function(it){if(this.rand.getBytes)return this.rand.getBytes(it);for(var st=new Uint8Array(it),at=0;at=0);return ot},rt.prototype._randrange=function(it,st){var at=st.sub(it);return it.add(this._randbelow(at))},rt.prototype.test=function(it,st,at){var ot=it.bitLength(),lt=et.mont(it),ut=new et(1).toRed(lt);st||(st=Math.max(1,ot/48|0));for(var dt=it.subn(1),bt=0;!dt.testn(bt);bt++);for(var gt=it.shrn(bt),kt=dt.toRed(lt),pt=!0;st>0;st--){var yt=this._randrange(new et(2),dt);at&&at(yt);var $t=yt.toRed(lt).redPow(gt);if(!($t.cmp(ut)===0||$t.cmp(kt)===0)){for(var mt=1;mt0;st--){var kt=this._randrange(new et(2),ut),pt=it.gcd(kt);if(pt.cmpn(1)!==0)return pt;var yt=kt.toRed(ot).redPow(bt);if(!(yt.cmp(lt)===0||yt.cmp(gt)===0)){for(var $t=1;$tmt;)St.ishrn(1);if(St.isEven()&&St.iadd(st),St.testn(1)||St.iadd(at),wt.cmp(at)){if(!wt.cmp(ot))for(;St.mod(lt).cmp(ut);)St.iadd(bt)}else for(;St.mod(rt).cmp(dt);)St.iadd(bt);if(Bt=St.shrn(1),pt(Bt)&&pt(St)&&yt(Bt)&&yt(St)&&it.test(Bt)&&it.test(St))return St}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var et=bnExports$2,tt=requireMr(),rt=new tt,nt=new et(24),it=new et(11),st=new et(10),at=new et(3),ot=new et(7),lt=requireGeneratePrime(),ut=browserExports;dh=pt;function dt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._pub=new et($t),this}function bt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._priv=new et($t),this}var gt={};function kt($t,mt){var wt=mt.toString("hex"),St=[wt,$t.toString(16)].join("_");if(St in gt)return gt[St];var Bt=0;if($t.isEven()||!lt.simpleSieve||!lt.fermatTest($t)||!rt.test($t))return Bt+=1,wt==="02"||wt==="05"?Bt+=8:Bt+=4,gt[St]=Bt,Bt;rt.test($t.shrn(1))||(Bt+=2);var Ft;switch(wt){case"02":$t.mod(nt).cmp(it)&&(Bt+=8);break;case"05":Ft=$t.mod(st),Ft.cmp(at)&&Ft.cmp(ot)&&(Bt+=8);break;default:Bt+=4}return gt[St]=Bt,Bt}function pt($t,mt,wt){this.setGenerator(mt),this.__prime=new et($t),this._prime=et.mont(this.__prime),this._primeLen=$t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,wt?(this.setPublicKey=dt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(pt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=kt(this.__prime,this.__gen)),this._primeCode}}),pt.prototype.generateKeys=function(){return this._priv||(this._priv=new et(ut(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},pt.prototype.computeSecret=function($t){$t=new et($t),$t=$t.toRed(this._prime);var mt=$t.redPow(this._priv).fromRed(),wt=new Buffer(mt.toArray()),St=this.getPrime();if(wt.length0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Lt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Lt).toString(ht);tr=tr.idivn(Lt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Lt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Lt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Lt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Lt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Lt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Lt=Lt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Lt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Lt=Lt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Lt=Lt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Lt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Lt=Lt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Lt=Lt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Lt=Lt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Lt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Lt=Lt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Lt=Lt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Lt=Lt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Lt=Lt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Lt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Lt=Lt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Lt=Lt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Lt=Lt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Lt=Lt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Lt=Lt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Lt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Lt=Lt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Lt=Lt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Lt=Lt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Lt=Lt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Lt=Lt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Lt=Lt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Lt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Lt=Lt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Lt=Lt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Lt=Lt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Lt=Lt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Lt=Lt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Lt=Lt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Lt=Lt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Lt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Lt=Lt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Lt=Lt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Lt=Lt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Lt=Lt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Lt=Lt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Lt=Lt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Lt=Lt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Lt=Lt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Lt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Lt=Lt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Lt=Lt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Lt=Lt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Lt=Lt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Lt=Lt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Lt=Lt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Lt=Lt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Lt=Lt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Lt=Lt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Lt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Lt=Lt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Lt=Lt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Lt=Lt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Lt=Lt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Lt=Lt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Lt=Lt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Lt=Lt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Lt=Lt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Lt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Lt=Lt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Lt=Lt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Lt=Lt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Lt=Lt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Lt=Lt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Lt=Lt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Lt=Lt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Lt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Lt=Lt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Lt=Lt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Lt=Lt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Lt=Lt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Lt=Lt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Lt=Lt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Lt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Lt=Lt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Lt=Lt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Lt=Lt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Lt=Lt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Lt=Lt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Lt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Lt=Lt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Lt=Lt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Lt=Lt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Lt=Lt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Lt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Lt=Lt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Lt=Lt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Lt=Lt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Lt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Lt=Lt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Lt=Lt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Lt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Lt=Lt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Lt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Lt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Lt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Lt<<26-At|tr>>>At,Lt=tr&It}return Ct&&Lt!==0&&(Ct.words[Ct.length++]=Lt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Lt=0;Lt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Lt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Lt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Lt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Lt=1;!(Tt.words[0]&Lt)&&xt<26;++xt,Lt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Dt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Dt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Dt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Dt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Dt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Dt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Dt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Lt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Lt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Lt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,BN$c=bnExports$1,randomBytes$1=browserExports;function blind(et){var tt=getr(et),rt=tt.toRed(BN$c.mont(et.modulus)).redPow(new BN$c(et.publicExponent)).fromRed();return{blinder:rt,unblinder:tt.invm(et.modulus)}}function getr(et){var tt=et.modulus.byteLength(),rt;do rt=new BN$c(randomBytes$1(tt));while(rt.cmp(et.modulus)>=0||!rt.umod(et.prime1)||!rt.umod(et.prime2));return rt}function crt$2(et,tt){var rt=blind(tt),nt=tt.modulus.byteLength(),it=new BN$c(et).mul(rt.blinder).umod(tt.modulus),st=it.toRed(BN$c.mont(tt.prime1)),at=it.toRed(BN$c.mont(tt.prime2)),ot=tt.coefficient,lt=tt.prime1,ut=tt.prime2,dt=st.redPow(tt.exponent1).fromRed(),bt=at.redPow(tt.exponent2).fromRed(),gt=dt.isub(bt).imul(ot).umod(lt).imul(ut);return bt.iadd(gt).imul(rt.unblinder).umod(tt.modulus).toArrayLike(Buffer,"be",nt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$2={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$n={},utils$m={};(function(et){var tt=et;function rt(st,at){if(Array.isArray(st))return st.slice();if(!st)return[];var ot=[];if(typeof st!="string"){for(var lt=0;lt>8,bt=ut&255;dt?ot.push(dt,bt):ot.push(bt)}return ot}tt.toArray=rt;function nt(st){return st.length===1?"0"+st:st}tt.zero2=nt;function it(st){for(var at="",ot=0;ot(pt>>1)-1?mt=(pt>>1)-wt:mt=wt,yt.isubn(mt)):mt=0,kt[$t]=mt,yt.iushrn(1)}return kt}tt.getNAF=st;function at(dt,bt){var gt=[[],[]];dt=dt.clone(),bt=bt.clone();for(var kt=0,pt=0,yt;dt.cmpn(-kt)>0||bt.cmpn(-pt)>0;){var $t=dt.andln(3)+kt&3,mt=bt.andln(3)+pt&3;$t===3&&($t=-1),mt===3&&(mt=-1);var wt;$t&1?(yt=dt.andln(7)+kt&7,(yt===3||yt===5)&&mt===2?wt=-$t:wt=$t):wt=0,gt[0].push(wt);var St;mt&1?(yt=bt.andln(7)+pt&7,(yt===3||yt===5)&&$t===2?St=-mt:St=mt):St=0,gt[1].push(St),2*kt===wt+1&&(kt=1-kt),2*pt===St+1&&(pt=1-pt),dt.iushrn(1),bt.iushrn(1)}return gt}tt.getJSF=at;function ot(dt,bt,gt){var kt="_"+bt;dt.prototype[bt]=function(){return this[kt]!==void 0?this[kt]:this[kt]=gt.call(this)}}tt.cachedProperty=ot;function lt(dt){return typeof dt=="string"?tt.toArray(dt,"hex"):dt}tt.parseBytes=lt;function ut(dt){return new rt(dt,"hex","le")}tt.intFromLE=ut})(utils$n);var curve={},BN$b=bnExports$2,utils$l=utils$n,getNAF=utils$l.getNAF,getJSF=utils$l.getJSF,assert$i=utils$l.assert;function BaseCurve(et,tt){this.type=et,this.p=new BN$b(tt.p,16),this.red=tt.prime?BN$b.red(tt.prime):BN$b.mont(this.p),this.zero=new BN$b(0).toRed(this.red),this.one=new BN$b(1).toRed(this.red),this.two=new BN$b(2).toRed(this.red),this.n=tt.n&&new BN$b(tt.n,16),this.g=tt.g&&this.pointFromJSON(tt.g,tt.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var rt=this.n&&this.p.div(this.n);!rt||rt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(tt,rt){assert$i(tt.precomputed);var nt=tt._getDoubles(),it=getNAF(rt,1,this._bitLength),st=(1<=ot;ut--)lt=(lt<<1)+it[ut];at.push(lt)}for(var dt=this.jpoint(null,null,null),bt=this.jpoint(null,null,null),gt=st;gt>0;gt--){for(ot=0;ot=0;lt--){for(var ut=0;lt>=0&&at[lt]===0;lt--)ut++;if(lt>=0&&ut++,ot=ot.dblp(ut),lt<0)break;var dt=at[lt];assert$i(dt!==0),tt.type==="affine"?dt>0?ot=ot.mixedAdd(st[dt-1>>1]):ot=ot.mixedAdd(st[-dt-1>>1].neg()):dt>0?ot=ot.add(st[dt-1>>1]):ot=ot.add(st[-dt-1>>1].neg())}return tt.type==="affine"?ot.toP():ot};BaseCurve.prototype._wnafMulAdd=function(tt,rt,nt,it,st){var at=this._wnafT1,ot=this._wnafT2,lt=this._wnafT3,ut=0,dt,bt,gt;for(dt=0;dt=1;dt-=2){var pt=dt-1,yt=dt;if(at[pt]!==1||at[yt]!==1){lt[pt]=getNAF(nt[pt],at[pt],this._bitLength),lt[yt]=getNAF(nt[yt],at[yt],this._bitLength),ut=Math.max(lt[pt].length,ut),ut=Math.max(lt[yt].length,ut);continue}var $t=[rt[pt],null,null,rt[yt]];rt[pt].y.cmp(rt[yt].y)===0?($t[1]=rt[pt].add(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg())):rt[pt].y.cmp(rt[yt].y.redNeg())===0?($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].add(rt[yt].neg())):($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg()));var mt=[-3,-1,-5,-7,0,7,5,1,3],wt=getJSF(nt[pt],nt[yt]);for(ut=Math.max(wt[0].length,ut),lt[pt]=new Array(ut),lt[yt]=new Array(ut),bt=0;bt=0;dt--){for(var zt=0;dt>=0;){var Ht=!0;for(bt=0;bt=0&&zt++,Ft=Ft.dblp(zt),dt<0)break;for(bt=0;bt0?gt=ot[bt][Wt-1>>1]:Wt<0&&(gt=ot[bt][-Wt-1>>1].neg()),gt.type==="affine"?Ft=Ft.mixedAdd(gt):Ft=Ft.add(gt))}}for(dt=0;dt=Math.ceil((tt.bitLength()+1)/rt.step):!1};BasePoint.prototype._getDoubles=function(tt,rt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var nt=[this],it=this,st=0;st=0&&(kt=ut,pt=dt),bt.negative&&(bt=bt.neg(),gt=gt.neg()),kt.negative&&(kt=kt.neg(),pt=pt.neg()),[{a:bt,b:gt},{a:kt,b:pt}]};ShortCurve.prototype._endoSplit=function(tt){var rt=this.endo.basis,nt=rt[0],it=rt[1],st=it.b.mul(tt).divRound(this.n),at=nt.b.neg().mul(tt).divRound(this.n),ot=st.mul(nt.a),lt=at.mul(it.a),ut=st.mul(nt.b),dt=at.mul(it.b),bt=tt.sub(ot).sub(lt),gt=ut.add(dt).neg();return{k1:bt,k2:gt}};ShortCurve.prototype.pointFromX=function(tt,rt){tt=new BN$a(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),it=nt.redSqrt();if(it.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var st=it.fromRed().isOdd();return(rt&&!st||!rt&&st)&&(it=it.redNeg()),this.point(tt,it)};ShortCurve.prototype.validate=function(tt){if(tt.inf)return!0;var rt=tt.x,nt=tt.y,it=this.a.redMul(rt),st=rt.redSqr().redMul(rt).redIAdd(it).redIAdd(this.b);return nt.redSqr().redISub(st).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(tt,rt,nt){for(var it=this._endoWnafT1,st=this._endoWnafT2,at=0;at":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt))return this.curve.point(null,null);if(this.x.cmp(tt.x)===0)return this.curve.point(null,null);var rt=this.y.redSub(tt.y);rt.cmpn(0)!==0&&(rt=rt.redMul(this.x.redSub(tt.x).redInvm()));var nt=rt.redSqr().redISub(this.x).redISub(tt.x),it=rt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,it)};Point$2.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(tt.cmpn(0)===0)return this.curve.point(null,null);var rt=this.curve.a,nt=this.x.redSqr(),it=tt.redInvm(),st=nt.redAdd(nt).redIAdd(nt).redIAdd(rt).redMul(it),at=st.redSqr().redISub(this.x.redAdd(this.x)),ot=st.redMul(this.x.redSub(at)).redISub(this.y);return this.curve.point(at,ot)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(tt){return tt=new BN$a(tt,16),this.isInfinity()?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)};Point$2.prototype.mulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st):this.curve._wnafMulAdd(1,it,st,2)};Point$2.prototype.jmulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st,!0):this.curve._wnafMulAdd(1,it,st,2,!0)};Point$2.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||this.x.cmp(tt.x)===0&&this.y.cmp(tt.y)===0)};Point$2.prototype.neg=function(tt){if(this.inf)return this;var rt=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var nt=this.precomputed,it=function(st){return st.neg()};rt.precomputed={naf:nt.naf&&{wnd:nt.naf.wnd,points:nt.naf.points.map(it)},doubles:nt.doubles&&{step:nt.doubles.step,points:nt.doubles.points.map(it)}}}return rt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var tt=this.curve.jpoint(this.x,this.y,this.curve.one);return tt};function JPoint(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"jacobian"),tt===null&&rt===null&&nt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$a(0)):(this.x=new BN$a(tt,16),this.y=new BN$a(rt,16),this.z=new BN$a(nt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$9(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(tt,rt,nt){return new JPoint(this,tt,rt,nt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),rt=tt.redSqr(),nt=this.x.redMul(rt),it=this.y.redMul(rt).redMul(tt);return this.curve.point(nt,it)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var rt=tt.z.redSqr(),nt=this.z.redSqr(),it=this.x.redMul(rt),st=tt.x.redMul(nt),at=this.y.redMul(rt.redMul(tt.z)),ot=tt.y.redMul(nt.redMul(this.z)),lt=it.redSub(st),ut=at.redSub(ot);if(lt.cmpn(0)===0)return ut.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var dt=lt.redSqr(),bt=dt.redMul(lt),gt=it.redMul(dt),kt=ut.redSqr().redIAdd(bt).redISub(gt).redISub(gt),pt=ut.redMul(gt.redISub(kt)).redISub(at.redMul(bt)),yt=this.z.redMul(tt.z).redMul(lt);return this.curve.jpoint(kt,pt,yt)};JPoint.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var rt=this.z.redSqr(),nt=this.x,it=tt.x.redMul(rt),st=this.y,at=tt.y.redMul(rt).redMul(this.z),ot=nt.redSub(it),lt=st.redSub(at);if(ot.cmpn(0)===0)return lt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ut=ot.redSqr(),dt=ut.redMul(ot),bt=nt.redMul(ut),gt=lt.redSqr().redIAdd(dt).redISub(bt).redISub(bt),kt=lt.redMul(bt.redISub(gt)).redISub(st.redMul(dt)),pt=this.z.redMul(ot);return this.curve.jpoint(gt,kt,pt)};JPoint.prototype.dblp=function(tt){if(tt===0)return this;if(this.isInfinity())return this;if(!tt)return this.dbl();var rt;if(this.curve.zeroA||this.curve.threeA){var nt=this;for(rt=0;rt=0)return!1;if(nt.redIAdd(st),this.x.cmp(nt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$9=bnExports$2,inherits$8=inherits_browserExports,Base$1=base$3,utils$j=utils$n;function MontCurve(et){Base$1.call(this,"mont",et),this.a=new BN$9(et.a,16).toRed(this.red),this.b=new BN$9(et.b,16).toRed(this.red),this.i4=new BN$9(4).toRed(this.red).redInvm(),this.two=new BN$9(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$8(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(tt){var rt=tt.normalize().x,nt=rt.redSqr(),it=nt.redMul(rt).redAdd(nt.redMul(this.a)).redAdd(rt),st=it.redSqrt();return st.redSqr().cmp(it)===0};function Point$1(et,tt,rt){Base$1.BasePoint.call(this,et,"projective"),tt===null&&rt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$9(tt,16),this.z=new BN$9(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$8(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(tt,rt){return this.point(utils$j.toArray(tt,rt),1)};MontCurve.prototype.point=function(tt,rt){return new Point$1(this,tt,rt)};MontCurve.prototype.pointFromJSON=function(tt){return Point$1.fromJSON(this,tt)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(tt,rt){return new Point$1(tt,rt[0],rt[1]||tt.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var tt=this.x.redAdd(this.z),rt=tt.redSqr(),nt=this.x.redSub(this.z),it=nt.redSqr(),st=rt.redSub(it),at=rt.redMul(it),ot=st.redMul(it.redAdd(this.curve.a24.redMul(st)));return this.curve.point(at,ot)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(tt,rt){var nt=this.x.redAdd(this.z),it=this.x.redSub(this.z),st=tt.x.redAdd(tt.z),at=tt.x.redSub(tt.z),ot=at.redMul(nt),lt=st.redMul(it),ut=rt.z.redMul(ot.redAdd(lt).redSqr()),dt=rt.x.redMul(ot.redISub(lt).redSqr());return this.curve.point(ut,dt)};Point$1.prototype.mul=function(tt){for(var rt=tt.clone(),nt=this,it=this.curve.point(null,null),st=this,at=[];rt.cmpn(0)!==0;rt.iushrn(1))at.push(rt.andln(1));for(var ot=at.length-1;ot>=0;ot--)at[ot]===0?(nt=nt.diffAdd(it,st),it=it.dbl()):(it=nt.diffAdd(it,st),nt=nt.dbl());return it};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(tt){return this.getX().cmp(tt.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$i=utils$n,BN$8=bnExports$2,inherits$7=inherits_browserExports,Base=base$3,assert$g=utils$i.assert;function EdwardsCurve(et){this.twisted=(et.a|0)!==1,this.mOneA=this.twisted&&(et.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",et),this.a=new BN$8(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$8(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$8(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$g(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(et.c|0)===1}inherits$7(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)};EdwardsCurve.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)};EdwardsCurve.prototype.jpoint=function(tt,rt,nt,it){return this.point(tt,rt,nt,it)};EdwardsCurve.prototype.pointFromX=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=this.c2.redSub(this.a.redMul(nt)),st=this.one.redSub(this.c2.redMul(this.d).redMul(nt)),at=it.redMul(st.redInvm()),ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");var lt=ot.fromRed().isOdd();return(rt&&!lt||!rt&<)&&(ot=ot.redNeg()),this.point(tt,ot)};EdwardsCurve.prototype.pointFromY=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=nt.redSub(this.c2),st=nt.redMul(this.d).redMul(this.c2).redSub(this.a),at=it.redMul(st.redInvm());if(at.cmp(this.zero)===0){if(rt)throw new Error("invalid point");return this.point(this.zero,tt)}var ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");return ot.fromRed().isOdd()!==rt&&(ot=ot.redNeg()),this.point(ot,tt)};EdwardsCurve.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var rt=tt.x.redSqr(),nt=tt.y.redSqr(),it=rt.redMul(this.a).redAdd(nt),st=this.c2.redMul(this.one.redAdd(this.d.redMul(rt).redMul(nt)));return it.cmp(st)===0};function Point(et,tt,rt,nt,it){Base.BasePoint.call(this,et,"projective"),tt===null&&rt===null&&nt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),this.z=nt?new BN$8(nt,16):this.curve.one,this.t=it&&new BN$8(it,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$7(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(tt){return Point.fromJSON(this,tt)};EdwardsCurve.prototype.point=function(tt,rt,nt,it){return new Point(this,tt,rt,nt,it)};Point.fromJSON=function(tt,rt){return new Point(tt,rt[0],rt[1],rt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr();nt=nt.redIAdd(nt);var it=this.curve._mulA(tt),st=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(rt),at=it.redAdd(rt),ot=at.redSub(nt),lt=it.redSub(rt),ut=st.redMul(ot),dt=at.redMul(lt),bt=st.redMul(lt),gt=ot.redMul(at);return this.curve.point(ut,dt,gt,bt)};Point.prototype._projDbl=function(){var tt=this.x.redAdd(this.y).redSqr(),rt=this.x.redSqr(),nt=this.y.redSqr(),it,st,at,ot,lt,ut;if(this.curve.twisted){ot=this.curve._mulA(rt);var dt=ot.redAdd(nt);this.zOne?(it=tt.redSub(rt).redSub(nt).redMul(dt.redSub(this.curve.two)),st=dt.redMul(ot.redSub(nt)),at=dt.redSqr().redSub(dt).redSub(dt)):(lt=this.z.redSqr(),ut=dt.redSub(lt).redISub(lt),it=tt.redSub(rt).redISub(nt).redMul(ut),st=dt.redMul(ot.redSub(nt)),at=dt.redMul(ut))}else ot=rt.redAdd(nt),lt=this.curve._mulC(this.z).redSqr(),ut=ot.redSub(lt).redSub(lt),it=this.curve._mulC(tt.redISub(ot)).redMul(ut),st=this.curve._mulC(ot).redMul(rt.redISub(nt)),at=ot.redMul(ut);return this.curve.point(it,st,at)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(tt){var rt=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),nt=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),it=this.t.redMul(this.curve.dd).redMul(tt.t),st=this.z.redMul(tt.z.redAdd(tt.z)),at=nt.redSub(rt),ot=st.redSub(it),lt=st.redAdd(it),ut=nt.redAdd(rt),dt=at.redMul(ot),bt=lt.redMul(ut),gt=at.redMul(ut),kt=ot.redMul(lt);return this.curve.point(dt,bt,kt,gt)};Point.prototype._projAdd=function(tt){var rt=this.z.redMul(tt.z),nt=rt.redSqr(),it=this.x.redMul(tt.x),st=this.y.redMul(tt.y),at=this.curve.d.redMul(it).redMul(st),ot=nt.redSub(at),lt=nt.redAdd(at),ut=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(it).redISub(st),dt=rt.redMul(ot).redMul(ut),bt,gt;return this.curve.twisted?(bt=rt.redMul(lt).redMul(st.redSub(this.curve._mulA(it))),gt=ot.redMul(lt)):(bt=rt.redMul(lt).redMul(st.redSub(it)),gt=this.curve._mulC(ot).redMul(lt)),this.curve.point(dt,bt,gt)};Point.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)};Point.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)};Point.prototype.mulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!1)};Point.prototype.jmulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(tt){return this===tt||this.getX().cmp(tt.getX())===0&&this.getY().cmp(tt.getY())===0};Point.prototype.eqXToP=function(tt){var rt=tt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(rt)===0)return!0;for(var nt=tt.clone(),it=this.curve.redN.redMul(this.z);;){if(nt.iadd(this.curve.n),nt.cmp(this.curve.p)>=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(et){var tt=et;tt.base=base$3,tt.short=short,tt.mont=mont,tt.edwards=edwards})(curve);var curves$1={},hash$4={},utils$h={},assert$f=minimalisticAssert,inherits$6=inherits_browserExports;utils$h.inherits=inherits$6;function isSurrogatePair(et,tt){return(et.charCodeAt(tt)&64512)!==55296||tt<0||tt+1>=et.length?!1:(et.charCodeAt(tt+1)&64512)===56320}function toArray$1(et,tt){if(Array.isArray(et))return et.slice();if(!et)return[];var rt=[];if(typeof et=="string")if(tt){if(tt==="hex")for(et=et.replace(/[^a-z0-9]+/ig,""),et.length%2!==0&&(et="0"+et),it=0;it>6|192,rt[nt++]=st&63|128):isSurrogatePair(et,it)?(st=65536+((st&1023)<<10)+(et.charCodeAt(++it)&1023),rt[nt++]=st>>18|240,rt[nt++]=st>>12&63|128,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128):(rt[nt++]=st>>12|224,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128)}else for(it=0;it>>24|et>>>8&65280|et<<8&16711680|(et&255)<<24;return tt>>>0}utils$h.htonl=htonl;function toHex32(et,tt){for(var rt="",nt=0;nt>>0}return st}utils$h.join32=join32;function split32(et,tt){for(var rt=new Array(et.length*4),nt=0,it=0;nt>>24,rt[it+1]=st>>>16&255,rt[it+2]=st>>>8&255,rt[it+3]=st&255):(rt[it+3]=st>>>24,rt[it+2]=st>>>16&255,rt[it+1]=st>>>8&255,rt[it]=st&255)}return rt}utils$h.split32=split32;function rotr32$1(et,tt){return et>>>tt|et<<32-tt}utils$h.rotr32=rotr32$1;function rotl32$2(et,tt){return et<>>32-tt}utils$h.rotl32=rotl32$2;function sum32$3(et,tt){return et+tt>>>0}utils$h.sum32=sum32$3;function sum32_3$1(et,tt,rt){return et+tt+rt>>>0}utils$h.sum32_3=sum32_3$1;function sum32_4$2(et,tt,rt,nt){return et+tt+rt+nt>>>0}utils$h.sum32_4=sum32_4$2;function sum32_5$2(et,tt,rt,nt,it){return et+tt+rt+nt+it>>>0}utils$h.sum32_5=sum32_5$2;function sum64$1(et,tt,rt,nt){var it=et[tt],st=et[tt+1],at=nt+st>>>0,ot=(at>>0,et[tt+1]=at}utils$h.sum64=sum64$1;function sum64_hi$1(et,tt,rt,nt){var it=tt+nt>>>0,st=(it>>0}utils$h.sum64_hi=sum64_hi$1;function sum64_lo$1(et,tt,rt,nt){var it=tt+nt;return it>>>0}utils$h.sum64_lo=sum64_lo$1;function sum64_4_hi$1(et,tt,rt,nt,it,st,at,ot){var lt=0,ut=tt;ut=ut+nt>>>0,lt+=ut>>0,lt+=ut>>0,lt+=ut>>0}utils$h.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(et,tt,rt,nt,it,st,at,ot){var lt=tt+nt+st+ot;return lt>>>0}utils$h.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=0,bt=tt;bt=bt+nt>>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0}utils$h.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=tt+nt+st+ot+ut;return dt>>>0}utils$h.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(et,tt,rt){var nt=tt<<32-rt|et>>>rt;return nt>>>0}utils$h.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.rotr64_lo=rotr64_lo$1;function shr64_hi$1(et,tt,rt){return et>>>rt}utils$h.shr64_hi=shr64_hi$1;function shr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.shr64_lo=shr64_lo$1;var common$7={},utils$g=utils$h,assert$e=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(tt,rt){if(tt=utils$g.toArray(tt,rt),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){tt=this.pending;var nt=tt.length%this._delta8;this.pending=tt.slice(tt.length-nt,tt.length),this.pending.length===0&&(this.pending=null),tt=utils$g.join32(tt,0,tt.length-nt,this.endian);for(var it=0;it>>24&255,it[st++]=tt>>>16&255,it[st++]=tt>>>8&255,it[st++]=tt&255}else for(it[st++]=tt&255,it[st++]=tt>>>8&255,it[st++]=tt>>>16&255,it[st++]=tt>>>24&255,it[st++]=0,it[st++]=0,it[st++]=0,it[st++]=0,at=8;at>>3}common$6.g0_256=g0_256$1;function g1_256$1(et){return rotr32(et,17)^rotr32(et,19)^et>>>10}common$6.g1_256=g1_256$1;var utils$e=utils$h,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$e.rotl32,sum32$2=utils$e.sum32,sum32_5$1=utils$e.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1$1(){if(!(this instanceof SHA1$1))return new SHA1$1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$e.inherits(SHA1$1,BlockHash$3);var _1=SHA1$1;SHA1$1.blockSize=512;SHA1$1.outSize=160;SHA1$1.hmacStrength=80;SHA1$1.padLength=64;SHA1$1.prototype._update=function(tt,rt){for(var nt=this.W,it=0;it<16;it++)nt[it]=tt[rt+it];for(;itthis.blockSize&&(tt=new this.Hash().update(tt).digest()),assert$b(tt.length<=this.blockSize);for(var rt=tt.length;rt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tt,rt,nt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(tt,rt,nt){var it=tt.concat(rt).concat(nt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var st=0;st=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(nt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(tt,rt,nt,it){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof rt!="string"&&(it=nt,nt=rt,rt=null),nt&&(nt=utils$7.toArray(nt,it||"hex"),this._update(nt));for(var st=[];st.length"};var BN$6=bnExports$2,utils$5=utils$n,assert$8=utils$5.assert;function Signature$2(et,tt){if(et instanceof Signature$2)return et;this._importDER(et,tt)||(assert$8(et.r&&et.s,"Signature without r or s"),this.r=new BN$6(et.r,16),this.s=new BN$6(et.s,16),et.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(et,tt){var rt=et[tt.place++];if(!(rt&128))return rt;var nt=rt&15;if(nt===0||nt>4)return!1;for(var it=0,st=0,at=tt.place;st>>=0;return it<=127?!1:(tt.place=at,it)}function rmPadding(et){for(var tt=0,rt=et.length-1;!et[tt]&&!(et[tt+1]&128)&&tt>>3);for(et.push(rt|128);--rt;)et.push(tt>>>(rt<<3)&255);et.push(tt)}Signature$2.prototype.toDER=function(tt){var rt=this.r.toArray(),nt=this.s.toArray();for(rt[0]&128&&(rt=[0].concat(rt)),nt[0]&128&&(nt=[0].concat(nt)),rt=rmPadding(rt),nt=rmPadding(nt);!nt[0]&&!(nt[1]&128);)nt=nt.slice(1);var it=[2];constructLength(it,rt.length),it=it.concat(rt),it.push(2),constructLength(it,nt.length);var st=it.concat(nt),at=[48];return constructLength(at,st.length),at=at.concat(st),utils$5.encode(at,tt)};var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var et=bnExports$2,tt=hmacDrbg,rt=utils$n,nt=curves$1,it=requireBrorand(),st=rt.assert,at=key$2,ot=signature$1;function lt(ut){if(!(this instanceof lt))return new lt(ut);typeof ut=="string"&&(st(Object.prototype.hasOwnProperty.call(nt,ut),"Unknown curve "+ut),ut=nt[ut]),ut instanceof nt.PresetCurve&&(ut={curve:ut}),this.curve=ut.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=ut.curve.g,this.g.precompute(ut.curve.n.bitLength()+1),this.hash=ut.hash||ut.curve.hash}return ec$1=lt,lt.prototype.keyPair=function(dt){return new at(this,dt)},lt.prototype.keyFromPrivate=function(dt,bt){return at.fromPrivate(this,dt,bt)},lt.prototype.keyFromPublic=function(dt,bt){return at.fromPublic(this,dt,bt)},lt.prototype.genKeyPair=function(dt){dt||(dt={});for(var bt=new tt({hash:this.hash,pers:dt.pers,persEnc:dt.persEnc||"utf8",entropy:dt.entropy||it(this.hash.hmacStrength),entropyEnc:dt.entropy&&dt.entropyEnc||"utf8",nonce:this.n.toArray()}),gt=this.n.byteLength(),kt=this.n.sub(new et(2));;){var pt=new et(bt.generate(gt));if(!(pt.cmp(kt)>0))return pt.iaddn(1),this.keyFromPrivate(pt)}},lt.prototype._truncateToN=function(dt,bt){var gt=dt.byteLength()*8-this.n.bitLength();return gt>0&&(dt=dt.ushrn(gt)),!bt&&dt.cmp(this.n)>=0?dt.sub(this.n):dt},lt.prototype.sign=function(dt,bt,gt,kt){typeof gt=="object"&&(kt=gt,gt=null),kt||(kt={}),bt=this.keyFromPrivate(bt,gt),dt=this._truncateToN(new et(dt,16));for(var pt=this.n.byteLength(),yt=bt.getPrivate().toArray("be",pt),$t=dt.toArray("be",pt),mt=new tt({hash:this.hash,entropy:yt,nonce:$t,pers:kt.pers,persEnc:kt.persEnc||"utf8"}),wt=this.n.sub(new et(1)),St=0;;St++){var Bt=kt.k?kt.k(St):new et(mt.generate(this.n.byteLength()));if(Bt=this._truncateToN(Bt,!0),!(Bt.cmpn(1)<=0||Bt.cmp(wt)>=0)){var Ft=this.g.mul(Bt);if(!Ft.isInfinity()){var Dt=Ft.getX(),zt=Dt.umod(this.n);if(zt.cmpn(0)!==0){var Ht=Bt.invm(this.n).mul(zt.mul(bt.getPrivate()).iadd(dt));if(Ht=Ht.umod(this.n),Ht.cmpn(0)!==0){var Wt=(Ft.getY().isOdd()?1:0)|(Dt.cmp(zt)!==0?2:0);return kt.canonical&&Ht.cmp(this.nh)>0&&(Ht=this.n.sub(Ht),Wt^=1),new ot({r:zt,s:Ht,recoveryParam:Wt})}}}}}},lt.prototype.verify=function(dt,bt,gt,kt){dt=this._truncateToN(new et(dt,16)),gt=this.keyFromPublic(gt,kt),bt=new ot(bt,"hex");var pt=bt.r,yt=bt.s;if(pt.cmpn(1)<0||pt.cmp(this.n)>=0||yt.cmpn(1)<0||yt.cmp(this.n)>=0)return!1;var $t=yt.invm(this.n),mt=$t.mul(dt).umod(this.n),wt=$t.mul(pt).umod(this.n),St;return this.curve._maxwellTrick?(St=this.g.jmulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.eqXToP(pt)):(St=this.g.mulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.getX().umod(this.n).cmp(pt)===0)},lt.prototype.recoverPubKey=function(ut,dt,bt,gt){st((3&bt)===bt,"The recovery param is more than two bits"),dt=new ot(dt,gt);var kt=this.n,pt=new et(ut),yt=dt.r,$t=dt.s,mt=bt&1,wt=bt>>1;if(yt.cmp(this.curve.p.umod(this.curve.n))>=0&&wt)throw new Error("Unable to find sencond key candinate");wt?yt=this.curve.pointFromX(yt.add(this.curve.n),mt):yt=this.curve.pointFromX(yt,mt);var St=dt.r.invm(kt),Bt=kt.sub(pt).mul(St).umod(kt),Ft=$t.mul(St).umod(kt);return this.g.mulAdd(Bt,yt,Ft)},lt.prototype.getKeyRecoveryParam=function(ut,dt,bt,gt){if(dt=new ot(dt,gt),dt.recoveryParam!==null)return dt.recoveryParam;for(var kt=0;kt<4;kt++){var pt;try{pt=this.recoverPubKey(ut,dt,kt)}catch{continue}if(pt.eq(bt))return kt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$4=utils$n,assert$7=utils$4.assert,parseBytes$2=utils$4.parseBytes,cachedProperty$1=utils$4.cachedProperty;function KeyPair$1(et,tt){this.eddsa=et,this._secret=parseBytes$2(tt.secret),et.isPoint(tt.pub)?this._pub=tt.pub:this._pubBytes=parseBytes$2(tt.pub)}KeyPair$1.fromPublic=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{pub:rt})};KeyPair$1.fromSecret=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{secret:rt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var tt=this.eddsa,rt=this.hash(),nt=tt.encodingLength-1,it=rt.slice(0,tt.encodingLength);return it[0]&=248,it[nt]&=127,it[nt]|=64,it});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(tt){return assert$7(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)};KeyPair$1.prototype.verify=function(tt,rt){return this.eddsa.verify(tt,rt,this)};KeyPair$1.prototype.getSecret=function(tt){return assert$7(this._secret,"KeyPair is public only"),utils$4.encode(this.secret(),tt)};KeyPair$1.prototype.getPublic=function(tt){return utils$4.encode(this.pubBytes(),tt)};var key$1=KeyPair$1,BN$5=bnExports$2,utils$3=utils$n,assert$6=utils$3.assert,cachedProperty=utils$3.cachedProperty,parseBytes$1=utils$3.parseBytes;function Signature$1(et,tt){this.eddsa=et,typeof tt!="object"&&(tt=parseBytes$1(tt)),Array.isArray(tt)&&(tt={R:tt.slice(0,et.encodingLength),S:tt.slice(et.encodingLength)}),assert$6(tt.R&&tt.S,"Signature without R or S"),et.isPoint(tt.R)&&(this._R=tt.R),tt.S instanceof BN$5&&(this._S=tt.S),this._Rencoded=Array.isArray(tt.R)?tt.R:tt.Rencoded,this._Sencoded=Array.isArray(tt.S)?tt.S:tt.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$3.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$1,utils$2=utils$n,assert$5=utils$2.assert,parseBytes=utils$2.parseBytes,KeyPair=key$1,Signature=signature;function EDDSA(et){if(assert$5(et==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);et=curves[et].curve,this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(tt,rt){tt=parseBytes(tt);var nt=this.keyFromSecret(rt),it=this.hashInt(nt.messagePrefix(),tt),st=this.g.mul(it),at=this.encodePoint(st),ot=this.hashInt(at,nt.pubBytes(),tt).mul(nt.priv()),lt=it.add(ot).umod(this.curve.n);return this.makeSignature({R:st,S:lt,Rencoded:at})};EDDSA.prototype.verify=function(tt,rt,nt){tt=parseBytes(tt),rt=this.makeSignature(rt);var it=this.keyFromPublic(nt),st=this.hashInt(rt.Rencoded(),it.pubBytes(),tt),at=this.g.mul(rt.S()),ot=rt.R().add(it.pub().mul(st));return ot.eq(at)};EDDSA.prototype.hashInt=function(){for(var tt=this.hash(),rt=0;rt0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Lt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Lt).toString(ht);tr=tr.idivn(Lt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Lt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Lt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Lt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Lt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Lt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Lt=Lt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Lt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Lt=Lt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Lt=Lt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Lt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Lt=Lt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Lt=Lt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Lt=Lt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Lt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Lt=Lt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Lt=Lt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Lt=Lt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Lt=Lt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Lt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Lt=Lt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Lt=Lt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Lt=Lt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Lt=Lt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Lt=Lt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Lt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Lt=Lt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Lt=Lt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Lt=Lt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Lt=Lt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Lt=Lt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Lt=Lt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Lt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Lt=Lt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Lt=Lt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Lt=Lt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Lt=Lt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Lt=Lt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Lt=Lt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Lt=Lt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Lt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Lt=Lt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Lt=Lt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Lt=Lt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Lt=Lt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Lt=Lt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Lt=Lt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Lt=Lt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Lt=Lt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Lt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Lt=Lt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Lt=Lt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Lt=Lt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Lt=Lt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Lt=Lt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Lt=Lt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Lt=Lt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Lt=Lt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Lt=Lt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Lt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Lt=Lt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Lt=Lt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Lt=Lt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Lt=Lt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Lt=Lt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Lt=Lt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Lt=Lt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Lt=Lt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Lt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Lt=Lt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Lt=Lt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Lt=Lt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Lt=Lt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Lt=Lt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Lt=Lt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Lt=Lt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Lt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Lt=Lt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Lt=Lt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Lt=Lt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Lt=Lt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Lt=Lt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Lt=Lt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Lt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Lt=Lt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Lt=Lt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Lt=Lt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Lt=Lt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Lt=Lt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Lt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Lt=Lt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Lt=Lt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Lt=Lt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Lt=Lt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Lt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Lt=Lt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Lt=Lt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Lt=Lt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Lt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Lt=Lt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Lt=Lt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Lt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Lt=Lt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Lt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Lt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Lt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Lt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Lt<<26-At|tr>>>At,Lt=tr&It}return Ct&&Lt!==0&&(Ct.words[Ct.length++]=Lt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Lt=0;Lt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Lt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Lt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Lt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Lt=1;!(Tt.words[0]&Lt)&&xt<26;++xt,Lt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Dt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Dt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Dt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Dt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Dt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Dt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Dt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Lt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Lt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Lt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},encoders={},buffer$1=buffer$2,Buffer$d=buffer$1.Buffer,safer={},key;for(key in buffer$1)buffer$1.hasOwnProperty(key)&&(key==="SlowBuffer"||key==="Buffer"||(safer[key]=buffer$1[key]));var Safer=safer.Buffer={};for(key in Buffer$d)Buffer$d.hasOwnProperty(key)&&(key==="allocUnsafe"||key==="allocUnsafeSlow"||(Safer[key]=Buffer$d[key]));safer.Buffer.prototype=Buffer$d.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(et,tt,rt){if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof et);if(et&&typeof et.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);return Buffer$d(et,tt,rt)});Safer.alloc||(Safer.alloc=function(et,tt,rt){if(typeof et!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof et);if(et<0||et>=2*(1<<30))throw new RangeError('The value "'+et+'" is invalid for option "size"');var nt=Buffer$d(et);return!tt||tt.length===0?nt.fill(0):typeof rt=="string"?nt.fill(tt,rt):nt.fill(tt),nt});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,reporter={};const inherits$5=inherits_browserExports;function Reporter$2(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}reporter.Reporter=Reporter$2;Reporter$2.prototype.isError=function(tt){return tt instanceof ReporterError};Reporter$2.prototype.save=function(){const tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}};Reporter$2.prototype.restore=function(tt){const rt=this._reporterState;rt.obj=tt.obj,rt.path=rt.path.slice(0,tt.pathLen)};Reporter$2.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)};Reporter$2.prototype.exitKey=function(tt){const rt=this._reporterState;rt.path=rt.path.slice(0,tt-1)};Reporter$2.prototype.leaveKey=function(tt,rt,nt){const it=this._reporterState;this.exitKey(tt),it.obj!==null&&(it.obj[rt]=nt)};Reporter$2.prototype.path=function(){return this._reporterState.path.join("/")};Reporter$2.prototype.enterObject=function(){const tt=this._reporterState,rt=tt.obj;return tt.obj={},rt};Reporter$2.prototype.leaveObject=function(tt){const rt=this._reporterState,nt=rt.obj;return rt.obj=tt,nt};Reporter$2.prototype.error=function(tt){let rt;const nt=this._reporterState,it=tt instanceof ReporterError;if(it?rt=tt:rt=new ReporterError(nt.path.map(function(st){return"["+JSON.stringify(st)+"]"}).join(""),tt.message||tt,tt.stack),!nt.options.partial)throw rt;return it||nt.errors.push(rt),rt};Reporter$2.prototype.wrapResult=function(tt){const rt=this._reporterState;return rt.options.partial?{result:this.isError(tt)?null:tt,errors:rt.errors}:tt};function ReporterError(et,tt){this.path=et,this.rethrow(tt)}inherits$5(ReporterError,Error);ReporterError.prototype.rethrow=function(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(rt){this.stack=rt.stack}return this};var buffer={};const inherits$4=inherits_browserExports,Reporter$1=reporter.Reporter,Buffer$c=safer_1.Buffer;function DecoderBuffer$2(et,tt){if(Reporter$1.call(this,tt),!Buffer$c.isBuffer(et)){this.error("Input not Buffer");return}this.base=et,this.offset=0,this.length=et.length}inherits$4(DecoderBuffer$2,Reporter$1);buffer.DecoderBuffer=DecoderBuffer$2;DecoderBuffer$2.isDecoderBuffer=function(tt){return tt instanceof DecoderBuffer$2?!0:typeof tt=="object"&&Buffer$c.isBuffer(tt.base)&&tt.constructor.name==="DecoderBuffer"&&typeof tt.offset=="number"&&typeof tt.length=="number"&&typeof tt.save=="function"&&typeof tt.restore=="function"&&typeof tt.isEmpty=="function"&&typeof tt.readUInt8=="function"&&typeof tt.skip=="function"&&typeof tt.raw=="function"};DecoderBuffer$2.prototype.save=function(){return{offset:this.offset,reporter:Reporter$1.prototype.save.call(this)}};DecoderBuffer$2.prototype.restore=function(tt){const rt=new DecoderBuffer$2(this.base);return rt.offset=tt.offset,rt.length=this.offset,this.offset=tt.offset,Reporter$1.prototype.restore.call(this,tt.reporter),rt};DecoderBuffer$2.prototype.isEmpty=function(){return this.offset===this.length};DecoderBuffer$2.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")};DecoderBuffer$2.prototype.skip=function(tt,rt){if(!(this.offset+tt<=this.length))return this.error(rt||"DecoderBuffer overrun");const nt=new DecoderBuffer$2(this.base);return nt._reporterState=this._reporterState,nt.offset=this.offset,nt.length=this.offset+tt,this.offset+=tt,nt};DecoderBuffer$2.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)};function EncoderBuffer$1(et,tt){if(Array.isArray(et))this.length=0,this.value=et.map(function(rt){return EncoderBuffer$1.isEncoderBuffer(rt)||(rt=new EncoderBuffer$1(rt,tt)),this.length+=rt.length,rt},this);else if(typeof et=="number"){if(!(0<=et&&et<=255))return tt.error("non-byte EncoderBuffer value");this.value=et,this.length=1}else if(typeof et=="string")this.value=et,this.length=Buffer$c.byteLength(et);else if(Buffer$c.isBuffer(et))this.value=et,this.length=et.length;else return tt.error("Unsupported type: "+typeof et)}buffer.EncoderBuffer=EncoderBuffer$1;EncoderBuffer$1.isEncoderBuffer=function(tt){return tt instanceof EncoderBuffer$1?!0:typeof tt=="object"&&tt.constructor.name==="EncoderBuffer"&&typeof tt.length=="number"&&typeof tt.join=="function"};EncoderBuffer$1.prototype.join=function(tt,rt){return tt||(tt=Buffer$c.alloc(this.length)),rt||(rt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(nt){nt.join(tt,rt),rt+=nt.length}):(typeof this.value=="number"?tt[rt]=this.value:typeof this.value=="string"?tt.write(this.value,rt):Buffer$c.isBuffer(this.value)&&this.value.copy(tt,rt),rt+=this.length)),tt};const Reporter=reporter.Reporter,EncoderBuffer=buffer.EncoderBuffer,DecoderBuffer$1=buffer.DecoderBuffer,assert$4=minimalisticAssert,tags$1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],methods=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tags$1),overrided=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node$2(et,tt,rt){const nt={};this._baseState=nt,nt.name=rt,nt.enc=et,nt.parent=tt||null,nt.children=null,nt.tag=null,nt.args=null,nt.reverseArgs=null,nt.choice=null,nt.optional=!1,nt.any=!1,nt.obj=!1,nt.use=null,nt.useDecoder=null,nt.key=null,nt.default=null,nt.explicit=null,nt.implicit=null,nt.contains=null,nt.parent||(nt.children=[],this._wrap())}var node$1=Node$2;const stateProps=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node$2.prototype.clone=function(){const tt=this._baseState,rt={};stateProps.forEach(function(it){rt[it]=tt[it]});const nt=new this.constructor(rt.parent);return nt._baseState=rt,nt};Node$2.prototype._wrap=function(){const tt=this._baseState;methods.forEach(function(rt){this[rt]=function(){const it=new this.constructor(this);return tt.children.push(it),it[rt].apply(it,arguments)}},this)};Node$2.prototype._init=function(tt){const rt=this._baseState;assert$4(rt.parent===null),tt.call(this),rt.children=rt.children.filter(function(nt){return nt._baseState.parent===this},this),assert$4.equal(rt.children.length,1,"Root node can have only one child")};Node$2.prototype._useArgs=function(tt){const rt=this._baseState,nt=tt.filter(function(it){return it instanceof this.constructor},this);tt=tt.filter(function(it){return!(it instanceof this.constructor)},this),nt.length!==0&&(assert$4(rt.children===null),rt.children=nt,nt.forEach(function(it){it._baseState.parent=this},this)),tt.length!==0&&(assert$4(rt.args===null),rt.args=tt,rt.reverseArgs=tt.map(function(it){if(typeof it!="object"||it.constructor!==Object)return it;const st={};return Object.keys(it).forEach(function(at){at==(at|0)&&(at|=0);const ot=it[at];st[ot]=at}),st}))};overrided.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState;throw new Error(et+" not implemented for encoding: "+rt.enc)}});tags$1.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState,nt=Array.prototype.slice.call(arguments);return assert$4(rt.tag===null),rt.tag=et,this._useArgs(nt),this}});Node$2.prototype.use=function(tt){assert$4(tt);const rt=this._baseState;return assert$4(rt.use===null),rt.use=tt,this};Node$2.prototype.optional=function(){const tt=this._baseState;return tt.optional=!0,this};Node$2.prototype.def=function(tt){const rt=this._baseState;return assert$4(rt.default===null),rt.default=tt,rt.optional=!0,this};Node$2.prototype.explicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.explicit=tt,this};Node$2.prototype.implicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.implicit=tt,this};Node$2.prototype.obj=function(){const tt=this._baseState,rt=Array.prototype.slice.call(arguments);return tt.obj=!0,rt.length!==0&&this._useArgs(rt),this};Node$2.prototype.key=function(tt){const rt=this._baseState;return assert$4(rt.key===null),rt.key=tt,this};Node$2.prototype.any=function(){const tt=this._baseState;return tt.any=!0,this};Node$2.prototype.choice=function(tt){const rt=this._baseState;return assert$4(rt.choice===null),rt.choice=tt,this._useArgs(Object.keys(tt).map(function(nt){return tt[nt]})),this};Node$2.prototype.contains=function(tt){const rt=this._baseState;return assert$4(rt.use===null),rt.contains=tt,this};Node$2.prototype._decode=function(tt,rt){const nt=this._baseState;if(nt.parent===null)return tt.wrapResult(nt.children[0]._decode(tt,rt));let it=nt.default,st=!0,at=null;if(nt.key!==null&&(at=tt.enterKey(nt.key)),nt.optional){let lt=null;if(nt.explicit!==null?lt=nt.explicit:nt.implicit!==null?lt=nt.implicit:nt.tag!==null&&(lt=nt.tag),lt===null&&!nt.any){const ut=tt.save();try{nt.choice===null?this._decodeGeneric(nt.tag,tt,rt):this._decodeChoice(tt,rt),st=!0}catch{st=!1}tt.restore(ut)}else if(st=this._peekTag(tt,lt,nt.any),tt.isError(st))return st}let ot;if(nt.obj&&st&&(ot=tt.enterObject()),st){if(nt.explicit!==null){const ut=this._decodeTag(tt,nt.explicit);if(tt.isError(ut))return ut;tt=ut}const lt=tt.offset;if(nt.use===null&&nt.choice===null){let ut;nt.any&&(ut=tt.save());const dt=this._decodeTag(tt,nt.implicit!==null?nt.implicit:nt.tag,nt.any);if(tt.isError(dt))return dt;nt.any?it=tt.raw(ut):tt=dt}if(rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),lt,tt.length,"tagged"),rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),tt.offset,tt.length,"content"),nt.any||(nt.choice===null?it=this._decodeGeneric(nt.tag,tt,rt):it=this._decodeChoice(tt,rt)),tt.isError(it))return it;if(!nt.any&&nt.choice===null&&nt.children!==null&&nt.children.forEach(function(dt){dt._decode(tt,rt)}),nt.contains&&(nt.tag==="octstr"||nt.tag==="bitstr")){const ut=new DecoderBuffer$1(it);it=this._getUse(nt.contains,tt._reporterState.obj)._decode(ut,rt)}}return nt.obj&&st&&(it=tt.leaveObject(ot)),nt.key!==null&&(it!==null||st===!0)?tt.leaveKey(at,nt.key,it):at!==null&&tt.exitKey(at),it};Node$2.prototype._decodeGeneric=function(tt,rt,nt){const it=this._baseState;return tt==="seq"||tt==="set"?null:tt==="seqof"||tt==="setof"?this._decodeList(rt,tt,it.args[0],nt):/str$/.test(tt)?this._decodeStr(rt,tt,nt):tt==="objid"&&it.args?this._decodeObjid(rt,it.args[0],it.args[1],nt):tt==="objid"?this._decodeObjid(rt,null,null,nt):tt==="gentime"||tt==="utctime"?this._decodeTime(rt,tt,nt):tt==="null_"?this._decodeNull(rt,nt):tt==="bool"?this._decodeBool(rt,nt):tt==="objDesc"?this._decodeStr(rt,tt,nt):tt==="int"||tt==="enum"?this._decodeInt(rt,it.args&&it.args[0],nt):it.use!==null?this._getUse(it.use,rt._reporterState.obj)._decode(rt,nt):rt.error("unknown tag: "+tt)};Node$2.prototype._getUse=function(tt,rt){const nt=this._baseState;return nt.useDecoder=this._use(tt,rt),assert$4(nt.useDecoder._baseState.parent===null),nt.useDecoder=nt.useDecoder._baseState.children[0],nt.implicit!==nt.useDecoder._baseState.implicit&&(nt.useDecoder=nt.useDecoder.clone(),nt.useDecoder._baseState.implicit=nt.implicit),nt.useDecoder};Node$2.prototype._decodeChoice=function(tt,rt){const nt=this._baseState;let it=null,st=!1;return Object.keys(nt.choice).some(function(at){const ot=tt.save(),lt=nt.choice[at];try{const ut=lt._decode(tt,rt);if(tt.isError(ut))return!1;it={type:at,value:ut},st=!0}catch{return tt.restore(ot),!1}return!0},this),st?it:tt.error("Choice not matched")};Node$2.prototype._createEncoderBuffer=function(tt){return new EncoderBuffer(tt,this.reporter)};Node$2.prototype._encode=function(tt,rt,nt){const it=this._baseState;if(it.default!==null&&it.default===tt)return;const st=this._encodeValue(tt,rt,nt);if(st!==void 0&&!this._skipDefault(st,rt,nt))return st};Node$2.prototype._encodeValue=function(tt,rt,nt){const it=this._baseState;if(it.parent===null)return it.children[0]._encode(tt,rt||new Reporter);let st=null;if(this.reporter=rt,it.optional&&tt===void 0)if(it.default!==null)tt=it.default;else return;let at=null,ot=!1;if(it.any)st=this._createEncoderBuffer(tt);else if(it.choice)st=this._encodeChoice(tt,rt);else if(it.contains)at=this._getUse(it.contains,nt)._encode(tt,rt),ot=!0;else if(it.children)at=it.children.map(function(lt){if(lt._baseState.tag==="null_")return lt._encode(null,rt,tt);if(lt._baseState.key===null)return rt.error("Child should have a key");const ut=rt.enterKey(lt._baseState.key);if(typeof tt!="object")return rt.error("Child expected, but input is not object");const dt=lt._encode(tt[lt._baseState.key],rt,tt);return rt.leaveKey(ut),dt},this).filter(function(lt){return lt}),at=this._createEncoderBuffer(at);else if(it.tag==="seqof"||it.tag==="setof"){if(!(it.args&&it.args.length===1))return rt.error("Too many args for : "+it.tag);if(!Array.isArray(tt))return rt.error("seqof/setof, but data is not Array");const lt=this.clone();lt._baseState.implicit=null,at=this._createEncoderBuffer(tt.map(function(ut){const dt=this._baseState;return this._getUse(dt.args[0],tt)._encode(ut,rt)},lt))}else it.use!==null?st=this._getUse(it.use,nt)._encode(tt,rt):(at=this._encodePrimitive(it.tag,tt),ot=!0);if(!it.any&&it.choice===null){const lt=it.implicit!==null?it.implicit:it.tag,ut=it.implicit===null?"universal":"context";lt===null?it.use===null&&rt.error("Tag could be omitted only for .use()"):it.use===null&&(st=this._encodeComposite(lt,ot,ut,at))}return it.explicit!==null&&(st=this._encodeComposite(it.explicit,!1,"context",st)),st};Node$2.prototype._encodeChoice=function(tt,rt){const nt=this._baseState,it=nt.choice[tt.type];return it||assert$4(!1,tt.type+" not found in "+JSON.stringify(Object.keys(nt.choice))),it._encode(tt.value,rt)};Node$2.prototype._encodePrimitive=function(tt,rt){const nt=this._baseState;if(/str$/.test(tt))return this._encodeStr(rt,tt);if(tt==="objid"&&nt.args)return this._encodeObjid(rt,nt.reverseArgs[0],nt.args[1]);if(tt==="objid")return this._encodeObjid(rt,null,null);if(tt==="gentime"||tt==="utctime")return this._encodeTime(rt,tt);if(tt==="null_")return this._encodeNull();if(tt==="int"||tt==="enum")return this._encodeInt(rt,nt.args&&nt.reverseArgs[0]);if(tt==="bool")return this._encodeBool(rt);if(tt==="objDesc")return this._encodeStr(rt,tt);throw new Error("Unsupported tag: "+tt)};Node$2.prototype._isNumstr=function(tt){return/^[0-9 ]*$/.test(tt)};Node$2.prototype._isPrintstr=function(tt){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(tt)};var der$2={};(function(et){function tt(rt){const nt={};return Object.keys(rt).forEach(function(it){(it|0)==it&&(it=it|0);const st=rt[it];nt[st]=it}),nt}et.tagClass={0:"universal",1:"application",2:"context",3:"private"},et.tagClassByName=tt(et.tagClass),et.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},et.tagByName=tt(et.tag)})(der$2);const inherits$3=inherits_browserExports,Buffer$b=safer_1.Buffer,Node$1=node$1,der$1=der$2;function DEREncoder$1(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode$1,this.tree._init(et.body)}var der_1$1=DEREncoder$1;DEREncoder$1.prototype.encode=function(tt,rt){return this.tree._encode(tt,rt).join()};function DERNode$1(et){Node$1.call(this,"der",et)}inherits$3(DERNode$1,Node$1);DERNode$1.prototype._encodeComposite=function(tt,rt,nt,it){const st=encodeTag(tt,rt,nt,this.reporter);if(it.length<128){const lt=Buffer$b.alloc(2);return lt[0]=st,lt[1]=it.length,this._createEncoderBuffer([lt,it])}let at=1;for(let lt=it.length;lt>=256;lt>>=8)at++;const ot=Buffer$b.alloc(1+1+at);ot[0]=st,ot[1]=128|at;for(let lt=1+at,ut=it.length;ut>0;lt--,ut>>=8)ot[lt]=ut&255;return this._createEncoderBuffer([ot,it])};DERNode$1.prototype._encodeStr=function(tt,rt){if(rt==="bitstr")return this._createEncoderBuffer([tt.unused|0,tt.data]);if(rt==="bmpstr"){const nt=Buffer$b.alloc(tt.length*2);for(let it=0;it=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,tt[0]*40+tt[1])}let it=0;for(let ot=0;ot=128;lt>>=7)it++}const st=Buffer$b.alloc(it);let at=st.length-1;for(let ot=tt.length-1;ot>=0;ot--){let lt=tt[ot];for(st[at--]=lt&127;(lt>>=7)>0;)st[at--]=128|lt&127}return this._createEncoderBuffer(st)};function two(et){return et<10?"0"+et:et}DERNode$1.prototype._encodeTime=function(tt,rt){let nt;const it=new Date(tt);return rt==="gentime"?nt=[two(it.getUTCFullYear()),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):rt==="utctime"?nt=[two(it.getUTCFullYear()%100),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+rt+" time is not supported yet"),this._encodeStr(nt,"octstr")};DERNode$1.prototype._encodeNull=function(){return this._createEncoderBuffer("")};DERNode$1.prototype._encodeInt=function(tt,rt){if(typeof tt=="string"){if(!rt)return this.reporter.error("String int or enum given, but no values map");if(!rt.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=rt[tt]}if(typeof tt!="number"&&!Buffer$b.isBuffer(tt)){const st=tt.toArray();!tt.sign&&st[0]&128&&st.unshift(0),tt=Buffer$b.from(st)}if(Buffer$b.isBuffer(tt)){let st=tt.length;tt.length===0&&st++;const at=Buffer$b.alloc(st);return tt.copy(at),tt.length===0&&(at[0]=0),this._createEncoderBuffer(at)}if(tt<128)return this._createEncoderBuffer(tt);if(tt<256)return this._createEncoderBuffer([0,tt]);let nt=1;for(let st=tt;st>=256;st>>=8)nt++;const it=new Array(nt);for(let st=it.length-1;st>=0;st--)it[st]=tt&255,tt>>=8;return it[0]&128&&it.unshift(0),this._createEncoderBuffer(Buffer$b.from(it))};DERNode$1.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)};DERNode$1.prototype._use=function(tt,rt){return typeof tt=="function"&&(tt=tt(rt)),tt._getEncoder("der").tree};DERNode$1.prototype._skipDefault=function(tt,rt,nt){const it=this._baseState;let st;if(it.default===null)return!1;const at=tt.join();if(it.defaultBuffer===void 0&&(it.defaultBuffer=this._encodeValue(it.default,rt,nt).join()),at.length!==it.defaultBuffer.length)return!1;for(st=0;st=31?nt.error("Multi-octet tag encoding unsupported"):(tt||(it|=32),it|=der$1.tagClassByName[rt||"universal"]<<6,it)}const inherits$2=inherits_browserExports,DEREncoder=der_1$1;function PEMEncoder(et){DEREncoder.call(this,et),this.enc="pem"}inherits$2(PEMEncoder,DEREncoder);var pem$1=PEMEncoder;PEMEncoder.prototype.encode=function(tt,rt){const it=DEREncoder.prototype.encode.call(this,tt).toString("base64"),st=["-----BEGIN "+rt.label+"-----"];for(let at=0;at>6],it=(rt&32)===0;if((rt&31)===31){let at=rt;for(rt=0;(at&128)===128;){if(at=et.readUInt8(tt),et.isError(at))return at;rt<<=7,rt|=at&127}}else rt&=31;const st=der.tag[rt];return{cls:nt,primitive:it,tag:rt,tagStr:st}}function derDecodeLen(et,tt,rt){let nt=et.readUInt8(rt);if(et.isError(nt))return nt;if(!tt&&nt===128)return null;if(!(nt&128))return nt;const it=nt&127;if(it>4)return et.error("length octect is too long");nt=0;for(let st=0;st0&&St.ishrn(Bt),St}function pt(mt,wt){mt=kt(mt,wt),mt=mt.mod(wt);var St=et.from(mt.toArray());if(St.length=0)throw new Error("invalid sig")}return verify_1=st,verify_1}var browser$4,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$4;hasRequiredBrowser$1=1;var et=safeBufferExports.Buffer,tt=browser$a,rt=readableBrowserExports,nt=inherits_browserExports,it=requireSign(),st=requireVerify(),at=require$$6;Object.keys(at).forEach(function(bt){at[bt].id=et.from(at[bt].id,"hex"),at[bt.toLowerCase()]=at[bt]});function ot(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hashType=gt.hash,this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(ot,rt.Writable),ot.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},ot.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},ot.prototype.sign=function(gt,kt){this.end();var pt=this._hash.digest(),yt=it(pt,gt,this._hashType,this._signType,this._tag);return kt?yt.toString(kt):yt};function lt(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(lt,rt.Writable),lt.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},lt.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},lt.prototype.verify=function(gt,kt,pt){var yt=typeof kt=="string"?et.from(kt,pt):kt;this.end();var $t=this._hash.digest();return st(yt,$t,gt,this._signType,this._tag)};function ut(bt){return new ot(bt)}function dt(bt){return new lt(bt)}return browser$4={Sign:ut,Verify:dt,createSign:ut,createVerify:dt},browser$4}var browser$3,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$3;hasRequiredBrowser=1;var et=requireElliptic(),tt=bnExports$2;browser$3=function(at){return new nt(at)};var rt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};rt.p224=rt.secp224r1,rt.p256=rt.secp256r1=rt.prime256v1,rt.p192=rt.secp192r1=rt.prime192v1,rt.p384=rt.secp384r1,rt.p521=rt.secp521r1;function nt(st){this.curveType=rt[st],this.curveType||(this.curveType={name:st}),this.curve=new et.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(st,at){return this.keys=this.curve.genKeyPair(),this.getPublicKey(st,at)},nt.prototype.computeSecret=function(st,at,ot){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var lt=this.curve.keyFromPublic(st).getPublic(),ut=lt.mul(this.keys.getPrivate()).getX();return it(ut,ot,this.curveType.byteLength)},nt.prototype.getPublicKey=function(st,at){var ot=this.keys.getPublic(at==="compressed",!0);return at==="hybrid"&&(ot[ot.length-1]%2?ot[0]=7:ot[0]=6),it(ot,st)},nt.prototype.getPrivateKey=function(st){return it(this.keys.getPrivate(),st)},nt.prototype.setPublicKey=function(st,at){return at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at)),this.keys._importPublic(st),this},nt.prototype.setPrivateKey=function(st,at){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var ot=new tt(st);return ot=ot.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ot),this};function it(st,at,ot){Array.isArray(st)||(st=st.toArray());var lt=new Buffer(st);if(ot&<.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return nt?crt$1(at,st):withPublic$1(at,st)};function oaep$1(et,tt){var rt=et.modulus.byteLength(),nt=tt.length,it=createHash$2("sha1").update(Buffer$5.alloc(0)).digest(),st=it.length,at=2*st;if(nt>rt-at-2)throw new Error("message too long");var ot=Buffer$5.alloc(rt-nt-at-2),lt=rt-st-1,ut=randomBytes(st),dt=xor$1(Buffer$5.concat([it,ot,Buffer$5.alloc(1,1),tt],lt),mgf$1(ut,lt)),bt=xor$1(ut,mgf$1(dt,st));return new BN$3(Buffer$5.concat([Buffer$5.alloc(1),bt,dt],rt))}function pkcs1$1(et,tt,rt){var nt=tt.length,it=et.modulus.byteLength();if(nt>it-11)throw new Error("message too long");var st;return rt?st=Buffer$5.alloc(it-nt-3,255):st=nonZero(it-nt-3),new BN$3(Buffer$5.concat([Buffer$5.from([0,rt?1:2]),st,Buffer$5.alloc(1),tt],it))}function nonZero(et){for(var tt=Buffer$5.allocUnsafe(et),rt=0,nt=randomBytes(et*2),it=0,st;rtat||new BN$2(rt).cmp(st.modulus)>=0)throw new Error("decryption error");var ot;nt?ot=withPublic(new BN$2(rt),st):ot=crt(rt,st);var lt=Buffer$4.alloc(at-ot.length);if(ot=Buffer$4.concat([lt,ot],at),it===4)return oaep(st,ot);if(it===1)return pkcs1(st,ot,nt);if(it===3)return ot;throw new Error("unknown padding")};function oaep(et,tt){var rt=et.modulus.byteLength(),nt=createHash$1("sha1").update(Buffer$4.alloc(0)).digest(),it=nt.length;if(tt[0]!==0)throw new Error("decryption error");var st=tt.slice(1,it+1),at=tt.slice(it+1),ot=xor(st,mgf(at,it)),lt=xor(at,mgf(ot,rt-it-1));if(compare$1(nt,lt.slice(0,it)))throw new Error("decryption error");for(var ut=it;lt[ut]===0;)ut++;if(lt[ut++]!==1)throw new Error("decryption error");return lt.slice(ut)}function pkcs1(et,tt,rt){for(var nt=tt.slice(0,2),it=2,st=0;tt[it++]!==0;)if(it>=tt.length){st++;break}var at=tt.slice(2,it-1);if((nt.toString("hex")!=="0002"&&!rt||nt.toString("hex")!=="0001"&&rt)&&st++,at.length<8&&st++,st)throw new Error("decryption error");return tt.slice(it)}function compare$1(et,tt){et=Buffer$4.from(et),tt=Buffer$4.from(tt);var rt=0,nt=et.length;et.length!==tt.length&&(rt++,nt=Math.min(et.length,tt.length));for(var it=-1;++itkMaxUint32||et<0)throw new TypeError("offset must be a uint32");if(et>kBufferMaxLength||et>tt)throw new RangeError("offset out of range")}function assertSize(et,tt,rt){if(typeof et!="number"||et!==et)throw new TypeError("size must be a number");if(et>kMaxUint32||et<0)throw new TypeError("size must be a uint32");if(et+tt>rt||et>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$3&&crypto$3.getRandomValues||!process.browser?(browser$1.randomFill=randomFill,browser$1.randomFillSync=randomFillSync):(browser$1.randomFill=oldBrowser,browser$1.randomFillSync=oldBrowser);function randomFill(et,tt,rt,nt){if(!Buffer$3.isBuffer(et)&&!(et instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof tt=="function")nt=tt,tt=0,rt=et.length;else if(typeof rt=="function")nt=rt,rt=et.length-tt;else if(typeof nt!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(tt,et.length),assertSize(rt,tt,et.length),actualFill(et,tt,rt,nt)}function actualFill(et,tt,rt,nt){if(process.browser){var it=et.buffer,st=new Uint8Array(it,tt,rt);if(crypto$3.getRandomValues(st),nt){process.nextTick(function(){nt(null,et)});return}return et}if(nt){randombytes(rt,function(ot,lt){if(ot)return nt(ot);lt.copy(et,tt),nt(null,et)});return}var at=randombytes(rt);return at.copy(et,tt),et}function randomFillSync(et,tt,rt){if(typeof tt>"u"&&(tt=0),!Buffer$3.isBuffer(et)&&!(et instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(tt,et.length),rt===void 0&&(rt=et.length-tt),assertSize(rt,tt,et.length),actualFill(et,tt,rt)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$a,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$9;var et=algos,tt=Object.keys(et),rt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(tt);cryptoBrowserify.getHashes=function(){return rt};var nt=browser$8;cryptoBrowserify.pbkdf2=nt.pbkdf2,cryptoBrowserify.pbkdf2Sync=nt.pbkdf2Sync;var it=browser$7;cryptoBrowserify.Cipher=it.Cipher,cryptoBrowserify.createCipher=it.createCipher,cryptoBrowserify.Cipheriv=it.Cipheriv,cryptoBrowserify.createCipheriv=it.createCipheriv,cryptoBrowserify.Decipher=it.Decipher,cryptoBrowserify.createDecipher=it.createDecipher,cryptoBrowserify.Decipheriv=it.Decipheriv,cryptoBrowserify.createDecipheriv=it.createDecipheriv,cryptoBrowserify.getCiphers=it.getCiphers,cryptoBrowserify.listCiphers=it.listCiphers;var st=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=st.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=st.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=st.getDiffieHellman,cryptoBrowserify.createDiffieHellman=st.createDiffieHellman,cryptoBrowserify.DiffieHellman=st.DiffieHellman;var at=requireBrowser$1();cryptoBrowserify.createSign=at.createSign,cryptoBrowserify.Sign=at.Sign,cryptoBrowserify.createVerify=at.createVerify,cryptoBrowserify.Verify=at.Verify,cryptoBrowserify.createECDH=requireBrowser();var ot=browser$2;cryptoBrowserify.publicEncrypt=ot.publicEncrypt,cryptoBrowserify.privateEncrypt=ot.privateEncrypt,cryptoBrowserify.publicDecrypt=ot.publicDecrypt,cryptoBrowserify.privateDecrypt=ot.privateDecrypt;var lt=browser$1;return cryptoBrowserify.randomFill=lt.randomFill,cryptoBrowserify.randomFillSync=lt.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var rngBrowser={exports:{}},getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var tt=0,rt;tt<16;tt++)tt&3||(rt=Math.random()*4294967296),rnds[tt]=rt>>>((tt&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex=[];for(var i$2=0;i$2<256;++i$2)byteToHex[i$2]=(i$2+256).toString(16).substr(1);function bytesToUuid$1(et,tt){var rt=tt||0,nt=byteToHex;return[nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]]].join("")}var bytesToUuid_1=bytesToUuid$1,rng=rngBrowserExports,bytesToUuid=bytesToUuid_1;function v4(et,tt,rt){var nt=tt&&rt||0;typeof et=="string"&&(tt=et==="binary"?new Array(16):null,et=null),et=et||{};var it=et.random||(et.rng||rng)();if(it[6]=it[6]&15|64,it[8]=it[8]&63|128,tt)for(var st=0;st<16;++st)tt[nt+st]=it[st];return tt||bytesToUuid(it)}var v4_1=v4,macaroon$1={},sjcl={exports:{}};(function(et){var tt={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(pt){this.toString=function(){return"CORRUPT: "+this.message},this.message=pt},invalid:function(pt){this.toString=function(){return"INVALID: "+this.message},this.message=pt},bug:function(pt){this.toString=function(){return"BUG: "+this.message},this.message=pt},notReady:function(pt){this.toString=function(){return"NOT READY: "+this.message},this.message=pt}}};tt.cipher.aes=function(pt){this.s[0][0][0]||this.O();var yt,$t,mt,wt,St=this.s[0][4],Bt=this.s[1];yt=pt.length;var Ft=1;if(yt!==4&&yt!==6&&yt!==8)throw new tt.exception.invalid("invalid aes key size");for(this.b=[mt=pt.slice(0),wt=[]],pt=yt;pt<4*yt+28;pt++)$t=mt[pt-1],(pt%yt===0||yt===8&&pt%yt===4)&&($t=St[$t>>>24]<<24^St[$t>>16&255]<<16^St[$t>>8&255]<<8^St[$t&255],pt%yt===0&&($t=$t<<8^$t>>>24^Ft<<24,Ft=Ft<<1^283*(Ft>>7))),mt[pt]=mt[pt-yt]^$t;for(yt=0;pt;yt++,pt--)$t=mt[yt&3?pt:pt-4],wt[yt]=4>=pt||4>yt?$t:Bt[0][St[$t>>>24]]^Bt[1][St[$t>>16&255]]^Bt[2][St[$t>>8&255]]^Bt[3][St[$t&255]]},tt.cipher.aes.prototype={encrypt:function(pt){return rt(this,pt,0)},decrypt:function(pt){return rt(this,pt,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var pt=this.s[0],yt=this.s[1],$t=pt[4],mt=yt[4],wt,St,Bt,Ft=[],Dt=[],zt,Ht,Wt,lr;for(wt=0;256>wt;wt++)Dt[(Ft[wt]=wt<<1^283*(wt>>7))^wt]=wt;for(St=Bt=0;!$t[St];St^=zt||1,Bt=Dt[Bt]||1)for(Wt=Bt^Bt<<1^Bt<<2^Bt<<3^Bt<<4,Wt=Wt>>8^Wt&255^99,$t[St]=Wt,mt[Wt]=St,Ht=Ft[wt=Ft[zt=Ft[St]]],lr=16843009*Ht^65537*wt^257*zt^16843008*St,Ht=257*Ft[Wt]^16843008*Wt,wt=0;4>wt;wt++)pt[wt][St]=Ht=Ht<<24^Ht>>>8,yt[wt][Wt]=lr=lr<<24^lr>>>8;for(wt=0;5>wt;wt++)pt[wt]=pt[wt].slice(0),yt[wt]=yt[wt].slice(0)}};function rt(pt,yt,$t){if(yt.length!==4)throw new tt.exception.invalid("invalid aes block size");var mt=pt.b[$t],wt=yt[0]^mt[0],St=yt[$t?3:1]^mt[1],Bt=yt[2]^mt[2];yt=yt[$t?1:3]^mt[3];var Ft,Dt,zt,Ht=mt.length/4-2,Wt,lr=4,qt=[0,0,0,0];Ft=pt.s[$t],pt=Ft[0];var Ot=Ft[1],Mt=Ft[2],ht=Ft[3],Et=Ft[4];for(Wt=0;Wt>>24]^Ot[St>>16&255]^Mt[Bt>>8&255]^ht[yt&255]^mt[lr],Dt=pt[St>>>24]^Ot[Bt>>16&255]^Mt[yt>>8&255]^ht[wt&255]^mt[lr+1],zt=pt[Bt>>>24]^Ot[yt>>16&255]^Mt[wt>>8&255]^ht[St&255]^mt[lr+2],yt=pt[yt>>>24]^Ot[wt>>16&255]^Mt[St>>8&255]^ht[Bt&255]^mt[lr+3],lr+=4,wt=Ft,St=Dt,Bt=zt;for(Wt=0;4>Wt;Wt++)qt[$t?3&-Wt:Wt]=Et[wt>>>24]<<24^Et[St>>16&255]<<16^Et[Bt>>8&255]<<8^Et[yt&255]^mt[lr++],Ft=wt,wt=St,St=Bt,Bt=yt,yt=Ft;return qt}tt.bitArray={bitSlice:function(pt,yt,$t){return pt=tt.bitArray.$(pt.slice(yt/32),32-(yt&31)).slice(1),$t===void 0?pt:tt.bitArray.clamp(pt,$t-yt)},extract:function(pt,yt,$t){var mt=Math.floor(-yt-$t&31);return((yt+$t-1^yt)&-32?pt[yt/32|0]<<32-mt^pt[yt/32+1|0]>>>mt:pt[yt/32|0]>>>mt)&(1<<$t)-1},concat:function(pt,yt){if(pt.length===0||yt.length===0)return pt.concat(yt);var $t=pt[pt.length-1],mt=tt.bitArray.getPartial($t);return mt===32?pt.concat(yt):tt.bitArray.$(yt,mt,$t|0,pt.slice(0,pt.length-1))},bitLength:function(pt){var yt=pt.length;return yt===0?0:32*(yt-1)+tt.bitArray.getPartial(pt[yt-1])},clamp:function(pt,yt){if(32*pt.length>yt-1,1)),pt},partial:function(pt,yt,$t){return pt===32?yt:($t?yt|0:yt<<32-pt)+1099511627776*pt},getPartial:function(pt){return Math.round(pt/1099511627776)||32},equal:function(pt,yt){if(tt.bitArray.bitLength(pt)!==tt.bitArray.bitLength(yt))return!1;var $t=0,mt;for(mt=0;mt>>yt),$t=pt[wt]<<32-yt;return wt=pt.length?pt[pt.length-1]:0,pt=tt.bitArray.getPartial(wt),mt.push(tt.bitArray.partial(yt+pt&31,32>>24|$t>>>8&65280|($t&65280)<<8|$t<<24;return pt}},tt.codec.utf8String={fromBits:function(pt){var yt="",$t=tt.bitArray.bitLength(pt),mt,wt;for(mt=0;mt<$t/8;mt++)!(mt&3)&&(wt=pt[mt/4]),yt+=String.fromCharCode(wt>>>8>>>8>>>8),wt<<=8;return decodeURIComponent(escape(yt))},toBits:function(pt){pt=unescape(encodeURIComponent(pt));var yt=[],$t,mt=0;for($t=0;$t>>Bt)>>>wt),BtHt){if(!yt)try{return tt.codec.base32hex.toBits(pt)}catch{}throw new tt.exception.invalid("this isn't "+Wt+"!")}Ft>wt?(Ft-=wt,St.push(zt^Ht>>>Ft),zt=Ht<<$t-Ft):(Ft+=mt,zt^=Ht<<$t-Ft)}return Ft&56&&St.push(tt.bitArray.partial(Ft&56,zt,1)),St}},tt.codec.base32hex={fromBits:function(pt,yt){return tt.codec.base32.fromBits(pt,yt,1)},toBits:function(pt){return tt.codec.base32.toBits(pt,1)}},tt.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(pt,yt,$t){var mt="",wt=0,St=tt.codec.base64.B,Bt=0,Ft=tt.bitArray.bitLength(pt);for($t&&(St=St.substr(0,62)+"-_"),$t=0;6*mt.length>>wt)>>>26),6>wt?(Bt=pt[$t]<<6-wt,wt+=26,$t++):(Bt<<=6,wt-=6);for(;mt.length&3&&!yt;)mt+="=";return mt},toBits:function(pt,yt){pt=pt.replace(/\s|=/g,"");var $t=[],mt,wt=0,St=tt.codec.base64.B,Bt=0,Ft;for(yt&&(St=St.substr(0,62)+"-_"),mt=0;mtFt)throw new tt.exception.invalid("this isn't base64!");26>>wt),Bt=Ft<<32-wt):(wt+=6,Bt^=Ft<<32-wt)}return wt&56&&$t.push(tt.bitArray.partial(wt&56,Bt,1)),$t}},tt.codec.base64url={fromBits:function(pt){return tt.codec.base64.fromBits(pt,1,1)},toBits:function(pt){return tt.codec.base64.toBits(pt,1)}},tt.hash.sha256=function(pt){this.b[0]||this.O(),pt?(this.F=pt.F.slice(0),this.A=pt.A.slice(0),this.l=pt.l):this.reset()},tt.hash.sha256.hash=function(pt){return new tt.hash.sha256().update(pt).finalize()},tt.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(pt){typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt));var yt,$t=this.A=tt.bitArray.concat(this.A,pt);if(yt=this.l,pt=this.l=yt+tt.bitArray.bitLength(pt),9007199254740991yt;$t++){for(wt=!0,mt=2;mt*mt<=$t;mt++)if($t%mt===0){wt=!1;break}wt&&(8>yt&&(this.Y[yt]=pt(Math.pow($t,.5))),this.b[yt]=pt(Math.pow($t,1/3)),yt++)}}};function nt(pt,yt){var $t,mt,wt,St=pt.F,Bt=pt.b,Ft=St[0],Dt=St[1],zt=St[2],Ht=St[3],Wt=St[4],lr=St[5],qt=St[6],Ot=St[7];for($t=0;64>$t;$t++)16>$t?mt=yt[$t]:(mt=yt[$t+1&15],wt=yt[$t+14&15],mt=yt[$t&15]=(mt>>>7^mt>>>18^mt>>>3^mt<<25^mt<<14)+(wt>>>17^wt>>>19^wt>>>10^wt<<15^wt<<13)+yt[$t&15]+yt[$t+9&15]|0),mt=mt+Ot+(Wt>>>6^Wt>>>11^Wt>>>25^Wt<<26^Wt<<21^Wt<<7)+(qt^Wt&(lr^qt))+Bt[$t],Ot=qt,qt=lr,lr=Wt,Wt=Ht+mt|0,Ht=zt,zt=Dt,Dt=Ft,Ft=mt+(Dt&zt^Ht&(Dt^zt))+(Dt>>>2^Dt>>>13^Dt>>>22^Dt<<30^Dt<<19^Dt<<10)|0;St[0]=St[0]+Ft|0,St[1]=St[1]+Dt|0,St[2]=St[2]+zt|0,St[3]=St[3]+Ht|0,St[4]=St[4]+Wt|0,St[5]=St[5]+lr|0,St[6]=St[6]+qt|0,St[7]=St[7]+Ot|0}tt.mode.ccm={name:"ccm",G:[],listenProgress:function(pt){tt.mode.ccm.G.push(pt)},unListenProgress:function(pt){pt=tt.mode.ccm.G.indexOf(pt),-1Dt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(St=2;4>St&&zt>>>8*St;St++);return St<15-Dt&&(St=15-Dt),$t=Ft.clamp($t,8*(15-St)),yt=tt.mode.ccm.V(pt,yt,$t,mt,wt,St),Bt=tt.mode.ccm.C(pt,Bt,$t,yt,wt,St),Ft.concat(Bt.data,Bt.tag)},decrypt:function(pt,yt,$t,mt,wt){wt=wt||64,mt=mt||[];var St=tt.bitArray,Bt=St.bitLength($t)/8,zt=St.bitLength(yt),Ft=St.clamp(yt,zt-wt),Dt=St.bitSlice(yt,zt-wt),zt=(zt-wt)/8;if(7>Bt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(yt=2;4>yt&&zt>>>8*yt;yt++);if(yt<15-Bt&&(yt=15-Bt),$t=St.clamp($t,8*(15-yt)),Ft=tt.mode.ccm.C(pt,Ft,$t,Dt,wt,yt),pt=tt.mode.ccm.V(pt,Ft.data,$t,mt,wt,yt),!St.equal(Ft.tag,pt))throw new tt.exception.corrupt("ccm: tag doesn't match");return Ft.data},na:function(pt,yt,$t,mt,wt,St){var Bt=[],Ft=tt.bitArray,Dt=Ft.i;if(mt=[Ft.partial(8,(yt.length?64:0)|mt-2<<2|St-1)],mt=Ft.concat(mt,$t),mt[3]|=wt,mt=pt.encrypt(mt),yt.length)for($t=Ft.bitLength(yt)/8,65279>=$t?Bt=[Ft.partial(16,$t)]:4294967295>=$t&&(Bt=Ft.concat([Ft.partial(16,65534)],[$t])),Bt=Ft.concat(Bt,yt),yt=0;ytwt||16Ht&&(tt.mode.ccm.fa(Bt/Dt),Ht+=Wt),$t[3]++,wt=pt.encrypt($t),yt[Bt]^=wt[0],yt[Bt+1]^=wt[1],yt[Bt+2]^=wt[2],yt[Bt+3]^=wt[3];return{tag:mt,data:Ft.clamp(yt,zt)}}},tt.mode.ocb2={name:"ocb2",encrypt:function(pt,yt,$t,mt,wt,St){if(tt.bitArray.bitLength($t)!==128)throw new tt.exception.invalid("ocb iv must be 128 bits");var Bt,Ft=tt.mode.ocb2.S,Dt=tt.bitArray,zt=Dt.i,Ht=[0,0,0,0];$t=Ft(pt.encrypt($t));var Wt,lr=[];for(mt=mt||[],wt=wt||64,Bt=0;Bt+4wt.bitLength($t)&&(Ft=St(Ft,mt(Ft)),$t=wt.concat($t,[-2147483648,0,0,0])),Bt=St(Bt,$t),pt.encrypt(St(mt(St(Ft,mt(Ft))),Bt))},S:function(pt){return[pt[0]<<1^pt[1]>>>31,pt[1]<<1^pt[2]>>>31,pt[2]<<1^pt[3]>>>31,pt[3]<<1^135*(pt[0]>>>31)]}},tt.mode.gcm={name:"gcm",encrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0);return yt=tt.bitArray,mt=mt||[],pt=tt.mode.gcm.C(!0,pt,St,mt,$t,wt||128),yt.concat(pt.data,pt.tag)},decrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0),Bt=tt.bitArray,Ft=Bt.bitLength(St);if(wt=wt||128,mt=mt||[],wt<=Ft?(yt=Bt.bitSlice(St,Ft-wt),St=Bt.bitSlice(St,0,Ft-wt)):(yt=St,St=[]),pt=tt.mode.gcm.C(!1,pt,St,mt,$t,wt),!Bt.equal(pt.tag,yt))throw new tt.exception.corrupt("gcm: tag doesn't match");return pt.data},ka:function(pt,yt){var $t,mt,wt,St,Bt,Ft=tt.bitArray.i;for(wt=[0,0,0,0],St=yt.slice(0),$t=0;128>$t;$t++){for((mt=(pt[Math.floor($t/32)]&1<<31-$t%32)!==0)&&(wt=Ft(wt,St)),Bt=(St[3]&1)!==0,mt=3;0>>1|(St[mt-1]&1)<<31;St[0]>>>=1,Bt&&(St[0]^=-520093696)}return wt},j:function(pt,yt,$t){var mt,wt=$t.length;for(yt=yt.slice(0),mt=0;mtwt&&(pt=yt.hash(pt)),mt=0;mtmt||0>$t)throw new tt.exception.invalid("invalid params to pbkdf2");typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt)),typeof yt=="string"&&(yt=tt.codec.utf8String.toBits(yt)),wt=wt||tt.misc.hmac,pt=new wt(pt);var St,Bt,Ft,Dt,zt=[],Ht=tt.bitArray;for(Dt=1;32*zt.length<(mt||1);Dt++){for(wt=St=pt.encrypt(Ht.concat(yt,[Dt])),Bt=1;Bt<$t;Bt++)for(St=pt.encrypt(St),Ft=0;FtBt;Bt++)wt.push(4294967296*Math.random()|0);for(Bt=0;Bt=1<this.o&&(this.o=St),this.P++,this.b=tt.hash.sha256.hash(this.b.concat(wt)),this.L=new tt.cipher.aes(this.b),mt=0;4>mt&&(this.h[mt]=this.h[mt]+1|0,!this.h[mt]);mt++);}for(mt=0;mt>>1;this.c[Bt].update([mt,this.N++,2,yt,St,pt.length].concat(pt))}break;case"string":yt===void 0&&(yt=pt.length),this.c[Bt].update([mt,this.N++,3,yt,St,pt.length]),this.c[Bt].update(pt);break;default:Dt=1}if(Dt)throw new tt.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[Bt]+=yt,this.f+=yt,Ft===this.u&&(this.isReady()!==this.u&&it("seeded",Math.max(this.o,this.f)),it("progress",this.getProgress()))},isReady:function(pt){return pt=this.T[pt!==void 0?pt:this.M],this.o&&this.o>=pt?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=pt?this.J|this.u:this.u},getProgress:function(pt){return pt=this.T[pt||this.M],this.o>=pt||this.f>pt?1:this.f/pt},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:lt(this,this.ma),mouseCollector:lt(this,this.oa),keyboardCollector:lt(this,this.la),accelerometerCollector:lt(this,this.ea),touchCollector:lt(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new tt.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(pt,yt){this.K[pt][this.ga++]=yt},removeEventListener:function(pt,yt){var $t,mt,wt=this.K[pt],St=[];for(mt in wt)wt.hasOwnProperty(mt)&&wt[mt]===yt&&St.push(mt);for($t=0;$tyt&&(pt.h[yt]=pt.h[yt]+1|0,!pt.h[yt]);yt++);return pt.L.encrypt(pt.h)}function lt(pt,yt){return function(){yt.apply(pt,arguments)}}tt.random=new tt.prng(6);e:try{var ut,dt,bt,gt;if(gt=et.exports){var kt;try{kt=requireCryptoBrowserify()}catch{kt=null}gt=dt=kt}if(gt&&dt.randomBytes)ut=dt.randomBytes(128),ut=new Uint32Array(new Uint8Array(ut).buffer),tt.random.addEntropy(ut,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(bt=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(bt);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(bt);else break e;tt.random.addEntropy(bt,1024,"crypto['getRandomValues']")}}catch(pt){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(pt))}tt.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(pt,yt,$t,mt){$t=$t||{},mt=mt||{};var wt=tt.json,St=wt.g({iv:tt.random.randomWords(4,0)},wt.defaults),Bt;if(wt.g(St,$t),$t=St.adata,typeof St.salt=="string"&&(St.salt=tt.codec.base64.toBits(St.salt)),typeof St.iv=="string"&&(St.iv=tt.codec.base64.toBits(St.iv)),!tt.mode[St.mode]||!tt.cipher[St.cipher]||typeof pt=="string"&&100>=St.iter||St.ts!==64&&St.ts!==96&&St.ts!==128||St.ks!==128&&St.ks!==192&&St.ks!==256||2>St.iv.length||4=yt.iter||yt.ts!==64&&yt.ts!==96&&yt.ts!==128||yt.ks!==128&&yt.ks!==192&&yt.ks!==256||!yt.iv||2>yt.iv.length||4>24&255,Xt[ar+1]=cr>>16&255,Xt[ar+2]=cr>>8&255,Xt[ar+3]=cr&255,Xt[ar+4]=jt>>24&255,Xt[ar+5]=jt>>16&255,Xt[ar+6]=jt>>8&255,Xt[ar+7]=jt&255}function yt(Xt,ar,cr,jt,dr){var Rr,Cr=0;for(Rr=0;Rr>>8)-1}function $t(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,16)}function mt(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,32)}function wt(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;pn=pn+dr|0,wn=wn+Rr|0,un=un+Cr|0,yn=yn+Nr|0,mn=mn+Yr|0,cn=cn+tn|0,Ur=Ur+qr|0,jr=jr+Vn|0,en=en+hn|0,Gr=Gr+Tn|0,Zr=Zr+An|0,sn=sn+Rn|0,On=On+Pn|0,zn=zn+In|0,Gn=Gn+$n|0,Hn=Hn+Bn|0,Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=wn>>>0&255,Xt[5]=wn>>>8&255,Xt[6]=wn>>>16&255,Xt[7]=wn>>>24&255,Xt[8]=un>>>0&255,Xt[9]=un>>>8&255,Xt[10]=un>>>16&255,Xt[11]=un>>>24&255,Xt[12]=yn>>>0&255,Xt[13]=yn>>>8&255,Xt[14]=yn>>>16&255,Xt[15]=yn>>>24&255,Xt[16]=mn>>>0&255,Xt[17]=mn>>>8&255,Xt[18]=mn>>>16&255,Xt[19]=mn>>>24&255,Xt[20]=cn>>>0&255,Xt[21]=cn>>>8&255,Xt[22]=cn>>>16&255,Xt[23]=cn>>>24&255,Xt[24]=Ur>>>0&255,Xt[25]=Ur>>>8&255,Xt[26]=Ur>>>16&255,Xt[27]=Ur>>>24&255,Xt[28]=jr>>>0&255,Xt[29]=jr>>>8&255,Xt[30]=jr>>>16&255,Xt[31]=jr>>>24&255,Xt[32]=en>>>0&255,Xt[33]=en>>>8&255,Xt[34]=en>>>16&255,Xt[35]=en>>>24&255,Xt[36]=Gr>>>0&255,Xt[37]=Gr>>>8&255,Xt[38]=Gr>>>16&255,Xt[39]=Gr>>>24&255,Xt[40]=Zr>>>0&255,Xt[41]=Zr>>>8&255,Xt[42]=Zr>>>16&255,Xt[43]=Zr>>>24&255,Xt[44]=sn>>>0&255,Xt[45]=sn>>>8&255,Xt[46]=sn>>>16&255,Xt[47]=sn>>>24&255,Xt[48]=On>>>0&255,Xt[49]=On>>>8&255,Xt[50]=On>>>16&255,Xt[51]=On>>>24&255,Xt[52]=zn>>>0&255,Xt[53]=zn>>>8&255,Xt[54]=zn>>>16&255,Xt[55]=zn>>>24&255,Xt[56]=Gn>>>0&255,Xt[57]=Gn>>>8&255,Xt[58]=Gn>>>16&255,Xt[59]=Gn>>>24&255,Xt[60]=Hn>>>0&255,Xt[61]=Hn>>>8&255,Xt[62]=Hn>>>16&255,Xt[63]=Hn>>>24&255}function St(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=cn>>>0&255,Xt[5]=cn>>>8&255,Xt[6]=cn>>>16&255,Xt[7]=cn>>>24&255,Xt[8]=Zr>>>0&255,Xt[9]=Zr>>>8&255,Xt[10]=Zr>>>16&255,Xt[11]=Zr>>>24&255,Xt[12]=Hn>>>0&255,Xt[13]=Hn>>>8&255,Xt[14]=Hn>>>16&255,Xt[15]=Hn>>>24&255,Xt[16]=Ur>>>0&255,Xt[17]=Ur>>>8&255,Xt[18]=Ur>>>16&255,Xt[19]=Ur>>>24&255,Xt[20]=jr>>>0&255,Xt[21]=jr>>>8&255,Xt[22]=jr>>>16&255,Xt[23]=jr>>>24&255,Xt[24]=en>>>0&255,Xt[25]=en>>>8&255,Xt[26]=en>>>16&255,Xt[27]=en>>>24&255,Xt[28]=Gr>>>0&255,Xt[29]=Gr>>>8&255,Xt[30]=Gr>>>16&255,Xt[31]=Gr>>>24&255}function Bt(Xt,ar,cr,jt){wt(Xt,ar,cr,jt)}function Ft(Xt,ar,cr,jt){St(Xt,ar,cr,jt)}var Dt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function zt(Xt,ar,cr,jt,dr,Rr,Cr){var Nr=new Uint8Array(16),Yr=new Uint8Array(64),tn,qr;for(qr=0;qr<16;qr++)Nr[qr]=0;for(qr=0;qr<8;qr++)Nr[qr]=Rr[qr];for(;dr>=64;){for(Bt(Yr,Nr,Cr,Dt),qr=0;qr<64;qr++)Xt[ar+qr]=cr[jt+qr]^Yr[qr];for(tn=1,qr=8;qr<16;qr++)tn=tn+(Nr[qr]&255)|0,Nr[qr]=tn&255,tn>>>=8;dr-=64,ar+=64,jt+=64}if(dr>0)for(Bt(Yr,Nr,Cr,Dt),qr=0;qr=64;){for(Bt(Cr,Rr,dr,Dt),Yr=0;Yr<64;Yr++)Xt[ar+Yr]=Cr[Yr];for(Nr=1,Yr=8;Yr<16;Yr++)Nr=Nr+(Rr[Yr]&255)|0,Rr[Yr]=Nr&255,Nr>>>=8;cr-=64,ar+=64}if(cr>0)for(Bt(Cr,Rr,dr,Dt),Yr=0;Yr>>13|cr<<3)&8191,jt=Xt[4]&255|(Xt[5]&255)<<8,this.r[2]=(cr>>>10|jt<<6)&7939,dr=Xt[6]&255|(Xt[7]&255)<<8,this.r[3]=(jt>>>7|dr<<9)&8191,Rr=Xt[8]&255|(Xt[9]&255)<<8,this.r[4]=(dr>>>4|Rr<<12)&255,this.r[5]=Rr>>>1&8190,Cr=Xt[10]&255|(Xt[11]&255)<<8,this.r[6]=(Rr>>>14|Cr<<2)&8191,Nr=Xt[12]&255|(Xt[13]&255)<<8,this.r[7]=(Cr>>>11|Nr<<5)&8065,Yr=Xt[14]&255|(Xt[15]&255)<<8,this.r[8]=(Nr>>>8|Yr<<8)&8191,this.r[9]=Yr>>>5&127,this.pad[0]=Xt[16]&255|(Xt[17]&255)<<8,this.pad[1]=Xt[18]&255|(Xt[19]&255)<<8,this.pad[2]=Xt[20]&255|(Xt[21]&255)<<8,this.pad[3]=Xt[22]&255|(Xt[23]&255)<<8,this.pad[4]=Xt[24]&255|(Xt[25]&255)<<8,this.pad[5]=Xt[26]&255|(Xt[27]&255)<<8,this.pad[6]=Xt[28]&255|(Xt[29]&255)<<8,this.pad[7]=Xt[30]&255|(Xt[31]&255)<<8};qt.prototype.blocks=function(Xt,ar,cr){for(var jt=this.fin?0:2048,dr,Rr,Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn=this.h[0],mn=this.h[1],cn=this.h[2],Ur=this.h[3],jr=this.h[4],en=this.h[5],Gr=this.h[6],Zr=this.h[7],sn=this.h[8],On=this.h[9],zn=this.r[0],Gn=this.r[1],Hn=this.r[2],Tr=this.r[3],Yn=this.r[4],es=this.r[5],ts=this.r[6],Wn=this.r[7],rs=this.r[8],Qn=this.r[9];cr>=16;)dr=Xt[ar+0]&255|(Xt[ar+1]&255)<<8,yn+=dr&8191,Rr=Xt[ar+2]&255|(Xt[ar+3]&255)<<8,mn+=(dr>>>13|Rr<<3)&8191,Cr=Xt[ar+4]&255|(Xt[ar+5]&255)<<8,cn+=(Rr>>>10|Cr<<6)&8191,Nr=Xt[ar+6]&255|(Xt[ar+7]&255)<<8,Ur+=(Cr>>>7|Nr<<9)&8191,Yr=Xt[ar+8]&255|(Xt[ar+9]&255)<<8,jr+=(Nr>>>4|Yr<<12)&8191,en+=Yr>>>1&8191,tn=Xt[ar+10]&255|(Xt[ar+11]&255)<<8,Gr+=(Yr>>>14|tn<<2)&8191,qr=Xt[ar+12]&255|(Xt[ar+13]&255)<<8,Zr+=(tn>>>11|qr<<5)&8191,Vn=Xt[ar+14]&255|(Xt[ar+15]&255)<<8,sn+=(qr>>>8|Vn<<8)&8191,On+=Vn>>>5|jt,hn=0,Tn=hn,Tn+=yn*zn,Tn+=mn*(5*Qn),Tn+=cn*(5*rs),Tn+=Ur*(5*Wn),Tn+=jr*(5*ts),hn=Tn>>>13,Tn&=8191,Tn+=en*(5*es),Tn+=Gr*(5*Yn),Tn+=Zr*(5*Tr),Tn+=sn*(5*Hn),Tn+=On*(5*Gn),hn+=Tn>>>13,Tn&=8191,An=hn,An+=yn*Gn,An+=mn*zn,An+=cn*(5*Qn),An+=Ur*(5*rs),An+=jr*(5*Wn),hn=An>>>13,An&=8191,An+=en*(5*ts),An+=Gr*(5*es),An+=Zr*(5*Yn),An+=sn*(5*Tr),An+=On*(5*Hn),hn+=An>>>13,An&=8191,Rn=hn,Rn+=yn*Hn,Rn+=mn*Gn,Rn+=cn*zn,Rn+=Ur*(5*Qn),Rn+=jr*(5*rs),hn=Rn>>>13,Rn&=8191,Rn+=en*(5*Wn),Rn+=Gr*(5*ts),Rn+=Zr*(5*es),Rn+=sn*(5*Yn),Rn+=On*(5*Tr),hn+=Rn>>>13,Rn&=8191,Pn=hn,Pn+=yn*Tr,Pn+=mn*Hn,Pn+=cn*Gn,Pn+=Ur*zn,Pn+=jr*(5*Qn),hn=Pn>>>13,Pn&=8191,Pn+=en*(5*rs),Pn+=Gr*(5*Wn),Pn+=Zr*(5*ts),Pn+=sn*(5*es),Pn+=On*(5*Yn),hn+=Pn>>>13,Pn&=8191,In=hn,In+=yn*Yn,In+=mn*Tr,In+=cn*Hn,In+=Ur*Gn,In+=jr*zn,hn=In>>>13,In&=8191,In+=en*(5*Qn),In+=Gr*(5*rs),In+=Zr*(5*Wn),In+=sn*(5*ts),In+=On*(5*es),hn+=In>>>13,In&=8191,$n=hn,$n+=yn*es,$n+=mn*Yn,$n+=cn*Tr,$n+=Ur*Hn,$n+=jr*Gn,hn=$n>>>13,$n&=8191,$n+=en*zn,$n+=Gr*(5*Qn),$n+=Zr*(5*rs),$n+=sn*(5*Wn),$n+=On*(5*ts),hn+=$n>>>13,$n&=8191,Bn=hn,Bn+=yn*ts,Bn+=mn*es,Bn+=cn*Yn,Bn+=Ur*Tr,Bn+=jr*Hn,hn=Bn>>>13,Bn&=8191,Bn+=en*Gn,Bn+=Gr*zn,Bn+=Zr*(5*Qn),Bn+=sn*(5*rs),Bn+=On*(5*Wn),hn+=Bn>>>13,Bn&=8191,pn=hn,pn+=yn*Wn,pn+=mn*ts,pn+=cn*es,pn+=Ur*Yn,pn+=jr*Tr,hn=pn>>>13,pn&=8191,pn+=en*Hn,pn+=Gr*Gn,pn+=Zr*zn,pn+=sn*(5*Qn),pn+=On*(5*rs),hn+=pn>>>13,pn&=8191,wn=hn,wn+=yn*rs,wn+=mn*Wn,wn+=cn*ts,wn+=Ur*es,wn+=jr*Yn,hn=wn>>>13,wn&=8191,wn+=en*Tr,wn+=Gr*Hn,wn+=Zr*Gn,wn+=sn*zn,wn+=On*(5*Qn),hn+=wn>>>13,wn&=8191,un=hn,un+=yn*Qn,un+=mn*rs,un+=cn*Wn,un+=Ur*ts,un+=jr*es,hn=un>>>13,un&=8191,un+=en*Yn,un+=Gr*Tr,un+=Zr*Hn,un+=sn*Gn,un+=On*zn,hn+=un>>>13,un&=8191,hn=(hn<<2)+hn|0,hn=hn+Tn|0,Tn=hn&8191,hn=hn>>>13,An+=hn,yn=Tn,mn=An,cn=Rn,Ur=Pn,jr=In,en=$n,Gr=Bn,Zr=pn,sn=wn,On=un,ar+=16,cr-=16;this.h[0]=yn,this.h[1]=mn,this.h[2]=cn,this.h[3]=Ur,this.h[4]=jr,this.h[5]=en,this.h[6]=Gr,this.h[7]=Zr,this.h[8]=sn,this.h[9]=On},qt.prototype.finish=function(Xt,ar){var cr=new Uint16Array(10),jt,dr,Rr,Cr;if(this.leftover){for(Cr=this.leftover,this.buffer[Cr++]=1;Cr<16;Cr++)this.buffer[Cr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(jt=this.h[1]>>>13,this.h[1]&=8191,Cr=2;Cr<10;Cr++)this.h[Cr]+=jt,jt=this.h[Cr]>>>13,this.h[Cr]&=8191;for(this.h[0]+=jt*5,jt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=jt,jt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=jt,cr[0]=this.h[0]+5,jt=cr[0]>>>13,cr[0]&=8191,Cr=1;Cr<10;Cr++)cr[Cr]=this.h[Cr]+jt,jt=cr[Cr]>>>13,cr[Cr]&=8191;for(cr[9]-=8192,dr=(jt^1)-1,Cr=0;Cr<10;Cr++)cr[Cr]&=dr;for(dr=~dr,Cr=0;Cr<10;Cr++)this.h[Cr]=this.h[Cr]&dr|cr[Cr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Rr=this.h[0]+this.pad[0],this.h[0]=Rr&65535,Cr=1;Cr<8;Cr++)Rr=(this.h[Cr]+this.pad[Cr]|0)+(Rr>>>16)|0,this.h[Cr]=Rr&65535;Xt[ar+0]=this.h[0]>>>0&255,Xt[ar+1]=this.h[0]>>>8&255,Xt[ar+2]=this.h[1]>>>0&255,Xt[ar+3]=this.h[1]>>>8&255,Xt[ar+4]=this.h[2]>>>0&255,Xt[ar+5]=this.h[2]>>>8&255,Xt[ar+6]=this.h[3]>>>0&255,Xt[ar+7]=this.h[3]>>>8&255,Xt[ar+8]=this.h[4]>>>0&255,Xt[ar+9]=this.h[4]>>>8&255,Xt[ar+10]=this.h[5]>>>0&255,Xt[ar+11]=this.h[5]>>>8&255,Xt[ar+12]=this.h[6]>>>0&255,Xt[ar+13]=this.h[6]>>>8&255,Xt[ar+14]=this.h[7]>>>0&255,Xt[ar+15]=this.h[7]>>>8&255},qt.prototype.update=function(Xt,ar,cr){var jt,dr;if(this.leftover){for(dr=16-this.leftover,dr>cr&&(dr=cr),jt=0;jt=16&&(dr=cr-cr%16,this.blocks(Xt,ar,dr),ar+=dr,cr-=dr),cr){for(jt=0;jt>16&1),Rr[cr-1]&=65535;Rr[15]=Cr[15]-32767-(Rr[14]>>16&1),dr=Rr[15]>>16&1,Rr[14]&=65535,At(Cr,Rr,1-dr)}for(cr=0;cr<16;cr++)Xt[2*cr]=Cr[cr]&255,Xt[2*cr+1]=Cr[cr]>>8}function It(Xt,ar){var cr=new Uint8Array(32),jt=new Uint8Array(32);return Pt(cr,Xt),Pt(jt,ar),mt(cr,0,jt,0)}function Ct(Xt){var ar=new Uint8Array(32);return Pt(ar,Xt),ar[0]&1}function xt(Xt,ar){var cr;for(cr=0;cr<16;cr++)Xt[cr]=ar[2*cr]+(ar[2*cr+1]<<8);Xt[15]&=32767}function Lt(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]+cr[jt]}function tr(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]-cr[jt]}function pr(Xt,ar,cr){var jt,dr,Rr=0,Cr=0,Nr=0,Yr=0,tn=0,qr=0,Vn=0,hn=0,Tn=0,An=0,Rn=0,Pn=0,In=0,$n=0,Bn=0,pn=0,wn=0,un=0,yn=0,mn=0,cn=0,Ur=0,jr=0,en=0,Gr=0,Zr=0,sn=0,On=0,zn=0,Gn=0,Hn=0,Tr=cr[0],Yn=cr[1],es=cr[2],ts=cr[3],Wn=cr[4],rs=cr[5],Qn=cr[6],vs=cr[7],os=cr[8],ps=cr[9],bs=cr[10],xs=cr[11],Ss=cr[12],As=cr[13],Ps=cr[14],Is=cr[15];jt=ar[0],Rr+=jt*Tr,Cr+=jt*Yn,Nr+=jt*es,Yr+=jt*ts,tn+=jt*Wn,qr+=jt*rs,Vn+=jt*Qn,hn+=jt*vs,Tn+=jt*os,An+=jt*ps,Rn+=jt*bs,Pn+=jt*xs,In+=jt*Ss,$n+=jt*As,Bn+=jt*Ps,pn+=jt*Is,jt=ar[1],Cr+=jt*Tr,Nr+=jt*Yn,Yr+=jt*es,tn+=jt*ts,qr+=jt*Wn,Vn+=jt*rs,hn+=jt*Qn,Tn+=jt*vs,An+=jt*os,Rn+=jt*ps,Pn+=jt*bs,In+=jt*xs,$n+=jt*Ss,Bn+=jt*As,pn+=jt*Ps,wn+=jt*Is,jt=ar[2],Nr+=jt*Tr,Yr+=jt*Yn,tn+=jt*es,qr+=jt*ts,Vn+=jt*Wn,hn+=jt*rs,Tn+=jt*Qn,An+=jt*vs,Rn+=jt*os,Pn+=jt*ps,In+=jt*bs,$n+=jt*xs,Bn+=jt*Ss,pn+=jt*As,wn+=jt*Ps,un+=jt*Is,jt=ar[3],Yr+=jt*Tr,tn+=jt*Yn,qr+=jt*es,Vn+=jt*ts,hn+=jt*Wn,Tn+=jt*rs,An+=jt*Qn,Rn+=jt*vs,Pn+=jt*os,In+=jt*ps,$n+=jt*bs,Bn+=jt*xs,pn+=jt*Ss,wn+=jt*As,un+=jt*Ps,yn+=jt*Is,jt=ar[4],tn+=jt*Tr,qr+=jt*Yn,Vn+=jt*es,hn+=jt*ts,Tn+=jt*Wn,An+=jt*rs,Rn+=jt*Qn,Pn+=jt*vs,In+=jt*os,$n+=jt*ps,Bn+=jt*bs,pn+=jt*xs,wn+=jt*Ss,un+=jt*As,yn+=jt*Ps,mn+=jt*Is,jt=ar[5],qr+=jt*Tr,Vn+=jt*Yn,hn+=jt*es,Tn+=jt*ts,An+=jt*Wn,Rn+=jt*rs,Pn+=jt*Qn,In+=jt*vs,$n+=jt*os,Bn+=jt*ps,pn+=jt*bs,wn+=jt*xs,un+=jt*Ss,yn+=jt*As,mn+=jt*Ps,cn+=jt*Is,jt=ar[6],Vn+=jt*Tr,hn+=jt*Yn,Tn+=jt*es,An+=jt*ts,Rn+=jt*Wn,Pn+=jt*rs,In+=jt*Qn,$n+=jt*vs,Bn+=jt*os,pn+=jt*ps,wn+=jt*bs,un+=jt*xs,yn+=jt*Ss,mn+=jt*As,cn+=jt*Ps,Ur+=jt*Is,jt=ar[7],hn+=jt*Tr,Tn+=jt*Yn,An+=jt*es,Rn+=jt*ts,Pn+=jt*Wn,In+=jt*rs,$n+=jt*Qn,Bn+=jt*vs,pn+=jt*os,wn+=jt*ps,un+=jt*bs,yn+=jt*xs,mn+=jt*Ss,cn+=jt*As,Ur+=jt*Ps,jr+=jt*Is,jt=ar[8],Tn+=jt*Tr,An+=jt*Yn,Rn+=jt*es,Pn+=jt*ts,In+=jt*Wn,$n+=jt*rs,Bn+=jt*Qn,pn+=jt*vs,wn+=jt*os,un+=jt*ps,yn+=jt*bs,mn+=jt*xs,cn+=jt*Ss,Ur+=jt*As,jr+=jt*Ps,en+=jt*Is,jt=ar[9],An+=jt*Tr,Rn+=jt*Yn,Pn+=jt*es,In+=jt*ts,$n+=jt*Wn,Bn+=jt*rs,pn+=jt*Qn,wn+=jt*vs,un+=jt*os,yn+=jt*ps,mn+=jt*bs,cn+=jt*xs,Ur+=jt*Ss,jr+=jt*As,en+=jt*Ps,Gr+=jt*Is,jt=ar[10],Rn+=jt*Tr,Pn+=jt*Yn,In+=jt*es,$n+=jt*ts,Bn+=jt*Wn,pn+=jt*rs,wn+=jt*Qn,un+=jt*vs,yn+=jt*os,mn+=jt*ps,cn+=jt*bs,Ur+=jt*xs,jr+=jt*Ss,en+=jt*As,Gr+=jt*Ps,Zr+=jt*Is,jt=ar[11],Pn+=jt*Tr,In+=jt*Yn,$n+=jt*es,Bn+=jt*ts,pn+=jt*Wn,wn+=jt*rs,un+=jt*Qn,yn+=jt*vs,mn+=jt*os,cn+=jt*ps,Ur+=jt*bs,jr+=jt*xs,en+=jt*Ss,Gr+=jt*As,Zr+=jt*Ps,sn+=jt*Is,jt=ar[12],In+=jt*Tr,$n+=jt*Yn,Bn+=jt*es,pn+=jt*ts,wn+=jt*Wn,un+=jt*rs,yn+=jt*Qn,mn+=jt*vs,cn+=jt*os,Ur+=jt*ps,jr+=jt*bs,en+=jt*xs,Gr+=jt*Ss,Zr+=jt*As,sn+=jt*Ps,On+=jt*Is,jt=ar[13],$n+=jt*Tr,Bn+=jt*Yn,pn+=jt*es,wn+=jt*ts,un+=jt*Wn,yn+=jt*rs,mn+=jt*Qn,cn+=jt*vs,Ur+=jt*os,jr+=jt*ps,en+=jt*bs,Gr+=jt*xs,Zr+=jt*Ss,sn+=jt*As,On+=jt*Ps,zn+=jt*Is,jt=ar[14],Bn+=jt*Tr,pn+=jt*Yn,wn+=jt*es,un+=jt*ts,yn+=jt*Wn,mn+=jt*rs,cn+=jt*Qn,Ur+=jt*vs,jr+=jt*os,en+=jt*ps,Gr+=jt*bs,Zr+=jt*xs,sn+=jt*Ss,On+=jt*As,zn+=jt*Ps,Gn+=jt*Is,jt=ar[15],pn+=jt*Tr,wn+=jt*Yn,un+=jt*es,yn+=jt*ts,mn+=jt*Wn,cn+=jt*rs,Ur+=jt*Qn,jr+=jt*vs,en+=jt*os,Gr+=jt*ps,Zr+=jt*bs,sn+=jt*xs,On+=jt*Ss,zn+=jt*As,Gn+=jt*Ps,Hn+=jt*Is,Rr+=38*wn,Cr+=38*un,Nr+=38*yn,Yr+=38*mn,tn+=38*cn,qr+=38*Ur,Vn+=38*jr,hn+=38*en,Tn+=38*Gr,An+=38*Zr,Rn+=38*sn,Pn+=38*On,In+=38*zn,$n+=38*Gn,Bn+=38*Hn,dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),Xt[0]=Rr,Xt[1]=Cr,Xt[2]=Nr,Xt[3]=Yr,Xt[4]=tn,Xt[5]=qr,Xt[6]=Vn,Xt[7]=hn,Xt[8]=Tn,Xt[9]=An,Xt[10]=Rn,Xt[11]=Pn,Xt[12]=In,Xt[13]=$n,Xt[14]=Bn,Xt[15]=pn}function Kt(Xt,ar){pr(Xt,ar,ar)}function Qt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=253;jt>=0;jt--)Kt(cr,cr),jt!==2&&jt!==4&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function Zt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=250;jt>=0;jt--)Kt(cr,cr),jt!==1&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function ur(Xt,ar,cr){var jt=new Uint8Array(32),dr=new Float64Array(80),Rr,Cr,Nr=rt(),Yr=rt(),tn=rt(),qr=rt(),Vn=rt(),hn=rt();for(Cr=0;Cr<31;Cr++)jt[Cr]=ar[Cr];for(jt[31]=ar[31]&127|64,jt[0]&=248,xt(dr,cr),Cr=0;Cr<16;Cr++)Yr[Cr]=dr[Cr],qr[Cr]=Nr[Cr]=tn[Cr]=0;for(Nr[0]=qr[0]=1,Cr=254;Cr>=0;--Cr)Rr=jt[Cr>>>3]>>>(Cr&7)&1,At(Nr,Yr,Rr),At(tn,qr,Rr),Lt(Vn,Nr,tn),tr(Nr,Nr,tn),Lt(tn,Yr,qr),tr(Yr,Yr,qr),Kt(qr,Vn),Kt(hn,Nr),pr(Nr,tn,Nr),pr(tn,Yr,Vn),Lt(Vn,Nr,tn),tr(Nr,Nr,tn),Kt(Yr,Nr),tr(tn,qr,hn),pr(Nr,tn,lt),Lt(Nr,Nr,qr),pr(tn,tn,Nr),pr(Nr,qr,hn),pr(qr,Yr,dr),Kt(Yr,Vn),At(Nr,Yr,Rr),At(tn,qr,Rr);for(Cr=0;Cr<16;Cr++)dr[Cr+16]=Nr[Cr],dr[Cr+32]=tn[Cr],dr[Cr+48]=Yr[Cr],dr[Cr+64]=qr[Cr];var Tn=dr.subarray(32),An=dr.subarray(16);return Qt(Tn,Tn),pr(An,An,Tn),Pt(Xt,An),0}function _r(Xt,ar){return ur(Xt,ar,st)}function er(Xt,ar){return nt(ar,32),_r(Xt,ar)}function Jt(Xt,ar,cr){var jt=new Uint8Array(32);return ur(jt,cr,ar),Ft(Xt,it,jt,Dt)}var Ar=ht,Er=Et;function Dr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Ar(Xt,ar,cr,jt,Cr)}function Xr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Er(Xt,ar,cr,jt,Cr)}var Vr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function wr(Xt,ar,cr,jt){for(var dr=new Int32Array(16),Rr=new Int32Array(16),Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn,mn,cn,Ur,jr,en,Gr,Zr,sn,On=Xt[0],zn=Xt[1],Gn=Xt[2],Hn=Xt[3],Tr=Xt[4],Yn=Xt[5],es=Xt[6],ts=Xt[7],Wn=ar[0],rs=ar[1],Qn=ar[2],vs=ar[3],os=ar[4],ps=ar[5],bs=ar[6],xs=ar[7],Ss=0;jt>=128;){for(mn=0;mn<16;mn++)cn=8*mn+Ss,dr[mn]=cr[cn+0]<<24|cr[cn+1]<<16|cr[cn+2]<<8|cr[cn+3],Rr[mn]=cr[cn+4]<<24|cr[cn+5]<<16|cr[cn+6]<<8|cr[cn+7];for(mn=0;mn<80;mn++)if(Cr=On,Nr=zn,Yr=Gn,tn=Hn,qr=Tr,Vn=Yn,hn=es,Tn=ts,An=Wn,Rn=rs,Pn=Qn,In=vs,$n=os,Bn=ps,pn=bs,wn=xs,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(Tr>>>14|os<<32-14)^(Tr>>>18|os<<32-18)^(os>>>41-32|Tr<<32-(41-32)),jr=(os>>>14|Tr<<32-14)^(os>>>18|Tr<<32-18)^(Tr>>>41-32|os<<32-(41-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Tr&Yn^~Tr&es,jr=os&ps^~os&bs,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Vr[mn*2],jr=Vr[mn*2+1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=dr[mn%16],jr=Rr[mn%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,un=Zr&65535|sn<<16,yn=en&65535|Gr<<16,Ur=un,jr=yn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(On>>>28|Wn<<32-28)^(Wn>>>34-32|On<<32-(34-32))^(Wn>>>39-32|On<<32-(39-32)),jr=(Wn>>>28|On<<32-28)^(On>>>34-32|Wn<<32-(34-32))^(On>>>39-32|Wn<<32-(39-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=On&zn^On&Gn^zn&Gn,jr=Wn&rs^Wn&Qn^rs&Qn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Tn=Zr&65535|sn<<16,wn=en&65535|Gr<<16,Ur=tn,jr=In,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=un,jr=yn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,tn=Zr&65535|sn<<16,In=en&65535|Gr<<16,zn=Cr,Gn=Nr,Hn=Yr,Tr=tn,Yn=qr,es=Vn,ts=hn,On=Tn,rs=An,Qn=Rn,vs=Pn,os=In,ps=$n,bs=Bn,xs=pn,Wn=wn,mn%16===15)for(cn=0;cn<16;cn++)Ur=dr[cn],jr=Rr[cn],en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=dr[(cn+9)%16],jr=Rr[(cn+9)%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+1)%16],yn=Rr[(cn+1)%16],Ur=(un>>>1|yn<<32-1)^(un>>>8|yn<<32-8)^un>>>7,jr=(yn>>>1|un<<32-1)^(yn>>>8|un<<32-8)^(yn>>>7|un<<32-7),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+14)%16],yn=Rr[(cn+14)%16],Ur=(un>>>19|yn<<32-19)^(yn>>>61-32|un<<32-(61-32))^un>>>6,jr=(yn>>>19|un<<32-19)^(un>>>61-32|yn<<32-(61-32))^(yn>>>6|un<<32-6),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,dr[cn]=Zr&65535|sn<<16,Rr[cn]=en&65535|Gr<<16;Ur=On,jr=Wn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[0],jr=ar[0],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[0]=On=Zr&65535|sn<<16,ar[0]=Wn=en&65535|Gr<<16,Ur=zn,jr=rs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[1],jr=ar[1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[1]=zn=Zr&65535|sn<<16,ar[1]=rs=en&65535|Gr<<16,Ur=Gn,jr=Qn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[2],jr=ar[2],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[2]=Gn=Zr&65535|sn<<16,ar[2]=Qn=en&65535|Gr<<16,Ur=Hn,jr=vs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[3],jr=ar[3],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[3]=Hn=Zr&65535|sn<<16,ar[3]=vs=en&65535|Gr<<16,Ur=Tr,jr=os,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[4],jr=ar[4],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[4]=Tr=Zr&65535|sn<<16,ar[4]=os=en&65535|Gr<<16,Ur=Yn,jr=ps,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[5],jr=ar[5],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[5]=Yn=Zr&65535|sn<<16,ar[5]=ps=en&65535|Gr<<16,Ur=es,jr=bs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[6],jr=ar[6],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[6]=es=Zr&65535|sn<<16,ar[6]=bs=en&65535|Gr<<16,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[7],jr=ar[7],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[7]=ts=Zr&65535|sn<<16,ar[7]=xs=en&65535|Gr<<16,Ss+=128,jt-=128}return jt}function br(Xt,ar,cr){var jt=new Int32Array(8),dr=new Int32Array(8),Rr=new Uint8Array(256),Cr,Nr=cr;for(jt[0]=1779033703,jt[1]=3144134277,jt[2]=1013904242,jt[3]=2773480762,jt[4]=1359893119,jt[5]=2600822924,jt[6]=528734635,jt[7]=1541459225,dr[0]=4089235720,dr[1]=2227873595,dr[2]=4271175723,dr[3]=1595750129,dr[4]=2917565137,dr[5]=725511199,dr[6]=4215389547,dr[7]=327033209,wr(jt,dr,ar,cr),cr%=128,Cr=0;Cr=0;--dr)jt=cr[dr/8|0]>>(dr&7)&1,xr(Xt,ar,jt),or(ar,Xt),or(Xt,Xt),xr(Xt,ar,jt)}function rr(Xt,ar){var cr=[rt(),rt(),rt(),rt()];Tt(cr[0],bt),Tt(cr[1],gt),Tt(cr[2],ot),pr(cr[3],bt,gt),Or(Xt,cr,ar)}function gr(Xt,ar,cr){var jt=new Uint8Array(64),dr=[rt(),rt(),rt(),rt()],Rr;for(cr||nt(ar,32),br(jt,ar,32),jt[0]&=248,jt[31]&=127,jt[31]|=64,rr(dr,jt),Pr(Xt,dr),Rr=0;Rr<32;Rr++)ar[Rr+32]=Xt[Rr];return 0}var Ir=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yt(Xt,ar){var cr,jt,dr,Rr;for(jt=63;jt>=32;--jt){for(cr=0,dr=jt-32,Rr=jt-12;dr>4)*Ir[dr],cr=ar[dr]>>8,ar[dr]&=255;for(dr=0;dr<32;dr++)ar[dr]-=cr*Ir[dr];for(jt=0;jt<32;jt++)ar[jt+1]+=ar[jt]>>8,Xt[jt]=ar[jt]&255}function Ut(Xt){var ar=new Float64Array(64),cr;for(cr=0;cr<64;cr++)ar[cr]=Xt[cr];for(cr=0;cr<64;cr++)Xt[cr]=0;Yt(Xt,ar)}function Vt(Xt,ar,cr,jt){var dr=new Uint8Array(64),Rr=new Uint8Array(64),Cr=new Uint8Array(64),Nr,Yr,tn=new Float64Array(64),qr=[rt(),rt(),rt(),rt()];br(dr,jt,32),dr[0]&=248,dr[31]&=127,dr[31]|=64;var Vn=cr+64;for(Nr=0;Nr>7&&tr(Xt[0],at,Xt[0]),pr(Xt[3],Xt[0],Xt[1]),0)}function kr(Xt,ar,cr,jt){var dr,Rr=new Uint8Array(32),Cr=new Uint8Array(64),Nr=[rt(),rt(),rt(),rt()],Yr=[rt(),rt(),rt(),rt()];if(cr<64||ir(Yr,jt))return-1;for(dr=0;dr=0},tt.sign.keyPair=function(){var Xt=new Uint8Array(xn),ar=new Uint8Array(is);return gr(Xt,ar),{publicKey:Xt,secretKey:ar}},tt.sign.keyPair.fromSecretKey=function(Xt){if(dn(Xt),Xt.length!==is)throw new Error("bad secret key size");for(var ar=new Uint8Array(xn),cr=0;cr"u"?typeof Buffer.from<"u"?(tt.encodeBase64=function(nt){return Buffer.from(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(Buffer.from(nt,"base64"),0))}):(tt.encodeBase64=function(nt){return new Buffer(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(new Buffer(nt,"base64"),0))}):(tt.encodeBase64=function(nt){var it,st=[],at=nt.length;for(it=0;ityt||br<0)throw new RangeError(`varint ${br} out of range`);this._grow(this._length+wt);let or=this._length;for(;br>=128;)this._buf[or++]=br&255|128,br>>>=7;this._buf[or++]=br|0,this._length=or}get bytes(){return this._buf.subarray(0,this._length)}_grow(br){const or=this._buf.length;if(br<=or)return;const xr=or*2,Pr=br>xr?br:xr,Or=new Uint8Array(Pr);Or.set(this._buf.subarray(0,this._length)),this._buf=Or}}const wt=5;class St{constructor(br){this._buf=br,this._index=0}readByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index++]}peekByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index]}readN(br){if(this.lengthwt||rr===wt&&Or>1)throw new RangeError("Overflow error decoding varint");return(or|Or<>>0}or|=(Or&127)<wr!=null,Ft=wr=>Bt(wr)?ot.encode(wr):wr,Dt=wr=>Bt(wr)?lt.decode(wr):wr,zt=wr=>rt.default.codec.utf8String.fromBits(wr);et.base64ToBytes=function(wr){return wr=wr.replace(/-/g,"+").replace(/_/g,"/"),wr.length%4!==0&&!wr.match(/=$/)&&(wr+="=".repeat(4-wr.length%4)),it.default.decodeBase64(wr)},et.bytesToBase64=function(wr){return it.default.encodeBase64(wr).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")};const Ht=function(wr){return rt.default.codec.base64.toBits(it.default.encodeBase64(wr))},Wt=function(wr){return it.default.decodeBase64(rt.default.codec.base64.fromBits(wr))},lr=function(wr){const br=new Uint8Array(Math.ceil(wr.length/2));for(let or=0;orBt(wr)?Ot(wr,br):"",ht=function(wr,br){if(wr instanceof Uint8Array)return wr;if(typeof wr=="string")return Ft(wr);throw new TypeError(`${br} has the wrong type; want string or Uint8Array, got ${typeof wr}.`)},Et=new Uint8Array,Tt=function(wr,br){const or=wr.readByte();if(or!==br)throw new Error(`Unexpected field type, got ${or} want ${br}`);return or===dt?Et:wr.readN(wr.readUvarint())},Rt=function(wr,br,or){wr.appendByte(br),br!==dt&&(wr.appendUvarint(or.length),wr.appendBytes(or))},At=function(wr,br){return wr.peekByte()!==br?null:Tt(wr,br)},Pt=function(wr,br,or){qt(or)?wr[br]=Dt(or):wr[br+"64"]=et.bytesToBase64(or)},It=function(wr,br){const or=new rt.default.misc.hmac(wr,rt.default.hash.sha256);return or.update(br),or.digest()},Ct=function(wr,br,or){const xr=It(wr,br),Pr=It(wr,or);return It(wr,rt.default.bitArray.concat(xr,Pr))},xt=Ht(Ft("macaroons-key-generator")),Lt=function(wr){return It(xt,wr)},tr=function(){return nt.default.randomBytes(ut)},pr=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=tr(),Or=nt.default.secretbox(xr,Pr,or),rr=new Uint8Array(Pr.length+Or.length);return rr.set(Pr,0),rr.set(Or,Pr.length),Ht(rr)},Kt=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=xr.slice(0,ut),Or=xr.slice(ut);let rr=nt.default.secretbox.open(Or,Pr,or);if(!rr)throw new Error("decryption failed");return Ht(rr)},Qt=Ht(Ft("\0".repeat(32))),Zt=function(wr,br){return rt.default.bitArray.equal(wr,br)?wr:Ct(Qt,wr,br)};class ur{constructor(br){if(!br)return;let{version:or,identifierBytes:xr,locationStr:Pr,caveats:Or,signatureBytes:rr}=br;if(or!==1&&or!==2)throw new Error(`Unexpected version ${or}`);if(this._version=or,this._locationStr=Pr,xr=ht(xr,"Identifier"),or===1&&!qt(xr))throw new Error("Version 1 macaroon identifier must be well-formed UTF-8");this._identifierBits=xr&&Ht(xr),this._signatureBits=rr&&Ht(ht(rr,"Signature")),this._caveats=Or?Or.map(gr=>{const Ir=ht(gr.identifierBytes,"Caveat identifier");if(or===1&&!qt(Ir))throw new Error("Version 1 caveat identifier must be well-formed UTF-8");return{_locationStr:Mt(gr.locationStr),_identifierBits:Ht(Ir),_vidBits:gr.vidBytes&&Ht(ht(gr.vidBytes,"Verification ID"))}}):[]}get caveats(){return this._caveats.map(br=>Bt(br._vidBits)?{identifier:Wt(br._identifierBits),location:br._locationStr,vid:Wt(br._vidBits)}:{identifier:Wt(br._identifierBits)})}get location(){return this._locationStr}get identifier(){return Wt(this._identifierBits)}get signature(){return Wt(this._signatureBits)}addThirdPartyCaveat(br,or,xr){const Pr={_identifierBits:Ht(ht(or,"Caveat id")),_vidBits:pr(this._signatureBits,Lt(Ht(ht(br,"Caveat root key")))),_locationStr:Mt(xr)};this._signatureBits=Ct(this._signatureBits,Pr._vidBits,Pr._identifierBits),this._caveats.push(Pr)}addFirstPartyCaveat(br){const or=Ht(ht(br,"Condition"));this._caveats.push({_identifierBits:or}),this._signatureBits=It(this._signatureBits,or)}bindToRoot(br){const or=Ht(ht(br,"Primary macaroon signature"));this._signatureBits=Zt(or,this._signatureBits)}clone(){const br=new ur;return br._version=this._version,br._signatureBits=this._signatureBits,br._identifierBits=this._identifierBits,br._locationStr=this._locationStr,br._caveats=this._caveats.slice(),br}verify(br,or,xr=[]){const Pr=Lt(Ht(ht(br,"Root key"))),Or=xr.map(rr=>0);this._verify(this._signatureBits,Pr,or,xr,Or),xr.forEach((rr,gr)=>{if(Or[gr]===0)throw new Error(`discharge macaroon ${$t(rr.identifier)} was not used`);if(Or[gr]!==1)throw new Error(`discharge macaroon ${$t(rr.identifier)} was used more than once`)})}_verify(br,or,xr,Pr,Or){let rr=It(or,this._identifierBits);this._caveats.forEach(Ir=>{if(Ir._vidBits){const Yt=Kt(rr,Ir._vidBits);let Ut=!1,Vt,ir;for(Vt=0;Vt1)throw new Error(`discharge macaroon ${$t(ir.identifier)} was used more than once`);ir._verify(br,Yt,xr,Pr,Or);break}if(!Ut)throw new Error(`cannot find discharge macaroon for caveat ${$t(Ir._identifierBits)}`);rr=Ct(rr,Ir._vidBits,Ir._identifierBits)}else{const Yt=zt(Ir._identifierBits),Ut=xr(Yt);if(Ut)throw new Error(`caveat check failed (${Yt}): ${Ut}`);rr=It(rr,Ir._identifierBits)}});const gr=Zt(br,rr);if(!rt.default.bitArray.equal(gr,this._signatureBits))throw new Error("signature mismatch after caveat verification")}exportJSON(){switch(this._version){case 1:return this._exportAsJSONObjectV1();case 2:return this._exportAsJSONObjectV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}_exportAsJSONObjectV1(){const br={identifier:zt(this._identifierBits),signature:rt.default.codec.hex.fromBits(this._signatureBits)};return this._locationStr&&(br.location=this._locationStr),this._caveats.length>0&&(br.caveats=this._caveats.map(or=>{const xr={cid:zt(or._identifierBits)};return or._vidBits&&(xr.vid=rt.default.codec.base64.fromBits(or._vidBits,!0,!0),xr.cl=or._locationStr),xr})),br}_exportAsJSONObjectV2(){const br={v:2};return Pt(br,"s",Wt(this._signatureBits)),Pt(br,"i",Wt(this._identifierBits)),this._locationStr&&(br.l=this._locationStr),this._caveats&&this._caveats.length>0&&(br.c=this._caveats.map(or=>{const xr={};return Pt(xr,"i",Wt(or._identifierBits)),or._vidBits&&(Pt(xr,"v",Wt(or._vidBits)),xr.l=or._locationStr),xr})),br}_exportBinaryV1(){throw new Error("V1 binary export not supported")}_exportBinaryV2(){const br=new mt(200);return br.appendByte(2),this._locationStr&&Rt(br,bt,Ft(this._locationStr)),Rt(br,gt,Wt(this._identifierBits)),Rt(br,dt),this._caveats.forEach(function(or){or._locationStr&&Rt(br,bt,Ft(or._locationStr)),Rt(br,gt,Wt(or._identifierBits)),or._vidBits&&Rt(br,kt,Wt(or._vidBits)),Rt(br,dt)}),Rt(br,dt),Rt(br,pt,Wt(this._signatureBits)),br.bytes}exportBinary(){switch(this._version){case 1:return this._exportBinaryV1();case 2:return this._exportBinaryV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}}et.importMacaroon=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){const br=new St(wr),or=Vr(br);if(br.length!==0)throw new TypeError("extra data found at end of serialized macaroon");return or}if(Array.isArray(wr))throw new TypeError("cannot import an array of macaroons as a single macaroon");return _r(wr)},et.importMacaroons=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){if(wr.length===0)throw new TypeError("empty macaroon data");const br=new St(wr),or=[];do or.push(Vr(br));while(br.length>0);return or}return Array.isArray(wr)?wr.map(br=>_r(br)):[_r(wr)]};const _r=function(wr){return er(wr)?Jt(wr):Ar(wr)};function er(wr){return Bt(wr.signature)}const Jt=function(wr){const br=wr.caveats&&wr.caveats.map(or=>{const xr={identifierBytes:Ft(Ot(or.cid,"Caveat id")),locationStr:Mt(or.cl,"Caveat location")};return or.vid&&(xr.vidBytes=et.base64ToBytes(Ot(or.vid,"Caveat verification id"))),xr});return new ur({version:1,locationStr:Mt(wr.location,"Macaroon location"),identifierBytes:Ft(Ot(wr.identifier,"Macaroon identifier")),caveats:br,signatureBytes:lr(wr.signature)})},Ar=function(wr){if(wr.v!==2&&wr.v!==void 0)throw new Error(`Unsupported macaroon version ${wr.v}`);const br={version:2,signatureBytes:Er(wr,"s",!0),locationStr:Dt(Er(wr,"l",!1)),identifierBytes:Er(wr,"i",!0)};if(wr.c){if(!Array.isArray(wr.c))throw new Error("caveats field does not hold an array");br.caveats=wr.c.map(or=>({identifierBytes:Er(or,"i",!0),locationStr:Dt(Er(or,"l")),vidBytes:Er(or,"v",!1)}))}return new ur(br)};function Er(wr,br,or){if(wr.hasOwnProperty(br))return Ft(wr[br]);const xr=br+"64";if(wr.hasOwnProperty(xr))return et.base64ToBytes(wr[xr]);if(or)throw new Error("Expected key: "+br);return null}const Dr=function(wr){const br=wr.readByte();if(br!==2)throw new Error(`Only version 2 is supported, found version ${br}`);const or=Dt(At(wr,bt)),xr=Tt(wr,gt),Pr=[];for(Tt(wr,dt);!At(wr,dt);){const rr={locationStr:Dt(At(wr,bt)),identifierBytes:Tt(wr,gt),vidBytes:At(wr,kt)};Tt(wr,dt),Pr.push(rr)}const Or=Tt(wr,pt);if(wr.length!==0)throw new Error("unexpected extra data at end of macaroon");return new ur({version:br,locationStr:or,identifierBytes:xr,signatureBytes:Or,caveats:Pr})},Xr=function(wr){return 48<=wr&&wr<=58||97<=wr&&wr<=102},Vr=function(wr){if(wr.length===0)throw new Error("Empty macaroon data");const br=wr.peekByte();if(br===2)return Dr(wr);throw Xr(br)?new Error("Version 1 binary format not supported"):new Error("Cannot determine data format of binary-encoded macaroon")};et.newMacaroon=function({identifier:wr,location:br,rootKey:or,version:xr}){const Pr=ht(wr,"Macaroon identifier"),Or=ht(or,"Macaroon root key");return new ur({version:xr===void 0?2:xr,identifierBytes:Pr,locationStr:Mt(br,"Macaroon location"),signatureBytes:Wt(It(Lt(Ht(Or)),Ht(Pr)))})},et.dischargeMacaroon=function(wr,br,or,xr){const Pr=wr.signature,Or=[wr];let rr=0,gr=!1;const Ir=wr.location,Yt=ir=>{gr||(ir.bindToRoot(Pr),Or.push(ir),rr--,Vt(ir))},Ut=ir=>{gr||(xr(ir),gr=!0)},Vt=ir=>{let kr,$r;for($r=0;$ret.LATEST_VERSION)throw new dt(pt.version);if(pt.version&&(this.version=pt.version),st(typeof this.version=="number","Identifier version must be a number"),st(pt.paymentHash.length===32,`Expected 32-byte hash, instead got ${pt.paymentHash.length}`),this.paymentHash=pt.paymentHash,pt.tokenId)this.tokenId=pt.tokenId;else{const yt=(0,lt.default)();this.tokenId=ot.default.createHash("sha256").update(Buffer.from(yt)).digest()}return st(this.tokenId.length===et.TOKEN_ID_SIZE,"Token Id of unexpected size"),this}toString(){return this.toHex()}static fromString(pt){try{return new this().fromHex(pt)}catch{return new this().fromBase64(pt)}}write(pt){switch(pt.writeU16BE(this.version),this.version){case 0:return pt.writeHash(this.paymentHash),st(Buffer.isBuffer(this.tokenId)&&this.tokenId.length===et.TOKEN_ID_SIZE,`Token ID must be ${et.TOKEN_ID_SIZE}-byte hash`),pt.writeBytes(this.tokenId),this;default:throw new dt(this.version)}}read(pt){switch(this.version=pt.readU16BE(),this.version){case 0:return this.paymentHash=pt.readHash(),this.tokenId=pt.readBytes(et.TOKEN_ID_SIZE),this;default:throw new dt(this.version)}}}et.Identifier=bt;const gt=kt=>{const pt=ut.importMacaroon(kt);let yt=pt._exportAsJSONObjectV2().i;if(yt==null&&(yt=pt._exportAsJSONObjectV2().i64,yt==null))throw new Error("Problem parsing macaroon identifier");return yt};et.decodeIdentifierFromMacaroon=gt})(identifier$1);var caveat={};/*! + * assert.js - assertions for javascript + * Copyright (c) 2018, Christopher Jeffrey (MIT License). + * https://github.com/chjj/bsert + */class AssertionError extends Error{constructor(tt){typeof tt=="string"&&(tt={message:tt}),(tt===null||typeof tt!="object")&&(tt={});let rt=null,nt="fail",it=!!tt.generatedMessage;if(tt.message!=null&&(rt=toString$1(tt.message)),typeof tt.operator=="string"&&(nt=tt.operator),rt==null){if(nt==="fail")rt="Assertion failed.";else{const at=stringify$1(tt.actual),ot=stringify$1(tt.expected);rt=`${at} ${nt} ${ot}`}it=!0}super(rt);let st=this.constructor;typeof tt.stackStartFunction=="function"?st=tt.stackStartFunction:typeof tt.stackStartFn=="function"&&(st=tt.stackStartFn),this.type="AssertionError",this.name="AssertionError [ERR_ASSERTION]",this.code="ERR_ASSERTION",this.generatedMessage=it,this.actual=tt.actual,this.expected=tt.expected,this.operator=nt,Error.captureStackTrace&&Error.captureStackTrace(this,st)}}function assert$3(et,tt){if(!et){let rt=!1;if(arguments.length===0)tt="No value argument passed to `assert()`.",rt=!0;else if(tt==null)tt="Assertion failed.",rt=!0;else if(isError(tt))throw tt;throw new AssertionError({message:tt,actual:et,expected:!0,operator:"==",generatedMessage:rt,stackStartFn:assert$3})}}function equal(et,tt,rt){if(!Object.is(et,tt))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"strictEqual",stackStartFn:equal})}function notEqual(et,tt,rt){if(Object.is(et,tt))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"notStrictEqual",stackStartFn:notEqual})}function fail(et){let tt=!1;throw isError(et)?et:(et==null&&(et="Assertion failed.",tt=!0),new AssertionError({message:et,actual:!1,expected:!0,operator:"fail",generatedMessage:tt,stackStartFn:fail}))}function throws(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;enforce(typeof et=="function","func","function");try{et()}catch(st){nt=!0,it=st}if(!nt){let st=!1;throw rt==null&&(rt="Missing expected exception.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"throws",generatedMessage:st,stackStartFn:throws})}if(!testError(it,tt,rt,throws))throw it}function doesNotThrow(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;enforce(typeof et=="function","func","function");try{et()}catch(st){nt=!0,it=st}if(nt){if(testError(it,tt,rt,doesNotThrow)){let st=!1;throw rt==null&&(rt="Got unwanted exception.",st=!0),new AssertionError({message:rt,actual:it,expected:tt,operator:"doesNotThrow",generatedMessage:st,stackStartFn:doesNotThrow})}throw it}}async function rejects(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;typeof et!="function"&&enforce(isPromise(et),"func","promise");try{isPromise(et)?await et:await et()}catch(st){nt=!0,it=st}if(!nt){let st=!1;throw rt==null&&(rt="Missing expected rejection.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"rejects",generatedMessage:st,stackStartFn:rejects})}if(!testError(it,tt,rt,rejects))throw it}async function doesNotReject(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;typeof et!="function"&&enforce(isPromise(et),"func","promise");try{isPromise(et)?await et:await et()}catch(st){nt=!0,it=st}if(nt){if(testError(it,tt,rt,doesNotReject)){let st=!1;throw rt==null&&(rt="Got unwanted rejection.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"doesNotReject",generatedMessage:st,stackStartFn:doesNotReject})}throw it}}function ifError(et){if(et!=null){let tt="ifError got unwanted exception: ";throw typeof et=="object"&&typeof et.message=="string"?et.message.length===0&&et.constructor?tt+=et.constructor.name:tt+=et.message:tt+=stringify$1(et),new AssertionError({message:tt,actual:et,expected:null,operator:"ifError",generatedMessage:!0,stackStartFn:ifError})}}function deepEqual$1(et,tt,rt){if(!isDeepEqual(et,tt,!1))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"deepStrictEqual",stackStartFn:deepEqual$1})}function notDeepEqual(et,tt,rt){if(isDeepEqual(et,tt,!0))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"notDeepStrictEqual",stackStartFn:notDeepEqual})}function bufferEqual(et,tt,rt,nt){if(isEncoding(rt)||(nt=rt,rt=null),rt==null&&(rt="hex"),tt=bufferize(et,tt,rt),enforce(isBuffer$3(et),"actual","buffer"),enforce(isBuffer$3(tt),"expected","buffer"),et!==tt&&!et.equals(tt))throw isError(nt)?nt:new AssertionError({message:nt,actual:et.toString(rt),expected:tt.toString(rt),operator:"bufferEqual",stackStartFn:bufferEqual})}function notBufferEqual(et,tt,rt,nt){if(isEncoding(rt)||(nt=rt,rt=null),rt==null&&(rt="hex"),tt=bufferize(et,tt,rt),enforce(isBuffer$3(et),"actual","buffer"),enforce(isBuffer$3(tt),"expected","buffer"),et===tt||et.equals(tt))throw isError(nt)?nt:new AssertionError({message:nt,actual:et.toString(rt),expected:tt.toString(rt),operator:"notBufferEqual",stackStartFn:notBufferEqual})}function enforce(et,tt,rt){if(!et){let nt;tt==null?nt="Invalid type for parameter.":rt==null?nt=`Invalid type for "${tt}".`:nt=`"${tt}" must be a(n) ${rt}.`;const it=new TypeError(nt);throw Error.captureStackTrace&&Error.captureStackTrace(it,enforce),it}}function range$3(et,tt){if(!et){const rt=tt!=null?`"${tt}" is out of range.`:"Parameter is out of range.",nt=new RangeError(rt);throw Error.captureStackTrace&&Error.captureStackTrace(nt,range$3),nt}}function stringify$1(et){switch(typeof et){case"undefined":return"undefined";case"object":return et===null?"null":`[${objectName(et)}]`;case"boolean":return`${et}`;case"number":return`${et}`;case"string":return et.length>80&&(et=`${et.substring(0,77)}...`),JSON.stringify(et);case"symbol":return tryString(et);case"function":return`[${funcName(et)}]`;case"bigint":return`${et}n`;default:return`[${typeof et}]`}}function toString$1(et){return typeof et=="string"?et:isError(et)?tryString(et):stringify$1(et)}function tryString(et){try{return String(et)}catch{return"Object"}}function testError(et,tt,rt,nt){if(tt==null)return!0;if(isRegExp(tt))return tt.test(et);if(typeof tt!="function"){if(nt===doesNotThrow||nt===doesNotReject)throw new TypeError('"expected" must not be an object.');if(typeof tt!="object")throw new TypeError('"expected" must be an object.');let it=!1;if(rt==null&&(rt=`Missing expected ${nt===rejects?"rejection":"exception"}.`,it=!0),et==null||typeof et!="object")throw new AssertionError({actual:et,expected:tt,message:rt,operator:nt.name,generatedMessage:it,stackStartFn:nt});const st=Object.keys(tt);if(isError(tt)&&st.push("name","message"),st.length===0)throw new TypeError('"expected" may not be an empty object.');for(const at of st){const ot=tt[at],lt=et[at];if(!(typeof lt=="string"&&isRegExp(ot)&&ot.test(lt))&&!(at in et&&isDeepEqual(lt,ot,!1)))throw new AssertionError({actual:et,expected:tt,message:rt,operator:nt.name,generatedMessage:it,stackStartFn:nt})}return!0}return tt.prototype!==void 0&&et instanceof tt?!0:Error.isPrototypeOf(tt)?!1:tt.call({},et)===!0}function isDeepEqual(et,tt,rt){try{return compare(et,tt,null)}catch{return rt}}function compare(et,tt,rt){if(Object.is(et,tt))return!0;if(!isObject$9(et)||!isObject$9(tt)||objectString(et)!==objectString(tt)||Object.getPrototypeOf(et)!==Object.getPrototypeOf(tt))return!1;if(isBuffer$3(et)&&isBuffer$3(tt))return et.equals(tt);if(isDate(et))return Object.is(et.getTime(),tt.getTime());if(isRegExp(et))return et.source===tt.source&&et.global===tt.global&&et.multiline===tt.multiline&&et.lastIndex===tt.lastIndex&&et.ignoreCase===tt.ignoreCase;if(isError(et)&&et.message!==tt.message)return!1;if(isArrayBuffer(et)&&(et=new Uint8Array(et),tt=new Uint8Array(tt)),isView$2(et)&&!isBuffer$3(et)){if(isBuffer$3(tt))return!1;const it=new Uint8Array(et.buffer),st=new Uint8Array(tt.buffer);if(it.length!==st.length)return!1;for(let at=0;at>>1?null:it}return tt}assert$3.AssertionError=AssertionError;assert$3.assert=assert$3;assert$3.strict=assert$3;assert$3.ok=assert$3;assert$3.equal=equal;assert$3.notEqual=notEqual;assert$3.strictEqual=equal;assert$3.notStrictEqual=notEqual;assert$3.fail=fail;assert$3.throws=throws;assert$3.doesNotThrow=doesNotThrow;assert$3.rejects=rejects;assert$3.doesNotReject=doesNotReject;assert$3.ifError=ifError;assert$3.deepEqual=deepEqual$1;assert$3.notDeepEqual=notDeepEqual;assert$3.deepStrictEqual=deepEqual$1;assert$3.notDeepStrictEqual=notDeepEqual;assert$3.bufferEqual=bufferEqual;assert$3.notBufferEqual=notBufferEqual;assert$3.enforce=enforce;assert$3.range=range$3;var assert_1=assert$3,__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding$1(tt,et,rt);return __setModuleDefault$1(tt,et),tt},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(caveat,"__esModule",{value:!0});caveat.verifyCaveats=caveat.hasCaveat=caveat.Caveat=caveat.ErrInvalidCaveat=void 0;const bsert_1=__importDefault(assert_1),Macaroon$1=__importStar$1(macaroon$1);class ErrInvalidCaveat extends Error{constructor(...tt){super(...tt),Error.captureStackTrace&&Error.captureStackTrace(this,ErrInvalidCaveat),this.name="ErrInvalidCaveat",this.message='Caveat must be of the form "condition[<,=,>]value"'}}caveat.ErrInvalidCaveat=ErrInvalidCaveat;const validComp=new Set(["<",">","="]);class Caveat{constructor(tt){this.condition="",this.value="",this.comp="=",tt&&this.fromOptions(tt)}fromOptions(tt){if((0,bsert_1.default)(tt,"Data required to create new caveat"),(0,bsert_1.default)(typeof tt.condition=="string"&&tt.condition.length,"Require a condition"),this.condition=tt.condition,tt.value.toString(),this.value=tt.value,tt.comp){if(!validComp.has(tt.comp))throw new ErrInvalidCaveat;this.comp=tt.comp}return this}encode(){return`${this.condition}${this.comp}${this.value}`}static decode(tt){let rt;for(let at=0;at{try{if(at.i!=null){const ot=Caveat.decode(at.i);it===ot.condition&&(st=ot.value)}}catch{}}),st||!1}caveat.hasCaveat=hasCaveat;function verifyCaveats(et,tt,rt={}){if(tt)Array.isArray(tt)||(tt=[tt]);else return!0;const nt=new Map;for(const st of tt)nt.set(st.condition,st);const it=new Map;for(const st of et){const at=st.condition;if(!nt.has(at))continue;it.has(at)||it.set(at,[]);const ot=it.get(at);ot.push(st),it.set(at,ot)}for(const[st,at]of it){const ot=nt.get(st);for(let lt=0;lt>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk$1(et){for(var tt=1,rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep$1(tt)^nt>>5}for(tt=polymodStep$1(tt),rt=0;rtrt)throw new TypeError("Exceeds length limit");et=et.toLowerCase();var nt=prefixChk$1(et);if(typeof nt=="string")throw new Error(nt);for(var it=et+"1",st=0;st>5)throw new Error("Non 5-bit word");nt=polymodStep$1(nt)^at,it+=ALPHABET$2.charAt(at)}for(st=0;st<6;++st)nt=polymodStep$1(nt);for(nt^=1,st=0;st<6;++st){var ot=nt>>(5-st)*5&31;it+=ALPHABET$2.charAt(ot)}return it}function __decode(et,tt){if(tt=tt||90,et.length<8)return et+" too short";if(et.length>tt)return"Exceeds length limit";var rt=et.toLowerCase(),nt=et.toUpperCase();if(et!==rt&&et!==nt)return"Mixed-case string "+et;et=rt;var it=et.lastIndexOf("1");if(it===-1)return"No separator character for "+et;if(it===0)return"Missing prefix for "+et;var st=et.slice(0,it),at=et.slice(it+1);if(at.length<6)return"Data too short";var ot=prefixChk$1(st);if(typeof ot=="string")return ot;for(var lt=[],ut=0;ut=at.length)&<.push(bt)}return ot!==1?"Invalid checksum for "+et:{prefix:st,words:lt}}function decodeUnsafe(){var et=__decode.apply(null,arguments);if(typeof et=="object")return et}function decode$n(et){var tt=__decode.apply(null,arguments);if(typeof tt=="object")return tt;throw new Error(tt)}function convert$4(et,tt,rt,nt){for(var it=0,st=0,at=(1<=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<new Uint8Array(rt),tt){return typeof et=="function"&&(et=et(tt)),isUint8Array("output",et,tt),et}function toTypeString(et){return Object.prototype.toString.call(et).slice(8,-1)}var lib$1=et=>({contextRandomize(tt){switch(assert$2(tt===null||tt instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),tt!==null&&isUint8Array("seed",tt,32),et.contextRandomize(tt)){case 1:throw new Error(errors$2.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(tt){return isUint8Array("private key",tt,32),et.privateKeyVerify(tt)===0},privateKeyNegate(tt){switch(isUint8Array("private key",tt,32),et.privateKeyNegate(tt)){case 0:return tt;case 1:throw new Error(errors$2.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(tt,rt){switch(isUint8Array("private key",tt,32),isUint8Array("tweak",rt,32),et.privateKeyTweakAdd(tt,rt)){case 0:return tt;case 1:throw new Error(errors$2.TWEAK_ADD)}},privateKeyTweakMul(tt,rt){switch(isUint8Array("private key",tt,32),isUint8Array("tweak",rt,32),et.privateKeyTweakMul(tt,rt)){case 0:return tt;case 1:throw new Error(errors$2.TWEAK_MUL)}},publicKeyVerify(tt){return isUint8Array("public key",tt,[33,65]),et.publicKeyVerify(tt)===0},publicKeyCreate(tt,rt=!0,nt){switch(isUint8Array("private key",tt,32),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyCreate(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.SECKEY_INVALID);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyConvert(tt,rt=!0,nt){switch(isUint8Array("public key",tt,[33,65]),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyConvert(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyNegate(tt,rt=!0,nt){switch(isUint8Array("public key",tt,[33,65]),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyNegate(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyCombine(tt,rt=!0,nt){assert$2(Array.isArray(tt),"Expected public keys to be an Array"),assert$2(tt.length>0,"Expected public keys array will have more than zero items");for(const it of tt)isUint8Array("public key",it,[33,65]);switch(isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyCombine(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_COMBINE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(tt,rt,nt=!0,it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("tweak",rt,32),isCompressed(nt),it=getAssertedOutput(it,nt?33:65),et.publicKeyTweakAdd(it,tt,rt)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_ADD)}},publicKeyTweakMul(tt,rt,nt=!0,it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("tweak",rt,32),isCompressed(nt),it=getAssertedOutput(it,nt?33:65),et.publicKeyTweakMul(it,tt,rt)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_MUL)}},signatureNormalize(tt){switch(isUint8Array("signature",tt,64),et.signatureNormalize(tt)){case 0:return tt;case 1:throw new Error(errors$2.SIG_PARSE)}},signatureExport(tt,rt){isUint8Array("signature",tt,64),rt=getAssertedOutput(rt,72);const nt={output:rt,outputlen:72};switch(et.signatureExport(nt,tt)){case 0:return rt.slice(0,nt.outputlen);case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},signatureImport(tt,rt){switch(isUint8Array("signature",tt),rt=getAssertedOutput(rt,64),et.signatureImport(rt,tt)){case 0:return rt;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaSign(tt,rt,nt={},it){isUint8Array("message",tt,32),isUint8Array("private key",rt,32),assert$2(toTypeString(nt)==="Object","Expected options to be an Object"),nt.data!==void 0&&isUint8Array("options.data",nt.data),nt.noncefn!==void 0&&assert$2(toTypeString(nt.noncefn)==="Function","Expected options.noncefn to be a Function"),it=getAssertedOutput(it,64);const st={signature:it,recid:null};switch(et.ecdsaSign(st,tt,rt,nt.data,nt.noncefn)){case 0:return st;case 1:throw new Error(errors$2.SIGN);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaVerify(tt,rt,nt){switch(isUint8Array("signature",tt,64),isUint8Array("message",rt,32),isUint8Array("public key",nt,[33,65]),et.ecdsaVerify(tt,rt,nt)){case 0:return!0;case 3:return!1;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.PUBKEY_PARSE)}},ecdsaRecover(tt,rt,nt,it=!0,st){switch(isUint8Array("signature",tt,64),assert$2(toTypeString(rt)==="Number"&&rt>=0&&rt<=3,"Expected recovery id to be a Number within interval [0, 3]"),isUint8Array("message",nt,32),isCompressed(it),st=getAssertedOutput(st,it?33:65),et.ecdsaRecover(st,tt,rt,nt)){case 0:return st;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.RECOVER);case 3:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdh(tt,rt,nt={},it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("private key",rt,32),assert$2(toTypeString(nt)==="Object","Expected options to be an Object"),nt.data!==void 0&&isUint8Array("options.data",nt.data),nt.hashfn!==void 0?(assert$2(toTypeString(nt.hashfn)==="Function","Expected options.hashfn to be a Function"),nt.xbuf!==void 0&&isUint8Array("options.xbuf",nt.xbuf,32),nt.ybuf!==void 0&&isUint8Array("options.ybuf",nt.ybuf,32),isUint8Array("output",it)):it=getAssertedOutput(it,32),et.ecdh(it,tt,rt,nt.data,nt.hashfn,nt.xbuf,nt.ybuf)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.ECDH)}}});const EC=requireElliptic().ec,ec=new EC("secp256k1"),ecparams=ec.curve,BN$1=ecparams.n.constructor;function loadCompressedPublicKey(et,tt){let rt=new BN$1(tt);if(rt.cmp(ecparams.p)>=0)return null;rt=rt.toRed(ecparams.red);let nt=rt.redSqr().redIMul(rt).redIAdd(ecparams.b).redSqrt();return et===3!==nt.isOdd()&&(nt=nt.redNeg()),ec.keyPair({pub:{x:rt,y:nt}})}function loadUncompressedPublicKey(et,tt,rt){let nt=new BN$1(tt),it=new BN$1(rt);if(nt.cmp(ecparams.p)>=0||it.cmp(ecparams.p)>=0||(nt=nt.toRed(ecparams.red),it=it.toRed(ecparams.red),(et===6||et===7)&&it.isOdd()!==(et===7)))return null;const st=nt.redSqr().redIMul(nt);return it.redSqr().redISub(st.redIAdd(ecparams.b)).isZero()?ec.keyPair({pub:{x:nt,y:it}}):null}function loadPublicKey(et){const tt=et[0];switch(tt){case 2:case 3:return et.length!==33?null:loadCompressedPublicKey(tt,et.subarray(1,33));case 4:case 6:case 7:return et.length!==65?null:loadUncompressedPublicKey(tt,et.subarray(1,33),et.subarray(33,65));default:return null}}function savePublicKey(et,tt){const rt=tt.encode(null,et.length===33);for(let nt=0;nt=0||(rt.iadd(new BN$1(et)),rt.cmp(ecparams.n)>=0&&rt.isub(ecparams.n),rt.isZero()))return 1;const nt=rt.toArrayLike(Uint8Array,"be",32);return et.set(nt),0},privateKeyTweakMul(et,tt){let rt=new BN$1(tt);if(rt.cmp(ecparams.n)>=0||rt.isZero())return 1;rt.imul(new BN$1(et)),rt.cmp(ecparams.n)>=0&&(rt=rt.umod(ecparams.n));const nt=rt.toArrayLike(Uint8Array,"be",32);return et.set(nt),0},publicKeyVerify(et){return loadPublicKey(et)===null?1:0},publicKeyCreate(et,tt){const rt=new BN$1(tt);if(rt.cmp(ecparams.n)>=0||rt.isZero())return 1;const nt=ec.keyFromPrivate(tt).getPublic();return savePublicKey(et,nt),0},publicKeyConvert(et,tt){const rt=loadPublicKey(tt);if(rt===null)return 1;const nt=rt.getPublic();return savePublicKey(et,nt),0},publicKeyNegate(et,tt){const rt=loadPublicKey(tt);if(rt===null)return 1;const nt=rt.getPublic();return nt.y=nt.y.redNeg(),savePublicKey(et,nt),0},publicKeyCombine(et,tt){const rt=new Array(tt.length);for(let it=0;it=0)return 2;const it=nt.getPublic().add(ecparams.g.mul(rt));return it.isInfinity()?2:(savePublicKey(et,it),0)},publicKeyTweakMul(et,tt,rt){const nt=loadPublicKey(tt);if(nt===null)return 1;if(rt=new BN$1(rt),rt.cmp(ecparams.n)>=0||rt.isZero())return 2;const it=nt.getPublic().mul(rt);return savePublicKey(et,it),0},signatureNormalize(et){const tt=new BN$1(et.subarray(0,32)),rt=new BN$1(et.subarray(32,64));return tt.cmp(ecparams.n)>=0||rt.cmp(ecparams.n)>=0?1:(rt.cmp(ec.nh)===1&&et.set(ecparams.n.sub(rt).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(et,tt){const rt=tt.subarray(0,32),nt=tt.subarray(32,64);if(new BN$1(rt).cmp(ecparams.n)>=0||new BN$1(nt).cmp(ecparams.n)>=0)return 1;const{output:it}=et;let st=it.subarray(4,4+33);st[0]=0,st.set(rt,1);let at=33,ot=0;for(;at>1&&st[ot]===0&&!(st[ot+1]&128);--at,++ot);if(st=st.subarray(ot),st[0]&128||at>1&&st[0]===0&&!(st[1]&128))return 1;let lt=it.subarray(6+33,6+33+33);lt[0]=0,lt.set(nt,1);let ut=33,dt=0;for(;ut>1&<[dt]===0&&!(lt[dt+1]&128);--ut,++dt);return lt=lt.subarray(dt),lt[0]&128||ut>1&<[0]===0&&!(lt[1]&128)?1:(et.outputlen=6+at+ut,it[0]=48,it[1]=et.outputlen-2,it[2]=2,it[3]=st.length,it.set(st,4),it[4+at]=2,it[5+at]=lt.length,it.set(lt,6+at),0)},signatureImport(et,tt){if(tt.length<8||tt.length>72||tt[0]!==48||tt[1]!==tt.length-2||tt[2]!==2)return 1;const rt=tt[3];if(rt===0||5+rt>=tt.length||tt[4+rt]!==2)return 1;const nt=tt[5+rt];if(nt===0||6+rt+nt!==tt.length||tt[4]&128||rt>1&&tt[4]===0&&!(tt[5]&128)||tt[rt+6]&128||nt>1&&tt[rt+6]===0&&!(tt[rt+7]&128))return 1;let it=tt.subarray(4,4+rt);if(it.length===33&&it[0]===0&&(it=it.subarray(1)),it.length>32)return 1;let st=tt.subarray(6+rt);if(st.length===33&&st[0]===0&&(st=st.slice(1)),st.length>32)throw new Error("S length is too long");let at=new BN$1(it);at.cmp(ecparams.n)>=0&&(at=new BN$1(0));let ot=new BN$1(tt.subarray(6+rt));return ot.cmp(ecparams.n)>=0&&(ot=new BN$1(0)),et.set(at.toArrayLike(Uint8Array,"be",32),0),et.set(ot.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(et,tt,rt,nt,it){if(it){const ot=it;it=lt=>{const ut=ot(tt,rt,null,nt,lt);if(!(ut instanceof Uint8Array&&ut.length===32))throw new Error("This is the way");return new BN$1(ut)}}const st=new BN$1(rt);if(st.cmp(ecparams.n)>=0||st.isZero())return 1;let at;try{at=ec.sign(tt,rt,{canonical:!0,k:it,pers:nt})}catch{return 1}return et.signature.set(at.r.toArrayLike(Uint8Array,"be",32),0),et.signature.set(at.s.toArrayLike(Uint8Array,"be",32),32),et.recid=at.recoveryParam,0},ecdsaVerify(et,tt,rt){const nt={r:et.subarray(0,32),s:et.subarray(32,64)},it=new BN$1(nt.r),st=new BN$1(nt.s);if(it.cmp(ecparams.n)>=0||st.cmp(ecparams.n)>=0)return 1;if(st.cmp(ec.nh)===1||it.isZero()||st.isZero())return 3;const at=loadPublicKey(rt);if(at===null)return 2;const ot=at.getPublic();return ec.verify(tt,nt,ot)?0:3},ecdsaRecover(et,tt,rt,nt){const it={r:tt.slice(0,32),s:tt.slice(32,64)},st=new BN$1(it.r),at=new BN$1(it.s);if(st.cmp(ecparams.n)>=0||at.cmp(ecparams.n)>=0)return 1;if(st.isZero()||at.isZero())return 2;let ot;try{ot=ec.recoverPubKey(nt,it,rt)}catch{return 2}return savePublicKey(et,ot),0},ecdh(et,tt,rt,nt,it,st,at){const ot=loadPublicKey(tt);if(ot===null)return 1;const lt=new BN$1(rt);if(lt.cmp(ecparams.n)>=0||lt.isZero())return 2;const ut=ot.getPublic().mul(lt);if(it===void 0){const dt=ut.encode(null,!0),bt=ec.hash().update(dt).digest();for(let gt=0;gt<32;++gt)et[gt]=bt[gt]}else{st||(st=new Uint8Array(32));const dt=ut.getX().toArray("be",32);for(let pt=0;pt<32;++pt)st[pt]=dt[pt];at||(at=new Uint8Array(32));const bt=ut.getY().toArray("be",32);for(let pt=0;pt<32;++pt)at[pt]=bt[pt];const gt=it(st,at,nt);if(!(gt instanceof Uint8Array&>.length===et.length))return 2;et.set(gt)}return 0}},elliptic=lib$1(elliptic$1),src$1={},address={},networks$1={};Object.defineProperty(networks$1,"__esModule",{value:!0});networks$1.testnet=networks$1.regtest=networks$1.bitcoin=void 0;networks$1.bitcoin={messagePrefix:`Bitcoin Signed Message: +`,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128};networks$1.regtest={messagePrefix:`Bitcoin Signed Message: +`,bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};networks$1.testnet={messagePrefix:`Bitcoin Signed Message: +`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};var payments$3={},embed={},script={},bip66$1={};Object.defineProperty(bip66$1,"__esModule",{value:!0});bip66$1.encode=bip66$1.decode=bip66$1.check=void 0;function check$d(et){if(et.length<8||et.length>72||et[0]!==48||et[1]!==et.length-2||et[2]!==2)return!1;const tt=et[3];if(tt===0||5+tt>=et.length||et[4+tt]!==2)return!1;const rt=et[5+tt];return!(rt===0||6+tt+rt!==et.length||et[4]&128||tt>1&&et[4]===0&&!(et[5]&128)||et[tt+6]&128||rt>1&&et[tt+6]===0&&!(et[tt+7]&128))}bip66$1.check=check$d;function decode$m(et){if(et.length<8)throw new Error("DER sequence length is too short");if(et.length>72)throw new Error("DER sequence length is too long");if(et[0]!==48)throw new Error("Expected DER sequence");if(et[1]!==et.length-2)throw new Error("DER sequence length is invalid");if(et[2]!==2)throw new Error("Expected DER integer");const tt=et[3];if(tt===0)throw new Error("R length is zero");if(5+tt>=et.length)throw new Error("R length is too long");if(et[4+tt]!==2)throw new Error("Expected DER integer (2)");const rt=et[5+tt];if(rt===0)throw new Error("S length is zero");if(6+tt+rt!==et.length)throw new Error("S length is invalid");if(et[4]&128)throw new Error("R value is negative");if(tt>1&&et[4]===0&&!(et[5]&128))throw new Error("R value excessively padded");if(et[tt+6]&128)throw new Error("S value is negative");if(rt>1&&et[tt+6]===0&&!(et[tt+7]&128))throw new Error("S value excessively padded");return{r:et.slice(4,4+tt),s:et.slice(6+tt)}}bip66$1.decode=decode$m;function encode$n(et,tt){const rt=et.length,nt=tt.length;if(rt===0)throw new Error("R length is zero");if(nt===0)throw new Error("S length is zero");if(rt>33)throw new Error("R length is too long");if(nt>33)throw new Error("S length is too long");if(et[0]&128)throw new Error("R value is negative");if(tt[0]&128)throw new Error("S value is negative");if(rt>1&&et[0]===0&&!(et[1]&128))throw new Error("R value excessively padded");if(nt>1&&tt[0]===0&&!(tt[1]&128))throw new Error("S value excessively padded");const it=Buffer.allocUnsafe(6+rt+nt);return it[0]=48,it[1]=it.length-2,it[2]=2,it[3]=et.length,et.copy(it,4),it[4+rt]=2,it[5+rt]=tt.length,tt.copy(it,6+rt),it}bip66$1.encode=encode$n;var ops={};Object.defineProperty(ops,"__esModule",{value:!0});ops.REVERSE_OPS=ops.OPS=void 0;const OPS$8={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_CHECKSIGADD:186,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};ops.OPS=OPS$8;const REVERSE_OPS={};ops.REVERSE_OPS=REVERSE_OPS;for(const et of Object.keys(OPS$8)){const tt=OPS$8[et];REVERSE_OPS[tt]=et}var push_data={};Object.defineProperty(push_data,"__esModule",{value:!0});push_data.decode=push_data.encode=push_data.encodingLength=void 0;const ops_1=ops;function encodingLength$2(et){return etet.length)return null;nt=et.readUInt8(tt+1),it=2}else if(rt===ops_1.OPS.OP_PUSHDATA2){if(tt+3>et.length)return null;nt=et.readUInt16LE(tt+1),it=3}else{if(tt+5>et.length)return null;if(rt!==ops_1.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");nt=et.readUInt32LE(tt+1),it=5}return{opcode:rt,number:nt,size:it}}push_data.decode=decode$l;var script_number={};Object.defineProperty(script_number,"__esModule",{value:!0});script_number.encode=script_number.decode=void 0;function decode$k(et,tt,rt){tt=tt||4,rt=rt===void 0?!0:rt;const nt=et.length;if(nt===0)return 0;if(nt>tt)throw new TypeError("Script number overflow");if(rt&&!(et[nt-1]&127)&&(nt<=1||!(et[nt-2]&128)))throw new Error("Non-minimally encoded script number");if(nt===5){const st=et.readUInt32LE(0),at=et.readUInt8(4);return at&128?-((at&-129)*4294967296+st):at*4294967296+st}let it=0;for(let st=0;st2147483647?5:et>8388607?4:et>32767?3:et>127?2:et>0?1:0}function encode$l(et){let tt=Math.abs(et);const rt=scriptNumSize(tt),nt=Buffer.allocUnsafe(rt),it=et<0;for(let st=0;st>=8;return nt[rt-1]&128?nt.writeUInt8(it?128:0,rt-1):it&&(nt[rt-1]|=128),nt}script_number.encode=encode$l;var script_signature={},types$6={},types$5={Array:function(et){return et!=null&&et.constructor===Array},Boolean:function(et){return typeof et=="boolean"},Function:function(et){return typeof et=="function"},Nil:function(et){return et==null},Number:function(et){return typeof et=="number"},Object:function(et){return typeof et=="object"},String:function(et){return typeof et=="string"},"":function(){return!0}};types$5.Null=types$5.Nil;for(var typeName$1 in types$5)types$5[typeName$1].toJSON=(function(et){return et}).bind(null,typeName$1);var native$1=types$5,native=native$1;function getTypeName(et){return et.name||et.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName$1(et){return native.Nil(et)?"":getTypeName(et.constructor)}function getValue$3(et){return native.Function(et)?"":native.String(et)?JSON.stringify(et):et&&native.Object(et)?"":et}function captureStackTrace(et,tt){Error.captureStackTrace&&Error.captureStackTrace(et,tt)}function tfJSON$1(et){return native.Function(et)?et.toJSON?et.toJSON():getTypeName(et):native.Array(et)?"Array":et&&native.Object(et)?"Object":et!==void 0?et:""}function tfErrorString(et,tt,rt){var nt=getValue$3(tt);return"Expected "+tfJSON$1(et)+", got"+(rt!==""?" "+rt:"")+(nt!==""?" "+nt:"")}function TfTypeError$1(et,tt,rt){rt=rt||getValueTypeName$1(tt),this.message=tfErrorString(et,tt,rt),captureStackTrace(this,TfTypeError$1),this.__type=et,this.__value=tt,this.__valueTypeName=rt}TfTypeError$1.prototype=Object.create(Error.prototype);TfTypeError$1.prototype.constructor=TfTypeError$1;function tfPropertyErrorString(et,tt,rt,nt,it){var st='" of type ';return tt==="key"&&(st='" with key type '),tfErrorString('property "'+tfJSON$1(rt)+st+tfJSON$1(et),nt,it)}function TfPropertyTypeError$1(et,tt,rt,nt,it){et?(it=it||getValueTypeName$1(nt),this.message=tfPropertyErrorString(et,rt,tt,nt,it)):this.message='Unexpected property "'+tt+'"',captureStackTrace(this,TfTypeError$1),this.__label=rt,this.__property=tt,this.__type=et,this.__value=nt,this.__valueTypeName=it}TfPropertyTypeError$1.prototype=Object.create(Error.prototype);TfPropertyTypeError$1.prototype.constructor=TfTypeError$1;function tfCustomError(et,tt){return new TfTypeError$1(et,{},tt)}function tfSubError$1(et,tt,rt){return et instanceof TfPropertyTypeError$1?(tt=tt+"."+et.__property,et=new TfPropertyTypeError$1(et.__type,tt,et.__label,et.__value,et.__valueTypeName)):et instanceof TfTypeError$1&&(et=new TfPropertyTypeError$1(et.__type,tt,rt,et.__value,et.__valueTypeName)),captureStackTrace(et),et}var errors$1={TfTypeError:TfTypeError$1,TfPropertyTypeError:TfPropertyTypeError$1,tfCustomError,tfSubError:tfSubError$1,tfJSON:tfJSON$1,getValueTypeName:getValueTypeName$1},extra,hasRequiredExtra;function requireExtra(){if(hasRequiredExtra)return extra;hasRequiredExtra=1;var et=native$1,tt=errors$1;function rt(Dt){return Buffer.isBuffer(Dt)}function nt(Dt){return typeof Dt=="string"&&/^([0-9a-f]{2})+$/i.test(Dt)}function it(Dt,zt){var Ht=Dt.toJSON();function Wt(lr){if(!Dt(lr))return!1;if(lr.length===zt)return!0;throw tt.tfCustomError(Ht+"(Length: "+zt+")",Ht+"(Length: "+lr.length+")")}return Wt.toJSON=function(){return Ht},Wt}var st=it.bind(null,et.Array),at=it.bind(null,rt),ot=it.bind(null,nt),lt=it.bind(null,et.String);function ut(Dt,zt,Ht){Ht=Ht||et.Number;function Wt(lr,qt){return Ht(lr,qt)&&lr>Dt&&lr>24===Dt}function kt(Dt){return Dt<<16>>16===Dt}function pt(Dt){return(Dt|0)===Dt}function yt(Dt){return typeof Dt=="number"&&Dt>=-dt&&Dt<=dt&&Math.floor(Dt)===Dt}function $t(Dt){return(Dt&255)===Dt}function mt(Dt){return(Dt&65535)===Dt}function wt(Dt){return Dt>>>0===Dt}function St(Dt){return typeof Dt=="number"&&Dt>=0&&Dt<=dt&&Math.floor(Dt)===Dt}var Bt={ArrayN:st,Buffer:rt,BufferN:at,Finite:bt,Hex:nt,HexN:ot,Int8:gt,Int16:kt,Int32:pt,Int53:yt,Range:ut,StringN:lt,UInt8:$t,UInt16:mt,UInt32:wt,UInt53:St};for(var Ft in Bt)Bt[Ft].toJSON=(function(Dt){return Dt}).bind(null,Ft);return extra=Bt,extra}var ERRORS=errors$1,NATIVE=native$1,tfJSON=ERRORS.tfJSON,TfTypeError=ERRORS.TfTypeError,TfPropertyTypeError=ERRORS.TfPropertyTypeError,tfSubError=ERRORS.tfSubError,getValueTypeName=ERRORS.getValueTypeName,TYPES={arrayOf:function(tt,rt){tt=compile$1(tt),rt=rt||{};function nt(it,st){return!NATIVE.Array(it)||NATIVE.Nil(it)||rt.minLength!==void 0&&it.lengthrt.maxLength||rt.length!==void 0&&it.length!==rt.length?!1:it.every(function(at,ot){try{return typeforce$4(tt,at,st)}catch(lt){throw tfSubError(lt,ot)}})}return nt.toJSON=function(){var it="["+tfJSON(tt)+"]";return rt.length!==void 0?it+="{"+rt.length+"}":(rt.minLength!==void 0||rt.maxLength!==void 0)&&(it+="{"+(rt.minLength===void 0?0:rt.minLength)+","+(rt.maxLength===void 0?1/0:rt.maxLength)+"}"),it},nt},maybe:function et(tt){tt=compile$1(tt);function rt(nt,it){return NATIVE.Nil(nt)||tt(nt,it,et)}return rt.toJSON=function(){return"?"+tfJSON(tt)},rt},map:function(tt,rt){tt=compile$1(tt),rt&&(rt=compile$1(rt));function nt(it,st){if(!NATIVE.Object(it)||NATIVE.Nil(it))return!1;for(var at in it){try{rt&&typeforce$4(rt,at,st)}catch(lt){throw tfSubError(lt,at,"key")}try{var ot=it[at];typeforce$4(tt,ot,st)}catch(lt){throw tfSubError(lt,at)}}return!0}return rt?nt.toJSON=function(){return"{"+tfJSON(rt)+": "+tfJSON(tt)+"}"}:nt.toJSON=function(){return"{"+tfJSON(tt)+"}"},nt},object:function(tt){var rt={};for(var nt in tt)rt[nt]=compile$1(tt[nt]);function it(st,at){if(!NATIVE.Object(st)||NATIVE.Nil(st))return!1;var ot;try{for(ot in rt){var lt=rt[ot],ut=st[ot];typeforce$4(lt,ut,at)}}catch(dt){throw tfSubError(dt,ot)}if(at){for(ot in st)if(!rt[ot])throw new TfPropertyTypeError(void 0,ot)}return!0}return it.toJSON=function(){return tfJSON(rt)},it},anyOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.some(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join("|")},rt},allOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.every(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join(" & ")},rt},quacksLike:function(tt){function rt(nt){return tt===getValueTypeName(nt)}return rt.toJSON=function(){return tt},rt},tuple:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return NATIVE.Nil(nt)||NATIVE.Nil(nt.length)||it&&nt.length!==tt.length?!1:tt.every(function(st,at){try{return typeforce$4(st,nt[at],it)}catch(ot){throw tfSubError(ot,at)}})}return rt.toJSON=function(){return"("+tt.map(tfJSON).join(", ")+")"},rt},value:function(tt){function rt(nt){return nt===tt}return rt.toJSON=function(){return tt},rt}};TYPES.oneOf=TYPES.anyOf;function compile$1(et){if(NATIVE.String(et))return et[0]==="?"?TYPES.maybe(et.slice(1)):NATIVE[et]||TYPES.quacksLike(et);if(et&&NATIVE.Object(et)){if(NATIVE.Array(et)){if(et.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return TYPES.arrayOf(et[0])}return TYPES.object(et)}else if(NATIVE.Function(et))return et;return TYPES.value(et)}function typeforce$4(et,tt,rt,nt){if(NATIVE.Function(et)){if(et(tt,rt))return!0;throw new TfTypeError(nt||et,tt)}return typeforce$4(compile$1(et),tt,rt)}for(var typeName in NATIVE)typeforce$4[typeName]=NATIVE[typeName];for(typeName in TYPES)typeforce$4[typeName]=TYPES[typeName];var EXTRA=requireExtra();for(typeName in EXTRA)typeforce$4[typeName]=EXTRA[typeName];typeforce$4.compile=compile$1;typeforce$4.TfTypeError=TfTypeError;typeforce$4.TfPropertyTypeError=TfPropertyTypeError;var typeforce_1=typeforce$4;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.oneOf=et.Null=et.BufferN=et.Function=et.UInt32=et.UInt8=et.tuple=et.maybe=et.Hex=et.Buffer=et.String=et.Boolean=et.Array=et.Number=et.Hash256bit=et.Hash160bit=et.Buffer256bit=et.isTaptree=et.isTapleaf=et.TAPLEAF_VERSION_MASK=et.Network=et.ECPoint=et.Satoshi=et.Signer=et.BIP32Path=et.UInt31=et.isPoint=et.typeforce=void 0;const tt=buffer$2;et.typeforce=typeforce_1;const rt=tt.Buffer.alloc(32,0),nt=tt.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");function it(kt){if(!tt.Buffer.isBuffer(kt)||kt.length<33)return!1;const pt=kt[0],yt=kt.slice(1,33);if(yt.compare(rt)===0||yt.compare(nt)>=0)return!1;if((pt===2||pt===3)&&kt.length===33)return!0;const $t=kt.slice(33);return $t.compare(rt)===0||$t.compare(nt)>=0?!1:pt===4&&kt.length===65}et.isPoint=it;const st=Math.pow(2,31)-1;function at(kt){return et.typeforce.UInt32(kt)&&kt<=st}et.UInt31=at;function ot(kt){return et.typeforce.String(kt)&&!!kt.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}et.BIP32Path=ot,ot.toJSON=()=>"BIP32 derivation path";function lt(kt){return(et.typeforce.Buffer(kt.publicKey)||typeof kt.getPublicKey=="function")&&typeof kt.sign=="function"}et.Signer=lt;const ut=21*1e14;function dt(kt){return et.typeforce.UInt53(kt)&&kt<=ut}et.Satoshi=dt,et.ECPoint=et.typeforce.quacksLike("Point"),et.Network=et.typeforce.compile({messagePrefix:et.typeforce.oneOf(et.typeforce.Buffer,et.typeforce.String),bip32:{public:et.typeforce.UInt32,private:et.typeforce.UInt32},pubKeyHash:et.typeforce.UInt8,scriptHash:et.typeforce.UInt8,wif:et.typeforce.UInt8}),et.TAPLEAF_VERSION_MASK=254;function bt(kt){return!kt||!("output"in kt)||!tt.Buffer.isBuffer(kt.output)?!1:kt.version!==void 0?(kt.version&et.TAPLEAF_VERSION_MASK)===kt.version:!0}et.isTapleaf=bt;function gt(kt){return(0,et.Array)(kt)?kt.length!==2?!1:kt.every(pt=>gt(pt)):bt(kt)}et.isTaptree=gt,et.Buffer256bit=et.typeforce.BufferN(32),et.Hash160bit=et.typeforce.BufferN(20),et.Hash256bit=et.typeforce.BufferN(32),et.Number=et.typeforce.Number,et.Array=et.typeforce.Array,et.Boolean=et.typeforce.Boolean,et.String=et.typeforce.String,et.Buffer=et.typeforce.Buffer,et.Hex=et.typeforce.Hex,et.maybe=et.typeforce.maybe,et.tuple=et.typeforce.tuple,et.UInt8=et.typeforce.UInt8,et.UInt32=et.typeforce.UInt32,et.Function=et.typeforce.Function,et.BufferN=et.typeforce.BufferN,et.Null=et.typeforce.Null,et.oneOf=et.typeforce.oneOf})(types$6);Object.defineProperty(script_signature,"__esModule",{value:!0});script_signature.encode=script_signature.decode=void 0;const bip66=bip66$1,types$4=types$6,{typeforce:typeforce$3}=types$4,ZERO$1=Buffer.alloc(1,0);function toDER(et){let tt=0;for(;et[tt]===0;)++tt;return tt===et.length?ZERO$1:(et=et.slice(tt),et[0]&128?Buffer.concat([ZERO$1,et],1+et.length):et)}function fromDER(et){et[0]===0&&(et=et.slice(1));const tt=Buffer.alloc(32,0),rt=Math.max(0,32-et.length);return et.copy(tt,rt),tt}function decode$j(et){const tt=et.readUInt8(et.length-1),rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=bip66.decode(et.slice(0,-1)),it=fromDER(nt.r),st=fromDER(nt.s);return{signature:Buffer.concat([it,st],64),hashType:tt}}script_signature.decode=decode$j;function encode$k(et,tt){typeforce$3({signature:types$4.BufferN(64),hashType:types$4.UInt8},{signature:et,hashType:tt});const rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=Buffer.allocUnsafe(1);nt.writeUInt8(tt,0);const it=toDER(et.slice(0,32)),st=toDER(et.slice(32,64));return Buffer.concat([bip66.encode(it,st),nt])}script_signature.encode=encode$k;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.signature=et.number=et.isCanonicalScriptSignature=et.isDefinedHashType=et.isCanonicalPubKey=et.toStack=et.fromASM=et.toASM=et.decompile=et.compile=et.countNonPushOnlyOPs=et.isPushOnly=et.OPS=void 0;const tt=bip66$1,rt=ops;Object.defineProperty(et,"OPS",{enumerable:!0,get:function(){return rt.OPS}});const nt=push_data,it=script_number,st=script_signature,at=types$6,{typeforce:ot}=at,lt=rt.OPS.OP_RESERVED;function ut(Wt){return at.Number(Wt)&&(Wt===rt.OPS.OP_0||Wt>=rt.OPS.OP_1&&Wt<=rt.OPS.OP_16||Wt===rt.OPS.OP_1NEGATE)}function dt(Wt){return at.Buffer(Wt)||ut(Wt)}function bt(Wt){return at.Array(Wt)&&Wt.every(dt)}et.isPushOnly=bt;function gt(Wt){return Wt.length-Wt.filter(dt).length}et.countNonPushOnlyOPs=gt;function kt(Wt){if(Wt.length===0)return rt.OPS.OP_0;if(Wt.length===1){if(Wt[0]>=1&&Wt[0]<=16)return lt+Wt[0];if(Wt[0]===129)return rt.OPS.OP_1NEGATE}}function pt(Wt){return Buffer.isBuffer(Wt)}function yt(Wt){return at.Array(Wt)}function $t(Wt){return Buffer.isBuffer(Wt)}function mt(Wt){if(pt(Wt))return Wt;ot(at.Array,Wt);const lr=Wt.reduce((Mt,ht)=>$t(ht)?ht.length===1&&kt(ht)!==void 0?Mt+1:Mt+nt.encodingLength(ht.length)+ht.length:Mt+1,0),qt=Buffer.allocUnsafe(lr);let Ot=0;if(Wt.forEach(Mt=>{if($t(Mt)){const ht=kt(Mt);if(ht!==void 0){qt.writeUInt8(ht,Ot),Ot+=1;return}Ot+=nt.encode(qt,Mt.length,Ot),Mt.copy(qt,Ot),Ot+=Mt.length}else qt.writeUInt8(Mt,Ot),Ot+=1}),Ot!==qt.length)throw new Error("Could not decode chunks");return qt}et.compile=mt;function wt(Wt){if(yt(Wt))return Wt;ot(at.Buffer,Wt);const lr=[];let qt=0;for(;qtrt.OPS.OP_0&&Ot<=rt.OPS.OP_PUSHDATA4){const Mt=nt.decode(Wt,qt);if(Mt===null||(qt+=Mt.size,qt+Mt.number>Wt.length))return null;const ht=Wt.slice(qt,qt+Mt.number);qt+=Mt.number;const Et=kt(ht);Et!==void 0?lr.push(Et):lr.push(ht)}else lr.push(Ot),qt+=1}return lr}et.decompile=wt;function St(Wt){return pt(Wt)&&(Wt=wt(Wt)),Wt.map(lr=>{if($t(lr)){const qt=kt(lr);if(qt===void 0)return lr.toString("hex");lr=qt}return rt.REVERSE_OPS[lr]}).join(" ")}et.toASM=St;function Bt(Wt){return ot(at.String,Wt),mt(Wt.split(" ").map(lr=>rt.OPS[lr]!==void 0?rt.OPS[lr]:(ot(at.Hex,lr),Buffer.from(lr,"hex"))))}et.fromASM=Bt;function Ft(Wt){return Wt=wt(Wt),ot(bt,Wt),Wt.map(lr=>$t(lr)?lr:lr===rt.OPS.OP_0?Buffer.allocUnsafe(0):it.encode(lr-lt))}et.toStack=Ft;function Dt(Wt){return at.isPoint(Wt)}et.isCanonicalPubKey=Dt;function zt(Wt){const lr=Wt&-129;return lr>0&&lr<4}et.isDefinedHashType=zt;function Ht(Wt){return!Buffer.isBuffer(Wt)||!zt(Wt[Wt.length-1])?!1:tt.check(Wt.slice(0,-1))}et.isCanonicalScriptSignature=Ht,et.number=it,et.signature=st})(script);var lazy$8={};Object.defineProperty(lazy$8,"__esModule",{value:!0});lazy$8.value=lazy$8.prop=void 0;function prop(et,tt,rt){Object.defineProperty(et,tt,{configurable:!0,enumerable:!0,get(){const nt=rt.call(this);return this[tt]=nt,nt},set(nt){Object.defineProperty(this,tt,{configurable:!0,enumerable:!0,value:nt,writable:!0})}})}lazy$8.prop=prop;function value$1(et){let tt;return()=>(tt!==void 0||(tt=et()),tt)}lazy$8.value=value$1;Object.defineProperty(embed,"__esModule",{value:!0});embed.p2data=void 0;const networks_1$8=networks$1,bscript$b=script,types_1$9=types$6,lazy$7=lazy$8,OPS$7=bscript$b.OPS;function stacksEqual$4(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2data(et,tt){if(!et.data&&!et.output)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$9.typeforce)({network:types_1$9.typeforce.maybe(types_1$9.typeforce.Object),output:types_1$9.typeforce.maybe(types_1$9.typeforce.Buffer),data:types_1$9.typeforce.maybe(types_1$9.typeforce.arrayOf(types_1$9.typeforce.Buffer))},et);const nt={name:"embed",network:et.network||networks_1$8.bitcoin};if(lazy$7.prop(nt,"output",()=>{if(et.data)return bscript$b.compile([OPS$7.OP_RETURN].concat(et.data))}),lazy$7.prop(nt,"data",()=>{if(et.output)return bscript$b.decompile(et.output).slice(1)}),tt.validate&&et.output){const it=bscript$b.decompile(et.output);if(it[0]!==OPS$7.OP_RETURN)throw new TypeError("Output is invalid");if(!it.slice(1).every(types_1$9.typeforce.Buffer))throw new TypeError("Output is invalid");if(et.data&&!stacksEqual$4(et.data,nt.data))throw new TypeError("Data mismatch")}return Object.assign(nt,et)}embed.p2data=p2data;var p2ms$1={};Object.defineProperty(p2ms$1,"__esModule",{value:!0});p2ms$1.p2ms=void 0;const networks_1$7=networks$1,bscript$a=script,types_1$8=types$6,lazy$6=lazy$8,OPS$6=bscript$a.OPS,OP_INT_BASE=OPS$6.OP_RESERVED;function stacksEqual$3(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2ms(et,tt){if(!et.input&&!et.output&&!(et.pubkeys&&et.m!==void 0)&&!et.signatures)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{});function rt(lt){return bscript$a.isCanonicalScriptSignature(lt)||(tt.allowIncomplete&<===OPS$6.OP_0)!==void 0}(0,types_1$8.typeforce)({network:types_1$8.typeforce.maybe(types_1$8.typeforce.Object),m:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),n:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),output:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer),pubkeys:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(types_1$8.isPoint)),signatures:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(rt)),input:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer)},et);const it={network:et.network||networks_1$7.bitcoin};let st=[],at=!1;function ot(lt){at||(at=!0,st=bscript$a.decompile(lt),it.m=st[0]-OP_INT_BASE,it.n=st[st.length-2]-OP_INT_BASE,it.pubkeys=st.slice(1,-2))}if(lazy$6.prop(it,"output",()=>{if(et.m&&it.n&&et.pubkeys)return bscript$a.compile([].concat(OP_INT_BASE+et.m,et.pubkeys,OP_INT_BASE+it.n,OPS$6.OP_CHECKMULTISIG))}),lazy$6.prop(it,"m",()=>{if(it.output)return ot(it.output),it.m}),lazy$6.prop(it,"n",()=>{if(it.pubkeys)return it.pubkeys.length}),lazy$6.prop(it,"pubkeys",()=>{if(et.output)return ot(et.output),it.pubkeys}),lazy$6.prop(it,"signatures",()=>{if(et.input)return bscript$a.decompile(et.input).slice(1)}),lazy$6.prop(it,"input",()=>{if(et.signatures)return bscript$a.compile([OPS$6.OP_0].concat(et.signatures))}),lazy$6.prop(it,"witness",()=>{if(it.input)return[]}),lazy$6.prop(it,"name",()=>{if(!(!it.m||!it.n))return`p2ms(${it.m} of ${it.n})`}),tt.validate){if(et.output){if(ot(et.output),!types_1$8.typeforce.Number(st[0]))throw new TypeError("Output is invalid");if(!types_1$8.typeforce.Number(st[st.length-2]))throw new TypeError("Output is invalid");if(st[st.length-1]!==OPS$6.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(it.m<=0||it.n>16||it.m>it.n||it.n!==st.length-3)throw new TypeError("Output is invalid");if(!it.pubkeys.every(lt=>(0,types_1$8.isPoint)(lt)))throw new TypeError("Output is invalid");if(et.m!==void 0&&et.m!==it.m)throw new TypeError("m mismatch");if(et.n!==void 0&&et.n!==it.n)throw new TypeError("n mismatch");if(et.pubkeys&&!stacksEqual$3(et.pubkeys,it.pubkeys))throw new TypeError("Pubkeys mismatch")}if(et.pubkeys){if(et.n!==void 0&&et.n!==et.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(it.n=et.pubkeys.length,it.nit.m)throw new TypeError("Too many signatures provided")}if(et.input){if(et.input[0]!==OPS$6.OP_0)throw new TypeError("Input is invalid");if(it.signatures.length===0||!it.signatures.every(rt))throw new TypeError("Input has invalid signature(s)");if(et.signatures&&!stacksEqual$3(et.signatures,it.signatures))throw new TypeError("Signature mismatch");if(et.m!==void 0&&et.m!==et.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(it,et)}p2ms$1.p2ms=p2ms;var p2pk$1={};Object.defineProperty(p2pk$1,"__esModule",{value:!0});p2pk$1.p2pk=void 0;const networks_1$6=networks$1,bscript$9=script,types_1$7=types$6,lazy$5=lazy$8,OPS$5=bscript$9.OPS;function p2pk(et,tt){if(!et.input&&!et.output&&!et.pubkey&&!et.input&&!et.signature)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$7.typeforce)({network:types_1$7.typeforce.maybe(types_1$7.typeforce.Object),output:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer),pubkey:types_1$7.typeforce.maybe(types_1$7.isPoint),signature:types_1$7.typeforce.maybe(bscript$9.isCanonicalScriptSignature),input:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer)},et);const rt=lazy$5.value(()=>bscript$9.decompile(et.input)),it={name:"p2pk",network:et.network||networks_1$6.bitcoin};if(lazy$5.prop(it,"output",()=>{if(et.pubkey)return bscript$9.compile([et.pubkey,OPS$5.OP_CHECKSIG])}),lazy$5.prop(it,"pubkey",()=>{if(et.output)return et.output.slice(1,-1)}),lazy$5.prop(it,"signature",()=>{if(et.input)return rt()[0]}),lazy$5.prop(it,"input",()=>{if(et.signature)return bscript$9.compile([et.signature])}),lazy$5.prop(it,"witness",()=>{if(it.input)return[]}),tt.validate){if(et.output){if(et.output[et.output.length-1]!==OPS$5.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,types_1$7.isPoint)(it.pubkey))throw new TypeError("Output pubkey is invalid");if(et.pubkey&&!et.pubkey.equals(it.pubkey))throw new TypeError("Pubkey mismatch")}if(et.signature&&et.input&&!et.input.equals(it.input))throw new TypeError("Signature mismatch");if(et.input){if(rt().length!==1)throw new TypeError("Input is invalid");if(!bscript$9.isCanonicalScriptSignature(it.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(it,et)}p2pk$1.p2pk=p2pk;var p2pkh$1={},crypto$2={},ripemd160={},_sha2={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=void 0;function number(et){if(!Number.isSafeInteger(et)||et<0)throw new Error(`Wrong positive integer: ${et}`)}_assert.number=number;function bool(et){if(typeof et!="boolean")throw new Error(`Expected boolean, not ${et}`)}_assert.bool=bool;function isBytes(et){return et instanceof Uint8Array||et!=null&&typeof et=="object"&&et.constructor.name==="Uint8Array"}function bytes(et,...tt){if(!isBytes(et))throw new Error("Expected Uint8Array");if(tt.length>0&&!tt.includes(et.length))throw new Error(`Expected Uint8Array of length ${tt}, not of length=${et.length}`)}_assert.bytes=bytes;function hash$1(et){if(typeof et!="function"||typeof et.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(et.outputLen),number(et.blockLen)}_assert.hash=hash$1;function exists(et,tt=!0){if(et.destroyed)throw new Error("Hash instance has been destroyed");if(tt&&et.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(et,tt){bytes(et);const rt=tt.outputLen;if(et.lengthnew Uint8Array(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.u8=rt;const nt=Ht=>new Uint32Array(Ht.buffer,Ht.byteOffset,Math.floor(Ht.byteLength/4));et.u32=nt;function it(Ht){return Ht instanceof Uint8Array||Ht!=null&&typeof Ht=="object"&&Ht.constructor.name==="Uint8Array"}const st=Ht=>new DataView(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.createView=st;const at=(Ht,Wt)=>Ht<<32-Wt|Ht>>>Wt;if(et.rotr=at,et.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!et.isLE)throw new Error("Non little-endian hardware is not supported");const ot=Array.from({length:256},(Ht,Wt)=>Wt.toString(16).padStart(2,"0"));function lt(Ht){if(!it(Ht))throw new Error("Uint8Array expected");let Wt="";for(let lr=0;lr=ut._0&&Ht<=ut._9)return Ht-ut._0;if(Ht>=ut._A&&Ht<=ut._F)return Ht-(ut._A-10);if(Ht>=ut._a&&Ht<=ut._f)return Ht-(ut._a-10)}function bt(Ht){if(typeof Ht!="string")throw new Error("hex string expected, got "+typeof Ht);const Wt=Ht.length,lr=Wt/2;if(Wt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Wt);const qt=new Uint8Array(lr);for(let Ot=0,Mt=0;Ot{};et.nextTick=gt;async function kt(Ht,Wt,lr){let qt=Date.now();for(let Ot=0;Ot=0&&MtHt().update(yt(qt)).digest(),lr=Ht();return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=()=>Ht(),Wt}et.wrapConstructor=Bt;function Ft(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapConstructorWithOpts=Ft;function Dt(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapXOFConstructorWithOpts=Dt;function zt(Ht=32){if(tt.crypto&&typeof tt.crypto.getRandomValues=="function")return tt.crypto.getRandomValues(new Uint8Array(Ht));throw new Error("crypto.getRandomValues must be defined")}et.randomBytes=zt})(utils$1);Object.defineProperty(_sha2,"__esModule",{value:!0});_sha2.SHA2=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$1;function setBigUint64(et,tt,rt,nt){if(typeof et.setBigUint64=="function")return et.setBigUint64(tt,rt,nt);const it=BigInt(32),st=BigInt(4294967295),at=Number(rt>>it&st),ot=Number(rt&st),lt=nt?4:0,ut=nt?0:4;et.setUint32(tt+lt,at,nt),et.setUint32(tt+ut,ot,nt)}class SHA2 extends utils_js_1$3.Hash{constructor(tt,rt,nt,it){super(),this.blockLen=tt,this.outputLen=rt,this.padOffset=nt,this.isLE=it,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(tt),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(tt){(0,_assert_js_1.exists)(this);const{view:rt,buffer:nt,blockLen:it}=this;tt=(0,utils_js_1$3.toBytes)(tt);const st=tt.length;for(let at=0;atit-at&&(this.process(nt,0),at=0);for(let bt=at;btdt.length)throw new Error("_sha2: outputLen bigger than state");for(let bt=0;bttt),Pi=Id.map(et=>(9*et+5)%16);let idxL=[Id],idxR=[Pi];for(let et=0;et<4;et++)for(let tt of[idxL,idxR])tt.push(tt[et].map(rt=>Rho[rt]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(et=>new Uint8Array(et)),shiftsL=idxL.map((et,tt)=>et.map(rt=>shifts[tt][rt])),shiftsR=idxR.map((et,tt)=>et.map(rt=>shifts[tt][rt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(et,tt)=>et<>>32-tt;function f$2(et,tt,rt,nt){return et===0?tt^rt^nt:et===1?tt&rt|~tt&nt:et===2?(tt|~rt)^nt:et===3?tt&nt|rt&~nt:tt^(rt|~nt)}const BUF=new Uint32Array(16);class RIPEMD160 extends _sha2_js_1$2.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:tt,h1:rt,h2:nt,h3:it,h4:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.h0=tt|0,this.h1=rt|0,this.h2=nt|0,this.h3=it|0,this.h4=st|0}process(tt,rt){for(let kt=0;kt<16;kt++,rt+=4)BUF[kt]=tt.getUint32(rt,!0);let nt=this.h0|0,it=nt,st=this.h1|0,at=st,ot=this.h2|0,lt=ot,ut=this.h3|0,dt=ut,bt=this.h4|0,gt=bt;for(let kt=0;kt<5;kt++){const pt=4-kt,yt=Kl[kt],$t=Kr[kt],mt=idxL[kt],wt=idxR[kt],St=shiftsL[kt],Bt=shiftsR[kt];for(let Ft=0;Ft<16;Ft++){const Dt=rotl$1(nt+f$2(kt,st,ot,ut)+BUF[mt[Ft]]+yt,St[Ft])+bt|0;nt=bt,bt=ut,ut=rotl$1(ot,10)|0,ot=st,st=Dt}for(let Ft=0;Ft<16;Ft++){const Dt=rotl$1(it+f$2(pt,at,lt,dt)+BUF[wt[Ft]]+$t,Bt[Ft])+gt|0;it=gt,gt=dt,dt=rotl$1(lt,10)|0,lt=at,at=Dt}}this.set(this.h1+ot+dt|0,this.h2+ut+gt|0,this.h3+bt+it|0,this.h4+nt+at|0,this.h0+st+lt|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha1={};Object.defineProperty(sha1,"__esModule",{value:!0});sha1.sha1=void 0;const _sha2_js_1$1=_sha2,utils_js_1$1=utils$1,rotl=(et,tt)=>et<>>32-tt>>>0,Chi$1=(et,tt,rt)=>et&tt^~et&rt,Maj$1=(et,tt,rt)=>et&tt^et&rt^tt&rt,IV$1=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),SHA1_W=new Uint32Array(80);class SHA1 extends _sha2_js_1$1.SHA2{constructor(){super(64,20,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0}process(tt,rt){for(let lt=0;lt<16;lt++,rt+=4)SHA1_W[lt]=tt.getUint32(rt,!1);for(let lt=16;lt<80;lt++)SHA1_W[lt]=rotl(SHA1_W[lt-3]^SHA1_W[lt-8]^SHA1_W[lt-14]^SHA1_W[lt-16],1);let{A:nt,B:it,C:st,D:at,E:ot}=this;for(let lt=0;lt<80;lt++){let ut,dt;lt<20?(ut=Chi$1(it,st,at),dt=1518500249):lt<40?(ut=it^st^at,dt=1859775393):lt<60?(ut=Maj$1(it,st,at),dt=2400959708):(ut=it^st^at,dt=3395469782);const bt=rotl(nt,5)+ut+ot+dt+SHA1_W[lt]|0;ot=at,at=st,st=rotl(it,30),it=nt,nt=bt}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,this.set(nt,it,st,at,ot)}roundClean(){SHA1_W.fill(0)}destroy(){this.set(0,0,0,0,0),this.buffer.fill(0)}}sha1.sha1=(0,utils_js_1$1.wrapConstructor)(()=>new SHA1);var sha256$2={};Object.defineProperty(sha256$2,"__esModule",{value:!0});sha256$2.sha224=sha256$2.sha256=void 0;const _sha2_js_1=_sha2,utils_js_1=utils$1,Chi=(et,tt,rt)=>et&tt^~et&rt,Maj=(et,tt,rt)=>et&tt^et&rt^tt&rt,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _sha2_js_1.SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st,F:at,G:ot,H:lt}=this;return[tt,rt,nt,it,st,at,ot,lt]}set(tt,rt,nt,it,st,at,ot,lt){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0,this.F=at|0,this.G=ot|0,this.H=lt|0}process(tt,rt){for(let bt=0;bt<16;bt++,rt+=4)SHA256_W[bt]=tt.getUint32(rt,!1);for(let bt=16;bt<64;bt++){const gt=SHA256_W[bt-15],kt=SHA256_W[bt-2],pt=(0,utils_js_1.rotr)(gt,7)^(0,utils_js_1.rotr)(gt,18)^gt>>>3,yt=(0,utils_js_1.rotr)(kt,17)^(0,utils_js_1.rotr)(kt,19)^kt>>>10;SHA256_W[bt]=yt+SHA256_W[bt-7]+pt+SHA256_W[bt-16]|0}let{A:nt,B:it,C:st,D:at,E:ot,F:lt,G:ut,H:dt}=this;for(let bt=0;bt<64;bt++){const gt=(0,utils_js_1.rotr)(ot,6)^(0,utils_js_1.rotr)(ot,11)^(0,utils_js_1.rotr)(ot,25),kt=dt+gt+Chi(ot,lt,ut)+SHA256_K[bt]+SHA256_W[bt]|0,yt=((0,utils_js_1.rotr)(nt,2)^(0,utils_js_1.rotr)(nt,13)^(0,utils_js_1.rotr)(nt,22))+Maj(nt,it,st)|0;dt=ut,ut=lt,lt=ot,ot=at+kt|0,at=st,st=it,it=nt,nt=kt+yt|0}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,lt=lt+this.F|0,ut=ut+this.G|0,dt=dt+this.H|0,this.set(nt,it,st,at,ot,lt,ut,dt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$2.sha256=(0,utils_js_1.wrapConstructor)(()=>new SHA256);sha256$2.sha224=(0,utils_js_1.wrapConstructor)(()=>new SHA224);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.taggedHash=et.TAGGED_HASH_PREFIXES=et.TAGS=et.hash256=et.hash160=et.sha256=et.sha1=et.ripemd160=void 0;const tt=ripemd160,rt=sha1,nt=sha256$2;function it(dt){return Buffer.from((0,tt.ripemd160)(Uint8Array.from(dt)))}et.ripemd160=it;function st(dt){return Buffer.from((0,rt.sha1)(Uint8Array.from(dt)))}et.sha1=st;function at(dt){return Buffer.from((0,nt.sha256)(Uint8Array.from(dt)))}et.sha256=at;function ot(dt){return Buffer.from((0,tt.ripemd160)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash160=ot;function lt(dt){return Buffer.from((0,nt.sha256)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash256=lt,et.TAGS=["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"],et.TAGGED_HASH_PREFIXES={"BIP0340/challenge":Buffer.from([123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124,123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124]),"BIP0340/aux":Buffer.from([241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144,241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144]),"BIP0340/nonce":Buffer.from([7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47,7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47]),TapLeaf:Buffer.from([174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238,174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238]),TapBranch:Buffer.from([25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21,25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21]),TapSighash:Buffer.from([244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49,244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49]),TapTweak:Buffer.from([232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233,232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233]),"KeyAgg list":Buffer.from([72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240,72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240]),"KeyAgg coefficient":Buffer.from([191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129,191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129])};function ut(dt,bt){return at(Buffer.concat([et.TAGGED_HASH_PREFIXES[dt],bt]))}et.taggedHash=ut})(crypto$2);function base$1(et){if(et.length>=255)throw new TypeError("Alphabet too long");for(var tt=new Uint8Array(256),rt=0;rt>>0,St=new Uint8Array(wt);$t!==mt;){for(var Bt=kt[$t],Ft=0,Dt=wt-1;(Bt!==0||Ft>>0,St[Dt]=Bt%at>>>0,Bt=Bt/at>>>0;if(Bt!==0)throw new Error("Non-zero carry");yt=Ft,$t++}for(var zt=wt-yt;zt!==wt&&St[zt]===0;)zt++;for(var Ht=ot.repeat(pt);zt>>0,wt=new Uint8Array(mt);kt[pt];){var St=tt[kt.charCodeAt(pt)];if(St===255)return;for(var Bt=0,Ft=mt-1;(St!==0||Bt<$t)&&Ft!==-1;Ft--,Bt++)St+=at*wt[Ft]>>>0,wt[Ft]=St%256>>>0,St=St/256>>>0;if(St!==0)throw new Error("Non-zero carry");$t=Bt,pt++}for(var Dt=mt-$t;Dt!==mt&&wt[Dt]===0;)Dt++;for(var zt=new Uint8Array(yt+(mt-Dt)),Ht=yt;Dt!==mt;)zt[Ht++]=wt[Dt++];return zt}function gt(kt){var pt=bt(kt);if(pt)return pt;throw new Error("Non-base"+at+" character")}return{encode:dt,decodeUnsafe:bt,decode:gt}}var src=base$1;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1),base58=bs58,base=function(et){function tt(st){var at=Uint8Array.from(st),ot=et(at),lt=at.length+4,ut=new Uint8Array(lt);return ut.set(at,0),ut.set(ot.subarray(0,4),at.length),base58.encode(ut,lt)}function rt(st){var at=st.slice(0,-4),ot=st.slice(-4),lt=et(at);if(!(ot[0]^lt[0]|ot[1]^lt[1]|ot[2]^lt[2]|ot[3]^lt[3]))return at}function nt(st){var at=base58.decodeUnsafe(st);if(at)return rt(at)}function it(st){var at=base58.decode(st),ot=rt(at);if(!ot)throw new Error("Invalid checksum");return ot}return{encode:tt,decode:it,decodeUnsafe:nt}},{sha256:sha256$1}=sha256$2,bs58checkBase=base;function sha256x2(et){return sha256$1(sha256$1(et))}var bs58check$3=bs58checkBase(sha256x2);Object.defineProperty(p2pkh$1,"__esModule",{value:!0});p2pkh$1.p2pkh=void 0;const bcrypto$5=crypto$2,networks_1$5=networks$1,bscript$8=script,types_1$6=types$6,lazy$4=lazy$8,bs58check$2=bs58check$3,OPS$4=bscript$8.OPS;function p2pkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$6.typeforce)({network:types_1$6.typeforce.maybe(types_1$6.typeforce.Object),address:types_1$6.typeforce.maybe(types_1$6.typeforce.String),hash:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(20)),output:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(25)),pubkey:types_1$6.typeforce.maybe(types_1$6.isPoint),signature:types_1$6.typeforce.maybe(bscript$8.isCanonicalScriptSignature),input:types_1$6.typeforce.maybe(types_1$6.typeforce.Buffer)},et);const rt=lazy$4.value(()=>{const at=Buffer.from(bs58check$2.decode(et.address)),ot=at.readUInt8(0),lt=at.slice(1);return{version:ot,hash:lt}}),nt=lazy$4.value(()=>bscript$8.decompile(et.input)),it=et.network||networks_1$5.bitcoin,st={name:"p2pkh",network:it};if(lazy$4.prop(st,"address",()=>{if(!st.hash)return;const at=Buffer.allocUnsafe(21);return at.writeUInt8(it.pubKeyHash,0),st.hash.copy(at,1),bs58check$2.encode(at)}),lazy$4.prop(st,"hash",()=>{if(et.output)return et.output.slice(3,23);if(et.address)return rt().hash;if(et.pubkey||st.pubkey)return bcrypto$5.hash160(et.pubkey||st.pubkey)}),lazy$4.prop(st,"output",()=>{if(st.hash)return bscript$8.compile([OPS$4.OP_DUP,OPS$4.OP_HASH160,st.hash,OPS$4.OP_EQUALVERIFY,OPS$4.OP_CHECKSIG])}),lazy$4.prop(st,"pubkey",()=>{if(et.input)return nt()[1]}),lazy$4.prop(st,"signature",()=>{if(et.input)return nt()[0]}),lazy$4.prop(st,"input",()=>{if(et.pubkey&&et.signature)return bscript$8.compile([et.signature,et.pubkey])}),lazy$4.prop(st,"witness",()=>{if(st.input)return[]}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().version!==it.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(rt().hash.length!==20)throw new TypeError("Invalid address");at=rt().hash}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==25||et.output[0]!==OPS$4.OP_DUP||et.output[1]!==OPS$4.OP_HASH160||et.output[2]!==20||et.output[23]!==OPS$4.OP_EQUALVERIFY||et.output[24]!==OPS$4.OP_CHECKSIG)throw new TypeError("Output is invalid");const ot=et.output.slice(3,23);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.pubkey){const ot=bcrypto$5.hash160(et.pubkey);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.input){const ot=nt();if(ot.length!==2)throw new TypeError("Input is invalid");if(!bscript$8.isCanonicalScriptSignature(ot[0]))throw new TypeError("Input has invalid signature");if(!(0,types_1$6.isPoint)(ot[1]))throw new TypeError("Input has invalid pubkey");if(et.signature&&!et.signature.equals(ot[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(ot[1]))throw new TypeError("Pubkey mismatch");const lt=bcrypto$5.hash160(ot[1]);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch")}}return Object.assign(st,et)}p2pkh$1.p2pkh=p2pkh;var p2sh$1={};Object.defineProperty(p2sh$1,"__esModule",{value:!0});p2sh$1.p2sh=void 0;const bcrypto$4=crypto$2,networks_1$4=networks$1,bscript$7=script,types_1$5=types$6,lazy$3=lazy$8,bs58check$1=bs58check$3,OPS$3=bscript$7.OPS;function stacksEqual$2(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2sh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$5.typeforce)({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),address:types_1$5.typeforce.maybe(types_1$5.typeforce.String),hash:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(20)),output:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(23)),redeem:types_1$5.typeforce.maybe({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),output:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))}),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))},et);let rt=et.network;rt||(rt=et.redeem&&et.redeem.network||networks_1$4.bitcoin);const nt={network:rt},it=lazy$3.value(()=>{const ot=Buffer.from(bs58check$1.decode(et.address)),lt=ot.readUInt8(0),ut=ot.slice(1);return{version:lt,hash:ut}}),st=lazy$3.value(()=>bscript$7.decompile(et.input)),at=lazy$3.value(()=>{const ot=st(),lt=ot[ot.length-1];return{network:rt,output:lt===OPS$3.OP_FALSE?Buffer.from([]):lt,input:bscript$7.compile(ot.slice(0,-1)),witness:et.witness||[]}});if(lazy$3.prop(nt,"address",()=>{if(!nt.hash)return;const ot=Buffer.allocUnsafe(21);return ot.writeUInt8(nt.network.scriptHash,0),nt.hash.copy(ot,1),bs58check$1.encode(ot)}),lazy$3.prop(nt,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return it().hash;if(nt.redeem&&nt.redeem.output)return bcrypto$4.hash160(nt.redeem.output)}),lazy$3.prop(nt,"output",()=>{if(nt.hash)return bscript$7.compile([OPS$3.OP_HASH160,nt.hash,OPS$3.OP_EQUAL])}),lazy$3.prop(nt,"redeem",()=>{if(et.input)return at()}),lazy$3.prop(nt,"input",()=>{if(!(!et.redeem||!et.redeem.input||!et.redeem.output))return bscript$7.compile([].concat(bscript$7.decompile(et.redeem.input),et.redeem.output))}),lazy$3.prop(nt,"witness",()=>{if(nt.redeem&&nt.redeem.witness)return nt.redeem.witness;if(nt.input)return[]}),lazy$3.prop(nt,"name",()=>{const ot=["p2sh"];return nt.redeem!==void 0&&nt.redeem.name!==void 0&&ot.push(nt.redeem.name),ot.join("-")}),tt.validate){let ot=Buffer.from([]);if(et.address){if(it().version!==rt.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(it().hash.length!==20)throw new TypeError("Invalid address");ot=it().hash}if(et.hash){if(ot.length>0&&!ot.equals(et.hash))throw new TypeError("Hash mismatch");ot=et.hash}if(et.output){if(et.output.length!==23||et.output[0]!==OPS$3.OP_HASH160||et.output[1]!==20||et.output[22]!==OPS$3.OP_EQUAL)throw new TypeError("Output is invalid");const ut=et.output.slice(2,22);if(ot.length>0&&!ot.equals(ut))throw new TypeError("Hash mismatch");ot=ut}const lt=ut=>{if(ut.output){const dt=bscript$7.decompile(ut.output);if(!dt||dt.length<1)throw new TypeError("Redeem.output too short");if(ut.output.byteLength>520)throw new TypeError("Redeem.output unspendable if larger than 520 bytes");if(bscript$7.countNonPushOnlyOPs(dt)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const bt=bcrypto$4.hash160(ut.output);if(ot.length>0&&!ot.equals(bt))throw new TypeError("Hash mismatch");ot=bt}if(ut.input){const dt=ut.input.length>0,bt=ut.witness&&ut.witness.length>0;if(!dt&&!bt)throw new TypeError("Empty input");if(dt&&bt)throw new TypeError("Input and witness provided");if(dt){const gt=bscript$7.decompile(ut.input);if(!bscript$7.isPushOnly(gt))throw new TypeError("Non push-only scriptSig")}}};if(et.input){const ut=st();if(!ut||ut.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(at().output))throw new TypeError("Input is invalid");lt(at())}if(et.redeem){if(et.redeem.network&&et.redeem.network!==rt)throw new TypeError("Network mismatch");if(et.input){const ut=at();if(et.redeem.output&&!et.redeem.output.equals(ut.output))throw new TypeError("Redeem.output mismatch");if(et.redeem.input&&!et.redeem.input.equals(ut.input))throw new TypeError("Redeem.input mismatch")}lt(et.redeem)}if(et.witness&&et.redeem&&et.redeem.witness&&!stacksEqual$2(et.redeem.witness,et.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(nt,et)}p2sh$1.p2sh=p2sh;var p2wpkh$1={},dist={};Object.defineProperty(dist,"__esModule",{value:!0});dist.bech32m=dist.bech32=void 0;const ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={};for(let et=0;et>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk(et){let tt=1;for(let rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep(tt)^nt>>5}tt=polymodStep(tt);for(let rt=0;rt=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<lt)throw new TypeError("Exceeds length limit");at=at.toLowerCase();let ut=prefixChk(at);if(typeof ut=="string")throw new Error(ut);let dt=at+"1";for(let bt=0;bt>5)throw new Error("Non 5-bit word");ut=polymodStep(ut)^gt,dt+=ALPHABET.charAt(gt)}for(let bt=0;bt<6;++bt)ut=polymodStep(ut);ut^=tt;for(let bt=0;bt<6;++bt){const gt=ut>>(5-bt)*5&31;dt+=ALPHABET.charAt(gt)}return dt}function nt(at,ot){if(ot=ot||90,at.length<8)return at+" too short";if(at.length>ot)return"Exceeds length limit";const lt=at.toLowerCase(),ut=at.toUpperCase();if(at!==lt&&at!==ut)return"Mixed-case string "+at;at=lt;const dt=at.lastIndexOf("1");if(dt===-1)return"No separator character for "+at;if(dt===0)return"Missing prefix for "+at;const bt=at.slice(0,dt),gt=at.slice(dt+1);if(gt.length<6)return"Data too short";let kt=prefixChk(bt);if(typeof kt=="string")return kt;const pt=[];for(let yt=0;yt=gt.length)&&pt.push(mt)}return kt!==tt?"Invalid checksum for "+at:{prefix:bt,words:pt}}function it(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt}function st(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt;throw new Error(lt)}return{decodeUnsafe:it,decode:st,encode:rt,toWords,fromWordsUnsafe,fromWords}}dist.bech32=getLibraryFromEncoding("bech32");dist.bech32m=getLibraryFromEncoding("bech32m");Object.defineProperty(p2wpkh$1,"__esModule",{value:!0});p2wpkh$1.p2wpkh=void 0;const bcrypto$3=crypto$2,networks_1$3=networks$1,bscript$6=script,types_1$4=types$6,lazy$2=lazy$8,bech32_1$3=dist,OPS$2=bscript$6.OPS,EMPTY_BUFFER$2=Buffer.alloc(0);function p2wpkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$4.typeforce)({address:types_1$4.typeforce.maybe(types_1$4.typeforce.String),hash:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(20)),input:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(0)),network:types_1$4.typeforce.maybe(types_1$4.typeforce.Object),output:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(22)),pubkey:types_1$4.typeforce.maybe(types_1$4.isPoint),signature:types_1$4.typeforce.maybe(bscript$6.isCanonicalScriptSignature),witness:types_1$4.typeforce.maybe(types_1$4.typeforce.arrayOf(types_1$4.typeforce.Buffer))},et);const rt=lazy$2.value(()=>{const st=bech32_1$3.bech32.decode(et.address),at=st.words.shift(),ot=bech32_1$3.bech32.fromWords(st.words);return{version:at,prefix:st.prefix,data:Buffer.from(ot)}}),nt=et.network||networks_1$3.bitcoin,it={name:"p2wpkh",network:nt};if(lazy$2.prop(it,"address",()=>{if(!it.hash)return;const st=bech32_1$3.bech32.toWords(it.hash);return st.unshift(0),bech32_1$3.bech32.encode(nt.bech32,st)}),lazy$2.prop(it,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return rt().data;if(et.pubkey||it.pubkey)return bcrypto$3.hash160(et.pubkey||it.pubkey)}),lazy$2.prop(it,"output",()=>{if(it.hash)return bscript$6.compile([OPS$2.OP_0,it.hash])}),lazy$2.prop(it,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.witness)return et.witness[1]}),lazy$2.prop(it,"signature",()=>{if(et.witness)return et.witness[0]}),lazy$2.prop(it,"input",()=>{if(it.witness)return EMPTY_BUFFER$2}),lazy$2.prop(it,"witness",()=>{if(et.pubkey&&et.signature)return[et.signature,et.pubkey]}),tt.validate){let st=Buffer.from([]);if(et.address){if(nt&&nt.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==20)throw new TypeError("Invalid address data");st=rt().data}if(et.hash){if(st.length>0&&!st.equals(et.hash))throw new TypeError("Hash mismatch");st=et.hash}if(et.output){if(et.output.length!==22||et.output[0]!==OPS$2.OP_0||et.output[1]!==20)throw new TypeError("Output is invalid");if(st.length>0&&!st.equals(et.output.slice(2)))throw new TypeError("Hash mismatch");st=et.output.slice(2)}if(et.pubkey){const at=bcrypto$3.hash160(et.pubkey);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch");if(st=at,!(0,types_1$4.isPoint)(et.pubkey)||et.pubkey.length!==33)throw new TypeError("Invalid pubkey for p2wpkh")}if(et.witness){if(et.witness.length!==2)throw new TypeError("Witness is invalid");if(!bscript$6.isCanonicalScriptSignature(et.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,types_1$4.isPoint)(et.witness[1])||et.witness[1].length!==33)throw new TypeError("Witness has invalid pubkey");if(et.signature&&!et.signature.equals(et.witness[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(et.witness[1]))throw new TypeError("Pubkey mismatch");const at=bcrypto$3.hash160(et.witness[1]);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch")}}return Object.assign(it,et)}p2wpkh$1.p2wpkh=p2wpkh;var p2wsh$1={};Object.defineProperty(p2wsh$1,"__esModule",{value:!0});p2wsh$1.p2wsh=void 0;const bcrypto$2=crypto$2,networks_1$2=networks$1,bscript$5=script,types_1$3=types$6,lazy$1=lazy$8,bech32_1$2=dist,OPS$1=bscript$5.OPS,EMPTY_BUFFER$1=Buffer.alloc(0);function stacksEqual$1(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function chunkHasUncompressedPubkey(et){return!!(Buffer.isBuffer(et)&&et.length===65&&et[0]===4&&(0,types_1$3.isPoint)(et))}function p2wsh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$3.typeforce)({network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),address:types_1$3.typeforce.maybe(types_1$3.typeforce.String),hash:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(32)),output:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(34)),redeem:types_1$3.typeforce.maybe({input:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),output:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))}),input:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(0)),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))},et);const rt=lazy$1.value(()=>{const at=bech32_1$2.bech32.decode(et.address),ot=at.words.shift(),lt=bech32_1$2.bech32.fromWords(at.words);return{version:ot,prefix:at.prefix,data:Buffer.from(lt)}}),nt=lazy$1.value(()=>bscript$5.decompile(et.redeem.input));let it=et.network;it||(it=et.redeem&&et.redeem.network||networks_1$2.bitcoin);const st={network:it};if(lazy$1.prop(st,"address",()=>{if(!st.hash)return;const at=bech32_1$2.bech32.toWords(st.hash);return at.unshift(0),bech32_1$2.bech32.encode(it.bech32,at)}),lazy$1.prop(st,"hash",()=>{if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(st.redeem&&st.redeem.output)return bcrypto$2.sha256(st.redeem.output)}),lazy$1.prop(st,"output",()=>{if(st.hash)return bscript$5.compile([OPS$1.OP_0,st.hash])}),lazy$1.prop(st,"redeem",()=>{if(et.witness)return{output:et.witness[et.witness.length-1],input:EMPTY_BUFFER$1,witness:et.witness.slice(0,-1)}}),lazy$1.prop(st,"input",()=>{if(st.witness)return EMPTY_BUFFER$1}),lazy$1.prop(st,"witness",()=>{if(et.redeem&&et.redeem.input&&et.redeem.input.length>0&&et.redeem.output&&et.redeem.output.length>0){const at=bscript$5.toStack(nt());return st.redeem=Object.assign({witness:at},et.redeem),st.redeem.input=EMPTY_BUFFER$1,[].concat(at,et.redeem.output)}if(et.redeem&&et.redeem.output&&et.redeem.witness)return[].concat(et.redeem.witness,et.redeem.output)}),lazy$1.prop(st,"name",()=>{const at=["p2wsh"];return st.redeem!==void 0&&st.redeem.name!==void 0&&at.push(st.redeem.name),at.join("-")}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().prefix!==it.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");at=rt().data}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==34||et.output[0]!==OPS$1.OP_0||et.output[1]!==32)throw new TypeError("Output is invalid");const ot=et.output.slice(2);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.redeem){if(et.redeem.network&&et.redeem.network!==it)throw new TypeError("Network mismatch");if(et.redeem.input&&et.redeem.input.length>0&&et.redeem.witness&&et.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(et.redeem.output){const ot=bscript$5.decompile(et.redeem.output);if(!ot||ot.length<1)throw new TypeError("Redeem.output is invalid");if(et.redeem.output.byteLength>3600)throw new TypeError("Redeem.output unspendable if larger than 3600 bytes");if(bscript$5.countNonPushOnlyOPs(ot)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const lt=bcrypto$2.sha256(et.redeem.output);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch");at=lt}if(et.redeem.input&&!bscript$5.isPushOnly(nt()))throw new TypeError("Non push-only scriptSig");if(et.witness&&et.redeem.witness&&!stacksEqual$1(et.witness,et.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(et.redeem.input&&nt().some(chunkHasUncompressedPubkey)||et.redeem.output&&(bscript$5.decompile(et.redeem.output)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(et.witness&&et.witness.length>0){const ot=et.witness[et.witness.length-1];if(et.redeem&&et.redeem.output&&!et.redeem.output.equals(ot))throw new TypeError("Witness and redeem.output mismatch");if(et.witness.some(chunkHasUncompressedPubkey)||(bscript$5.decompile(ot)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(st,et)}p2wsh$1.p2wsh=p2wsh;var p2tr$1={},ecc_lib={};Object.defineProperty(ecc_lib,"__esModule",{value:!0});ecc_lib.getEccLib=ecc_lib.initEccLib=void 0;const _ECCLIB_CACHE={};function initEccLib(et){et?et!==_ECCLIB_CACHE.eccLib&&(verifyEcc(et),_ECCLIB_CACHE.eccLib=et):_ECCLIB_CACHE.eccLib=et}ecc_lib.initEccLib=initEccLib;function getEccLib(){if(!_ECCLIB_CACHE.eccLib)throw new Error("No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance");return _ECCLIB_CACHE.eccLib}ecc_lib.getEccLib=getEccLib;const h$5=et=>Buffer.from(et,"hex");function verifyEcc(et){assert(typeof et.isXOnlyPoint=="function"),assert(et.isXOnlyPoint(h$5("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),assert(et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffeeffffc2e"))),assert(et.isXOnlyPoint(h$5("f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9"))),assert(et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000001"))),assert(!et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000000"))),assert(!et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"))),assert(typeof et.xOnlyPointAddTweak=="function"),tweakAddVectors.forEach(tt=>{const rt=et.xOnlyPointAddTweak(h$5(tt.pubkey),h$5(tt.tweak));tt.result===null?assert(rt===null):(assert(rt!==null),assert(rt.parity===tt.parity),assert(Buffer.from(rt.xOnlyPubkey).equals(h$5(tt.result))))})}function assert(et){if(!et)throw new Error("ecc library invalid")}const tweakAddVectors=[{pubkey:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",tweak:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140",parity:-1,result:null},{pubkey:"1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b",tweak:"a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac",parity:1,result:"e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf"},{pubkey:"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",tweak:"823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47",parity:0,result:"9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"}];var bip341={},bufferutils={},Buffer$2=safeBufferExports.Buffer,MAX_SAFE_INTEGER$3=9007199254740991;function checkUInt53$1(et){if(et<0||et>MAX_SAFE_INTEGER$3||et%1!==0)throw new RangeError("value out of range")}function encode$j(et,tt,rt){if(checkUInt53$1(et),tt||(tt=Buffer$2.allocUnsafe(encodingLength$1(et))),!Buffer$2.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),encode$j.bytes=1):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),encode$j.bytes=3):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),encode$j.bytes=5):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),encode$j.bytes=9),tt}function decode$i(et,tt){if(!Buffer$2.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);var rt=et.readUInt8(tt);if(rt<253)return decode$i.bytes=1,rt;if(rt===253)return decode$i.bytes=3,et.readUInt16LE(tt+1);if(rt===254)return decode$i.bytes=5,et.readUInt32LE(tt+1);decode$i.bytes=9;var nt=et.readUInt32LE(tt+1),it=et.readUInt32LE(tt+5),st=it*4294967296+nt;return checkUInt53$1(st),st}function encodingLength$1(et){return checkUInt53$1(et),et<253?1:et<=65535?3:et<=4294967295?5:9}var varuintBitcoin={encode:encode$j,decode:decode$i,encodingLength:encodingLength$1};Object.defineProperty(bufferutils,"__esModule",{value:!0});bufferutils.BufferReader=bufferutils.BufferWriter=bufferutils.cloneBuffer=bufferutils.reverseBuffer=bufferutils.writeUInt64LE=bufferutils.readUInt64LE=bufferutils.varuint=void 0;const types$3=types$6,{typeforce:typeforce$2}=types$3,varuint$7=varuintBitcoin;bufferutils.varuint=varuint$7;function verifuint$1(et,tt){if(typeof et!="number")throw new Error("cannot write a non-number as a number");if(et<0)throw new Error("specified a negative value for writing an unsigned value");if(et>tt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE$1(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint$1(nt+rt,9007199254740991),nt+rt}bufferutils.readUInt64LE=readUInt64LE$1;function writeUInt64LE$1(et,tt,rt){return verifuint$1(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}bufferutils.writeUInt64LE=writeUInt64LE$1;function reverseBuffer$1(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;ntthis.writeVarSlice(rt))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}bufferutils.BufferWriter=BufferWriter;class BufferReader{constructor(tt,rt=0){this.buffer=tt,this.offset=rt,typeforce$2(types$3.tuple(types$3.Buffer,types$3.UInt32),[tt,rt])}readUInt8(){const tt=this.buffer.readUInt8(this.offset);return this.offset++,tt}readInt32(){const tt=this.buffer.readInt32LE(this.offset);return this.offset+=4,tt}readUInt32(){const tt=this.buffer.readUInt32LE(this.offset);return this.offset+=4,tt}readUInt64(){const tt=readUInt64LE$1(this.buffer,this.offset);return this.offset+=8,tt}readVarInt(){const tt=varuint$7.decode(this.buffer,this.offset);return this.offset+=varuint$7.decode.bytes,tt}readSlice(tt){if(this.buffer.length"left"in yt&&"right"in yt;function ot(yt,$t){if(yt.length<33)throw new TypeError(`The control-block length is too small. Got ${yt.length}, expected min 33.`);const mt=(yt.length-33)/32;let wt=$t;for(let St=0;StSt.hash.compare(Bt.hash));const[mt,wt]=$t;return{hash:kt(mt.hash,wt.hash),left:mt,right:wt}}et.toHashTree=lt;function ut(yt,$t){if(at(yt)){const mt=ut(yt.left,$t);if(mt!==void 0)return[...mt,yt.right.hash];const wt=ut(yt.right,$t);if(wt!==void 0)return[...wt,yt.left.hash]}else if(yt.hash.equals($t))return[]}et.findScriptPath=ut;function dt(yt){const $t=yt.version||et.LEAF_VERSION_TAPSCRIPT;return nt.taggedHash("TapLeaf",tt.Buffer.concat([tt.Buffer.from([$t]),pt(yt.output)]))}et.tapleafHash=dt;function bt(yt,$t){return nt.taggedHash("TapTweak",tt.Buffer.concat($t?[yt,$t]:[yt]))}et.tapTweakHash=bt;function gt(yt,$t){if(!tt.Buffer.isBuffer(yt)||yt.length!==32||$t&&$t.length!==32)return null;const mt=bt(yt,$t),wt=(0,rt.getEccLib)().xOnlyPointAddTweak(yt,mt);return!wt||wt.xOnlyPubkey===null?null:{parity:wt.parity,x:tt.Buffer.from(wt.xOnlyPubkey)}}et.tweakKey=gt;function kt(yt,$t){return nt.taggedHash("TapBranch",tt.Buffer.concat([yt,$t]))}function pt(yt){const $t=it.varuint.encodingLength(yt.length),mt=tt.Buffer.allocUnsafe($t);return it.varuint.encode(yt.length,mt),tt.Buffer.concat([mt,yt])}})(bip341);Object.defineProperty(p2tr$1,"__esModule",{value:!0});p2tr$1.p2tr=void 0;const buffer_1=buffer$2,networks_1$1=networks$1,bscript$4=script,types_1$2=types$6,ecc_lib_1=ecc_lib,bip341_1$2=bip341,lazy=lazy$8,bech32_1$1=dist,OPS=bscript$4.OPS,TAPROOT_WITNESS_VERSION=1,ANNEX_PREFIX=80;function p2tr(et,tt){if(!et.address&&!et.output&&!et.pubkey&&!et.internalPubkey&&!(et.witness&&et.witness.length>1))throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$2.typeforce)({address:types_1$2.typeforce.maybe(types_1$2.typeforce.String),input:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(0)),network:types_1$2.typeforce.maybe(types_1$2.typeforce.Object),output:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(34)),internalPubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),hash:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),pubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),signature:types_1$2.typeforce.maybe(types_1$2.typeforce.anyOf(types_1$2.typeforce.BufferN(64),types_1$2.typeforce.BufferN(65))),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer)),scriptTree:types_1$2.typeforce.maybe(types_1$2.isTaptree),redeem:types_1$2.typeforce.maybe({output:types_1$2.typeforce.maybe(types_1$2.typeforce.Buffer),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer))}),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number)},et);const rt=lazy.value(()=>{const ot=bech32_1$1.bech32m.decode(et.address),lt=ot.words.shift(),ut=bech32_1$1.bech32m.fromWords(ot.words);return{version:lt,prefix:ot.prefix,data:buffer_1.Buffer.from(ut)}}),nt=lazy.value(()=>{if(!(!et.witness||!et.witness.length))return et.witness.length>=2&&et.witness[et.witness.length-1][0]===ANNEX_PREFIX?et.witness.slice(0,-1):et.witness.slice()}),it=lazy.value(()=>{if(et.scriptTree)return(0,bip341_1$2.toHashTree)(et.scriptTree);if(et.hash)return{hash:et.hash}}),st=et.network||networks_1$1.bitcoin,at={name:"p2tr",network:st};if(lazy.prop(at,"address",()=>{if(!at.pubkey)return;const ot=bech32_1$1.bech32m.toWords(at.pubkey);return ot.unshift(TAPROOT_WITNESS_VERSION),bech32_1$1.bech32m.encode(st.bech32,ot)}),lazy.prop(at,"hash",()=>{const ot=it();if(ot)return ot.hash;const lt=nt();if(lt&<.length>1){const ut=lt[lt.length-1],dt=ut[0]&types_1$2.TAPLEAF_VERSION_MASK,bt=lt[lt.length-2],gt=(0,bip341_1$2.tapleafHash)({output:bt,version:dt});return(0,bip341_1$2.rootHashFromPath)(ut,gt)}return null}),lazy.prop(at,"output",()=>{if(at.pubkey)return bscript$4.compile([OPS.OP_1,at.pubkey])}),lazy.prop(at,"redeemVersion",()=>et.redeemVersion?et.redeemVersion:et.redeem&&et.redeem.redeemVersion!==void 0&&et.redeem.redeemVersion!==null?et.redeem.redeemVersion:bip341_1$2.LEAF_VERSION_TAPSCRIPT),lazy.prop(at,"redeem",()=>{const ot=nt();if(!(!ot||ot.length<2))return{output:ot[ot.length-2],witness:ot.slice(0,-2),redeemVersion:ot[ot.length-1][0]&types_1$2.TAPLEAF_VERSION_MASK}}),lazy.prop(at,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(at.internalPubkey){const ot=(0,bip341_1$2.tweakKey)(at.internalPubkey,at.hash);if(ot)return ot.x}}),lazy.prop(at,"internalPubkey",()=>{if(et.internalPubkey)return et.internalPubkey;const ot=nt();if(ot&&ot.length>1)return ot[ot.length-1].slice(1,33)}),lazy.prop(at,"signature",()=>{if(et.signature)return et.signature;const ot=nt();if(!(!ot||ot.length!==1))return ot[0]}),lazy.prop(at,"witness",()=>{if(et.witness)return et.witness;const ot=it();if(ot&&et.redeem&&et.redeem.output&&et.internalPubkey){const lt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion}),ut=(0,bip341_1$2.findScriptPath)(ot,lt);if(!ut)return;const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,ot.hash);if(!dt)return;const bt=buffer_1.Buffer.concat([buffer_1.Buffer.from([at.redeemVersion|dt.parity]),et.internalPubkey].concat(ut));return[et.redeem.output,bt]}if(et.signature)return[et.signature]}),tt.validate){let ot=buffer_1.Buffer.from([]);if(et.address){if(st&&st.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==TAPROOT_WITNESS_VERSION)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");ot=rt().data}if(et.pubkey){if(ot.length>0&&!ot.equals(et.pubkey))throw new TypeError("Pubkey mismatch");ot=et.pubkey}if(et.output){if(et.output.length!==34||et.output[0]!==OPS.OP_1||et.output[1]!==32)throw new TypeError("Output is invalid");if(ot.length>0&&!ot.equals(et.output.slice(2)))throw new TypeError("Pubkey mismatch");ot=et.output.slice(2)}if(et.internalPubkey){const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,at.hash);if(ot.length>0&&!ot.equals(dt.x))throw new TypeError("Pubkey mismatch");ot=dt.x}if(ot&&ot.length&&!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(ot))throw new TypeError("Invalid pubkey for p2tr");const lt=it();if(et.hash&<&&!et.hash.equals(lt.hash))throw new TypeError("Hash mismatch");if(et.redeem&&et.redeem.output&<){const dt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion});if(!(0,bip341_1$2.findScriptPath)(lt,dt))throw new TypeError("Redeem script not in tree")}const ut=nt();if(et.redeem&&at.redeem){if(et.redeem.redeemVersion&&et.redeem.redeemVersion!==at.redeem.redeemVersion)throw new TypeError("Redeem.redeemVersion and witness mismatch");if(et.redeem.output){if(bscript$4.decompile(et.redeem.output).length===0)throw new TypeError("Redeem.output is invalid");if(at.redeem.output&&!et.redeem.output.equals(at.redeem.output))throw new TypeError("Redeem.output and witness mismatch")}if(et.redeem.witness&&at.redeem.witness&&!stacksEqual(et.redeem.witness,at.redeem.witness))throw new TypeError("Redeem.witness and witness mismatch")}if(ut&&ut.length)if(ut.length===1){if(et.signature&&!et.signature.equals(ut[0]))throw new TypeError("Signature mismatch")}else{const dt=ut[ut.length-1];if(dt.length<33)throw new TypeError(`The control-block length is too small. Got ${dt.length}, expected min 33.`);if((dt.length-33)%32!==0)throw new TypeError(`The control-block length of ${dt.length} is incorrect!`);const bt=(dt.length-33)/32;if(bt>128)throw new TypeError(`The script path is too long. Got ${bt}, expected max 128.`);const gt=dt.slice(1,33);if(et.internalPubkey&&!et.internalPubkey.equals(gt))throw new TypeError("Internal pubkey mismatch");if(!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(gt))throw new TypeError("Invalid internalPubkey for p2tr witness");const kt=dt[0]&types_1$2.TAPLEAF_VERSION_MASK,pt=ut[ut.length-2],yt=(0,bip341_1$2.tapleafHash)({output:pt,version:kt}),$t=(0,bip341_1$2.rootHashFromPath)(dt,yt),mt=(0,bip341_1$2.tweakKey)(gt,$t);if(!mt)throw new TypeError("Invalid outputKey for p2tr witness");if(ot.length&&!ot.equals(mt.x))throw new TypeError("Pubkey mismatch for p2tr witness");if(mt.parity!==(dt[0]&1))throw new Error("Incorrect parity")}}return Object.assign(at,et)}p2tr$1.p2tr=p2tr;function stacksEqual(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.p2tr=et.p2wsh=et.p2wpkh=et.p2sh=et.p2pkh=et.p2pk=et.p2ms=et.embed=void 0;const tt=embed;Object.defineProperty(et,"embed",{enumerable:!0,get:function(){return tt.p2data}});const rt=p2ms$1;Object.defineProperty(et,"p2ms",{enumerable:!0,get:function(){return rt.p2ms}});const nt=p2pk$1;Object.defineProperty(et,"p2pk",{enumerable:!0,get:function(){return nt.p2pk}});const it=p2pkh$1;Object.defineProperty(et,"p2pkh",{enumerable:!0,get:function(){return it.p2pkh}});const st=p2sh$1;Object.defineProperty(et,"p2sh",{enumerable:!0,get:function(){return st.p2sh}});const at=p2wpkh$1;Object.defineProperty(et,"p2wpkh",{enumerable:!0,get:function(){return at.p2wpkh}});const ot=p2wsh$1;Object.defineProperty(et,"p2wsh",{enumerable:!0,get:function(){return ot.p2wsh}});const lt=p2tr$1;Object.defineProperty(et,"p2tr",{enumerable:!0,get:function(){return lt.p2tr}})})(payments$3);Object.defineProperty(address,"__esModule",{value:!0});address.toOutputScript=address.fromOutputScript=address.toBech32=address.toBase58Check=address.fromBech32=address.fromBase58Check=void 0;const networks=networks$1,payments$2=payments$3,bscript$3=script,types_1$1=types$6,bech32_1=dist,bs58check=bs58check$3,FUTURE_SEGWIT_MAX_SIZE=40,FUTURE_SEGWIT_MIN_SIZE=2,FUTURE_SEGWIT_MAX_VERSION=16,FUTURE_SEGWIT_MIN_VERSION=2,FUTURE_SEGWIT_VERSION_DIFF=80,FUTURE_SEGWIT_VERSION_WARNING="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function _toFutureSegwitAddress(et,tt){const rt=et.slice(2);if(rt.lengthFUTURE_SEGWIT_MAX_SIZE)throw new TypeError("Invalid program length for segwit address");const nt=et[0]-FUTURE_SEGWIT_VERSION_DIFF;if(ntFUTURE_SEGWIT_MAX_VERSION)throw new TypeError("Invalid version for segwit address");if(et[1]!==rt.length)throw new TypeError("Invalid script for segwit address");return console.warn(FUTURE_SEGWIT_VERSION_WARNING),toBech32(rt,nt,tt.bech32)}function fromBase58Check(et){const tt=Buffer.from(bs58check.decode(et));if(tt.length<21)throw new TypeError(et+" is too short");if(tt.length>21)throw new TypeError(et+" is too long");const rt=tt.readUInt8(0),nt=tt.slice(1);return{version:rt,hash:nt}}address.fromBase58Check=fromBase58Check;function fromBech32(et){let tt,rt;try{tt=bech32_1.bech32.decode(et)}catch{}if(tt){if(rt=tt.words[0],rt!==0)throw new TypeError(et+" uses wrong encoding")}else if(tt=bech32_1.bech32m.decode(et),rt=tt.words[0],rt===0)throw new TypeError(et+" uses wrong encoding");const nt=bech32_1.bech32.fromWords(tt.words.slice(1));return{version:rt,prefix:tt.prefix,data:Buffer.from(nt)}}address.fromBech32=fromBech32;function toBase58Check(et,tt){(0,types_1$1.typeforce)((0,types_1$1.tuple)(types_1$1.Hash160bit,types_1$1.UInt8),arguments);const rt=Buffer.allocUnsafe(21);return rt.writeUInt8(tt,0),et.copy(rt,1),bs58check.encode(rt)}address.toBase58Check=toBase58Check;function toBech32(et,tt,rt){const nt=bech32_1.bech32.toWords(et);return nt.unshift(tt),tt===0?bech32_1.bech32.encode(rt,nt):bech32_1.bech32m.encode(rt,nt)}address.toBech32=toBech32;function fromOutputScript(et,tt){tt=tt||networks.bitcoin;try{return payments$2.p2pkh({output:et,network:tt}).address}catch{}try{return payments$2.p2sh({output:et,network:tt}).address}catch{}try{return payments$2.p2wpkh({output:et,network:tt}).address}catch{}try{return payments$2.p2wsh({output:et,network:tt}).address}catch{}try{return payments$2.p2tr({output:et,network:tt}).address}catch{}try{return _toFutureSegwitAddress(et,tt)}catch{}throw new Error(bscript$3.toASM(et)+" has no matching Address")}address.fromOutputScript=fromOutputScript;function toOutputScript(et,tt){tt=tt||networks.bitcoin;let rt,nt;try{rt=fromBase58Check(et)}catch{}if(rt){if(rt.version===tt.pubKeyHash)return payments$2.p2pkh({hash:rt.hash}).output;if(rt.version===tt.scriptHash)return payments$2.p2sh({hash:rt.hash}).output}else{try{nt=fromBech32(et)}catch{}if(nt){if(nt.prefix!==tt.bech32)throw new Error(et+" has an invalid prefix");if(nt.version===0){if(nt.data.length===20)return payments$2.p2wpkh({hash:nt.data}).output;if(nt.data.length===32)return payments$2.p2wsh({hash:nt.data}).output}else if(nt.version===1){if(nt.data.length===32)return payments$2.p2tr({pubkey:nt.data}).output}else if(nt.version>=FUTURE_SEGWIT_MIN_VERSION&&nt.version<=FUTURE_SEGWIT_MAX_VERSION&&nt.data.length>=FUTURE_SEGWIT_MIN_SIZE&&nt.data.length<=FUTURE_SEGWIT_MAX_SIZE)return console.warn(FUTURE_SEGWIT_VERSION_WARNING),bscript$3.compile([nt.version+FUTURE_SEGWIT_VERSION_DIFF,nt.data])}}throw new Error(et+" has no matching Script")}address.toOutputScript=toOutputScript;var block={},merkle={};Object.defineProperty(merkle,"__esModule",{value:!0});merkle.fastMerkleRoot=void 0;function fastMerkleRoot(et,tt){if(!Array.isArray(et))throw TypeError("Expected values Array");if(typeof tt!="function")throw TypeError("Expected digest Function");let rt=et.length;const nt=et.concat();for(;rt>1;){let it=0;for(let st=0;strt+varSliceSize(nt),0)}const EMPTY_BUFFER=Buffer.allocUnsafe(0),EMPTY_WITNESS=[],ZERO=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),ONE=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),VALUE_UINT64_MAX=Buffer.from("ffffffffffffffff","hex"),BLANK_OUTPUT={script:EMPTY_BUFFER,valueBuffer:VALUE_UINT64_MAX};function isOutput(et){return et.value!==void 0}class Transaction{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(tt,rt){const nt=new bufferutils_1$2.BufferReader(tt),it=new Transaction;it.version=nt.readInt32();const st=nt.readUInt8(),at=nt.readUInt8();let ot=!1;st===Transaction.ADVANCED_TRANSACTION_MARKER&&at===Transaction.ADVANCED_TRANSACTION_FLAG?ot=!0:nt.offset-=2;const lt=nt.readVarInt();for(let dt=0;dttt.witness.length!==0)}weight(){const tt=this.byteLength(!1),rt=this.byteLength(!0);return tt*3+rt}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(tt=!0){const rt=tt&&this.hasWitnesses();return(rt?10:8)+bufferutils_1$2.varuint.encodingLength(this.ins.length)+bufferutils_1$2.varuint.encodingLength(this.outs.length)+this.ins.reduce((nt,it)=>nt+40+varSliceSize(it.script),0)+this.outs.reduce((nt,it)=>nt+8+varSliceSize(it.script),0)+(rt?this.ins.reduce((nt,it)=>nt+vectorSize(it.witness),0):0)}clone(){const tt=new Transaction;return tt.version=this.version,tt.locktime=this.locktime,tt.ins=this.ins.map(rt=>({hash:rt.hash,index:rt.index,script:rt.script,sequence:rt.sequence,witness:rt.witness})),tt.outs=this.outs.map(rt=>({script:rt.script,value:rt.value})),tt}hashForSignature(tt,rt,nt){if(typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Number),arguments),tt>=this.ins.length)return ONE;const it=bscript$2.compile(bscript$2.decompile(rt).filter(ot=>ot!==script_1.OPS.OP_CODESEPARATOR)),st=this.clone();if((nt&31)===Transaction.SIGHASH_NONE)st.outs=[],st.ins.forEach((ot,lt)=>{lt!==tt&&(ot.sequence=0)});else if((nt&31)===Transaction.SIGHASH_SINGLE){if(tt>=this.outs.length)return ONE;st.outs.length=tt+1;for(let ot=0;ot{lt!==tt&&(ot.sequence=0)})}nt&Transaction.SIGHASH_ANYONECANPAY?(st.ins=[st.ins[tt]],st.ins[0].script=it):(st.ins.forEach(ot=>{ot.script=EMPTY_BUFFER}),st.ins[tt].script=it);const at=Buffer.allocUnsafe(st.byteLength(!1)+4);return at.writeInt32LE(nt,at.length-4),st.__toBuffer(at,0,!1),bcrypto$1.hash256(at)}hashForWitnessV1(tt,rt,nt,it,st,at){if(typeforce$1(types$2.tuple(types$2.UInt32,typeforce$1.arrayOf(types$2.Buffer),typeforce$1.arrayOf(types$2.Satoshi),types$2.UInt32),arguments),nt.length!==this.ins.length||rt.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const ot=it===Transaction.SIGHASH_DEFAULT?Transaction.SIGHASH_ALL:it&Transaction.SIGHASH_OUTPUT_MASK,ut=(it&Transaction.SIGHASH_INPUT_MASK)===Transaction.SIGHASH_ANYONECANPAY,dt=ot===Transaction.SIGHASH_NONE,bt=ot===Transaction.SIGHASH_SINGLE;let gt=EMPTY_BUFFER,kt=EMPTY_BUFFER,pt=EMPTY_BUFFER,yt=EMPTY_BUFFER,$t=EMPTY_BUFFER;if(!ut){let Bt=bufferutils_1$2.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach(Ft=>{Bt.writeSlice(Ft.hash),Bt.writeUInt32(Ft.index)}),gt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(8*this.ins.length),nt.forEach(Ft=>Bt.writeUInt64(Ft)),kt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(rt.map(varSliceSize).reduce((Ft,Dt)=>Ft+Dt)),rt.forEach(Ft=>Bt.writeVarSlice(Ft)),pt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach(Ft=>Bt.writeUInt32(Ft.sequence)),yt=bcrypto$1.sha256(Bt.end())}if(dt||bt){if(bt&&tt8+varSliceSize(Dt.script)).reduce((Dt,zt)=>Dt+zt),Ft=bufferutils_1$2.BufferWriter.withCapacity(Bt);this.outs.forEach(Dt=>{Ft.writeUInt64(Dt.value),Ft.writeVarSlice(Dt.script)}),$t=bcrypto$1.sha256(Ft.end())}const mt=(st?2:0)+(at?1:0),wt=174-(ut?49:0)-(dt?32:0)+(at?32:0)+(st?37:0),St=bufferutils_1$2.BufferWriter.withCapacity(wt);if(St.writeUInt8(it),St.writeInt32(this.version),St.writeUInt32(this.locktime),St.writeSlice(gt),St.writeSlice(kt),St.writeSlice(pt),St.writeSlice(yt),dt||bt||St.writeSlice($t),St.writeUInt8(mt),ut){const Bt=this.ins[tt];St.writeSlice(Bt.hash),St.writeUInt32(Bt.index),St.writeUInt64(nt[tt]),St.writeVarSlice(rt[tt]),St.writeUInt32(Bt.sequence)}else St.writeUInt32(tt);if(at){const Bt=bufferutils_1$2.BufferWriter.withCapacity(varSliceSize(at));Bt.writeVarSlice(at),St.writeSlice(bcrypto$1.sha256(Bt.end()))}return bt&&St.writeSlice($t),st&&(St.writeSlice(st),St.writeUInt8(0),St.writeUInt32(4294967295)),bcrypto$1.taggedHash("TapSighash",Buffer.concat([Buffer.from([0]),St.end()]))}hashForWitnessV0(tt,rt,nt,it){typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Satoshi,types$2.UInt32),arguments);let st=Buffer.from([]),at,ot=ZERO,lt=ZERO,ut=ZERO;if(it&Transaction.SIGHASH_ANYONECANPAY||(st=Buffer.allocUnsafe(36*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeSlice(bt.hash),at.writeUInt32(bt.index)}),lt=bcrypto$1.hash256(st)),!(it&Transaction.SIGHASH_ANYONECANPAY)&&(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE&&(st=Buffer.allocUnsafe(4*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeUInt32(bt.sequence)}),ut=bcrypto$1.hash256(st)),(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE){const bt=this.outs.reduce((gt,kt)=>gt+8+varSliceSize(kt.script),0);st=Buffer.allocUnsafe(bt),at=new bufferutils_1$2.BufferWriter(st,0),this.outs.forEach(gt=>{at.writeUInt64(gt.value),at.writeVarSlice(gt.script)}),ot=bcrypto$1.hash256(st)}else if((it&31)===Transaction.SIGHASH_SINGLE&&tt{it.writeSlice(at.hash),it.writeUInt32(at.index),it.writeVarSlice(at.script),it.writeUInt32(at.sequence)}),it.writeVarInt(this.outs.length),this.outs.forEach(at=>{isOutput(at)?it.writeUInt64(at.value):it.writeSlice(at.valueBuffer),it.writeVarSlice(at.script)}),st&&this.ins.forEach(at=>{it.writeVector(at.witness)}),it.writeUInt32(this.locktime),rt!==void 0?tt.slice(rt,it.offset):tt}}transaction.Transaction=Transaction;Transaction.DEFAULT_SEQUENCE=4294967295;Transaction.SIGHASH_DEFAULT=0;Transaction.SIGHASH_ALL=1;Transaction.SIGHASH_NONE=2;Transaction.SIGHASH_SINGLE=3;Transaction.SIGHASH_ANYONECANPAY=128;Transaction.SIGHASH_OUTPUT_MASK=3;Transaction.SIGHASH_INPUT_MASK=128;Transaction.ADVANCED_TRANSACTION_MARKER=0;Transaction.ADVANCED_TRANSACTION_FLAG=1;Object.defineProperty(block,"__esModule",{value:!0});block.Block=void 0;const bufferutils_1$1=bufferutils,bcrypto=crypto$2,merkle_1=merkle,transaction_1$3=transaction,types$1=types$6,{typeforce}=types$1,errorMerkleNoTxes=new TypeError("Cannot compute merkle root for zero transactions"),errorWitnessNotSegwit=new TypeError("Cannot compute witness commit for non-segwit block");class Block{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(tt){if(tt.length<80)throw new Error("Buffer too small (< 80 bytes)");const rt=new bufferutils_1$1.BufferReader(tt),nt=new Block;if(nt.version=rt.readInt32(),nt.prevHash=rt.readSlice(32),nt.merkleRoot=rt.readSlice(32),nt.timestamp=rt.readUInt32(),nt.bits=rt.readUInt32(),nt.nonce=rt.readUInt32(),tt.length===80)return nt;const it=()=>{const ot=transaction_1$3.Transaction.fromBuffer(rt.buffer.slice(rt.offset),!0);return rt.offset+=ot.byteLength(),ot},st=rt.readVarInt();nt.transactions=[];for(let ot=0;ot>24)-3,nt=tt&8388607,it=Buffer.alloc(32,0);return it.writeUIntBE(nt,29-rt,3),it}static calculateMerkleRoot(tt,rt){if(typeforce([{getHash:types$1.Function}],tt),tt.length===0)throw errorMerkleNoTxes;if(rt&&!txesHaveWitnessCommit(tt))throw errorWitnessNotSegwit;const nt=tt.map(st=>st.getHash(rt)),it=(0,merkle_1.fastMerkleRoot)(nt,bcrypto.hash256);return rt?bcrypto.hash256(Buffer.concat([it,tt[0].ins[0].witness[0]])):it}getWitnessCommit(){if(!txesHaveWitnessCommit(this.transactions))return null;const tt=this.transactions[0].outs.filter(nt=>nt.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(nt=>nt.script.slice(6,38));if(tt.length===0)return null;const rt=tt[tt.length-1];return rt instanceof Buffer&&rt.length===32?rt:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&this.witnessCommit.length===32||this.getWitnessCommit()!==null}hasWitness(){return anyTxHasWitness(this.transactions)}weight(){const tt=this.byteLength(!1,!1),rt=this.byteLength(!1,!0);return tt*3+rt}byteLength(tt,rt=!0){return tt||!this.transactions?80:80+bufferutils_1$1.varuint.encodingLength(this.transactions.length)+this.transactions.reduce((nt,it)=>nt+it.byteLength(rt),0)}getHash(){return bcrypto.hash256(this.toBuffer(!0))}getId(){return(0,bufferutils_1$1.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const tt=new Date(0);return tt.setUTCSeconds(this.timestamp),tt}toBuffer(tt){const rt=Buffer.allocUnsafe(this.byteLength(tt)),nt=new bufferutils_1$1.BufferWriter(rt);return nt.writeInt32(this.version),nt.writeSlice(this.prevHash),nt.writeSlice(this.merkleRoot),nt.writeUInt32(this.timestamp),nt.writeUInt32(this.bits),nt.writeUInt32(this.nonce),tt||!this.transactions||(bufferutils_1$1.varuint.encode(this.transactions.length,rt,nt.offset),nt.offset+=bufferutils_1$1.varuint.encode.bytes,this.transactions.forEach(it=>{const st=it.byteLength();it.toBuffer(rt,nt.offset),nt.offset+=st})),rt}toHex(tt){return this.toBuffer(tt).toString("hex")}checkTxRoots(){const tt=this.hasWitnessCommit();return!tt&&this.hasWitness()?!1:this.__checkMerkleRoot()&&(tt?this.__checkWitnessCommit():!0)}checkProofOfWork(){const tt=(0,bufferutils_1$1.reverseBuffer)(this.getHash()),rt=Block.calculateTarget(this.bits);return tt.compare(rt)<=0}__checkMerkleRoot(){if(!this.transactions)throw errorMerkleNoTxes;const tt=Block.calculateMerkleRoot(this.transactions);return this.merkleRoot.compare(tt)===0}__checkWitnessCommit(){if(!this.transactions)throw errorMerkleNoTxes;if(!this.hasWitnessCommit())throw errorWitnessNotSegwit;const tt=Block.calculateMerkleRoot(this.transactions,!0);return this.witnessCommit.compare(tt)===0}}block.Block=Block;function txesHaveWitnessCommit(et){return et instanceof Array&&et[0]&&et[0].ins&&et[0].ins instanceof Array&&et[0].ins[0]&&et[0].ins[0].witness&&et[0].ins[0].witness instanceof Array&&et[0].ins[0].witness.length>0}function anyTxHasWitness(et){return et instanceof Array&&et.some(tt=>typeof tt=="object"&&tt.ins instanceof Array&&tt.ins.some(rt=>typeof rt=="object"&&rt.witness instanceof Array&&rt.witness.length>0))}var psbt$1={},psbt={},combiner={},parser$1={},fromBuffer={},converter={},typeFields={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),function(tt){tt[tt.UNSIGNED_TX=0]="UNSIGNED_TX",tt[tt.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(et.GlobalTypes||(et.GlobalTypes={})),et.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(tt){tt[tt.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",tt[tt.WITNESS_UTXO=1]="WITNESS_UTXO",tt[tt.PARTIAL_SIG=2]="PARTIAL_SIG",tt[tt.SIGHASH_TYPE=3]="SIGHASH_TYPE",tt[tt.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=6]="BIP32_DERIVATION",tt[tt.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",tt[tt.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",tt[tt.POR_COMMITMENT=9]="POR_COMMITMENT",tt[tt.TAP_KEY_SIG=19]="TAP_KEY_SIG",tt[tt.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",tt[tt.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",tt[tt.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",tt[tt.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(et.InputTypes||(et.InputTypes={})),et.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(tt){tt[tt.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=2]="BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",tt[tt.TAP_TREE=6]="TAP_TREE",tt[tt.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(et.OutputTypes||(et.OutputTypes={})),et.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]})(typeFields);var globalXpub$1={};Object.defineProperty(globalXpub$1,"__esModule",{value:!0});const typeFields_1$g=typeFields,range$2=et=>[...Array(et).keys()];function decode$h(et){if(et.key[0]!==typeFields_1$g.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+et.key.toString("hex"));if(et.key.length!==79||![2,3].includes(et.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+et.key.toString("hex"));if(et.value.length/4%1!==0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const tt=et.key.slice(1),rt={masterFingerprint:et.value.slice(0,4),extendedPubkey:tt,path:"m"};for(const nt of range$2(et.value.length/4-1)){const it=et.value.readUInt32LE(nt*4+4),st=!!(it&2147483648),at=it&2147483647;rt.path+="/"+at.toString(10)+(st?"'":"")}return rt}globalXpub$1.decode=decode$h;function encode$i(et){const tt=Buffer.from([typeFields_1$g.GlobalTypes.GLOBAL_XPUB]),rt=Buffer.concat([tt,et.extendedPubkey]),nt=et.path.split("/"),it=Buffer.allocUnsafe(nt.length*4);et.masterFingerprint.copy(it,0);let st=4;return nt.slice(1).forEach(at=>{const ot=at.slice(-1)==="'";let lt=2147483647&parseInt(ot?at.slice(0,-1):at,10);ot&&(lt+=2147483648),it.writeUInt32LE(lt,st),st+=4}),{key:rt,value:it}}globalXpub$1.encode=encode$i;globalXpub$1.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";function check$c(et){const tt=et.extendedPubkey,rt=et.masterFingerprint,nt=et.path;return Buffer.isBuffer(tt)&&tt.length===78&&[2,3].indexOf(tt[45])>-1&&Buffer.isBuffer(rt)&&rt.length===4&&typeof nt=="string"&&!!nt.match(/^m(\/\d+'?)*$/)}globalXpub$1.check=check$c;function canAddToArray$3(et,tt,rt){const nt=tt.extendedPubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.extendedPubkey.equals(tt.extendedPubkey)).length===0)}globalXpub$1.canAddToArray=canAddToArray$3;var unsignedTx$1={};Object.defineProperty(unsignedTx$1,"__esModule",{value:!0});const typeFields_1$f=typeFields;function encode$h(et){return{key:Buffer.from([typeFields_1$f.GlobalTypes.UNSIGNED_TX]),value:et.toBuffer()}}unsignedTx$1.encode=encode$h;var finalScriptSig$1={};Object.defineProperty(finalScriptSig$1,"__esModule",{value:!0});const typeFields_1$e=typeFields;function decode$g(et){if(et.key[0]!==typeFields_1$e.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+et.key.toString("hex"));return et.value}finalScriptSig$1.decode=decode$g;function encode$g(et){return{key:Buffer.from([typeFields_1$e.InputTypes.FINAL_SCRIPTSIG]),value:et}}finalScriptSig$1.encode=encode$g;finalScriptSig$1.expected="Buffer";function check$b(et){return Buffer.isBuffer(et)}finalScriptSig$1.check=check$b;function canAdd$8(et,tt){return!!et&&!!tt&&et.finalScriptSig===void 0}finalScriptSig$1.canAdd=canAdd$8;var finalScriptWitness$1={};Object.defineProperty(finalScriptWitness$1,"__esModule",{value:!0});const typeFields_1$d=typeFields;function decode$f(et){if(et.key[0]!==typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+et.key.toString("hex"));return et.value}finalScriptWitness$1.decode=decode$f;function encode$f(et){return{key:Buffer.from([typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS]),value:et}}finalScriptWitness$1.encode=encode$f;finalScriptWitness$1.expected="Buffer";function check$a(et){return Buffer.isBuffer(et)}finalScriptWitness$1.check=check$a;function canAdd$7(et,tt){return!!et&&!!tt&&et.finalScriptWitness===void 0}finalScriptWitness$1.canAdd=canAdd$7;var nonWitnessUtxo$1={};Object.defineProperty(nonWitnessUtxo$1,"__esModule",{value:!0});const typeFields_1$c=typeFields;function decode$e(et){if(et.key[0]!==typeFields_1$c.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+et.key.toString("hex"));return et.value}nonWitnessUtxo$1.decode=decode$e;function encode$e(et){return{key:Buffer.from([typeFields_1$c.InputTypes.NON_WITNESS_UTXO]),value:et}}nonWitnessUtxo$1.encode=encode$e;nonWitnessUtxo$1.expected="Buffer";function check$9(et){return Buffer.isBuffer(et)}nonWitnessUtxo$1.check=check$9;function canAdd$6(et,tt){return!!et&&!!tt&&et.nonWitnessUtxo===void 0}nonWitnessUtxo$1.canAdd=canAdd$6;var partialSig$1={};Object.defineProperty(partialSig$1,"__esModule",{value:!0});const typeFields_1$b=typeFields;function decode$d(et){if(et.key[0]!==typeFields_1$b.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+et.key.toString("hex"));if(!(et.key.length===34||et.key.length===66)||![2,3,4].includes(et.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+et.key.toString("hex"));return{pubkey:et.key.slice(1),signature:et.value}}partialSig$1.decode=decode$d;function encode$d(et){const tt=Buffer.from([typeFields_1$b.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([tt,et.pubkey]),value:et.signature}}partialSig$1.encode=encode$d;partialSig$1.expected="{ pubkey: Buffer; signature: Buffer; }";function check$8(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.signature)&&[33,65].includes(et.pubkey.length)&&[2,3,4].includes(et.pubkey[0])&&isDerSigWithSighash(et.signature)}partialSig$1.check=check$8;function isDerSigWithSighash(et){if(!Buffer.isBuffer(et)||et.length<9||et[0]!==48||et.length!==et[1]+3||et[2]!==2)return!1;const tt=et[3];if(tt>33||tt<1||et[3+tt+1]!==2)return!1;const rt=et[3+tt+2];return!(rt>33||rt<1||et.length!==3+tt+2+rt+2)}function canAddToArray$2(et,tt,rt){const nt=tt.pubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)).length===0)}partialSig$1.canAddToArray=canAddToArray$2;var porCommitment$1={};Object.defineProperty(porCommitment$1,"__esModule",{value:!0});const typeFields_1$a=typeFields;function decode$c(et){if(et.key[0]!==typeFields_1$a.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+et.key.toString("hex"));return et.value.toString("utf8")}porCommitment$1.decode=decode$c;function encode$c(et){return{key:Buffer.from([typeFields_1$a.InputTypes.POR_COMMITMENT]),value:Buffer.from(et,"utf8")}}porCommitment$1.encode=encode$c;porCommitment$1.expected="string";function check$7(et){return typeof et=="string"}porCommitment$1.check=check$7;function canAdd$5(et,tt){return!!et&&!!tt&&et.porCommitment===void 0}porCommitment$1.canAdd=canAdd$5;var sighashType$1={};Object.defineProperty(sighashType$1,"__esModule",{value:!0});const typeFields_1$9=typeFields;function decode$b(et){if(et.key[0]!==typeFields_1$9.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+et.key.toString("hex"));return et.value.readUInt32LE(0)}sighashType$1.decode=decode$b;function encode$b(et){const tt=Buffer.from([typeFields_1$9.InputTypes.SIGHASH_TYPE]),rt=Buffer.allocUnsafe(4);return rt.writeUInt32LE(et,0),{key:tt,value:rt}}sighashType$1.encode=encode$b;sighashType$1.expected="number";function check$6(et){return typeof et=="number"}sighashType$1.check=check$6;function canAdd$4(et,tt){return!!et&&!!tt&&et.sighashType===void 0}sighashType$1.canAdd=canAdd$4;var tapKeySig$1={};Object.defineProperty(tapKeySig$1,"__esModule",{value:!0});const typeFields_1$8=typeFields;function decode$a(et){if(et.key[0]!==typeFields_1$8.InputTypes.TAP_KEY_SIG||et.key.length!==1)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+et.key.toString("hex"));if(!check$5(et.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return et.value}tapKeySig$1.decode=decode$a;function encode$a(et){return{key:Buffer.from([typeFields_1$8.InputTypes.TAP_KEY_SIG]),value:et}}tapKeySig$1.encode=encode$a;tapKeySig$1.expected="Buffer";function check$5(et){return Buffer.isBuffer(et)&&(et.length===64||et.length===65)}tapKeySig$1.check=check$5;function canAdd$3(et,tt){return!!et&&!!tt&&et.tapKeySig===void 0}tapKeySig$1.canAdd=canAdd$3;var tapLeafScript$1={};Object.defineProperty(tapLeafScript$1,"__esModule",{value:!0});const typeFields_1$7=typeFields;function decode$9(et){if(et.key[0]!==typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+et.key.toString("hex"));if((et.key.length-2)%32!==0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+et.key.toString("hex"));const tt=et.value[et.value.length-1];if((et.key[1]&254)!==tt)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+et.key.toString("hex"));const rt=et.value.slice(0,-1);return{controlBlock:et.key.slice(1),script:rt,leafVersion:tt}}tapLeafScript$1.decode=decode$9;function encode$9(et){const tt=Buffer.from([typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT]),rt=Buffer.from([et.leafVersion]);return{key:Buffer.concat([tt,et.controlBlock]),value:Buffer.concat([et.script,rt])}}tapLeafScript$1.encode=encode$9;tapLeafScript$1.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";function check$4(et){return Buffer.isBuffer(et.controlBlock)&&(et.controlBlock.length-1)%32===0&&(et.controlBlock[0]&254)===et.leafVersion&&Buffer.isBuffer(et.script)}tapLeafScript$1.check=check$4;function canAddToArray$1(et,tt,rt){const nt=tt.controlBlock.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.controlBlock.equals(tt.controlBlock)).length===0)}tapLeafScript$1.canAddToArray=canAddToArray$1;var tapMerkleRoot$1={};Object.defineProperty(tapMerkleRoot$1,"__esModule",{value:!0});const typeFields_1$6=typeFields;function decode$8(et){if(et.key[0]!==typeFields_1$6.InputTypes.TAP_MERKLE_ROOT||et.key.length!==1)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+et.key.toString("hex"));if(!check$3(et.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return et.value}tapMerkleRoot$1.decode=decode$8;function encode$8(et){return{key:Buffer.from([typeFields_1$6.InputTypes.TAP_MERKLE_ROOT]),value:et}}tapMerkleRoot$1.encode=encode$8;tapMerkleRoot$1.expected="Buffer";function check$3(et){return Buffer.isBuffer(et)&&et.length===32}tapMerkleRoot$1.check=check$3;function canAdd$2(et,tt){return!!et&&!!tt&&et.tapMerkleRoot===void 0}tapMerkleRoot$1.canAdd=canAdd$2;var tapScriptSig$1={};Object.defineProperty(tapScriptSig$1,"__esModule",{value:!0});const typeFields_1$5=typeFields;function decode$7(et){if(et.key[0]!==typeFields_1$5.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+et.key.toString("hex"));if(et.key.length!==65)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+et.key.toString("hex"));if(et.value.length!==64&&et.value.length!==65)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+et.key.toString("hex"));const tt=et.key.slice(1,33),rt=et.key.slice(33);return{pubkey:tt,leafHash:rt,signature:et.value}}tapScriptSig$1.decode=decode$7;function encode$7(et){const tt=Buffer.from([typeFields_1$5.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([tt,et.pubkey,et.leafHash]),value:et.signature}}tapScriptSig$1.encode=encode$7;tapScriptSig$1.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";function check$2(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.leafHash)&&Buffer.isBuffer(et.signature)&&et.pubkey.length===32&&et.leafHash.length===32&&(et.signature.length===64||et.signature.length===65)}tapScriptSig$1.check=check$2;function canAddToArray(et,tt,rt){const nt=tt.pubkey.toString("hex")+tt.leafHash.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)&&it.leafHash.equals(tt.leafHash)).length===0)}tapScriptSig$1.canAddToArray=canAddToArray;var witnessUtxo$1={},tools={},varint={};Object.defineProperty(varint,"__esModule",{value:!0});const MAX_SAFE_INTEGER$2=9007199254740991;function checkUInt53(et){if(et<0||et>MAX_SAFE_INTEGER$2||et%1!==0)throw new RangeError("value out of range")}function encode$6(et,tt,rt){if(checkUInt53(et),tt||(tt=Buffer.allocUnsafe(encodingLength(et))),!Buffer.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),Object.assign(encode$6,{bytes:1})):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),Object.assign(encode$6,{bytes:3})):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),Object.assign(encode$6,{bytes:5})):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),Object.assign(encode$6,{bytes:9})),tt}varint.encode=encode$6;function decode$6(et,tt){if(!Buffer.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);const rt=et.readUInt8(tt);if(rt<253)return Object.assign(decode$6,{bytes:1}),rt;if(rt===253)return Object.assign(decode$6,{bytes:3}),et.readUInt16LE(tt+1);if(rt===254)return Object.assign(decode$6,{bytes:5}),et.readUInt32LE(tt+1);{Object.assign(decode$6,{bytes:9});const nt=et.readUInt32LE(tt+1),st=et.readUInt32LE(tt+5)*4294967296+nt;return checkUInt53(st),st}}varint.decode=decode$6;function encodingLength(et){return checkUInt53(et),et<253?1:et<=65535?3:et<=4294967295?5:9}varint.encodingLength=encodingLength;Object.defineProperty(tools,"__esModule",{value:!0});const varuint$6=varint;tools.range=et=>[...Array(et).keys()];function reverseBuffer(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;nttt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint(nt+rt,9007199254740991),nt+rt}tools.readUInt64LE=readUInt64LE;function writeUInt64LE(et,tt,rt){return verifuint(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}tools.writeUInt64LE=writeUInt64LE;Object.defineProperty(witnessUtxo$1,"__esModule",{value:!0});const typeFields_1$4=typeFields,tools_1$2=tools,varuint$5=varint;function decode$5(et){if(et.key[0]!==typeFields_1$4.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+et.key.toString("hex"));const tt=tools_1$2.readUInt64LE(et.value,0);let rt=8;const nt=varuint$5.decode(et.value,rt);rt+=varuint$5.encodingLength(nt);const it=et.value.slice(rt);if(it.length!==nt)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:it,value:tt}}witnessUtxo$1.decode=decode$5;function encode$5(et){const{script:tt,value:rt}=et,nt=varuint$5.encodingLength(tt.length),it=Buffer.allocUnsafe(8+nt+tt.length);return tools_1$2.writeUInt64LE(it,rt,0),varuint$5.encode(tt.length,it,8),tt.copy(it,8+nt),{key:Buffer.from([typeFields_1$4.InputTypes.WITNESS_UTXO]),value:it}}witnessUtxo$1.encode=encode$5;witnessUtxo$1.expected="{ script: Buffer; value: number; }";function check$1(et){return Buffer.isBuffer(et.script)&&typeof et.value=="number"}witnessUtxo$1.check=check$1;function canAdd$1(et,tt){return!!et&&!!tt&&et.witnessUtxo===void 0}witnessUtxo$1.canAdd=canAdd$1;var tapTree$1={};Object.defineProperty(tapTree$1,"__esModule",{value:!0});const typeFields_1$3=typeFields,varuint$4=varint;function decode$4(et){if(et.key[0]!==typeFields_1$3.OutputTypes.TAP_TREE||et.key.length!==1)throw new Error("Decode Error: could not decode tapTree with key 0x"+et.key.toString("hex"));let tt=0;const rt=[];for(;tt[Buffer.of(nt.depth,nt.leafVersion),varuint$4.encode(nt.script.length),nt.script]));return{key:tt,value:Buffer.concat(rt)}}tapTree$1.encode=encode$4;tapTree$1.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";function check(et){return Array.isArray(et.leaves)&&et.leaves.every(tt=>tt.depth>=0&&tt.depth<=128&&(tt.leafVersion&254)===tt.leafVersion&&Buffer.isBuffer(tt.script))}tapTree$1.check=check;function canAdd(et,tt){return!!et&&!!tt&&et.tapTree===void 0}tapTree$1.canAdd=canAdd;var bip32Derivation$2={};Object.defineProperty(bip32Derivation$2,"__esModule",{value:!0});const range$1=et=>[...Array(et).keys()],isValidDERKey=et=>et.length===33&&[2,3].includes(et[0])||et.length===65&&et[0]===4;function makeConverter$4(et,tt=isValidDERKey){function rt(ot){if(ot.key[0]!==et)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+ot.key.toString("hex"));const lt=ot.key.slice(1);if(!tt(lt))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+ot.key.toString("hex"));if(ot.value.length/4%1!==0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const ut={masterFingerprint:ot.value.slice(0,4),pubkey:lt,path:"m"};for(const dt of range$1(ot.value.length/4-1)){const bt=ot.value.readUInt32LE(dt*4+4),gt=!!(bt&2147483648),kt=bt&2147483647;ut.path+="/"+kt.toString(10)+(gt?"'":"")}return ut}function nt(ot){const lt=Buffer.from([et]),ut=Buffer.concat([lt,ot.pubkey]),dt=ot.path.split("/"),bt=Buffer.allocUnsafe(dt.length*4);ot.masterFingerprint.copy(bt,0);let gt=4;return dt.slice(1).forEach(kt=>{const pt=kt.slice(-1)==="'";let yt=2147483647&parseInt(pt?kt.slice(0,-1):kt,10);pt&&(yt+=2147483648),bt.writeUInt32LE(yt,gt),gt+=4}),{key:ut,value:bt}}const it="{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }";function st(ot){return Buffer.isBuffer(ot.pubkey)&&Buffer.isBuffer(ot.masterFingerprint)&&typeof ot.path=="string"&&tt(ot.pubkey)&&ot.masterFingerprint.length===4}function at(ot,lt,ut){const dt=lt.pubkey.toString("hex");return ut.has(dt)?!1:(ut.add(dt),ot.filter(bt=>bt.pubkey.equals(lt.pubkey)).length===0)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:at}}bip32Derivation$2.makeConverter=makeConverter$4;var checkPubkey$1={};Object.defineProperty(checkPubkey$1,"__esModule",{value:!0});function makeChecker(et){return tt;function tt(rt){let nt;if(et.includes(rt.key[0])&&(nt=rt.key.slice(1),!(nt.length===33||nt.length===65)||![2,3,4].includes(nt[0])))throw new Error("Format Error: invalid pubkey in key 0x"+rt.key.toString("hex"));return nt}}checkPubkey$1.makeChecker=makeChecker;var redeemScript$1={};Object.defineProperty(redeemScript$1,"__esModule",{value:!0});function makeConverter$3(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode redeemScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.redeemScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}redeemScript$1.makeConverter=makeConverter$3;var tapBip32Derivation$1={};Object.defineProperty(tapBip32Derivation$1,"__esModule",{value:!0});const varuint$3=varint,bip32Derivation$1=bip32Derivation$2,isValidBIP340Key=et=>et.length===32;function makeConverter$2(et){const tt=bip32Derivation$1.makeConverter(et,isValidBIP340Key);function rt(at){const ot=varuint$3.decode(at.value),lt=varuint$3.encodingLength(ot),ut=tt.decode({key:at.key,value:at.value.slice(lt+ot*32)}),dt=new Array(ot);for(let bt=0,gt=lt;btBuffer.isBuffer(ot)&&ot.length===32)&&tt.check(at)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:tt.canAddToArray}}tapBip32Derivation$1.makeConverter=makeConverter$2;var tapInternalKey$1={};Object.defineProperty(tapInternalKey$1,"__esModule",{value:!0});function makeConverter$1(et){function tt(at){if(at.key[0]!==et||at.key.length!==1)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+at.key.toString("hex"));if(at.value.length!==32)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)&&at.length===32}function st(at,ot){return!!at&&!!ot&&at.tapInternalKey===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}tapInternalKey$1.makeConverter=makeConverter$1;var witnessScript$1={};Object.defineProperty(witnessScript$1,"__esModule",{value:!0});function makeConverter(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode witnessScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.witnessScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}witnessScript$1.makeConverter=makeConverter;Object.defineProperty(converter,"__esModule",{value:!0});const typeFields_1$2=typeFields,globalXpub=globalXpub$1,unsignedTx=unsignedTx$1,finalScriptSig=finalScriptSig$1,finalScriptWitness=finalScriptWitness$1,nonWitnessUtxo=nonWitnessUtxo$1,partialSig=partialSig$1,porCommitment=porCommitment$1,sighashType=sighashType$1,tapKeySig=tapKeySig$1,tapLeafScript=tapLeafScript$1,tapMerkleRoot=tapMerkleRoot$1,tapScriptSig=tapScriptSig$1,witnessUtxo=witnessUtxo$1,tapTree=tapTree$1,bip32Derivation=bip32Derivation$2,checkPubkey=checkPubkey$1,redeemScript=redeemScript$1,tapBip32Derivation=tapBip32Derivation$1,tapInternalKey=tapInternalKey$1,witnessScript=witnessScript$1,globals={unsignedTx,globalXpub,checkPubkey:checkPubkey.makeChecker([])};converter.globals=globals;const inputs={nonWitnessUtxo,partialSig,sighashType,finalScriptSig,finalScriptWitness,porCommitment,witnessUtxo,bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.InputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.InputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.InputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.InputTypes.PARTIAL_SIG,typeFields_1$2.InputTypes.BIP32_DERIVATION]),tapKeySig,tapScriptSig,tapLeafScript,tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot};converter.inputs=inputs;const outputs={bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.OutputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.OutputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.OutputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.OutputTypes.TAP_BIP32_DERIVATION),tapTree,tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.OutputTypes.TAP_INTERNAL_KEY)};converter.outputs=outputs;Object.defineProperty(fromBuffer,"__esModule",{value:!0});const convert$2=converter,tools_1$1=tools,varuint$2=varint,typeFields_1$1=typeFields;function psbtFromBuffer(et,tt){let rt=0;function nt(){const $t=varuint$2.decode(et,rt);rt+=varuint$2.encodingLength($t);const mt=et.slice(rt,rt+$t);return rt+=$t,mt}function it(){const $t=et.readUInt32BE(rt);return rt+=4,$t}function st(){const $t=et.readUInt8(rt);return rt+=1,$t}function at(){const $t=nt(),mt=nt();return{key:$t,value:mt}}function ot(){if(rt>=et.length)throw new Error("Format Error: Unexpected End of PSBT");const $t=et.readUInt8(rt)===0;return $t&&rt++,$t}if(it()!==1886610036)throw new Error("Format Error: Invalid Magic Number");if(st()!==255)throw new Error("Format Error: Magic Number must be followed by 0xff separator");const lt=[],ut={};for(;!ot();){const $t=at(),mt=$t.key.toString("hex");if(ut[mt])throw new Error("Format Error: Keys must be unique for global keymap: key "+mt);ut[mt]=1,lt.push($t)}const dt=lt.filter($t=>$t.key[0]===typeFields_1$1.GlobalTypes.UNSIGNED_TX);if(dt.length!==1)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const bt=tt(dt[0].value),{inputCount:gt,outputCount:kt}=bt.getInputOutputCounts(),pt=[],yt=[];for(const $t of tools_1$1.range(gt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each input: input index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}pt.push(wt)}for(const $t of tools_1$1.range(kt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each output: output index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}yt.push(wt)}return psbtFromKeyVals(bt,{globalMapKeyVals:lt,inputKeyVals:pt,outputKeyVals:yt})}fromBuffer.psbtFromBuffer=psbtFromBuffer;function checkKeyBuffer(et,tt,rt){if(!tt.equals(Buffer.from([rt])))throw new Error(`Format Error: Invalid ${et} key: ${tt.toString("hex")}`)}fromBuffer.checkKeyBuffer=checkKeyBuffer;function psbtFromKeyVals(et,{globalMapKeyVals:tt,inputKeyVals:rt,outputKeyVals:nt}){const it={unsignedTx:et};let st=0;for(const dt of tt)switch(dt.key[0]){case typeFields_1$1.GlobalTypes.UNSIGNED_TX:if(checkKeyBuffer("global",dt.key,typeFields_1$1.GlobalTypes.UNSIGNED_TX),st>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");st++;break;case typeFields_1$1.GlobalTypes.GLOBAL_XPUB:it.globalXpub===void 0&&(it.globalXpub=[]),it.globalXpub.push(convert$2.globals.globalXpub.decode(dt));break;default:it.unknownKeyVals||(it.unknownKeyVals=[]),it.unknownKeyVals.push(dt)}const at=rt.length,ot=nt.length,lt=[],ut=[];for(const dt of tools_1$1.range(at)){const bt={};for(const gt of rt[dt])switch(convert$2.inputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.InputTypes.NON_WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.NON_WITNESS_UTXO),bt.nonWitnessUtxo!==void 0)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");bt.nonWitnessUtxo=convert$2.inputs.nonWitnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_UTXO),bt.witnessUtxo!==void 0)throw new Error("Format Error: Input has multiple WITNESS_UTXO");bt.witnessUtxo=convert$2.inputs.witnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.PARTIAL_SIG:bt.partialSig===void 0&&(bt.partialSig=[]),bt.partialSig.push(convert$2.inputs.partialSig.decode(gt));break;case typeFields_1$1.InputTypes.SIGHASH_TYPE:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.SIGHASH_TYPE),bt.sighashType!==void 0)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");bt.sighashType=convert$2.inputs.sighashType.decode(gt);break;case typeFields_1$1.InputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.inputs.redeemScript.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.inputs.witnessScript.decode(gt);break;case typeFields_1$1.InputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.inputs.bip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.FINAL_SCRIPTSIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTSIG),bt.finalScriptSig=convert$2.inputs.finalScriptSig.decode(gt);break;case typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS),bt.finalScriptWitness=convert$2.inputs.finalScriptWitness.decode(gt);break;case typeFields_1$1.InputTypes.POR_COMMITMENT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.POR_COMMITMENT),bt.porCommitment=convert$2.inputs.porCommitment.decode(gt);break;case typeFields_1$1.InputTypes.TAP_KEY_SIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_KEY_SIG),bt.tapKeySig=convert$2.inputs.tapKeySig.decode(gt);break;case typeFields_1$1.InputTypes.TAP_SCRIPT_SIG:bt.tapScriptSig===void 0&&(bt.tapScriptSig=[]),bt.tapScriptSig.push(convert$2.inputs.tapScriptSig.decode(gt));break;case typeFields_1$1.InputTypes.TAP_LEAF_SCRIPT:bt.tapLeafScript===void 0&&(bt.tapLeafScript=[]),bt.tapLeafScript.push(convert$2.inputs.tapLeafScript.decode(gt));break;case typeFields_1$1.InputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.inputs.tapBip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.inputs.tapInternalKey.decode(gt);break;case typeFields_1$1.InputTypes.TAP_MERKLE_ROOT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_MERKLE_ROOT),bt.tapMerkleRoot=convert$2.inputs.tapMerkleRoot.decode(gt);break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}lt.push(bt)}for(const dt of tools_1$1.range(ot)){const bt={};for(const gt of nt[dt])switch(convert$2.outputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.OutputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.outputs.redeemScript.decode(gt);break;case typeFields_1$1.OutputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.outputs.witnessScript.decode(gt);break;case typeFields_1$1.OutputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.outputs.bip32Derivation.decode(gt));break;case typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.outputs.tapInternalKey.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_TREE:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_TREE),bt.tapTree=convert$2.outputs.tapTree.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.outputs.tapBip32Derivation.decode(gt));break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}ut.push(bt)}return{globalMap:it,inputs:lt,outputs:ut}}fromBuffer.psbtFromKeyVals=psbtFromKeyVals;var toBuffer={};Object.defineProperty(toBuffer,"__esModule",{value:!0});const convert$1=converter,tools_1=tools;function psbtToBuffer({globalMap:et,inputs:tt,outputs:rt}){const{globalKeyVals:nt,inputKeyVals:it,outputKeyVals:st}=psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}),at=tools_1.keyValsToBuffer(nt),ot=bt=>bt.length===0?[Buffer.from([0])]:bt.map(tools_1.keyValsToBuffer),lt=ot(it),ut=ot(st),dt=Buffer.allocUnsafe(5);return dt.writeUIntBE(482972169471,0,5),Buffer.concat([dt,at].concat(lt,ut))}toBuffer.psbtToBuffer=psbtToBuffer;const sortKeyVals=(et,tt)=>et.key.compare(tt.key);function keyValsFromMap(et,tt){const rt=new Set,nt=Object.entries(et).reduce((st,[at,ot])=>{if(at==="unknownKeyVals")return st;const lt=tt[at];if(lt===void 0)return st;const ut=(Array.isArray(ot)?ot:[ot]).map(lt.encode);return ut.map(bt=>bt.key.toString("hex")).forEach(bt=>{if(rt.has(bt))throw new Error("Serialize Error: Duplicate key: "+bt);rt.add(bt)}),st.concat(ut)},[]),it=et.unknownKeyVals?et.unknownKeyVals.filter(st=>!rt.has(st.key.toString("hex"))):[];return nt.concat(it).sort(sortKeyVals)}function psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}){return{globalKeyVals:keyValsFromMap(et,convert$1.globals),inputKeyVals:tt.map(nt=>keyValsFromMap(nt,convert$1.inputs)),outputKeyVals:rt.map(nt=>keyValsFromMap(nt,convert$1.outputs))}}toBuffer.psbtToKeyVals=psbtToKeyVals;(function(et){function tt(rt){for(var nt in rt)et.hasOwnProperty(nt)||(et[nt]=rt[nt])}Object.defineProperty(et,"__esModule",{value:!0}),tt(fromBuffer),tt(toBuffer)})(parser$1);Object.defineProperty(combiner,"__esModule",{value:!0});const parser_1$1=parser$1;function combine$1(et){const tt=et[0],rt=parser_1$1.psbtToKeyVals(tt),nt=et.slice(1);if(nt.length===0)throw new Error("Combine: Nothing to combine");const it=getTx(tt);if(it===void 0)throw new Error("Combine: Self missing transaction");const st=getKeySet(rt.globalKeyVals),at=rt.inputKeyVals.map(getKeySet),ot=rt.outputKeyVals.map(getKeySet);for(const lt of nt){const ut=getTx(lt);if(ut===void 0||!ut.toBuffer().equals(it.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const dt=parser_1$1.psbtToKeyVals(lt);getKeySet(dt.globalKeyVals).forEach(keyPusher(st,rt.globalKeyVals,dt.globalKeyVals)),dt.inputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(at[yt],rt.inputKeyVals[yt],dt.inputKeyVals[yt]))),dt.outputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(ot[yt],rt.outputKeyVals[yt],dt.outputKeyVals[yt])))}return parser_1$1.psbtFromKeyVals(it,{globalMapKeyVals:rt.globalKeyVals,inputKeyVals:rt.inputKeyVals,outputKeyVals:rt.outputKeyVals})}combiner.combine=combine$1;function keyPusher(et,tt,rt){return nt=>{if(et.has(nt))return;const it=rt.filter(st=>st.key.toString("hex")===nt)[0];tt.push(it),et.add(nt)}}function getTx(et){return et.globalMap.unsignedTx}function getKeySet(et){const tt=new Set;return et.forEach(rt=>{const nt=rt.key.toString("hex");if(tt.has(nt))throw new Error("Combine: KeyValue Map keys should be unique");tt.add(nt)}),tt}var utils={};(function(et){Object.defineProperty(et,"__esModule",{value:!0});const tt=converter;function rt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No input #${pt}`);return yt}et.checkForInput=rt;function nt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No output #${pt}`);return yt}et.checkForOutput=nt;function it(kt,pt,yt){if(kt.key[0]$t.key.equals(kt.key)).length!==0)throw new Error(`Duplicate Key: ${kt.key.toString("hex")}`)}et.checkHasKey=it;function st(kt){let pt=0;return Object.keys(kt).forEach(yt=>{Number(isNaN(Number(yt)))&&pt++}),pt}et.getEnumLength=st;function at(kt,pt){let yt=!1;if(pt.nonWitnessUtxo||pt.witnessUtxo){const $t=!!pt.redeemScript,mt=!!pt.witnessScript,wt=!$t||!!pt.finalScriptSig,St=!mt||!!pt.finalScriptWitness,Bt=!!pt.finalScriptSig||!!pt.finalScriptWitness;yt=wt&&St&&Bt}if(yt===!1)throw new Error(`Input #${kt} has too much or too little data to clean`)}et.inputCheckUncleanFinalized=at;function ot(kt,pt,yt,$t){throw new Error(`Data for ${kt} key ${pt} is incorrect: Expected ${yt} and got ${JSON.stringify($t)}`)}function lt(kt){return(pt,yt)=>{for(const $t of Object.keys(pt)){const mt=pt[$t],{canAdd:wt,canAddToArray:St,check:Bt,expected:Ft}=tt[kt+"s"][$t]||{},Dt=!!St;if(Bt)if(Dt){if(!Array.isArray(mt)||yt[$t]&&!Array.isArray(yt[$t]))throw new Error(`Key type ${$t} must be an array`);mt.every(Bt)||ot(kt,$t,Ft,mt);const zt=yt[$t]||[],Ht=new Set;if(!mt.every(Wt=>St(zt,Wt,Ht)))throw new Error("Can not add duplicate data to array");yt[$t]=zt.concat(mt)}else{if(Bt(mt)||ot(kt,$t,Ft,mt),!wt(yt,mt))throw new Error(`Can not add duplicate data to ${kt}`);yt[$t]=mt}}}}et.updateGlobal=lt("global"),et.updateInput=lt("input"),et.updateOutput=lt("output");function ut(kt,pt){const yt=kt.length-1,$t=rt(kt,yt);et.updateInput(pt,$t)}et.addInputAttributes=ut;function dt(kt,pt){const yt=kt.length-1,$t=nt(kt,yt);et.updateOutput(pt,$t)}et.addOutputAttributes=dt;function bt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Version: Invalid Transaction");return pt.writeUInt32LE(kt,0),pt}et.defaultVersionSetter=bt;function gt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Locktime: Invalid Transaction");return pt.writeUInt32LE(kt,pt.length-4),pt}et.defaultLocktimeSetter=gt})(utils);Object.defineProperty(psbt,"__esModule",{value:!0});const combiner_1=combiner,parser_1=parser$1,typeFields_1=typeFields,utils_1$1=utils;let Psbt$1=class{constructor(tt){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:tt}}static fromBase64(tt,rt){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt){const nt=parser_1.psbtFromBuffer(tt,rt),it=new this(nt.globalMap.unsignedTx);return Object.assign(it,nt),it}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return parser_1.psbtToBuffer(this)}updateGlobal(tt){return utils_1$1.updateGlobal(tt,this.globalMap),this}updateInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.updateInput(rt,nt),this}updateOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.updateOutput(rt,nt),this}addUnknownKeyValToGlobal(tt){return utils_1$1.checkHasKey(tt,this.globalMap.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(tt),this}addUnknownKeyValToInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.InputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addUnknownKeyValToOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.OutputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addInput(tt){this.globalMap.unsignedTx.addInput(tt),this.inputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.inputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToInput(nt,it)),utils_1$1.addInputAttributes(this.inputs,tt),this}addOutput(tt){this.globalMap.unsignedTx.addOutput(tt),this.outputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.outputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToOutput(nt,it)),utils_1$1.addOutputAttributes(this.outputs,tt),this}clearFinalizedInput(tt){const rt=utils_1$1.checkForInput(this.inputs,tt);utils_1$1.inputCheckUncleanFinalized(tt,rt);for(const nt of Object.keys(rt))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(nt)||delete rt[nt];return this}combine(...tt){const rt=combiner_1.combine([this].concat(tt));return Object.assign(this,rt),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}};psbt.Psbt=Psbt$1;var bip371={},psbtutils={};Object.defineProperty(psbtutils,"__esModule",{value:!0});psbtutils.signatureBlocksAction=psbtutils.checkInputForSig=psbtutils.pubkeyInScript=psbtutils.pubkeyPositionInScript=psbtutils.witnessStackToScriptWitness=psbtutils.isP2TR=psbtutils.isP2SHScript=psbtutils.isP2WSHScript=psbtutils.isP2WPKH=psbtutils.isP2PKH=psbtutils.isP2PK=psbtutils.isP2MS=void 0;const varuint$1=varint,bscript$1=script,transaction_1$2=transaction,crypto_1=crypto$2,payments$1=payments$3;function isPaymentFactory(et){return tt=>{try{return et({output:tt}),!0}catch{return!1}}}psbtutils.isP2MS=isPaymentFactory(payments$1.p2ms);psbtutils.isP2PK=isPaymentFactory(payments$1.p2pk);psbtutils.isP2PKH=isPaymentFactory(payments$1.p2pkh);psbtutils.isP2WPKH=isPaymentFactory(payments$1.p2wpkh);psbtutils.isP2WSHScript=isPaymentFactory(payments$1.p2wsh);psbtutils.isP2SHScript=isPaymentFactory(payments$1.p2sh);psbtutils.isP2TR=isPaymentFactory(payments$1.p2tr);function witnessStackToScriptWitness(et){let tt=Buffer.allocUnsafe(0);function rt(at){tt=Buffer.concat([tt,Buffer.from(at)])}function nt(at){const ot=tt.length,lt=varuint$1.encodingLength(at);tt=Buffer.concat([tt,Buffer.allocUnsafe(lt)]),varuint$1.encode(at,tt,ot)}function it(at){nt(at.length),rt(at)}function st(at){nt(at.length),at.forEach(it)}return st(et),tt}psbtutils.witnessStackToScriptWitness=witnessStackToScriptWitness;function pubkeyPositionInScript(et,tt){const rt=(0,crypto_1.hash160)(et),nt=et.slice(1,33),it=bscript$1.decompile(tt);if(it===null)throw new Error("Unknown script error");return it.findIndex(st=>typeof st=="number"?!1:st.equals(et)||st.equals(rt)||st.equals(nt))}psbtutils.pubkeyPositionInScript=pubkeyPositionInScript;function pubkeyInScript(et,tt){return pubkeyPositionInScript(et,tt)!==-1}psbtutils.pubkeyInScript=pubkeyInScript;function checkInputForSig(et,tt){return extractPartialSigs(et).some(nt=>signatureBlocksAction(nt,bscript$1.signature.decode,tt))}psbtutils.checkInputForSig=checkInputForSig;function signatureBlocksAction(et,tt,rt){const{hashType:nt}=tt(et),it=[];switch(nt&transaction_1$2.Transaction.SIGHASH_ANYONECANPAY&&it.push("addInput"),nt&31){case transaction_1$2.Transaction.SIGHASH_ALL:break;case transaction_1$2.Transaction.SIGHASH_SINGLE:case transaction_1$2.Transaction.SIGHASH_NONE:it.push("addOutput"),it.push("setInputSequence");break}return it.indexOf(rt)===-1}psbtutils.signatureBlocksAction=signatureBlocksAction;function extractPartialSigs(et){let tt=[];if((et.partialSig||[]).length===0){if(!et.finalScriptSig&&!et.finalScriptWitness)return[];tt=getPsigsFromInputFinalScripts(et)}else tt=et.partialSig;return tt.map(rt=>rt.signature)}function getPsigsFromInputFinalScripts(et){const tt=et.finalScriptSig?bscript$1.decompile(et.finalScriptSig)||[]:[],rt=et.finalScriptWitness?bscript$1.decompile(et.finalScriptWitness)||[]:[];return tt.concat(rt).filter(nt=>Buffer.isBuffer(nt)&&bscript$1.isCanonicalScriptSignature(nt)).map(nt=>({signature:nt}))}Object.defineProperty(bip371,"__esModule",{value:!0});bip371.checkTaprootInputForSigs=bip371.tapTreeFromList=bip371.tapTreeToList=bip371.tweakInternalPubKey=bip371.checkTaprootOutputFields=bip371.checkTaprootInputFields=bip371.isTaprootOutput=bip371.isTaprootInput=bip371.serializeTaprootSignature=bip371.tapScriptFinalizer=bip371.toXOnly=void 0;const types_1=types$6,transaction_1$1=transaction,psbtutils_1$1=psbtutils,bip341_1$1=bip341,payments_1=payments$3,psbtutils_2=psbtutils,toXOnly=et=>et.length===32?et:et.slice(1,33);bip371.toXOnly=toXOnly;function tapScriptFinalizer(et,tt,rt){const nt=findTapLeafToFinalize(tt,et,rt);try{const st=sortSignatures(tt,nt).concat(nt.script).concat(nt.controlBlock);return{finalScriptWitness:(0,psbtutils_1$1.witnessStackToScriptWitness)(st)}}catch(it){throw new Error(`Can not finalize taproot input #${et}: ${it}`)}}bip371.tapScriptFinalizer=tapScriptFinalizer;function serializeTaprootSignature(et,tt){const rt=tt?Buffer.from([tt]):Buffer.from([]);return Buffer.concat([et,rt])}bip371.serializeTaprootSignature=serializeTaprootSignature;function isTaprootInput(et){return et&&!!(et.tapInternalKey||et.tapMerkleRoot||et.tapLeafScript&&et.tapLeafScript.length||et.tapBip32Derivation&&et.tapBip32Derivation.length||et.witnessUtxo&&(0,psbtutils_1$1.isP2TR)(et.witnessUtxo.script))}bip371.isTaprootInput=isTaprootInput;function isTaprootOutput(et,tt){return et&&!!(et.tapInternalKey||et.tapTree||et.tapBip32Derivation&&et.tapBip32Derivation.length||tt&&(0,psbtutils_1$1.isP2TR)(tt))}bip371.isTaprootOutput=isTaprootOutput;function checkTaprootInputFields(et,tt,rt){checkMixedTaprootAndNonTaprootInputFields(et,tt,rt),checkIfTapLeafInTree(et,tt,rt)}bip371.checkTaprootInputFields=checkTaprootInputFields;function checkTaprootOutputFields(et,tt,rt){checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt),checkTaprootScriptPubkey(et,tt)}bip371.checkTaprootOutputFields=checkTaprootOutputFields;function checkTaprootScriptPubkey(et,tt){if(!tt.tapTree&&!tt.tapInternalKey)return;const rt=tt.tapInternalKey||et.tapInternalKey,nt=tt.tapTree||et.tapTree;if(rt){const{script:it}=et,st=getTaprootScripPubkey(rt,nt);if(it&&!it.equals(st))throw new Error("Error adding output. Script or address missmatch.")}}function getTaprootScripPubkey(et,tt){const rt=tt&&tapTreeFromList(tt.leaves),{output:nt}=(0,payments_1.p2tr)({internalPubkey:et,scriptTree:rt});return nt}function tweakInternalPubKey(et,tt){const rt=tt.tapInternalKey,nt=rt&&(0,bip341_1$1.tweakKey)(rt,tt.tapMerkleRoot);if(!nt)throw new Error(`Cannot tweak tap internal key for input #${et}. Public key: ${rt&&rt.toString("hex")}`);return nt.x}bip371.tweakInternalPubKey=tweakInternalPubKey;function tapTreeToList(et){if(!(0,types_1.isTaptree)(et))throw new Error("Cannot convert taptree to tapleaf list. Expecting a tapree structure.");return _tapTreeToList(et)}bip371.tapTreeToList=tapTreeToList;function tapTreeFromList(et=[]){return et.length===1&&et[0].depth===0?{output:et[0].script,version:et[0].leafVersion}:instertLeavesInTree(et)}bip371.tapTreeFromList=tapTreeFromList;function checkTaprootInputForSigs(et,tt){return extractTaprootSigs(et).some(nt=>(0,psbtutils_2.signatureBlocksAction)(nt,decodeSchnorrSignature,tt))}bip371.checkTaprootInputForSigs=checkTaprootInputForSigs;function decodeSchnorrSignature(et){return{signature:et.slice(0,64),hashType:et.slice(64)[0]||transaction_1$1.Transaction.SIGHASH_DEFAULT}}function extractTaprootSigs(et){const tt=[];if(et.tapKeySig&&tt.push(et.tapKeySig),et.tapScriptSig&&tt.push(...et.tapScriptSig.map(rt=>rt.signature)),!tt.length){const rt=getTapKeySigFromWithness(et.finalScriptWitness);rt&&tt.push(rt)}return tt}function getTapKeySigFromWithness(et){if(!et)return;const tt=et.slice(2);if(tt.length===64||tt.length===65)return tt}function _tapTreeToList(et,tt=[],rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");return et?(0,types_1.isTapleaf)(et)?(tt.push({depth:rt,leafVersion:et.version||bip341_1$1.LEAF_VERSION_TAPSCRIPT,script:et.output}),tt):(et[0]&&_tapTreeToList(et[0],tt,rt+1),et[1]&&_tapTreeToList(et[1],tt,rt+1),tt):[]}function instertLeavesInTree(et){let tt;for(const rt of et)if(tt=instertLeafInTree(rt,tt),!tt)throw new Error("No room left to insert tapleaf in tree");return tt}function instertLeafInTree(et,tt,rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");if(et.depth===rt)return tt?void 0:{output:et.script,version:et.leafVersion};if((0,types_1.isTapleaf)(tt))return;const nt=instertLeafInTree(et,tt&&tt[0],rt+1);if(nt)return[nt,tt&&tt[1]];const it=instertLeafInTree(et,tt&&tt[1],rt+1);if(it)return[tt&&tt[0],it]}function checkMixedTaprootAndNonTaprootInputFields(et,tt,rt){const nt=isTaprootInput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootInput(tt),st=et===tt&&isTaprootInput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt){const nt=isTaprootOutput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootOutput(tt),st=et===tt&&isTaprootOutput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkIfTapLeafInTree(et,tt,rt){if(tt.tapMerkleRoot){const nt=(tt.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot)),it=(et.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot));if(!nt||!it)throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}else if(et.tapMerkleRoot&&!(tt.tapLeafScript||[]).every(it=>isTapLeafInTree(it,et.tapMerkleRoot)))throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}function isTapLeafInTree(et,tt){if(!tt)return!0;const rt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(0,bip341_1$1.rootHashFromPath)(et.controlBlock,rt).equals(tt)}function sortSignatures(et,tt){const rt=(0,bip341_1$1.tapleafHash)({output:tt.script,version:tt.leafVersion});return(et.tapScriptSig||[]).filter(nt=>nt.leafHash.equals(rt)).map(nt=>addPubkeyPositionInScript(tt.script,nt)).sort((nt,it)=>it.positionInScript-nt.positionInScript).map(nt=>nt.signature)}function addPubkeyPositionInScript(et,tt){return Object.assign({positionInScript:(0,psbtutils_1$1.pubkeyPositionInScript)(tt.pubkey,et)},tt)}function findTapLeafToFinalize(et,tt,rt){if(!et.tapScriptSig||!et.tapScriptSig.length)throw new Error(`Can not finalize taproot input #${tt}. No tapleaf script signature provided.`);const nt=(et.tapLeafScript||[]).sort((it,st)=>it.controlBlock.length-st.controlBlock.length).find(it=>canFinalizeLeaf(it,et.tapScriptSig,rt));if(!nt)throw new Error(`Can not finalize taproot input #${tt}. Signature for tapleaf script not found.`);return nt}function canFinalizeLeaf(et,tt,rt){const nt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(!rt||rt.equals(nt))&&tt.find(st=>st.leafHash.equals(nt))!==void 0}function hasNonTaprootFields(et){return et&&!!(et.redeemScript||et.witnessScript||et.bip32Derivation&&et.bip32Derivation.length)}Object.defineProperty(psbt$1,"__esModule",{value:!0});psbt$1.Psbt=void 0;const bip174_1=psbt,varuint=varint,utils_1=utils,address_1=address,bufferutils_1=bufferutils,networks_1=networks$1,payments=payments$3,bip341_1=bip341,bscript=script,transaction_1=transaction,bip371_1=bip371,psbtutils_1=psbtutils,DEFAULT_OPTS={network:networks_1.bitcoin,maximumFeeRate:5e3};class Psbt{static fromBase64(tt,rt={}){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt={}){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt={}){const nt=bip174_1.Psbt.fromBuffer(tt,transactionFromBuffer),it=new Psbt(rt,nt);return checkTxForDupeIns(it.__CACHE.__TX,it.__CACHE),it}constructor(tt={},rt=new bip174_1.Psbt(new PsbtTransaction)){this.data=rt,this.opts=Object.assign({},DEFAULT_OPTS,tt),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},this.data.inputs.length===0&&this.setVersion(2);const nt=(it,st,at,ot)=>Object.defineProperty(it,st,{enumerable:at,writable:ot});nt(this,"__CACHE",!1,!0),nt(this,"opts",!1,!0)}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(tt){this.setVersion(tt)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(tt){this.setLocktime(tt)}get txInputs(){return this.__CACHE.__TX.ins.map(tt=>({hash:(0,bufferutils_1.cloneBuffer)(tt.hash),index:tt.index,sequence:tt.sequence}))}get txOutputs(){return this.__CACHE.__TX.outs.map(tt=>{let rt;try{rt=(0,address_1.fromOutputScript)(tt.script,this.opts.network)}catch{}return{script:(0,bufferutils_1.cloneBuffer)(tt.script),value:tt.value,address:rt}})}combine(...tt){return this.data.combine(...tt.map(rt=>rt.data)),this}clone(){const tt=Psbt.fromBuffer(this.data.toBuffer());return tt.opts=JSON.parse(JSON.stringify(this.opts)),tt}setMaximumFeeRate(tt){check32Bit(tt),this.opts.maximumFeeRate=tt}setVersion(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setVersion");const rt=this.__CACHE;return rt.__TX.version=tt,rt.__EXTRACTED_TX=void 0,this}setLocktime(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setLocktime");const rt=this.__CACHE;return rt.__TX.locktime=tt,rt.__EXTRACTED_TX=void 0,this}setInputSequence(tt,rt){check32Bit(rt),checkInputsForPartialSig(this.data.inputs,"setInputSequence");const nt=this.__CACHE;if(nt.__TX.ins.length<=tt)throw new Error("Input index too high");return nt.__TX.ins[tt].sequence=rt,nt.__EXTRACTED_TX=void 0,this}addInputs(tt){return tt.forEach(rt=>this.addInput(rt)),this}addInput(tt){if(arguments.length>1||!tt||tt.hash===void 0||tt.index===void 0)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");(0,bip371_1.checkTaprootInputFields)(tt,tt,"addInput"),checkInputsForPartialSig(this.data.inputs,"addInput"),tt.witnessScript&&checkInvalidP2WSH(tt.witnessScript);const rt=this.__CACHE;this.data.addInput(tt);const nt=rt.__TX.ins[rt.__TX.ins.length-1];checkTxInputCache(rt,nt);const it=this.data.inputs.length-1,st=this.data.inputs[it];return st.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,st,it),rt.__FEE=void 0,rt.__FEE_RATE=void 0,rt.__EXTRACTED_TX=void 0,this}addOutputs(tt){return tt.forEach(rt=>this.addOutput(rt)),this}addOutput(tt){if(arguments.length>1||!tt||tt.value===void 0||tt.address===void 0&&tt.script===void 0)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");checkInputsForPartialSig(this.data.inputs,"addOutput");const{address:rt}=tt;if(typeof rt=="string"){const{network:it}=this.opts,st=(0,address_1.toOutputScript)(rt,it);tt=Object.assign(tt,{script:st})}(0,bip371_1.checkTaprootOutputFields)(tt,tt,"addOutput");const nt=this.__CACHE;return this.data.addOutput(tt),nt.__FEE=void 0,nt.__FEE_RATE=void 0,nt.__EXTRACTED_TX=void 0,this}extractTransaction(tt){if(!this.data.inputs.every(isFinalized))throw new Error("Not finalized");const rt=this.__CACHE;if(tt||checkFees(this,rt,this.opts),rt.__EXTRACTED_TX)return rt.__EXTRACTED_TX;const nt=rt.__TX.clone();return inputFinalizeGetAmts(this.data.inputs,nt,rt,!0),nt}getFeeRate(){return getTxCacheValue("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return getTxCacheValue("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).forEach(tt=>this.finalizeInput(tt)),this}finalizeInput(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(nt)?this._finalizeTaprootInput(tt,nt,void 0,rt):this._finalizeInput(tt,nt,rt)}finalizeTaprootInput(tt,rt,nt=bip371_1.tapScriptFinalizer){const it=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(it))return this._finalizeTaprootInput(tt,it,rt,nt);throw new Error(`Cannot finalize input #${tt}. Not Taproot.`)}_finalizeInput(tt,rt,nt=getFinalScripts){const{script:it,isP2SH:st,isP2WSH:at,isSegwit:ot}=getScriptFromInput(tt,rt,this.__CACHE);if(!it)throw new Error(`No script found for input #${tt}`);checkPartialSigSighashes(rt);const{finalScriptSig:lt,finalScriptWitness:ut}=nt(tt,rt,it,ot,st,at);if(lt&&this.data.updateInput(tt,{finalScriptSig:lt}),ut&&this.data.updateInput(tt,{finalScriptWitness:ut}),!lt&&!ut)throw new Error(`Unknown error finalizing input #${tt}`);return this.data.clearFinalizedInput(tt),this}_finalizeTaprootInput(tt,rt,nt,it=bip371_1.tapScriptFinalizer){if(!rt.witnessUtxo)throw new Error(`Cannot finalize input #${tt}. Missing withness utxo.`);if(rt.tapKeySig){const st=payments.p2tr({output:rt.witnessUtxo.script,signature:rt.tapKeySig}),at=(0,psbtutils_1.witnessStackToScriptWitness)(st.witness);this.data.updateInput(tt,{finalScriptWitness:at})}else{const{finalScriptWitness:st}=it(tt,rt,nt);this.data.updateInput(tt,{finalScriptWitness:st})}return this.data.clearFinalizedInput(tt),this}getInputType(tt){const rt=(0,utils_1.checkForInput)(this.data.inputs,tt),nt=getScriptFromUtxo(tt,rt,this.__CACHE),it=getMeaningfulScript(nt,tt,"input",rt.redeemScript||redeemFromFinalScriptSig(rt.finalScriptSig),rt.witnessScript||redeemFromFinalWitnessScript(rt.finalScriptWitness)),st=it.type==="raw"?"":it.type+"-",at=classifyScript(it.meaningfulScript);return st+at}inputHasPubkey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return pubkeyInInput(rt,nt,tt,this.__CACHE)}inputHasHDKey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}outputHasPubkey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt);return pubkeyInOutput(rt,nt,tt,this.__CACHE)}outputHasHDKey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}validateSignaturesOfAllInputs(tt){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).map(nt=>this.validateSignaturesOfInput(nt,tt)).reduce((nt,it)=>it===!0&&nt,!0)}validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt];return(0,bip371_1.isTaprootInput)(it)?this.validateSignaturesOfTaprootInput(tt,rt,nt):this._validateSignaturesOfInput(tt,rt,nt)}_validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).partialSig;if(!it||!st||st.length<1)throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");const at=nt?st.filter(bt=>bt.pubkey.equals(nt)):st;if(at.length<1)throw new Error("No signatures for this pubkey");const ot=[];let lt,ut,dt;for(const bt of at){const gt=bscript.signature.decode(bt.signature),{hash:kt,script:pt}=dt!==gt.hashType?getHashForSig(tt,Object.assign({},it,{sighashType:gt.hashType}),this.__CACHE,!0):{hash:lt,script:ut};dt=gt.hashType,lt=kt,ut=pt,checkScriptForPubkey(bt.pubkey,pt,"verify"),ot.push(rt(bt.pubkey,kt,gt.signature))}return ot.every(bt=>bt===!0)}validateSignaturesOfTaprootInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).tapKeySig,at=(it||{}).tapScriptSig;if(!it&&!st&&!(at&&!at.length))throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");nt=nt&&(0,bip371_1.toXOnly)(nt);const ot=nt?getTaprootHashesForSig(tt,it,this.data.inputs,nt,this.__CACHE):getAllTaprootHashesForSig(tt,it,this.data.inputs,this.__CACHE);if(!ot.length)throw new Error("No signatures for this pubkey");const lt=ot.find(dt=>!dt.leafHash);let ut=0;if(st&<){if(!rt(lt.pubkey,lt.hash,trimTaprootSig(st)))return!1;ut++}if(at)for(const dt of at){const bt=ot.find(gt=>dt.pubkey.equals(gt.pubkey));if(bt){if(!rt(dt.pubkey,bt.hash,trimTaprootSig(dt.signature)))return!1;ut++}}return ut>0}signAllInputsHD(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){if(!tt||!tt.publicKey||!tt.fingerprint)throw new Error("Need HDSigner to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInputHD(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((nt,it)=>{if(!tt||!tt.publicKey||!tt.fingerprint)return it(new Error("Need HDSigner to sign input"));const st=[],at=[];for(const ot of range(this.data.inputs.length))at.push(this.signInputHDAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInputHD(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){if(!rt||!rt.publicKey||!rt.fingerprint)throw new Error("Need HDSigner to sign input");return getSignersFromHD(tt,this.data.inputs,rt).forEach(st=>this.signInput(tt,st,nt)),this}signInputHDAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((it,st)=>{if(!rt||!rt.publicKey||!rt.fingerprint)return st(new Error("Need HDSigner to sign input"));const ot=getSignersFromHD(tt,this.data.inputs,rt).map(lt=>this.signInputAsync(tt,lt,nt));return Promise.all(ot).then(()=>{it()}).catch(st)})}signAllInputs(tt,rt){if(!tt||!tt.publicKey)throw new Error("Need Signer to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInput(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsAsync(tt,rt){return new Promise((nt,it)=>{if(!tt||!tt.publicKey)return it(new Error("Need Signer to sign input"));const st=[],at=[];for(const[ot]of this.data.inputs.entries())at.push(this.signInputAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInput(tt,rt,nt){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInput(tt,it,rt,void 0,nt):this._signInput(tt,rt,nt)}signTaprootInput(tt,rt,nt,it){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInput(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)}_signInput(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt),at=[{pubkey:rt.publicKey,signature:bscript.signature.encode(rt.sign(it),st)}];return this.data.updateInput(tt,{partialSig:at}),this}_signTaprootInput(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=at.filter(ut=>!ut.leafHash).map(ut=>(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType))[0],lt=at.filter(ut=>!!ut.leafHash).map(ut=>({pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType),leafHash:ut.leafHash}));return ot&&this.data.updateInput(tt,{tapKeySig:ot}),lt.length&&this.data.updateInput(tt,{tapScriptSig:lt}),this}signInputAsync(tt,rt,nt){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInputAsync(tt,it,rt,void 0,nt):this._signInputAsync(tt,rt,nt)})}signTaprootInputAsync(tt,rt,nt,it){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInputAsync(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)})}_signInputAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt);return Promise.resolve(rt.sign(it)).then(at=>{const ot=[{pubkey:rt.publicKey,signature:bscript.signature.encode(at,st)}];this.data.updateInput(tt,{partialSig:ot})})}async _signTaprootInputAsync(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=[],lt=at.filter(dt=>!dt.leafHash)[0];if(lt){const dt=Promise.resolve(nt.signSchnorr(lt.hash)).then(bt=>({tapKeySig:(0,bip371_1.serializeTaprootSignature)(bt,rt.sighashType)}));ot.push(dt)}const ut=at.filter(dt=>!!dt.leafHash);if(ut.length){const dt=ut.map(bt=>Promise.resolve(nt.signSchnorr(bt.hash)).then(gt=>({tapScriptSig:[{pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(gt,rt.sighashType),leafHash:bt.leafHash}]})));ot.push(...dt)}return Promise.all(ot).then(dt=>{dt.forEach(bt=>this.data.updateInput(tt,bt))})}checkTaprootHashesForSig(tt,rt,nt,it,st){if(typeof nt.signSchnorr!="function")throw new Error(`Need Schnorr Signer to sign taproot input #${tt}.`);const at=getTaprootHashesForSig(tt,rt,this.data.inputs,nt.publicKey,this.__CACHE,it,st);if(!at||!at.length)throw new Error(`Can not sign for input #${tt} with the key ${nt.publicKey.toString("hex")}`);return at}toBuffer(){return checkCache(this.__CACHE),this.data.toBuffer()}toHex(){return checkCache(this.__CACHE),this.data.toHex()}toBase64(){return checkCache(this.__CACHE),this.data.toBase64()}updateGlobal(tt){return this.data.updateGlobal(tt),this}updateInput(tt,rt){return rt.witnessScript&&checkInvalidP2WSH(rt.witnessScript),(0,bip371_1.checkTaprootInputFields)(this.data.inputs[tt],rt,"updateInput"),this.data.updateInput(tt,rt),rt.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,this.data.inputs[tt],tt),this}updateOutput(tt,rt){const nt=this.data.outputs[tt];return(0,bip371_1.checkTaprootOutputFields)(nt,rt,"updateOutput"),this.data.updateOutput(tt,rt),this}addUnknownKeyValToGlobal(tt){return this.data.addUnknownKeyValToGlobal(tt),this}addUnknownKeyValToInput(tt,rt){return this.data.addUnknownKeyValToInput(tt,rt),this}addUnknownKeyValToOutput(tt,rt){return this.data.addUnknownKeyValToOutput(tt,rt),this}clearFinalizedInput(tt){return this.data.clearFinalizedInput(tt),this}}psbt$1.Psbt=Psbt;const transactionFromBuffer=et=>new PsbtTransaction(et);class PsbtTransaction{constructor(tt=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=transaction_1.Transaction.fromBuffer(tt),checkTxEmpty(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(tt){if(tt.hash===void 0||tt.index===void 0||!Buffer.isBuffer(tt.hash)&&typeof tt.hash!="string"||typeof tt.index!="number")throw new Error("Error adding input.");const rt=typeof tt.hash=="string"?(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash,"hex")):tt.hash;this.tx.addInput(rt,tt.index,tt.sequence)}addOutput(tt){if(tt.script===void 0||tt.value===void 0||!Buffer.isBuffer(tt.script)||typeof tt.value!="number")throw new Error("Error adding output.");this.tx.addOutput(tt.script,tt.value)}toBuffer(){return this.tx.toBuffer()}}function canFinalize(et,tt,rt){switch(rt){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return hasSigs(1,et.partialSig);case"multisig":const nt=payments.p2ms({output:tt});return hasSigs(nt.m,et.partialSig,nt.pubkeys);default:return!1}}function checkCache(et){if(et.__UNSAFE_SIGN_NONSEGWIT!==!1)throw new Error("Not BIP174 compliant, can not export")}function hasSigs(et,tt,rt){if(!tt)return!1;let nt;if(rt?nt=rt.map(it=>{const st=compressPubkey(it);return tt.find(at=>at.pubkey.equals(st))}).filter(it=>!!it):nt=tt,nt.length>et)throw new Error("Too many signatures");return nt.length===et}function isFinalized(et){return!!et.finalScriptSig||!!et.finalScriptWitness}function bip32DerivationIsMine(et){return tt=>!(!tt.masterFingerprint.equals(et.fingerprint)||!et.derivePath(tt.path).publicKey.equals(tt.pubkey))}function check32Bit(et){if(typeof et!="number"||et!==Math.floor(et)||et>4294967295||et<0)throw new Error("Invalid 32 bit integer")}function checkFees(et,tt,rt){const nt=tt.__FEE_RATE||et.getFeeRate(),it=tt.__EXTRACTED_TX.virtualSize(),st=nt*it;if(nt>=rt.maximumFeeRate)throw new Error(`Warning: You are paying around ${(st/1e8).toFixed(8)} in fees, which is ${nt} satoshi per byte for a transaction with a VSize of ${it} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}function checkInputsForPartialSig(et,tt){et.forEach(rt=>{if((0,bip371_1.isTaprootInput)(rt)?(0,bip371_1.checkTaprootInputForSigs)(rt,tt):(0,psbtutils_1.checkInputForSig)(rt,tt))throw new Error("Can not modify transaction, signatures exist.")})}function checkPartialSigSighashes(et){if(!et.sighashType||!et.partialSig)return;const{partialSig:tt,sighashType:rt}=et;tt.forEach(nt=>{const{hashType:it}=bscript.signature.decode(nt.signature);if(rt!==it)throw new Error("Signature sighash does not match input sighash type")})}function checkScriptForPubkey(et,tt,rt){if(!(0,psbtutils_1.pubkeyInScript)(et,tt))throw new Error(`Can not ${rt} for this input with the key ${et.toString("hex")}`)}function checkTxEmpty(et){if(!et.ins.every(rt=>rt.script&&rt.script.length===0&&rt.witness&&rt.witness.length===0))throw new Error("Format Error: Transaction ScriptSigs are not empty")}function checkTxForDupeIns(et,tt){et.ins.forEach(rt=>{checkTxInputCache(tt,rt)})}function checkTxInputCache(et,tt){const rt=(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash)).toString("hex")+":"+tt.index;if(et.__TX_IN_CACHE[rt])throw new Error("Duplicate input detected.");et.__TX_IN_CACHE[rt]=1}function scriptCheckerFactory(et,tt){return(rt,nt,it,st)=>{const at=et({redeem:{output:it}}).output;if(!nt.equals(at))throw new Error(`${tt} for ${st} #${rt} doesn't match the scriptPubKey in the prevout`)}}const checkRedeemScript=scriptCheckerFactory(payments.p2sh,"Redeem script"),checkWitnessScript=scriptCheckerFactory(payments.p2wsh,"Witness script");function getTxCacheValue(et,tt,rt,nt){if(!rt.every(isFinalized))throw new Error(`PSBT must be finalized to calculate ${tt}`);if(et==="__FEE_RATE"&&nt.__FEE_RATE)return nt.__FEE_RATE;if(et==="__FEE"&&nt.__FEE)return nt.__FEE;let it,st=!0;if(nt.__EXTRACTED_TX?(it=nt.__EXTRACTED_TX,st=!1):it=nt.__TX.clone(),inputFinalizeGetAmts(rt,it,nt,st),et==="__FEE_RATE")return nt.__FEE_RATE;if(et==="__FEE")return nt.__FEE}function getFinalScripts(et,tt,rt,nt,it,st){const at=classifyScript(rt);if(!canFinalize(tt,rt,at))throw new Error(`Can not finalize input #${et}`);return prepareFinalScripts(rt,at,tt.partialSig,nt,it,st)}function prepareFinalScripts(et,tt,rt,nt,it,st){let at,ot;const lt=getPayment(et,tt,rt),ut=st?payments.p2wsh({redeem:lt}):null,dt=it?payments.p2sh({redeem:ut||lt}):null;return nt?(ut?ot=(0,psbtutils_1.witnessStackToScriptWitness)(ut.witness):ot=(0,psbtutils_1.witnessStackToScriptWitness)(lt.witness),dt&&(at=dt.input)):dt?at=dt.input:at=lt.input,{finalScriptSig:at,finalScriptWitness:ot}}function getHashAndSighashType(et,tt,rt,nt,it){const st=(0,utils_1.checkForInput)(et,tt),{hash:at,sighashType:ot,script:lt}=getHashForSig(tt,st,nt,!1,it);return checkScriptForPubkey(rt,lt,"sign"),{hash:at,sighashType:ot}}function getHashForSig(et,tt,rt,nt,it){const st=rt.__TX,at=tt.sighashType||transaction_1.Transaction.SIGHASH_ALL;checkSighashTypeAllowed(at,it);let ot,lt;if(tt.nonWitnessUtxo){const bt=nonWitnessUtxoTxFromCache(rt,tt,et),gt=st.ins[et].hash,kt=bt.getHash();if(!gt.equals(kt))throw new Error(`Non-witness UTXO hash for input #${et} doesn't match the hash specified in the prevout`);const pt=st.ins[et].index;lt=bt.outs[pt]}else if(tt.witnessUtxo)lt=tt.witnessUtxo;else throw new Error("Need a Utxo input item for signing");const{meaningfulScript:ut,type:dt}=getMeaningfulScript(lt.script,et,"input",tt.redeemScript,tt.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(dt)>=0)ot=st.hashForWitnessV0(et,ut,lt.value,at);else if((0,psbtutils_1.isP2WPKH)(ut)){const bt=payments.p2pkh({hash:ut.slice(2)}).output;ot=st.hashForWitnessV0(et,bt,lt.value,at)}else{if(tt.nonWitnessUtxo===void 0&&rt.__UNSAFE_SIGN_NONSEGWIT===!1)throw new Error(`Input #${et} has witnessUtxo but non-segwit script: ${ut.toString("hex")}`);!nt&&rt.__UNSAFE_SIGN_NONSEGWIT!==!1&&console.warn(`Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant. +********************* +PROCEED WITH CAUTION! +*********************`),ot=st.hashForSignature(et,ut,at)}return{script:ut,sighashType:at,hash:ot}}function getAllTaprootHashesForSig(et,tt,rt,nt){const it=[];if(tt.tapInternalKey){const at=getPrevoutTaprootKey(et,tt,nt);at&&it.push(at)}if(tt.tapScriptSig){const at=tt.tapScriptSig.map(ot=>ot.pubkey);it.push(...at)}return it.map(at=>getTaprootHashesForSig(et,tt,rt,at,nt)).flat()}function getPrevoutTaprootKey(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return(0,psbtutils_1.isP2TR)(nt)?nt.subarray(2,34):null}function trimTaprootSig(et){return et.length===64?et:et.subarray(0,64)}function getTaprootHashesForSig(et,tt,rt,nt,it,st,at){const ot=it.__TX,lt=tt.sighashType||transaction_1.Transaction.SIGHASH_DEFAULT;checkSighashTypeAllowed(lt,at);const ut=rt.map((pt,yt)=>getScriptAndAmountFromUtxo(yt,pt,it)),dt=ut.map(pt=>pt.script),bt=ut.map(pt=>pt.value),gt=[];if(tt.tapInternalKey&&!st){const pt=getPrevoutTaprootKey(et,tt,it)||Buffer.from([]);if((0,bip371_1.toXOnly)(nt).equals(pt)){const yt=ot.hashForWitnessV1(et,dt,bt,lt);gt.push({pubkey:nt,hash:yt})}}const kt=(tt.tapLeafScript||[]).filter(pt=>(0,psbtutils_1.pubkeyInScript)(nt,pt.script)).map(pt=>{const yt=(0,bip341_1.tapleafHash)({output:pt.script,version:pt.leafVersion});return Object.assign({hash:yt},pt)}).filter(pt=>!st||st.equals(pt.hash)).map(pt=>{const yt=ot.hashForWitnessV1(et,dt,bt,transaction_1.Transaction.SIGHASH_DEFAULT,pt.hash);return{pubkey:nt,hash:yt,leafHash:pt.hash}});return gt.concat(kt)}function checkSighashTypeAllowed(et,tt){if(tt&&tt.indexOf(et)<0){const rt=sighashTypeToString(et);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${rt}`)}}function getPayment(et,tt,rt){let nt;switch(tt){case"multisig":const it=getSortedSigs(et,rt);nt=payments.p2ms({output:et,signatures:it});break;case"pubkey":nt=payments.p2pk({output:et,signature:rt[0].signature});break;case"pubkeyhash":nt=payments.p2pkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break;case"witnesspubkeyhash":nt=payments.p2wpkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break}return nt}function getScriptFromInput(et,tt,rt){const nt=rt.__TX,it={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(it.isP2SH=!!tt.redeemScript,it.isP2WSH=!!tt.witnessScript,tt.witnessScript)it.script=tt.witnessScript;else if(tt.redeemScript)it.script=tt.redeemScript;else if(tt.nonWitnessUtxo){const st=nonWitnessUtxoTxFromCache(rt,tt,et),at=nt.ins[et].index;it.script=st.outs[at].script}else tt.witnessUtxo&&(it.script=tt.witnessUtxo.script);return(tt.witnessScript||(0,psbtutils_1.isP2WPKH)(it.script))&&(it.isSegwit=!0),it}function getSignersFromHD(et,tt,rt){const nt=(0,utils_1.checkForInput)(tt,et);if(!nt.bip32Derivation||nt.bip32Derivation.length===0)throw new Error("Need bip32Derivation to sign with HD");const it=nt.bip32Derivation.map(at=>{if(at.masterFingerprint.equals(rt.fingerprint))return at}).filter(at=>!!at);if(it.length===0)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return it.map(at=>{const ot=rt.derivePath(at.path);if(!at.pubkey.equals(ot.publicKey))throw new Error("pubkey did not match bip32Derivation");return ot})}function getSortedSigs(et,tt){return payments.p2ms({output:et}).pubkeys.map(nt=>(tt.filter(it=>it.pubkey.equals(nt))[0]||{}).signature).filter(nt=>!!nt)}function scriptWitnessToWitnessStack(et){let tt=0;function rt(at){return tt+=at,et.slice(tt-at,tt)}function nt(){const at=varuint.decode(et,tt);return tt+=varuint.decode.bytes,at}function it(){return rt(nt())}function st(){const at=nt(),ot=[];for(let lt=0;lt{if(nt&<.finalScriptSig&&(tt.ins[ut].script=lt.finalScriptSig),nt&<.finalScriptWitness&&(tt.ins[ut].witness=scriptWitnessToWitnessStack(lt.finalScriptWitness)),lt.witnessUtxo)it+=lt.witnessUtxo.value;else if(lt.nonWitnessUtxo){const dt=nonWitnessUtxoTxFromCache(rt,lt,ut),bt=tt.ins[ut].index,gt=dt.outs[bt];it+=gt.value}});const st=tt.outs.reduce((lt,ut)=>lt+ut.value,0),at=it-st;if(at<0)throw new Error("Outputs are spending more than Inputs");const ot=tt.virtualSize();rt.__FEE=at,rt.__EXTRACTED_TX=tt,rt.__FEE_RATE=Math.floor(at/ot)}function nonWitnessUtxoTxFromCache(et,tt,rt){const nt=et.__NON_WITNESS_UTXO_TX_CACHE;return nt[rt]||addNonWitnessTxCache(et,tt,rt),nt[rt]}function getScriptFromUtxo(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return nt}function getScriptAndAmountFromUtxo(et,tt,rt){if(tt.witnessUtxo!==void 0)return{script:tt.witnessUtxo.script,value:tt.witnessUtxo.value};if(tt.nonWitnessUtxo!==void 0){const it=nonWitnessUtxoTxFromCache(rt,tt,et).outs[rt.__TX.ins[et].index];return{script:it.script,value:it.value}}else throw new Error("Can't find pubkey in input without Utxo data")}function pubkeyInInput(et,tt,rt,nt){const it=getScriptFromUtxo(rt,tt,nt),{meaningfulScript:st}=getMeaningfulScript(it,rt,"input",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function pubkeyInOutput(et,tt,rt,nt){const it=nt.__TX.outs[rt].script,{meaningfulScript:st}=getMeaningfulScript(it,rt,"output",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function redeemFromFinalScriptSig(et){if(!et)return;const tt=bscript.decompile(et);if(!tt)return;const rt=tt[tt.length-1];if(!(!Buffer.isBuffer(rt)||isPubkeyLike(rt)||isSigLike(rt)||!bscript.decompile(rt)))return rt}function redeemFromFinalWitnessScript(et){if(!et)return;const tt=scriptWitnessToWitnessStack(et),rt=tt[tt.length-1];if(!(isPubkeyLike(rt)||!bscript.decompile(rt)))return rt}function compressPubkey(et){if(et.length===65){const tt=et[64]&1,rt=et.slice(0,33);return rt[0]=2|tt,rt}return et.slice()}function isPubkeyLike(et){return et.length===33&&bscript.isCanonicalPubKey(et)}function isSigLike(et){return bscript.isCanonicalScriptSignature(et)}function getMeaningfulScript(et,tt,rt,nt,it){const st=(0,psbtutils_1.isP2SHScript)(et),at=st&&nt&&(0,psbtutils_1.isP2WSHScript)(nt),ot=(0,psbtutils_1.isP2WSHScript)(et);if(st&&nt===void 0)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((ot||at)&&it===void 0)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let lt;return at?(lt=it,checkRedeemScript(tt,et,nt,rt),checkWitnessScript(tt,nt,it,rt),checkInvalidP2WSH(lt)):ot?(lt=it,checkWitnessScript(tt,et,it,rt),checkInvalidP2WSH(lt)):st?(lt=nt,checkRedeemScript(tt,et,nt,rt)):lt=et,{meaningfulScript:lt,type:at?"p2sh-p2wsh":st?"p2sh":ot?"p2wsh":"raw"}}function checkInvalidP2WSH(et){if((0,psbtutils_1.isP2WPKH)(et)||(0,psbtutils_1.isP2SHScript)(et))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function classifyScript(et){return(0,psbtutils_1.isP2WPKH)(et)?"witnesspubkeyhash":(0,psbtutils_1.isP2PKH)(et)?"pubkeyhash":(0,psbtutils_1.isP2MS)(et)?"multisig":(0,psbtutils_1.isP2PK)(et)?"pubkey":"nonstandard"}function range(et){return[...Array(et).keys()]}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.initEccLib=et.Transaction=et.opcodes=et.Psbt=et.Block=et.script=et.payments=et.networks=et.crypto=et.address=void 0;const tt=address;et.address=tt;const rt=crypto$2;et.crypto=rt;const nt=networks$1;et.networks=nt;const it=payments$3;et.payments=it;const st=script;et.script=st;var at=block;Object.defineProperty(et,"Block",{enumerable:!0,get:function(){return at.Block}});var ot=psbt$1;Object.defineProperty(et,"Psbt",{enumerable:!0,get:function(){return ot.Psbt}});var lt=ops;Object.defineProperty(et,"opcodes",{enumerable:!0,get:function(){return lt.OPS}});var ut=transaction;Object.defineProperty(et,"Transaction",{enumerable:!0,get:function(){return ut.Transaction}});var dt=ecc_lib;Object.defineProperty(et,"initEccLib",{enumerable:!0,get:function(){return dt.initEccLib}})})(src$1);function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(et,tt){return et===tt||et!==et&&tt!==tt}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(et,tt){for(var rt=et.length;rt--;)if(eq$1(et[rt][0],tt))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(et){var tt=this.__data__,rt=assocIndexOf$3(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice.call(tt,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(et){var tt=this.__data__,rt=assocIndexOf$2(tt,et);return rt<0?void 0:tt[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(et){return assocIndexOf$1(this.__data__,et)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(et,tt){var rt=this.__data__,nt=assocIndexOf(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt-1&&et%1==0&&et-1&&et%1==0&&et<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(et){return isObjectLike$2(et)&&isLength$1(et.length)&&!!typedArrayTags[baseGetTag$1(et)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(et){return function(tt){return et(tt)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(et,tt){var rt=_freeGlobal,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st&&rt.process,ot=function(){try{var lt=it&&it.require&&it.require("util").types;return lt||at&&at.binding&&at.binding("util")}catch{}}();et.exports=ot})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(et,tt){var rt=isArray$2(et),nt=!rt&&isArguments(et),it=!rt&&!nt&&isBuffer$1(et),st=!rt&&!nt&&!it&&isTypedArray(et),at=rt||nt||it||st,ot=at?baseTimes(et.length,String):[],lt=ot.length;for(var ut in et)(tt||hasOwnProperty$3.call(et,ut))&&!(at&&(ut=="length"||it&&(ut=="offset"||ut=="parent")||st&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||isIndex(ut,lt)))&&ot.push(ut);return ot}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$4;return et===rt}var _isPrototype=isPrototype$3;function overArg$2(et,tt){return function(rt){return et(tt(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(et){if(!isPrototype$2(et))return nativeKeys(et);var tt=[];for(var rt in Object(et))hasOwnProperty$2.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}var _baseKeys=baseKeys$1,isFunction$1=isFunction_1,isLength=isLength_1;function isArrayLike$2(et){return et!=null&&isLength(et.length)&&!isFunction$1(et)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(et){return isArrayLike$1(et)?arrayLikeKeys$1(et):baseKeys(et)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(et,tt){return et&©Object$3(tt,keys$2(tt),et)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(et){var tt=[];if(et!=null)for(var rt in Object(et))tt.push(rt);return tt}var _nativeKeysIn=nativeKeysIn$1,isObject$4=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(et){if(!isObject$4(et))return nativeKeysIn(et);var tt=isPrototype$1(et),rt=[];for(var nt in et)nt=="constructor"&&(tt||!hasOwnProperty$1.call(et,nt))||rt.push(nt);return rt}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(et){return isArrayLike(et)?arrayLikeKeys(et,!0):baseKeysIn(et)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(et,tt){return et&©Object$2(tt,keysIn$2(tt),et)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(et,tt){var rt=_root,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st?rt.Buffer:void 0,ot=at?at.allocUnsafe:void 0;function lt(ut,dt){if(dt)return ut.slice();var bt=ut.length,gt=ot?ot(bt):new ut.constructor(bt);return ut.copy(gt),gt}et.exports=lt})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(et,tt){var rt=-1,nt=et.length;for(tt||(tt=Array(nt));++rtwordsToBuffer(et,!0).toString("hex"),16:et=>wordsToBuffer(et,!0).toString("hex"),13:et=>wordsToBuffer(et,!0).toString("utf8"),19:et=>wordsToBuffer(et,!0).toString("hex"),23:et=>wordsToBuffer(et,!0).toString("hex"),6:wordsToIntBE,24:wordsToIntBE,9:fallbackAddressParser,3:routingInfoParser,5:featureBitsParser},unknownTagName="unknownTag";function unknownEncoder(et){return et.words=bech32.decode(et.words,Number.MAX_SAFE_INTEGER).words,et}function getUnknownParser(et){return tt=>({tagCode:parseInt(et),words:bech32.encode("unknown",tt,Number.MAX_SAFE_INTEGER)})}function wordsToIntBE(et){return et.reverse().reduce((tt,rt,nt)=>tt+rt*Math.pow(32,nt),0)}function intBEToWords(et,tt){const rt=[];if(tt===void 0&&(tt=5),et=Math.floor(et),et===0)return[0];for(;et>0;)rt.push(et&Math.pow(2,tt)-1),et=Math.floor(et/Math.pow(2,tt));return rt.reverse()}function sha256(et){return createHash("sha256").update(et).digest()}function convert(et,tt,rt){let nt=0,it=0;const st=(1<=rt;)it-=rt,at.push(nt>>it&st);return it>0&&at.push(nt<0;)rt=ot.slice(0,33).toString("hex"),nt=ot.slice(33,41).toString("hex"),it=parseInt(ot.slice(41,45).toString("hex"),16),st=parseInt(ot.slice(45,49).toString("hex"),16),at=parseInt(ot.slice(49,51).toString("hex"),16),ot=ot.slice(51),tt.push({pubkey:rt,short_channel_id:nt,fee_base_msat:it,fee_proportional_millionths:st,cltv_expiry_delta:at});return tt}function featureBitsParser(et){const tt=et.slice().reverse().map(nt=>[!!(nt&1),!!(nt&2),!!(nt&4),!!(nt&8),!!(nt&16)]).reduce((nt,it)=>nt.concat(it),[]);for(;tt.length{rt[nt]={required:tt[it*2],supported:tt[it*2+1]}}),tt.length>FEATUREBIT_ORDER.length*2){const nt=tt.slice(FEATUREBIT_ORDER.length*2);rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:nt,has_required:nt.reduce((it,st,at)=>at%2!==0?it||!1:it||st,!1)}}else rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:[],has_required:!1};return rt}function featureBitsEncoder(et){let tt=et.word_length,rt=[];for(FEATUREBIT_ORDER.forEach(nt=>{rt.push(!!(et[nt]||{}).required),rt.push(!!(et[nt]||{}).supported)});rt[rt.length-1]===!1;)rt.pop();for(;rt.length%5!==0;)rt.push(!1);if(et.extra_bits&&Array.isArray(et.extra_bits.bits)&&et.extra_bits.bits.length>0){for(;rt.lengthtt)throw new Error("word_length is too small to contain all featureBits");return tt===void 0&&(tt=Math.ceil(rt.length/5)),new Array(tt).fill(0).map((nt,it)=>rt[it*5+4]<<4|rt[it*5+3]<<3|rt[it*5+2]<<2|rt[it*5+1]<<1|rt[it*5]<<0).reverse()}function routingInfoEncoder(et){let tt=Buffer$1.from([]);return et.forEach(rt=>{tt=Buffer$1.concat([tt,hexToBuffer(rt.pubkey)]),tt=Buffer$1.concat([tt,hexToBuffer(rt.short_channel_id)]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_base_msat,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_proportional_millionths,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0].concat(intBEToWords(rt.cltv_expiry_delta,8)).slice(-2))])}),hexToWord(tt)}function purposeCommitEncoder(et){let tt;if(et!==void 0&&(typeof et=="string"||et instanceof String))et.match(/^([a-zA-Z0-9]{2})*$/)?tt=Buffer$1.from(et,"hex"):tt=sha256(Buffer$1.from(et,"utf8"));else throw new Error("purpose or purpose commit must be a string or hex string");return bech32.toWords(tt)}function tagsItems(et,tt){const rt=et.filter(it=>it.tagName===tt);return rt.length>0?rt[0].data:null}function tagsContainItem(et,tt){return tagsItems(et,tt)!==null}function orderKeys(et,tt){const rt={};if(Object.keys(et).sort().forEach(nt=>{rt[nt]=et[nt]}),tt===!0){const nt="__tagsObject_cache";Object.defineProperty(rt,"tagsObject",{get(){return this[nt]||Object.defineProperty(this,nt,{value:getTagsObject(this.tags)}),this[nt]}})}return rt}function satToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("satoshis must be an integer");const tt=new BN(et,10);return millisatToHrp(tt.mul(new BN(1e3,10)))}function millisatToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("millisatoshis must be an integer");const tt=new BN(et,10),rt=tt.toString(10),nt=rt.length;let it,st;return nt>11&&/0{11}$/.test(rt)?(it="",st=tt.div(MILLISATS_PER_BTC).toString(10)):nt>8&&/0{8}$/.test(rt)?(it="m",st=tt.div(MILLISATS_PER_MILLIBTC).toString(10)):nt>5&&/0{5}$/.test(rt)?(it="u",st=tt.div(MILLISATS_PER_MICROBTC).toString(10)):nt>2&&/0{2}$/.test(rt)?(it="n",st=tt.div(MILLISATS_PER_NANOBTC).toString(10)):(it="p",st=tt.mul(PICOBTC_PER_MILLISATS).toString(10)),st+it}function hrpToSat(et,tt){const rt=hrpToMillisat(et,!1);if(!rt.mod(new BN(1e3,10)).eq(new BN(0,10)))throw new Error("Amount is outside of valid range");const nt=rt.div(new BN(1e3,10));return tt?nt.toString():nt}function hrpToMillisat(et,tt){let rt,nt;if(et.slice(-1).match(/^[munp]$/))rt=et.slice(-1),nt=et.slice(0,-1);else{if(et.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");nt=et}if(!nt.match(/^\d+$/))throw new Error("Not a valid human readable amount");const it=new BN(nt,10),st=rt?it.mul(MILLISATS_PER_BTC).div(DIVISORS[rt]):it.mul(MILLISATS_PER_BTC);if(rt==="p"&&!it.mod(new BN(10,10)).eq(new BN(0,10))||st.gt(MAX_MILLISATS))throw new Error("Amount is outside of valid range");return tt?st.toString():st}function sign(et,tt){const rt=cloneDeep(et),nt=hexToBuffer(tt);if(rt.complete&&rt.paymentRequest)return rt;if(nt===void 0||nt.length!==32||!secp256k1.privateKeyVerify(nt))throw new Error("privateKey must be a 32 byte Buffer and valid private key");let it,st;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(st=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(it=hexToBuffer(rt.payeeNodeKey)),it&&st&&!st.equals(it))throw new Error("payee node key tag and payeeNodeKey attribute must match");it=st||it;const at=Buffer$1.from(secp256k1.publicKeyCreate(nt));if(it&&!at.equals(it))throw new Error("The private key given is not the private key of the node public key given");const ot=bech32.decode(rt.wordsTemp,Number.MAX_SAFE_INTEGER).words,lt=Buffer$1.concat([Buffer$1.from(rt.prefix,"utf8"),wordsToBuffer(ot)]),ut=sha256(lt),dt=secp256k1.ecdsaSign(ut,nt);dt.signature=Buffer$1.from(dt.signature);const bt=hexToWord(dt.signature.toString("hex")+"0"+dt.recid);return rt.payeeNodeKey=at.toString("hex"),rt.signature=dt.signature.toString("hex"),rt.recoveryFlag=dt.recid,rt.wordsTemp=bech32.encode("temp",ot.concat(bt),Number.MAX_SAFE_INTEGER),rt.complete=!0,rt.paymentRequest=bech32.encode(rt.prefix,ot.concat(bt),Number.MAX_SAFE_INTEGER),orderKeys(rt)}function encode$3(et,tt){const rt=cloneDeep(et);tt===void 0&&(tt=!0);const nt=!(rt.signature===void 0||rt.recoveryFlag===void 0);let it;if(rt.network===void 0&&!nt)rt.network=DEFAULTNETWORK,it=DEFAULTNETWORK;else{if(rt.network===void 0&&nt)throw new Error("Need network for proper payment request reconstruction");if(!rt.network.bech32||rt.network.pubKeyHash===void 0||rt.network.scriptHash===void 0||!Array.isArray(rt.network.validWitnessVersions))throw new Error("Invalid network");it=rt.network}if(rt.timestamp===void 0&&!nt)rt.timestamp=Math.floor(new Date().getTime()/1e3);else if(rt.timestamp===void 0&&nt)throw new Error("Need timestamp for proper payment request reconstruction");if(rt.tags===void 0)throw new Error("Payment Requests need tags array");if(!tagsContainItem(rt.tags,TAGNAMES[1]))throw new Error("Lightning Payment Request needs a payment hash");if(tagsContainItem(rt.tags,TAGNAMES[16]))if(tagsContainItem(rt.tags,TAGNAMES[5])){const St=tagsItems(rt.tags,TAGNAMES[5]);if(!St.payment_secret||!St.payment_secret.supported&&!St.payment_secret.required)throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included")}else if(tt)rt.tags.push({tagName:TAGNAMES[5],data:DEFAULTFEATUREBITS});else throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included");if(!tagsContainItem(rt.tags,TAGNAMES[13])&&!tagsContainItem(rt.tags,TAGNAMES[23]))if(tt)rt.tags.push({tagName:TAGNAMES[13],data:DEFAULTDESCRIPTION});else throw new Error("Payment request requires description or purpose commit hash");if(tagsContainItem(rt.tags,TAGNAMES[13])&&Buffer$1.from(tagsItems(rt.tags,TAGNAMES[13]),"utf8").length>639)throw new Error("Description is too long: Max length 639 bytes");!tagsContainItem(rt.tags,TAGNAMES[6])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[6],data:DEFAULTEXPIRETIME}),!tagsContainItem(rt.tags,TAGNAMES[24])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[24],data:DEFAULTCLTVEXPIRY});let st,at;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(at=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(st=hexToBuffer(rt.payeeNodeKey)),st&&at&&!at.equals(st))throw new Error("payeeNodeKey and tag payee node key do not match");st=st||at,st&&(rt.payeeNodeKey=st.toString("hex"));let ot,lt,ut;if(tagsContainItem(rt.tags,TAGNAMES[9])){const St=tagsItems(rt.tags,TAGNAMES[9]);if(ut=St.address,lt=St.addressHash,ot=St.code,lt===void 0||ot===void 0){let Bt,Ft;try{Bt=bitcoinjsAddress.fromBech32(ut),lt=Bt.data,ot=Bt.version}catch{try{Ft=bitcoinjsAddress.fromBase58Check(ut),Ft.version===it.pubKeyHash?ot=17:Ft.version===it.scriptHash&&(ot=18),lt=Ft.hash}catch{throw new Error("Fallback address type is unknown")}}if(Bt&&!(Bt.version in it.validWitnessVersions))throw new Error("Fallback address witness version is unknown");if(Bt&&Bt.prefix!==it.bech32)throw new Error("Fallback address network type does not match payment request network type");if(Ft&&Ft.version!==it.pubKeyHash&&Ft.version!==it.scriptHash)throw new Error("Fallback address version (base58) is unknown or the network type is incorrect");St.addressHash=lt.toString("hex"),St.code=ot}}tagsContainItem(rt.tags,TAGNAMES[3])&&tagsItems(rt.tags,TAGNAMES[3]).forEach(Bt=>{if(Bt.pubkey===void 0||Bt.short_channel_id===void 0||Bt.fee_base_msat===void 0||Bt.fee_proportional_millionths===void 0||Bt.cltv_expiry_delta===void 0)throw new Error("Routing info is incomplete");if(!secp256k1.publicKeyVerify(hexToBuffer(Bt.pubkey)))throw new Error("Routing info pubkey is not a valid pubkey");const Ft=hexToBuffer(Bt.short_channel_id);if(!(Ft instanceof Buffer$1)||Ft.length!==8)throw new Error("Routing info short channel id must be 8 bytes");if(typeof Bt.fee_base_msat!="number"||Math.floor(Bt.fee_base_msat)!==Bt.fee_base_msat)throw new Error("Routing info fee base msat is not an integer");if(typeof Bt.fee_proportional_millionths!="number"||Math.floor(Bt.fee_proportional_millionths)!==Bt.fee_proportional_millionths)throw new Error("Routing info fee proportional millionths is not an integer");if(typeof Bt.cltv_expiry_delta!="number"||Math.floor(Bt.cltv_expiry_delta)!==Bt.cltv_expiry_delta)throw new Error("Routing info cltv expiry delta is not an integer")});let dt="ln";dt+=it.bech32;let bt;if(rt.millisatoshis&&rt.satoshis){if(bt=millisatToHrp(new BN(rt.millisatoshis,10)),satToHrp(new BN(rt.satoshis,10))!==bt)throw new Error("satoshis and millisatoshis do not match")}else rt.millisatoshis?bt=millisatToHrp(new BN(rt.millisatoshis,10)):rt.satoshis?bt=satToHrp(new BN(rt.satoshis,10)):bt="";dt+=bt;const gt=intBEToWords(rt.timestamp);for(;gt.length<7;)gt.unshift(0);const kt=rt.tags;let pt=[];kt.forEach(St=>{const Bt=Object.keys(TAGENCODERS);if(nt&&Bt.push(unknownTagName),Bt.indexOf(St.tagName)===-1)throw new Error("Unknown tag key: "+St.tagName);let Ft;if(St.tagName!==unknownTagName){pt.push(TAGCODES[St.tagName]);const Dt=TAGENCODERS[St.tagName];Ft=Dt(St.data)}else{const Dt=unknownEncoder(St.data);pt.push(Dt.tagCode),Ft=Dt.words}pt=pt.concat([0].concat(intBEToWords(Ft.length)).slice(-2)),pt=pt.concat(Ft)});let yt=gt.concat(pt);const $t=Buffer$1.concat([Buffer$1.from(dt,"utf8"),Buffer$1.from(convert(yt,5,8))]),mt=sha256($t);let wt;if(nt)if(st){const St=Buffer$1.from(secp256k1.ecdsaRecover(Buffer$1.from(rt.signature,"hex"),rt.recoveryFlag,mt,!0));if(st&&!st.equals(St))throw new Error("Signature, message, and recoveryID did not produce the same pubkey as payeeNodeKey");wt=hexToWord(rt.signature+"0"+rt.recoveryFlag)}else throw new Error("Reconstruction with signature and recoveryID requires payeeNodeKey to verify correctness of input data.");return wt&&(yt=yt.concat(wt)),tagsContainItem(rt.tags,TAGNAMES[6])&&(rt.timeExpireDate=rt.timestamp+tagsItems(rt.tags,TAGNAMES[6]),rt.timeExpireDateString=new Date(rt.timeExpireDate*1e3).toISOString()),rt.timestampString=new Date(rt.timestamp*1e3).toISOString(),rt.complete=!!wt,rt.paymentRequest=rt.complete?bech32.encode(dt,yt,Number.MAX_SAFE_INTEGER):"",rt.prefix=dt,rt.wordsTemp=bech32.encode("temp",yt,Number.MAX_SAFE_INTEGER),orderKeys(rt)}function decode$3(et,tt){if(typeof et!="string")throw new Error("Lightning Payment Request must be string");if(et.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const rt=bech32.decode(et,Number.MAX_SAFE_INTEGER);et=et.toLowerCase();const nt=rt.prefix;let it=rt.words;const st=it.slice(-104),at=it.slice(0,-104);it=it.slice(0,-104);let ot=wordsToBuffer(st,!0);const lt=ot.slice(-1)[0];if(ot=ot.slice(0,-1),!(lt in[0,1,2,3])||ot.length!==64)throw new Error("Signature is missing or incorrect");let ut=nt.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(ut&&!ut[2]&&(ut=nt.match(/^ln(\S+)$/)),!ut)throw new Error("Not a proper lightning payment request");const dt=ut[1];let bt;if(tt){if(tt.bech32===void 0||tt.pubKeyHash===void 0||tt.scriptHash===void 0||!Array.isArray(tt.validWitnessVersions))throw new Error("Invalid network");bt=tt}else switch(dt){case DEFAULTNETWORK.bech32:bt=DEFAULTNETWORK;break;case TESTNETWORK.bech32:bt=TESTNETWORK;break;case REGTESTNETWORK.bech32:bt=REGTESTNETWORK;break;case SIMNETWORK.bech32:bt=SIMNETWORK;break}if(!bt||bt.bech32!==dt)throw new Error("Unknown coin bech32 prefix");const gt=ut[2];let kt,pt,yt;if(gt){const Mt=ut[3];try{kt=parseInt(hrpToSat(gt+Mt,!0))}catch{kt=null,yt=!0}pt=hrpToMillisat(gt+Mt,!0)}else kt=null,pt=null;const $t=wordsToIntBE(it.slice(0,7)),mt=new Date($t*1e3).toISOString();it=it.slice(7);const wt=[];let St,Bt,Ft,Dt;for(;it.length>0;){const Mt=it[0].toString();St=TAGNAMES[Mt]||unknownTagName,Bt=TAGPARSERS[Mt]||getUnknownParser(Mt),it=it.slice(1),Ft=wordsToIntBE(it.slice(0,2)),it=it.slice(2),Dt=it.slice(0,Ft),it=it.slice(Ft),wt.push({tagName:St,data:Bt(Dt,bt)})}let zt,Ht;tagsContainItem(wt,TAGNAMES[6])&&(zt=$t+tagsItems(wt,TAGNAMES[6]),Ht=new Date(zt*1e3).toISOString());const Wt=Buffer$1.concat([Buffer$1.from(nt,"utf8"),Buffer$1.from(convert(at,5,8))]),lr=sha256(Wt),qt=Buffer$1.from(secp256k1.ecdsaRecover(ot,lt,lr,!0));if(tagsContainItem(wt,TAGNAMES[19])&&tagsItems(wt,TAGNAMES[19])!==qt.toString("hex"))throw new Error("Lightning Payment Request signature pubkey does not match payee pubkey");let Ot={paymentRequest:et,complete:!0,prefix:nt,wordsTemp:bech32.encode("temp",at.concat(st),Number.MAX_SAFE_INTEGER),network:bt,satoshis:kt,millisatoshis:pt,timestamp:$t,timestampString:mt,payeeNodeKey:qt.toString("hex"),signature:ot.toString("hex"),recoveryFlag:lt,tags:wt};return yt&&delete Ot.satoshis,zt&&(Ot=Object.assign(Ot,{timeExpireDate:zt,timeExpireDateString:Ht})),orderKeys(Ot,!0)}function getTagsObject(et){const tt={};return et.forEach(rt=>{rt.tagName===unknownTagName?(tt.unknownTags||(tt.unknownTags=[]),tt.unknownTags.push(rt.data)):tt[rt.tagName]=rt.data}),tt}var payreq={encode:encode$3,decode:decode$3,sign,satToHrp,millisatToHrp,hrpToSat,hrpToMillisat};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dt){return dt&&dt.__esModule?dt:{default:dt}};Object.defineProperty(et,"__esModule",{value:!0}),et.getIdFromRequest=et.decode=et.isHex=et.stringToBytes=et.isValue=et.utf8Encoder=void 0;const rt=tt(payreq),nt=tt(assert_1);let it;typeof window<"u"&&window&&window.TextEncoder?it=window.TextEncoder:it=util.TextEncoder,et.utf8Encoder=new it;const st=dt=>dt!=null;et.isValue=st;const at=dt=>(0,et.isValue)(dt)?et.utf8Encoder.encode(dt):dt;et.stringToBytes=at;function ot(dt){return Buffer.from(dt,"hex").toString("hex")===dt}et.isHex=ot;function lt(dt){let bt;return dt.indexOf("lnsb")===0&&(bt={bech32:"sb"}),rt.default.decode(dt,bt)}et.decode=lt;function ut(dt){const gt=lt(dt).tags.find(pt=>pt.tagName==="payment_hash");(0,nt.default)(gt&>.data,"Could not find payment hash on invoice request");const kt=gt==null?void 0:gt.data.toString();if(!kt||!kt.length)throw new Error("Could not get payment hash from payment request");return kt}et.getIdFromRequest=ut})(helpers);var hasRequiredLsat;function requireLsat(){if(hasRequiredLsat)return lsat$1;hasRequiredLsat=1;var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gt,kt,pt,yt){yt===void 0&&(yt=pt);var $t=Object.getOwnPropertyDescriptor(kt,pt);(!$t||("get"in $t?!kt.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return kt[pt]}}),Object.defineProperty(gt,yt,$t)}:function(gt,kt,pt,yt){yt===void 0&&(yt=pt),gt[yt]=kt[pt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gt,kt){Object.defineProperty(gt,"default",{enumerable:!0,value:kt})}:function(gt,kt){gt.default=kt}),rt=commonjsGlobal&&commonjsGlobal.__importStar||function(gt){if(gt&>.__esModule)return gt;var kt={};if(gt!=null)for(var pt in gt)pt!=="default"&&Object.prototype.hasOwnProperty.call(gt,pt)&&et(kt,gt,pt);return tt(kt,gt),kt},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(lsat$1,"__esModule",{value:!0}),lsat$1.Lsat=lsat$1.parseChallengePart=void 0;const it=assert_1,st=bufio,at=nt(requireCryptoBrowserify()),ot=rt(macaroon$1),lt=requireDist(),ut=helpers;function dt(gt){let kt;const pt=gt.indexOf("=");it(pt>-1,'Incorrectly encoded challenge. Missing "=" separator.');const yt=gt.length-1-pt;return kt=gt.slice(-yt),it(kt.length,"Incorrectly encoded macaroon challenge"),it(kt[0]==='"'&&kt[kt.length-1]==='"',"Incorectly encoded challenge, challenges must be enclosed in double quotes."),kt=kt.slice(1,kt.length-1),kt}lsat$1.parseChallengePart=dt;class bt extends st.Struct{constructor(kt){super(kt),this.id="",this.validUntil=0,this.invoice="",this.baseMacaroon="",this.paymentHash=Buffer.alloc(32).toString("hex"),this.timeCreated=Date.now(),this.paymentPreimage=null,this.amountPaid=0,this.routingFeePaid=0,this.invoiceAmount=0,kt&&this.fromOptions(kt)}fromOptions(kt){it(typeof kt.baseMacaroon=="string","Require serialized macaroon"),this.baseMacaroon=kt.baseMacaroon,it(typeof kt.id=="string","Require string id"),this.id=kt.id,it(typeof kt.paymentHash=="string","Require paymentHash"),this.paymentHash=kt.paymentHash;const pt=this.getExpirationFromMacaroon(kt.baseMacaroon);return pt&&(this.validUntil=pt),kt.invoice&&this.addInvoice(kt.invoice),kt.timeCreated&&(this.timeCreated=kt.timeCreated),kt.paymentPreimage&&(this.paymentPreimage=kt.paymentPreimage),kt.amountPaid&&(this.amountPaid=kt.amountPaid),kt.routingFeePaid&&(this.routingFeePaid=kt.routingFeePaid),this}isExpired(){return this.validUntil===0?!1:this.validUntilwt.tagName==="payment_hash");it($t,"Could not find payment hash on invoice request");const mt=$t==null?void 0:$t.data;it(mt===this.paymentHash,"paymentHash from invoice did not match LSAT"),this.invoiceAmount=yt||0,this.invoice=kt}catch(pt){throw new Error(`Problem adding invoice data to LSAT: ${pt.message}`)}}static fromMacaroon(kt,pt){it(typeof kt=="string","Requires a raw macaroon string for macaroon to generate LSAT");let yt,$t;try{$t=(0,lt.decodeIdentifierFromMacaroon)(kt),yt=lt.Identifier.fromString($t)}catch(St){throw new Error(`Unexpected encoding for macaroon identifier: ${St.message}`)}const mt={id:$t,baseMacaroon:kt,paymentHash:yt.paymentHash.toString("hex")},wt=new this(mt);return pt&&wt.addInvoice(pt),wt}static fromToken(kt,pt){it(kt.includes(this.type),"Token must include LSAT prefix"),kt=kt.slice(this.type.length).trim();const[yt,$t]=kt.split(":"),mt=bt.fromMacaroon(yt,pt);return $t&&mt.setPreimage($t),mt}static fromChallenge(kt){const pt="macaroon=",yt="invoice=";let $t;$t=kt.split(","),$t.length<2&&($t=kt.split(" ")),it($t.length>=2,"Expected at least two challenges in the LSAT: invoice and macaroon");let mt="",wt="";for(const Ft of $t){if(!mt.length&&Ft.indexOf(pt)>-1)try{mt=dt(Ft)}catch(Dt){throw new Error(`Problem parsing macaroon challenge: ${Dt.message}`)}if(!wt.length&&Ft.indexOf(yt)>-1)try{wt=dt(Ft)}catch(Dt){throw new Error(`Problem parsing macaroon challenge: ${Dt.message}`)}if(wt.length&&mt.length)break}it(wt.length&&mt.length,"Expected WWW-Authenticate challenge with macaroon and invoice data");const St=(0,ut.getIdFromRequest)(wt),Bt=(0,lt.decodeIdentifierFromMacaroon)(mt);return new this({id:Bt,baseMacaroon:mt,paymentHash:St,invoice:wt})}static fromHeader(kt){const pt=kt.slice(this.type.length).trim();return it(kt.length!==pt.length,'header missing token type prefix "LSAT"'),bt.fromChallenge(pt)}}return lsat$1.Lsat=bt,bt.type="LSAT",lsat$1}var types={},lsat={};Object.defineProperty(lsat,"__esModule",{value:!0});var satisfier={};Object.defineProperty(satisfier,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(lsat,et),rt(satisfier,et)})(types);var satisfiers={},hasRequiredSatisfiers;function requireSatisfiers(){if(hasRequiredSatisfiers)return satisfiers;hasRequiredSatisfiers=1,Object.defineProperty(satisfiers,"__esModule",{value:!0}),satisfiers.createCapabilitiesSatisfier=satisfiers.createServicesSatisfier=satisfiers.expirationSatisfier=void 0;const et=requireDist();satisfiers.expirationSatisfier={condition:"expiration",satisfyPrevious:(nt,it)=>nt.condition!=="expiration"||it.condition!=="expiration"?!1:!(nt.value!(nt.condition!=="expiration"||nt.value{if(typeof nt!="string")throw new et.InvalidServicesError;return{condition:et.SERVICES_CAVEAT_CONDITION,satisfyPrevious:(it,st)=>{const at=(0,et.decodeServicesCaveat)(it.value.toString()),ot=(0,et.decodeServicesCaveat)(st.value.toString());if(!Array.isArray(at)||!Array.isArray(ot))throw new et.InvalidServicesError;let lt=new Map;lt=at.reduce((ut,dt)=>ut.set(dt.name,dt.tier),lt);for(const ut of ot)if(!lt.has(ut.name)||lt.get(ut.name)>ut.tier)return!1;return!0},satisfyFinal:it=>{const st=(0,et.decodeServicesCaveat)(it.value.toString());if(!Array.isArray(st))throw new et.InvalidServicesError;for(const at of st)if(at.name===nt)return!0;return!1}}};satisfiers.createServicesSatisfier=tt;const rt=(nt,it)=>{if(typeof it!="string")throw new et.InvalidCapabilitiesError;if(typeof nt!="string")throw new et.InvalidCapabilitiesError;return{condition:nt+et.SERVICE_CAPABILITIES_SUFFIX,satisfyPrevious:(st,at)=>{const ot=(0,et.decodeCapabilitiesValue)(st.value.toString()),lt=(0,et.decodeCapabilitiesValue)(at.value.toString());if(!Array.isArray(ot)||!Array.isArray(lt))throw new et.InvalidServicesError;let ut=new Set;ut=ot.reduce((dt,bt)=>dt.add(bt),ut);for(const dt of lt)if(!ut.has(dt))return!1;return!0},satisfyFinal:st=>{const at=(0,et.decodeCapabilitiesValue)(st.value.toString());if(!Array.isArray(at))throw new et.InvalidServicesError;for(const ot of at)if(ot===it)return!0;return!1}}};return satisfiers.createCapabilitiesSatisfier=rt,satisfiers}var macaroon={},base64={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)it.hasOwnProperty(st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(base64,"__esModule",{value:!0});var INVALID_BYTE=256,Coder=function(){function et(tt){tt===void 0&&(tt="="),this._paddingCharacter=tt}return et.prototype.encodedLength=function(tt){return this._paddingCharacter?(tt+2)/3*4|0:(tt*8+5)/6|0},et.prototype.encode=function(tt){for(var rt="",nt=0;nt>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),rt+=this._encodeByte(it>>>1*6&63),rt+=this._encodeByte(it>>>0*6&63)}var st=tt.length-nt;if(st>0){var it=tt[nt]<<16|(st===2?tt[nt+1]<<8:0);rt+=this._encodeByte(it>>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),st===2?rt+=this._encodeByte(it>>>1*6&63):rt+=this._paddingCharacter||"",rt+=this._paddingCharacter||""}return rt},et.prototype.maxDecodedLength=function(tt){return this._paddingCharacter?tt/4*3|0:(tt*6+7)/8|0},et.prototype.decodedLength=function(tt){return this.maxDecodedLength(tt.length-this._getPaddingLength(tt))},et.prototype.decode=function(tt){if(tt.length===0)return new Uint8Array(0);for(var rt=this._getPaddingLength(tt),nt=tt.length-rt,it=new Uint8Array(this.maxDecodedLength(nt)),st=0,at=0,ot=0,lt=0,ut=0,dt=0,bt=0;at>>4,it[st++]=ut<<4|dt>>>2,it[st++]=dt<<6|bt,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE,ot|=dt&INVALID_BYTE,ot|=bt&INVALID_BYTE;if(at>>4,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE),at>>2,ot|=dt&INVALID_BYTE),at>>8&0-65-26+97,rt+=51-tt>>>8&26-97-52+48,rt+=61-tt>>>8&52-48-62+43,rt+=62-tt>>>8&62-43-63+47,String.fromCharCode(rt)},et.prototype._decodeChar=function(tt){var rt=INVALID_BYTE;return rt+=(42-tt&tt-44)>>>8&-INVALID_BYTE+tt-43+62,rt+=(46-tt&tt-48)>>>8&-INVALID_BYTE+tt-47+63,rt+=(47-tt&tt-58)>>>8&-INVALID_BYTE+tt-48+52,rt+=(64-tt&tt-91)>>>8&-INVALID_BYTE+tt-65+0,rt+=(96-tt&tt-123)>>>8&-INVALID_BYTE+tt-97+26,rt},et.prototype._getPaddingLength=function(tt){var rt=0;if(this._paddingCharacter){for(var nt=tt.length-1;nt>=0&&tt[nt]===this._paddingCharacter;nt--)rt++;if(tt.length<4||rt>2)throw new Error("Base64Coder: incorrect padding")}return rt},et}();base64.Coder=Coder;var stdCoder=new Coder;function encode$2(et){return stdCoder.encode(et)}base64.encode=encode$2;function decode$2(et){return stdCoder.decode(et)}base64.decode=decode$2;var URLSafeCoder=function(et){__extends$1(tt,et);function tt(){return et!==null&&et.apply(this,arguments)||this}return tt.prototype._encodeByte=function(rt){var nt=rt;return nt+=65,nt+=25-rt>>>8&0-65-26+97,nt+=51-rt>>>8&26-97-52+48,nt+=61-rt>>>8&52-48-62+45,nt+=62-rt>>>8&62-45-63+95,String.fromCharCode(nt)},tt.prototype._decodeChar=function(rt){var nt=INVALID_BYTE;return nt+=(44-rt&rt-46)>>>8&-INVALID_BYTE+rt-45+62,nt+=(94-rt&rt-96)>>>8&-INVALID_BYTE+rt-95+63,nt+=(47-rt&rt-58)>>>8&-INVALID_BYTE+rt-48+52,nt+=(64-rt&rt-91)>>>8&-INVALID_BYTE+rt-65+0,nt+=(96-rt&rt-123)>>>8&-INVALID_BYTE+rt-97+26,nt},tt}(Coder);base64.URLSafeCoder=URLSafeCoder;var urlSafeCoder=new URLSafeCoder;function encodeURLSafe(et){return urlSafeCoder.encode(et)}base64.encodeURLSafe=encodeURLSafe;function decodeURLSafe(et){return urlSafeCoder.decode(et)}base64.decodeURLSafe=decodeURLSafe;base64.encodedLength=function(et){return stdCoder.encodedLength(et)};base64.maxDecodedLength=function(et){return stdCoder.maxDecodedLength(et)};base64.decodedLength=function(et){return stdCoder.decodedLength(et)};var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding(tt,et,rt);return __setModuleDefault(tt,et),tt};Object.defineProperty(macaroon,"__esModule",{value:!0});macaroon.getRawMacaroon=macaroon.verifyMacaroonCaveats=macaroon.getCaveatsFromMacaroon=void 0;const caveat_1=caveat,helpers_1=helpers,Macaroon=__importStar(macaroon$1),base64_1=base64;function getCaveatsFromMacaroon(et){var tt;const rt=Macaroon.importMacaroon(et),nt=[],it=(tt=rt._exportAsJSONObjectV2())===null||tt===void 0?void 0:tt.c;if(it)for(const st of it){if(!st.i)continue;const at=caveat_1.Caveat.decode(st.i);nt.push(at)}return nt}macaroon.getCaveatsFromMacaroon=getCaveatsFromMacaroon;function verifyMacaroonCaveats(et,tt,rt,nt={}){try{const it=Macaroon.importMacaroon(et),st=(0,helpers_1.stringToBytes)(tt);it.verify(st,()=>null);const at=getCaveatsFromMacaroon(et);return rt&&!Array.isArray(rt)&&(rt=[rt]),!at.length&&(!rt||!rt.length)?!0:(0,caveat_1.verifyCaveats)(at,rt,nt)}catch{return!1}}macaroon.verifyMacaroonCaveats=verifyMacaroonCaveats;function getRawMacaroon(et,tt=!1){const rt=et._exportBinaryV2();return tt?(0,base64_1.encodeURLSafe)(rt):(0,base64_1.encode)(rt)}macaroon.getRawMacaroon=getRawMacaroon;var service={};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(et,"__esModule",{value:!0}),et.decodeCapabilitiesValue=et.createNewCapabilitiesCaveat=et.SERVICE_CAPABILITIES_SUFFIX=et.encodeServicesCaveatValue=et.decodeServicesCaveat=et.SERVICES_CAVEAT_CONDITION=et.Service=et.InvalidCapabilitiesError=et.InvalidServicesError=et.NoServicesError=void 0;const rt=tt(bufio),nt=caveat;class it extends Error{constructor(...kt){super(...kt),this.name="NoServicesError",this.message="no services found",Error.captureStackTrace&&Error.captureStackTrace(this,it)}}et.NoServicesError=it;class st extends Error{constructor(kt){super(kt),this.name="InvalidServicesError",kt||(this.message='service must be of the form "name:tier"'),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidServicesError=st;class at extends Error{constructor(kt){super(kt),this.name="InvalidCapabilitiesError",kt||(this.message="capabilities must be a string or array of strings"),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidCapabilitiesError=at;class ot extends rt.default.Struct{constructor(kt){super(kt),this.name=kt.name,this.tier=kt.tier}}et.Service=ot,et.SERVICES_CAVEAT_CONDITION="services";const lt=gt=>{if(!gt.length)throw new it;const kt=[],pt=gt.split(",");for(const yt of pt){const[$t,mt]=yt.split(":");if(!$t||!mt)throw new st;if(isNaN(+mt))throw new st("tier must be a number");if(!isNaN(+$t))throw new st("service name must be a string");kt.push(new ot({name:$t,tier:+mt}))}return kt};et.decodeServicesCaveat=lt;const ut=gt=>{if(!gt.length)throw new it;let kt="";for(let pt=0;pt{let pt;if(!kt)pt="";else if(Array.isArray(kt))pt=kt.join(",");else{if(typeof kt!="string")throw new at;pt=kt}return new nt.Caveat({condition:gt+et.SERVICE_CAPABILITIES_SUFFIX,value:pt,comp:"="})};et.createNewCapabilitiesCaveat=dt;const bt=gt=>{if(typeof gt!="string")throw new at;return gt.toString().split(",").map(kt=>kt.trim())};et.decodeCapabilitiesValue=bt})(service);var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(identifier$1,et),rt(caveat,et),rt(requireLsat(),et),rt(types,et),rt(requireSatisfiers(),et),rt(macaroon,et),rt(service,et)}(dist$1)),dist$1}var distExports=requireDist(),lib={},client={},errors={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Class extends value "+String(rt)+" is not a constructor or null");et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(errors,"__esModule",{value:!0});errors.InternalError=errors.InvalidDataError=errors.RoutingError=errors.UnsupportedMethodError=errors.ConnectionError=errors.RejectionError=errors.MissingProviderError=void 0;function fixError(et,tt,rt){if(Object.setPrototypeOf(et,rt.prototype),tt===rt)if(et.name=tt.name,Error.captureStackTrace)Error.captureStackTrace(et,rt);else{var nt=new Error(et.message).stack;nt&&(et.stack=fixStack(nt,"new ".concat(tt.name)))}}function fixStack(et,tt){if(!et||!tt)return et;var rt=new RegExp("\\s+at\\s".concat(tt,"\\s")),nt=et.split(` +`),it=nt.filter(function(st){return!st.match(rt)});return it.join(` +`)}var MissingProviderError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.MissingProviderError=MissingProviderError;var RejectionError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.RejectionError=RejectionError;var ConnectionError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.ConnectionError=ConnectionError;var UnsupportedMethodError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.UnsupportedMethodError=UnsupportedMethodError;var RoutingError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.RoutingError=RoutingError;var InvalidDataError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.InvalidDataError=InvalidDataError;var InternalError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.InternalError=InternalError;Object.defineProperty(client,"__esModule",{value:!0});client.requestProvider=void 0;var errors_1=errors;function requestProvider(et){return new Promise(function(tt,rt){if(typeof window>"u")return rt(new Error("Must be called in a browser context"));var nt=window.webln;if(!nt)return rt(new errors_1.MissingProviderError("Your browser has no WebLN provider"));nt.enable().then(function(){return tt(nt)}).catch(function(it){return rt(it)})})}client.requestProvider=requestProvider;var provider={};Object.defineProperty(provider,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(client,et),rt(provider,et),rt(errors,et)})(lib);async function buyLsat(et){const tt={amount:et};return api$1.post("/buy_lsat",JSON.stringify(tt))}async function payLsat(et){let tt;if(isSphinx()){const it=localStorage.getItem("lsat");if(it){localStorage.removeItem("lsat");const ot=JSON.parse(it);await distExports$1.updateLsat(ot.identifier,"expired")}let st;isE2E?st=await sphinxBridge.setBudget():st=await distExports$1.setBudget();let at=st==null?void 0:st.budget;at||(at=(await distExports$1.authorize()).budget);try{await buyLsat(at)}catch(ot){if(ot.status===402){tt=distExports.Lsat.fromHeader(ot.headers.get("www-authenticate"));let lt;isE2E?lt=await sphinxBridge.saveLsat(tt.invoice,tt.baseMacaroon,window.location.host):lt=await distExports$1.saveLsat(tt.invoice,tt.baseMacaroon,window.location.host),lt!=null&<.lsat&&(localStorage.setItem("lsat",JSON.stringify({macaroon:tt.baseMacaroon,identifier:tt.id,preimage:lt.lsat.split(":")[1]})),await et(at))}return}}localStorage.removeItem("lsat");const rt=await lib.requestProvider(),nt=50;try{await buyLsat(nt)}catch(it){tt=distExports.Lsat.fromHeader(it.headers.get("www-authenticate"));const st=await rt.sendPayment(tt.invoice);st!=null&&st.preimage&&localStorage.setItem("lsat",JSON.stringify({macaroon:tt.baseMacaroon,identifier:tt.id,preimage:st.preimage})),await et(nt)}}const createStoreImpl=et=>{let tt;const rt=new Set,nt=(lt,ut)=>{const dt=typeof lt=="function"?lt(tt):lt;if(!Object.is(dt,tt)){const bt=tt;tt=ut??(typeof dt!="object"||dt===null)?dt:Object.assign({},tt,dt),rt.forEach(gt=>gt(tt,bt))}},it=()=>tt,ot={setState:nt,getState:it,subscribe:lt=>(rt.add(lt),()=>rt.delete(lt)),destroy:()=>{rt.clear()}};return tt=et(nt,it,ot),ot},createStore=et=>et?createStoreImpl(et):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var e$1=reactExports;function h$4(et,tt){return et===tt&&(et!==0||1/et===1/tt)||et!==et&&tt!==tt}var k$2=typeof Object.is=="function"?Object.is:h$4,l$1=e$1.useState,m$2=e$1.useEffect,n$2=e$1.useLayoutEffect,p$3=e$1.useDebugValue;function q$2(et,tt){var rt=tt(),nt=l$1({inst:{value:rt,getSnapshot:tt}}),it=nt[0].inst,st=nt[1];return n$2(function(){it.value=rt,it.getSnapshot=tt,r$5(it)&&st({inst:it})},[et,rt,tt]),m$2(function(){return r$5(it)&&st({inst:it}),et(function(){r$5(it)&&st({inst:it})})},[et]),p$3(rt),rt}function r$5(et){var tt=et.getSnapshot;et=et.value;try{var rt=tt();return!k$2(et,rt)}catch{return!0}}function t$2(et,tt){return tt()}var u$3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$2:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$1.useSyncExternalStore!==void 0?e$1.useSyncExternalStore:u$3;shim.exports=useSyncExternalStoreShim_production_min;var shimExports=shim.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var h$3=reactExports,n$1=shimExports;function p$2(et,tt){return et===tt&&(et!==0||1/et===1/tt)||et!==et&&tt!==tt}var q$1=typeof Object.is=="function"?Object.is:p$2,r$4=n$1.useSyncExternalStore,t$1=h$3.useRef,u$2=h$3.useEffect,v$3=h$3.useMemo,w$2=h$3.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(et,tt,rt,nt,it){var st=t$1(null);if(st.current===null){var at={hasValue:!1,value:null};st.current=at}else at=st.current;st=v$3(function(){function lt(kt){if(!ut){if(ut=!0,dt=kt,kt=nt(kt),it!==void 0&&at.hasValue){var pt=at.value;if(it(pt,kt))return bt=pt}return bt=kt}if(pt=bt,q$1(dt,kt))return pt;var yt=nt(kt);return it!==void 0&&it(pt,yt)?pt:(dt=kt,bt=yt)}var ut=!1,dt,bt,gt=rt===void 0?null:rt;return[function(){return lt(tt())},gt===null?void 0:function(){return lt(gt())}]},[tt,rt,nt,it]);var ot=r$4(et,st[0],st[1]);return u$2(function(){at.hasValue=!0,at.value=ot},[ot]),w$2(ot),ot};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(et,tt=et.getState,rt){const nt=useSyncExternalStoreWithSelector(et.subscribe,et.getState,et.getServerState||et.getState,tt,rt);return useDebugValue(nt),nt}const createImpl=et=>{const tt=typeof et=="function"?createStore(et):et,rt=(nt,it)=>useStore(tt,nt,it);return Object.assign(rt,tt),rt},create=et=>et?createImpl(et):createImpl;var react=et=>create(et);const defaultData$6={isAdmin:!1,isAuthenticated:!1,pubKey:"",budget:0,nodeCount:0,tribeHost:"",tribeUuid:"",signedToken:"",swarmUiUrl:""},useUserStore=create(et=>({...defaultData$6,setIsAdmin:tt=>et({isAdmin:tt}),setPubKey:tt=>et({pubKey:tt}),setBudget:tt=>et({budget:tt}),setNodeCount:tt=>et(rt=>tt==="INCREMENT"?{nodeCount:rt.nodeCount+1}:{nodeCount:0}),setTribeUuid:tt=>et({tribeUuid:tt}),setTribeHost:tt=>et({tribeHost:tt}),setIsAuthenticated:tt=>et({isAuthenticated:tt}),setSignedToken:tt=>et({signedToken:tt}),setSwarmUiUrl:tt=>et({swarmUiUrl:tt})})),executeIfTetsRunning=et=>{isE2E&&et()};function executeIfProd(et){return isDevelopment||isE2E?null:et()}function addToGlobalForE2e(et,tt){executeIfTetsRunning(()=>{window.e2e||(window.e2e={}),window.e2e[tt]=et})}const E2E=()=>{const et=useUserStore();return reactExports.useEffect(()=>{isE2E&&addToGlobalForE2e(et,"userStore")},[et]),jsxRuntimeExports.jsx("div",{id:"e2e-check"})},E2ETests=reactExports.memo(()=>isE2E?jsxRuntimeExports.jsx(E2E,{}):null);async function getBalance(et){return api$1.get("/balance",{Authorization:et})}async function updateBudget(et){const tt=await getLSat();if(!tt){et(0);return}try{const rt=await getBalance(tt);et(rt.balance)}catch{et(0)}}const common={black:"#000",white:"#fff"},common$1=common,red={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"},red$1=red,purple={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"},purple$1=purple,blue={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"},blue$1=blue,lightBlue={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"},lightBlue$1=lightBlue,green={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"},green$1=green,orange={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"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey;function _extends(){return _extends=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt{tt[rt]=deepClone(et[rt])}),tt}function deepmerge(et,tt,rt={clone:!0}){const nt=rt.clone?_extends({},et):et;return isPlainObject$1(et)&&isPlainObject$1(tt)&&Object.keys(tt).forEach(it=>{it!=="__proto__"&&(isPlainObject$1(tt[it])&&it in et&&isPlainObject$1(et[it])?nt[it]=deepmerge(et[it],tt[it],rt):rt.clone?nt[it]=isPlainObject$1(tt[it])?deepClone(tt[it]):tt[it]:nt[it]=tt[it])}),nt}function formatMuiErrorMessage(et){let tt="https://mui.com/production-error/?code="+et;for(let rt=1;rt{tt.current=et}),reactExports.useRef((...rt)=>(0,tt.current)(...rt)).current}function useForkRef(...et){return reactExports.useMemo(()=>et.every(tt=>tt==null)?null:tt=>{et.forEach(rt=>{setRef(rt,tt)})},et)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={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};function focusTriggersKeyboardModality(et){const{type:tt,tagName:rt}=et;return!!(rt==="INPUT"&&inputTypesWhitelist[tt]&&!et.readOnly||rt==="TEXTAREA"&&!et.readOnly||et.isContentEditable)}function handleKeyDown(et){et.metaKey||et.altKey||et.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(et){et.addEventListener("keydown",handleKeyDown,!0),et.addEventListener("mousedown",handlePointerDown,!0),et.addEventListener("pointerdown",handlePointerDown,!0),et.addEventListener("touchstart",handlePointerDown,!0),et.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(et){const{target:tt}=et;try{return tt.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(tt)}function useIsFocusVisible(){const et=reactExports.useCallback(it=>{it!=null&&prepare(it.ownerDocument)},[]),tt=reactExports.useRef(!1);function rt(){return tt.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),tt.current=!1,!0):!1}function nt(it){return isFocusVisible(it)?(tt.current=!0,!0):!1}return{isFocusVisibleRef:tt,onFocus:nt,onBlur:rt,ref:et}}function resolveProps(et,tt){const rt=_extends({},tt);return Object.keys(et).forEach(nt=>{if(nt.toString().match(/^(components|slots)$/))rt[nt]=_extends({},et[nt],rt[nt]);else if(nt.toString().match(/^(componentsProps|slotProps)$/)){const it=et[nt]||{},st=tt[nt];rt[nt]={},!st||!Object.keys(st)?rt[nt]=it:!it||!Object.keys(it)?rt[nt]=st:(rt[nt]=_extends({},st),Object.keys(it).forEach(at=>{rt[nt][at]=resolveProps(it[at],st[at])}))}else rt[nt]===void 0&&(rt[nt]=et[nt])}),rt}function composeClasses(et,tt,rt=void 0){const nt={};return Object.keys(et).forEach(it=>{nt[it]=et[it].reduce((st,at)=>{if(at){const ot=tt(at);ot!==""&&st.push(ot),rt&&rt[at]&&st.push(rt[at])}return st},[]).join(" ")}),nt}const defaultGenerator=et=>et,createClassNameGenerator=()=>{let et=defaultGenerator;return{configure(tt){et=tt},generate(tt){return et(tt)},reset(){et=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(et,tt,rt="Mui"){const nt=globalStateClassesMapping[tt];return nt?`${rt}-${nt}`:`${ClassNameGenerator$1.generate(et)}-${tt}`}function generateUtilityClasses(et,tt,rt="Mui"){const nt={};return tt.forEach(it=>{nt[it]=generateUtilityClass(et,it,rt)}),nt}const THEME_ID="$$material";function _objectWithoutPropertiesLoose(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),it,st;for(st=0;st=0)&&(rt[it]=et[it]);return rt}var reactPropsRegex=/^((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|download|draggable|encType|enterKeyHint|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|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|enableBackground|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)-.*))$/,isPropValid=memoize$1(function(et){return reactPropsRegex.test(et)||et.charCodeAt(0)===111&&et.charCodeAt(1)===110&&et.charCodeAt(2)<91});function sheetForTag(et){if(et.sheet)return et.sheet;for(var tt=0;tt0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(et,tt){for(;--tt&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(et,caret()+(tt<6&&peek()==32&&next()==32))}function delimiter(et){for(;next();)switch(character){case et:return position;case 34:case 39:et!==34&&et!==39&&delimiter(character);break;case 40:et===41&&delimiter(et);break;case 92:next();break}return position}function commenter(et,tt){for(;next()&&et+character!==47+10;)if(et+character===42+42&&peek()===47)break;return"/*"+slice(tt,position-1)+"*"+from(et===47?et:next())}function identifier(et){for(;!token(peek());)next();return slice(et,position)}function compile(et){return dealloc(parse$1("",null,null,null,[""],et=alloc(et),0,[0],et))}function parse$1(et,tt,rt,nt,it,st,at,ot,lt){for(var ut=0,dt=0,bt=at,gt=0,kt=0,pt=0,yt=1,$t=1,mt=1,wt=0,St="",Bt=it,Ft=st,Dt=nt,zt=St;$t;)switch(pt=wt,wt=next()){case 40:if(pt!=108&&charat(zt,bt-1)==58){indexof(zt+=replace(delimit(wt),"&","&\f"),"&\f")!=-1&&(mt=-1);break}case 34:case 39:case 91:zt+=delimit(wt);break;case 9:case 10:case 13:case 32:zt+=whitespace(pt);break;case 92:zt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),tt,rt),lt);break;default:zt+="/"}break;case 123*yt:ot[ut++]=strlen(zt)*mt;case 125*yt:case 59:case 0:switch(wt){case 0:case 125:$t=0;case 59+dt:mt==-1&&(zt=replace(zt,/\f/g,"")),kt>0&&strlen(zt)-bt&&append(kt>32?declaration(zt+";",nt,rt,bt-1):declaration(replace(zt," ","")+";",nt,rt,bt-2),lt);break;case 59:zt+=";";default:if(append(Dt=ruleset(zt,tt,rt,ut,dt,it,ot,St,Bt=[],Ft=[],bt),st),wt===123)if(dt===0)parse$1(zt,tt,Dt,Dt,Bt,st,bt,ot,Ft);else switch(gt===99&&charat(zt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1(et,Dt,Dt,nt&&append(ruleset(et,Dt,Dt,0,0,it,ot,St,it,Bt=[],bt),Ft),it,Ft,bt,ot,nt?Bt:Ft);break;default:parse$1(zt,Dt,Dt,Dt,[""],Ft,0,ot,Ft)}}ut=dt=kt=0,yt=mt=1,St=zt="",bt=at;break;case 58:bt=1+strlen(zt),kt=pt;default:if(yt<1){if(wt==123)--yt;else if(wt==125&&yt++==0&&prev$1()==125)continue}switch(zt+=from(wt),wt*yt){case 38:mt=dt>0?1:(zt+="\f",-1);break;case 44:ot[ut++]=(strlen(zt)-1)*mt,mt=1;break;case 64:peek()===45&&(zt+=delimit(next())),gt=peek(),dt=bt=strlen(St=zt+=identifier(caret())),wt++;break;case 45:pt===45&&strlen(zt)==2&&(yt=0)}}return st}function ruleset(et,tt,rt,nt,it,st,at,ot,lt,ut,dt){for(var bt=it-1,gt=it===0?st:[""],kt=sizeof(gt),pt=0,yt=0,$t=0;pt0?gt[mt]+" "+wt:replace(wt,/&\f/g,gt[mt])))&&(lt[$t++]=St);return node(et,tt,rt,it===0?RULESET:ot,lt,ut,dt)}function comment(et,tt,rt){return node(et,tt,rt,COMMENT,from(char()),substr(et,2,-2),0)}function declaration(et,tt,rt,nt){return node(et,tt,rt,DECLARATION,substr(et,0,nt),substr(et,nt+1,-1),nt)}function serialize(et,tt){for(var rt="",nt=sizeof(et),it=0;it6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix(replace(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace(et,":",":"+WEBKIT)+et;case 101:return replace(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer=function(tt,rt,nt,it){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],it);case RULESET:if(tt.length)return combine(tt.props,function(st){switch(match(st,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(st,/:(read-\w+)/,":"+MOZ+"$1")]})],it);case"::placeholder":return serialize([copy(tt,{props:[replace(st,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,MS+"input-$1")]})],it)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(yt){var $t=yt.getAttribute("data-emotion");$t.indexOf(" ")!==-1&&(document.head.appendChild(yt),yt.setAttribute("data-s",""))})}var it=tt.stylisPlugins||defaultStylisPlugins,st={},at,ot=[];at=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(yt){for(var $t=yt.getAttribute("data-emotion").split(" "),mt=1;mt<$t.length;mt++)st[$t[mt]]=!0;ot.push(yt)});var lt,ut=[compat,removeLabel];{var dt,bt=[stringify,rulesheet(function(yt){dt.insert(yt)})],gt=middleware(ut.concat(it,bt)),kt=function($t){return serialize(compile($t),gt)};lt=function($t,mt,wt,St){dt=wt,kt($t?$t+"{"+mt.styles+"}":mt.styles),St&&(pt.inserted[mt.name]=!0)}}var pt={key:rt,sheet:new StyleSheet({key:rt,container:at,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:st,registered:{},insert:lt};return pt.sheet.hydrate(ot),pt},isBrowser=!0;function getRegisteredStyles(et,tt,rt){var nt="";return rt.split(" ").forEach(function(it){et[it]!==void 0?tt.push(et[it]+";"):nt+=it+" "}),nt}var registerStyles=function(tt,rt,nt){var it=tt.key+"-"+rt.name;(nt===!1||isBrowser===!1)&&tt.registered[it]===void 0&&(tt.registered[it]=rt.styles)},insertStyles=function(tt,rt,nt){registerStyles(tt,rt,nt);var it=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var st=rt;do tt.insert(rt===st?"."+it:"",st,tt.sheet,!0),st=st.next;while(st!==void 0)}};function murmur2(et){for(var tt=0,rt,nt=0,it=et.length;it>=4;++nt,it-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(it){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys={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,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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(tt){return tt.charCodeAt(1)===45},isProcessableValue=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName=memoize$1(function(et){return isCustomProperty(et)?et:et.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex,function(nt,it,st){return cursor={name:it,styles:st,next:cursor},it})}return unitlessKeys[tt]!==1&&!isCustomProperty(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(et,tt,rt){if(rt==null)return"";if(rt.__emotion_styles!==void 0)return rt;switch(typeof rt){case"boolean":return"";case"object":{if(rt.anim===1)return cursor={name:rt.name,styles:rt.styles,next:cursor},rt.name;if(rt.styles!==void 0){var nt=rt.next;if(nt!==void 0)for(;nt!==void 0;)cursor={name:nt.name,styles:nt.styles,next:cursor},nt=nt.next;var it=rt.styles+";";return it}return createStringFromObject(et,tt,rt)}case"function":{if(et!==void 0){var st=cursor,at=rt(et);return cursor=st,handleInterpolation(et,tt,at)}break}}if(tt==null)return rt;var ot=tt[rt];return ot!==void 0?ot:rt}function createStringFromObject(et,tt,rt){var nt="";if(Array.isArray(rt))for(var it=0;it96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tt,rt,nt){var it;if(rt){var st=rt.shouldForwardProp;it=tt.__emotion_forwardProp&&st?function(at){return tt.__emotion_forwardProp(at)&&st(at)}:st}return typeof it!="function"&&nt&&(it=tt.__emotion_forwardProp),it},Insertion=function(tt){var rt=tt.cache,nt=tt.serialized,it=tt.isStringTag;return registerStyles(rt,nt,it),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(rt,nt,it)}),null},createStyled$1=function et(tt,rt){var nt=tt.__emotion_real===tt,it=nt&&tt.__emotion_base||tt,st,at;rt!==void 0&&(st=rt.label,at=rt.target);var ot=composeShouldForwardProps(tt,rt,nt),lt=ot||getDefaultShouldForwardProp(it),ut=!lt("as");return function(){var dt=arguments,bt=nt&&tt.__emotion_styles!==void 0?tt.__emotion_styles.slice(0):[];if(st!==void 0&&bt.push("label:"+st+";"),dt[0]==null||dt[0].raw===void 0)bt.push.apply(bt,dt);else{bt.push(dt[0][0]);for(var gt=dt.length,kt=1;kt{Array.isArray(et.__emotion_styles)&&(et.__emotion_styles=tt(et.__emotion_styles))},_excluded$d=["values","unit","step"],sortBreakpointsValues=et=>{const tt=Object.keys(et).map(rt=>({key:rt,val:et[rt]}))||[];return tt.sort((rt,nt)=>rt.val-nt.val),tt.reduce((rt,nt)=>_extends({},rt,{[nt.key]:nt.val}),{})};function createBreakpoints(et){const{values:tt={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:rt="px",step:nt=5}=et,it=_objectWithoutPropertiesLoose(et,_excluded$d),st=sortBreakpointsValues(tt),at=Object.keys(st);function ot(gt){return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt})`}function lt(gt){return`@media (max-width:${(typeof tt[gt]=="number"?tt[gt]:gt)-nt/100}${rt})`}function ut(gt,kt){const pt=at.indexOf(kt);return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt}) and (max-width:${(pt!==-1&&typeof tt[at[pt]]=="number"?tt[at[pt]]:kt)-nt/100}${rt})`}function dt(gt){return at.indexOf(gt)+1`@media (min-width:${values$1[et]}px)`};function handleBreakpoints(et,tt,rt){const nt=et.theme||{};if(Array.isArray(tt)){const st=nt.breakpoints||defaultBreakpoints;return tt.reduce((at,ot,lt)=>(at[st.up(st.keys[lt])]=rt(tt[lt]),at),{})}if(typeof tt=="object"){const st=nt.breakpoints||defaultBreakpoints;return Object.keys(tt).reduce((at,ot)=>{if(Object.keys(st.values||values$1).indexOf(ot)!==-1){const lt=st.up(ot);at[lt]=rt(tt[ot],ot)}else{const lt=ot;at[lt]=tt[lt]}return at},{})}return rt(tt)}function createEmptyBreakpointObject(et={}){var tt;return((tt=et.keys)==null?void 0:tt.reduce((nt,it)=>{const st=et.up(it);return nt[st]={},nt},{}))||{}}function removeUnusedBreakpoints(et,tt){return et.reduce((rt,nt)=>{const it=rt[nt];return(!it||Object.keys(it).length===0)&&delete rt[nt],rt},tt)}function mergeBreakpointsInOrder(et,...tt){const rt=createEmptyBreakpointObject(et),nt=[rt,...tt].reduce((it,st)=>deepmerge(it,st),{});return removeUnusedBreakpoints(Object.keys(rt),nt)}function computeBreakpointsBase(et,tt){if(typeof et!="object")return{};const rt={},nt=Object.keys(tt);return Array.isArray(et)?nt.forEach((it,st)=>{st{et[it]!=null&&(rt[it]=!0)}),rt}function resolveBreakpointValues({values:et,breakpoints:tt,base:rt}){const nt=rt||computeBreakpointsBase(et,tt),it=Object.keys(nt);if(it.length===0)return et;let st;return it.reduce((at,ot,lt)=>(Array.isArray(et)?(at[ot]=et[lt]!=null?et[lt]:et[st],st=lt):typeof et=="object"?(at[ot]=et[ot]!=null?et[ot]:et[st],st=ot):at[ot]=et,at),{})}function getPath(et,tt,rt=!0){if(!tt||typeof tt!="string")return null;if(et&&et.vars&&rt){const nt=`vars.${tt}`.split(".").reduce((it,st)=>it&&it[st]?it[st]:null,et);if(nt!=null)return nt}return tt.split(".").reduce((nt,it)=>nt&&nt[it]!=null?nt[it]:null,et)}function getStyleValue(et,tt,rt,nt=rt){let it;return typeof et=="function"?it=et(rt):Array.isArray(et)?it=et[rt]||nt:it=getPath(et,rt)||nt,tt&&(it=tt(it,nt,et)),it}function style$2(et){const{prop:tt,cssProperty:rt=et.prop,themeKey:nt,transform:it}=et,st=at=>{if(at[tt]==null)return null;const ot=at[tt],lt=at.theme,ut=getPath(lt,nt)||{};return handleBreakpoints(at,ot,bt=>{let gt=getStyleValue(ut,it,bt);return bt===gt&&typeof bt=="string"&&(gt=getStyleValue(ut,it,`${tt}${bt==="default"?"":capitalize(bt)}`,bt)),rt===!1?gt:{[rt]:gt}})};return st.propTypes={},st.filterProps=[tt],st}function memoize(et){const tt={};return rt=>(tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(et=>{if(et.length>2)if(aliases[et])et=aliases[et];else return[et];const[tt,rt]=et.split(""),nt=properties[tt],it=directions[rt]||"";return Array.isArray(it)?it.map(st=>nt+st):[nt+it]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(et,tt,rt,nt){var it;const st=(it=getPath(et,tt,!1))!=null?it:rt;return typeof st=="number"?at=>typeof at=="string"?at:st*at:Array.isArray(st)?at=>typeof at=="string"?at:st[at]:typeof st=="function"?st:()=>{}}function createUnarySpacing(et){return createUnaryUnit(et,"spacing",8)}function getValue(et,tt){if(typeof tt=="string"||tt==null)return tt;const rt=Math.abs(tt),nt=et(rt);return tt>=0?nt:typeof nt=="number"?-nt:`-${nt}`}function getStyleFromPropValue(et,tt){return rt=>et.reduce((nt,it)=>(nt[it]=getValue(tt,rt),nt),{})}function resolveCssProperty(et,tt,rt,nt){if(tt.indexOf(rt)===-1)return null;const it=getCssProperties(rt),st=getStyleFromPropValue(it,nt),at=et[rt];return handleBreakpoints(et,at,st)}function style$1(et,tt){const rt=createUnarySpacing(et.theme);return Object.keys(et).map(nt=>resolveCssProperty(et,tt,nt,rt)).reduce(merge,{})}function margin$1(et){return style$1(et,marginKeys)}margin$1.propTypes={};margin$1.filterProps=marginKeys;function padding$1(et){return style$1(et,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(et=8){if(et.mui)return et;const tt=createUnarySpacing({spacing:et}),rt=(...nt)=>(nt.length===0?[1]:nt).map(st=>{const at=tt(st);return typeof at=="number"?`${at}px`:at}).join(" ");return rt.mui=!0,rt}function compose(...et){const tt=et.reduce((nt,it)=>(it.filterProps.forEach(st=>{nt[st]=it}),nt),{}),rt=nt=>Object.keys(nt).reduce((it,st)=>tt[st]?merge(it,tt[st](nt)):it,{});return rt.propTypes={},rt.filterProps=et.reduce((nt,it)=>nt.concat(it.filterProps),[]),rt}function borderTransform(et){return typeof et!="number"?et:`${et}px solid`}function createBorderStyle(et,tt){return style$2({prop:et,themeKey:"borders",transform:tt})}const border$1=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=et=>{if(et.borderRadius!==void 0&&et.borderRadius!==null){const tt=createUnaryUnit(et.theme,"shape.borderRadius",4),rt=nt=>({borderRadius:getValue(tt,nt)});return handleBreakpoints(et,et.borderRadius,rt)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border$1,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=et=>{if(et.gap!==void 0&&et.gap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({gap:getValue(tt,nt)});return handleBreakpoints(et,et.gap,rt)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=et=>{if(et.columnGap!==void 0&&et.columnGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({columnGap:getValue(tt,nt)});return handleBreakpoints(et,et.columnGap,rt)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=et=>{if(et.rowGap!==void 0&&et.rowGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({rowGap:getValue(tt,nt)});return handleBreakpoints(et,et.rowGap,rt)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(et,tt){return tt==="grey"?tt:et}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(et){return et<=1&&et!==0?`${et*100}%`:et}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=et=>{if(et.maxWidth!==void 0&&et.maxWidth!==null){const tt=rt=>{var nt,it;const st=((nt=et.theme)==null||(nt=nt.breakpoints)==null||(nt=nt.values)==null?void 0:nt[rt])||values$1[rt];return st?((it=et.theme)==null||(it=it.breakpoints)==null?void 0:it.unit)!=="px"?{maxWidth:`${st}${et.theme.breakpoints.unit}`}:{maxWidth:st}:{maxWidth:sizingTransform(rt)}};return handleBreakpoints(et,et.maxWidth,tt)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin$1},mt:{style:margin$1},mr:{style:margin$1},mb:{style:margin$1},ml:{style:margin$1},mx:{style:margin$1},my:{style:margin$1},margin:{style:margin$1},marginTop:{style:margin$1},marginRight:{style:margin$1},marginBottom:{style:margin$1},marginLeft:{style:margin$1},marginX:{style:margin$1},marginY:{style:margin$1},marginInline:{style:margin$1},marginInlineStart:{style:margin$1},marginInlineEnd:{style:margin$1},marginBlock:{style:margin$1},marginBlockStart:{style:margin$1},marginBlockEnd:{style:margin$1},displayPrint:{cssProperty:!1,transform:et=>({"@media print":{display:et}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...et){const tt=et.reduce((nt,it)=>nt.concat(Object.keys(it)),[]),rt=new Set(tt);return et.every(nt=>rt.size===Object.keys(nt).length)}function callIfFn(et,tt){return typeof et=="function"?et(tt):et}function unstable_createStyleFunctionSx(){function et(rt,nt,it,st){const at={[rt]:nt,theme:it},ot=st[rt];if(!ot)return{[rt]:nt};const{cssProperty:lt=rt,themeKey:ut,transform:dt,style:bt}=ot;if(nt==null)return null;if(ut==="typography"&&nt==="inherit")return{[rt]:nt};const gt=getPath(it,ut)||{};return bt?bt(at):handleBreakpoints(at,nt,pt=>{let yt=getStyleValue(gt,dt,pt);return pt===yt&&typeof pt=="string"&&(yt=getStyleValue(gt,dt,`${rt}${pt==="default"?"":capitalize(pt)}`,pt)),lt===!1?yt:{[lt]:yt}})}function tt(rt){var nt;const{sx:it,theme:st={}}=rt||{};if(!it)return null;const at=(nt=st.unstable_sxConfig)!=null?nt:defaultSxConfig$1;function ot(lt){let ut=lt;if(typeof lt=="function")ut=lt(st);else if(typeof lt!="object")return lt;if(!ut)return null;const dt=createEmptyBreakpointObject(st.breakpoints),bt=Object.keys(dt);let gt=dt;return Object.keys(ut).forEach(kt=>{const pt=callIfFn(ut[kt],st);if(pt!=null)if(typeof pt=="object")if(at[kt])gt=merge(gt,et(kt,pt,st,at));else{const yt=handleBreakpoints({theme:st},pt,$t=>({[kt]:$t}));objectsHaveSameKeys(yt,pt)?gt[kt]=tt({sx:pt,theme:st}):gt=merge(gt,yt)}else gt=merge(gt,et(kt,pt,st,at))}),removeUnusedBreakpoints(bt,gt)}return Array.isArray(it)?it.map(ot):ot(it)}return tt}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx,_excluded$c=["breakpoints","palette","spacing","shape"];function createTheme$1(et={},...tt){const{breakpoints:rt={},palette:nt={},spacing:it,shape:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$c),ot=createBreakpoints(rt),lt=createSpacing(it);let ut=deepmerge({breakpoints:ot,direction:"ltr",components:{},palette:_extends({mode:"light"},nt),spacing:lt,shape:_extends({},shape$1,st)},at);return ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}function isObjectEmpty(et){return Object.keys(et).length===0}function useTheme$3(et=null){const tt=reactExports.useContext(ThemeContext$2);return!tt||isObjectEmpty(tt)?et:tt}const systemDefaultTheme$1=createTheme$1();function useTheme$2(et=systemDefaultTheme$1){return useTheme$3(et)}const _excluded$b=["variant"];function isEmpty$1(et){return et.length===0}function propsToClassKey(et){const{variant:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$b);let nt=tt||"";return Object.keys(rt).sort().forEach(it=>{it==="color"?nt+=isEmpty$1(nt)?et[it]:capitalize(et[it]):nt+=`${isEmpty$1(nt)?it:capitalize(it)}${capitalize(et[it].toString())}`}),nt}const _excluded$a=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty(et){return Object.keys(et).length===0}function isStringTag(et){return typeof et=="string"&&et.charCodeAt(0)>96}const getStyleOverrides=(et,tt)=>tt.components&&tt.components[et]&&tt.components[et].styleOverrides?tt.components[et].styleOverrides:null,transformVariants=et=>{const tt={};return et&&et.forEach(rt=>{const nt=propsToClassKey(rt.props);tt[nt]=rt.style}),tt},getVariantStyles=(et,tt)=>{let rt=[];return tt&&tt.components&&tt.components[et]&&tt.components[et].variants&&(rt=tt.components[et].variants),transformVariants(rt)},variantsResolver=(et,tt,rt)=>{const{ownerState:nt={}}=et,it=[];return rt&&rt.forEach(st=>{let at=!0;Object.keys(st.props).forEach(ot=>{nt[ot]!==st.props[ot]&&et[ot]!==st.props[ot]&&(at=!1)}),at&&it.push(tt[propsToClassKey(st.props)])}),it},themeVariantsResolver=(et,tt,rt,nt)=>{var it;const st=rt==null||(it=rt.components)==null||(it=it[nt])==null?void 0:it.variants;return variantsResolver(et,tt,st)};function shouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty(tt)?et:tt[rt]||tt}function defaultOverridesResolver(et){return et?(tt,rt)=>rt[et]:null}const muiStyledFunctionResolver=({styledArg:et,props:tt,defaultTheme:rt,themeId:nt})=>{const it=et(_extends({},tt,{theme:resolveTheme(_extends({},tt,{defaultTheme:rt,themeId:nt}))}));let st;if(it&&it.variants&&(st=it.variants,delete it.variants),st){const at=variantsResolver(tt,transformVariants(st),st);return[it,...at]}return it};function createStyled(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme,rootShouldForwardProp:nt=shouldForwardProp,slotShouldForwardProp:it=shouldForwardProp}=et,st=at=>styleFunctionSx$1(_extends({},at,{theme:resolveTheme(_extends({},at,{defaultTheme:rt,themeId:tt}))}));return st.__mui_systemSx=!0,(at,ot={})=>{internal_processStyles(at,Bt=>Bt.filter(Ft=>!(Ft!=null&&Ft.__mui_systemSx)));const{name:lt,slot:ut,skipVariantsResolver:dt,skipSx:bt,overridesResolver:gt=defaultOverridesResolver(lowercaseFirstLetter(ut))}=ot,kt=_objectWithoutPropertiesLoose(ot,_excluded$a),pt=dt!==void 0?dt:ut&&ut!=="Root"&&ut!=="root"||!1,yt=bt||!1;let $t,mt=shouldForwardProp;ut==="Root"||ut==="root"?mt=nt:ut?mt=it:isStringTag(at)&&(mt=void 0);const wt=styled$2(at,_extends({shouldForwardProp:mt,label:$t},kt)),St=(Bt,...Ft)=>{const Dt=Ft?Ft.map(lr=>{if(typeof lr=="function"&&lr.__emotion_real!==lr)return qt=>muiStyledFunctionResolver({styledArg:lr,props:qt,defaultTheme:rt,themeId:tt});if(isPlainObject$1(lr)){let qt=lr,Ot;return lr&&lr.variants&&(Ot=lr.variants,delete qt.variants,qt=Mt=>{let ht=lr;return variantsResolver(Mt,transformVariants(Ot),Ot).forEach(Tt=>{ht=deepmerge(ht,Tt)}),ht}),qt}return lr}):[];let zt=Bt;if(isPlainObject$1(Bt)){let lr;Bt&&Bt.variants&&(lr=Bt.variants,delete zt.variants,zt=qt=>{let Ot=Bt;return variantsResolver(qt,transformVariants(lr),lr).forEach(ht=>{Ot=deepmerge(Ot,ht)}),Ot})}else typeof Bt=="function"&&Bt.__emotion_real!==Bt&&(zt=lr=>muiStyledFunctionResolver({styledArg:Bt,props:lr,defaultTheme:rt,themeId:tt}));lt&>&&Dt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt})),Ot=getStyleOverrides(lt,qt);if(Ot){const Mt={};return Object.entries(Ot).forEach(([ht,Et])=>{Mt[ht]=typeof Et=="function"?Et(_extends({},lr,{theme:qt})):Et}),gt(lr,Mt)}return null}),lt&&!pt&&Dt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt}));return themeVariantsResolver(lr,getVariantStyles(lt,qt),qt,lt)}),yt||Dt.push(st);const Ht=Dt.length-Ft.length;if(Array.isArray(Bt)&&Ht>0){const lr=new Array(Ht).fill("");zt=[...Bt,...lr],zt.raw=[...Bt.raw,...lr]}const Wt=wt(zt,...Dt);return at.muiName&&(Wt.muiName=at.muiName),Wt};return wt.withConfig&&(St.withConfig=wt.withConfig),St}}function getThemeProps(et){const{theme:tt,name:rt,props:nt}=et;return!tt||!tt.components||!tt.components[rt]||!tt.components[rt].defaultProps?nt:resolveProps(tt.components[rt].defaultProps,nt)}function useThemeProps$1({props:et,name:tt,defaultTheme:rt,themeId:nt}){let it=useTheme$2(rt);return nt&&(it=it[nt]||it),getThemeProps({theme:it,name:tt,props:et})}function clamp(et,tt=0,rt=1){return Math.min(Math.max(tt,et),rt)}function hexToRgb(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,it)=>it<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor(hexToRgb(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage(9,et));let nt=et.substring(tt+1,et.length-1),it;if(rt==="color"){if(nt=nt.split(" "),it=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(it)===-1)throw new Error(formatMuiErrorMessage(10,it))}else nt=nt.split(",");return nt=nt.map(st=>parseFloat(st)),{type:rt,values:nt,colorSpace:it}}function recomposeColor(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((it,st)=>st<3?parseInt(it,10):it):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function hslToRgb(et){et=decomposeColor(et);const{values:tt}=et,rt=tt[0],nt=tt[1]/100,it=tt[2]/100,st=nt*Math.min(it,1-it),at=(ut,dt=(ut+rt/30)%12)=>it-st*Math.max(Math.min(dt-3,9-dt,1),-1);let ot="rgb";const lt=[Math.round(at(0)*255),Math.round(at(8)*255),Math.round(at(4)*255)];return et.type==="hsla"&&(ot+="a",lt.push(tt[3])),recomposeColor({type:ot,values:lt})}function getLuminance(et){et=decomposeColor(et);let tt=et.type==="hsl"||et.type==="hsla"?decomposeColor(hslToRgb(et)).values:et.values;return tt=tt.map(rt=>(et.type!=="color"&&(rt/=255),rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4)),Number((.2126*tt[0]+.7152*tt[1]+.0722*tt[2]).toFixed(3))}function getContrastRatio(et,tt){const rt=getLuminance(et),nt=getLuminance(tt);return(Math.max(rt,nt)+.05)/(Math.min(rt,nt)+.05)}function alpha(et,tt){return et=decomposeColor(et),tt=clamp(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor(et)}function darken(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]*=1-tt;else if(et.type.indexOf("rgb")!==-1||et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]*=1-tt;return recomposeColor(et)}function lighten(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor(et)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(et,tt){return typeof tt=="function"?tt(et):_extends({},et,tt)}function ThemeProvider$2(et){const{children:tt,theme:rt}=et,nt=useTheme$1(),it=reactExports.useMemo(()=>{const st=nt===null?rt:mergeOuterLocalTheme(nt,rt);return st!=null&&(st[nested]=nt!==null),st},[rt,nt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:it,children:tt})}const EMPTY_THEME={};function useThemeScoping(et,tt,rt,nt=!1){return reactExports.useMemo(()=>{const it=et&&tt[et]||tt;if(typeof rt=="function"){const st=rt(it),at=et?_extends({},tt,{[et]:st}):st;return nt?()=>at:at}return et?_extends({},tt,{[et]:rt}):_extends({},tt,rt)},[et,tt,rt,nt])}function ThemeProvider$1(et){const{children:tt,theme:rt,themeId:nt}=et,it=useTheme$3(EMPTY_THEME),st=useTheme$1()||EMPTY_THEME,at=useThemeScoping(nt,it,rt),ot=useThemeScoping(nt,st,rt,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:at,children:tt})})}function createMixins(et,tt){return _extends({toolbar:{minHeight:56,[et.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[et.up("sm")]:{minHeight:64}}},tt)}const _excluded$9=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(et,tt,rt,nt){const it=nt.light||nt,st=nt.dark||nt*1.5;et[tt]||(et.hasOwnProperty(rt)?et[tt]=et[rt]:tt==="light"?et.light=lighten(et.main,it):tt==="dark"&&(et.dark=darken(et.main,st)))}function getDefaultPrimary(et="light"){return et==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(et="light"){return et==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(et="light"){return et==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(et="light"){return et==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(et="light"){return et==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(et="light"){return et==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(et){const{mode:tt="light",contrastThreshold:rt=3,tonalOffset:nt=.2}=et,it=_objectWithoutPropertiesLoose(et,_excluded$9),st=et.primary||getDefaultPrimary(tt),at=et.secondary||getDefaultSecondary(tt),ot=et.error||getDefaultError(tt),lt=et.info||getDefaultInfo(tt),ut=et.success||getDefaultSuccess(tt),dt=et.warning||getDefaultWarning(tt);function bt(yt){return getContrastRatio(yt,dark.text.primary)>=rt?dark.text.primary:light.text.primary}const gt=({color:yt,name:$t,mainShade:mt=500,lightShade:wt=300,darkShade:St=700})=>{if(yt=_extends({},yt),!yt.main&&yt[mt]&&(yt.main=yt[mt]),!yt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,$t?` (${$t})`:"",mt));if(typeof yt.main!="string")throw new Error(formatMuiErrorMessage(12,$t?` (${$t})`:"",JSON.stringify(yt.main)));return addLightOrDark(yt,"light",wt,nt),addLightOrDark(yt,"dark",St,nt),yt.contrastText||(yt.contrastText=bt(yt.main)),yt},kt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:tt,primary:gt({color:st,name:"primary"}),secondary:gt({color:at,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:gt({color:ot,name:"error"}),warning:gt({color:dt,name:"warning"}),info:gt({color:lt,name:"info"}),success:gt({color:ut,name:"success"}),grey:grey$1,contrastThreshold:rt,getContrastText:bt,augmentColor:gt,tonalOffset:nt},kt[tt]),it)}const _excluded$8=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(et){return Math.round(et*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(et,tt){const rt=typeof tt=="function"?tt(et):tt,{fontFamily:nt=defaultFontFamily,fontSize:it=14,fontWeightLight:st=300,fontWeightRegular:at=400,fontWeightMedium:ot=500,fontWeightBold:lt=700,htmlFontSize:ut=16,allVariants:dt,pxToRem:bt}=rt,gt=_objectWithoutPropertiesLoose(rt,_excluded$8),kt=it/14,pt=bt||(mt=>`${mt/ut*kt}rem`),yt=(mt,wt,St,Bt,Ft)=>_extends({fontFamily:nt,fontWeight:mt,fontSize:pt(wt),lineHeight:St},nt===defaultFontFamily?{letterSpacing:`${round(Bt/wt)}em`}:{},Ft,dt),$t={h1:yt(st,96,1.167,-1.5),h2:yt(st,60,1.2,-.5),h3:yt(at,48,1.167,0),h4:yt(at,34,1.235,.25),h5:yt(at,24,1.334,0),h6:yt(ot,20,1.6,.15),subtitle1:yt(at,16,1.75,.15),subtitle2:yt(ot,14,1.57,.1),body1:yt(at,16,1.5,.15),body2:yt(at,14,1.43,.15),button:yt(ot,14,1.75,.4,caseAllCaps),caption:yt(at,12,1.66,.4),overline:yt(at,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:ut,pxToRem:pt,fontFamily:nt,fontSize:it,fontWeightLight:st,fontWeightRegular:at,fontWeightMedium:ot,fontWeightBold:lt},$t),gt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...et){return[`${et[0]}px ${et[1]}px ${et[2]}px ${et[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${et[4]}px ${et[5]}px ${et[6]}px ${et[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${et[8]}px ${et[9]}px ${et[10]}px ${et[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$7=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(et){return`${Math.round(et)}ms`}function getAutoHeightDuration(et){if(!et)return 0;const tt=et/36;return Math.round((4+15*tt**.25+tt/5)*10)}function createTransitions(et){const tt=_extends({},easing,et.easing),rt=_extends({},duration,et.duration);return _extends({getAutoHeightDuration,create:(it=["all"],st={})=>{const{duration:at=rt.standard,easing:ot=tt.easeInOut,delay:lt=0}=st;return _objectWithoutPropertiesLoose(st,_excluded$7),(Array.isArray(it)?it:[it]).map(ut=>`${ut} ${typeof at=="string"?at:formatMs(at)} ${ot} ${typeof lt=="string"?lt:formatMs(lt)}`).join(",")}},et,{easing:tt,duration:rt})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(et={},...tt){const{mixins:rt={},palette:nt={},transitions:it={},typography:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$6);if(et.vars)throw new Error(formatMuiErrorMessage(18));const ot=createPalette(nt),lt=createTheme$1(et);let ut=deepmerge(lt,{mixins:createMixins(lt.breakpoints,rt),palette:ot,shadows:shadows$1.slice(),typography:createTypography(ot,st),transitions:createTransitions(it),zIndex:_extends({},zIndex$1)});return ut=deepmerge(ut,at),ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useTheme(){const et=useTheme$2(defaultTheme$1);return et[THEME_ID]||et}function useThemeProps({props:et,name:tt}){return useThemeProps$1({props:et,name:tt,defaultTheme:defaultTheme$1,themeId:THEME_ID})}const rootShouldForwardProp=et=>shouldForwardProp(et)&&et!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled,_excluded$5=["theme"];function ThemeProvider(et){let{theme:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$5);const nt=tt[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends({},rt,{themeId:nt?THEME_ID:void 0,theme:nt||tt}))}function r$3(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{if(!ot&<!=null){const yt=setTimeout(lt,ut);return()=>{clearTimeout(yt)}}},[lt,ot,ut]),jsxRuntimeExports.jsx("span",{className:gt,style:kt,children:jsxRuntimeExports.jsx("span",{className:pt})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),touchRippleClasses$1=touchRippleClasses,_excluded$4=["center","classes","className"];let _$2=et=>et,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$2` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),exitKeyframe=keyframes(_t2$1||(_t2$1=_$2` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),pulsateKeyframe=keyframes(_t3$1||(_t3$1=_$2` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),TouchRippleRoot=styled$1("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TouchRippleRipple=styled$1(Ripple,{name:"MuiTouchRipple",slot:"Ripple"})(_t4$1||(_t4$1=_$2` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:et})=>et.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:et})=>et.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiTouchRipple"}),{center:it=!1,classes:st={},className:at}=nt,ot=_objectWithoutPropertiesLoose(nt,_excluded$4),[lt,ut]=reactExports.useState([]),dt=reactExports.useRef(0),bt=reactExports.useRef(null);reactExports.useEffect(()=>{bt.current&&(bt.current(),bt.current=null)},[lt]);const gt=reactExports.useRef(!1),kt=reactExports.useRef(0),pt=reactExports.useRef(null),yt=reactExports.useRef(null);reactExports.useEffect(()=>()=>{kt.current&&clearTimeout(kt.current)},[]);const $t=reactExports.useCallback(Bt=>{const{pulsate:Ft,rippleX:Dt,rippleY:zt,rippleSize:Ht,cb:Wt}=Bt;ut(lr=>[...lr,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx$2(st.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx$2(st.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx$2(st.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx$2(st.child,touchRippleClasses$1.child),childLeaving:clsx$2(st.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx$2(st.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:Ft,rippleX:Dt,rippleY:zt,rippleSize:Ht},dt.current)]),dt.current+=1,bt.current=Wt},[st]),mt=reactExports.useCallback((Bt={},Ft={},Dt=()=>{})=>{const{pulsate:zt=!1,center:Ht=it||Ft.pulsate,fakeElement:Wt=!1}=Ft;if((Bt==null?void 0:Bt.type)==="mousedown"&>.current){gt.current=!1;return}(Bt==null?void 0:Bt.type)==="touchstart"&&(gt.current=!0);const lr=Wt?null:yt.current,qt=lr?lr.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ot,Mt,ht;if(Ht||Bt===void 0||Bt.clientX===0&&Bt.clientY===0||!Bt.clientX&&!Bt.touches)Ot=Math.round(qt.width/2),Mt=Math.round(qt.height/2);else{const{clientX:Et,clientY:Tt}=Bt.touches&&Bt.touches.length>0?Bt.touches[0]:Bt;Ot=Math.round(Et-qt.left),Mt=Math.round(Tt-qt.top)}if(Ht)ht=Math.sqrt((2*qt.width**2+qt.height**2)/3),ht%2===0&&(ht+=1);else{const Et=Math.max(Math.abs((lr?lr.clientWidth:0)-Ot),Ot)*2+2,Tt=Math.max(Math.abs((lr?lr.clientHeight:0)-Mt),Mt)*2+2;ht=Math.sqrt(Et**2+Tt**2)}Bt!=null&&Bt.touches?pt.current===null&&(pt.current=()=>{$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Dt})},kt.current=setTimeout(()=>{pt.current&&(pt.current(),pt.current=null)},DELAY_RIPPLE)):$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Dt})},[it,$t]),wt=reactExports.useCallback(()=>{mt({},{pulsate:!0})},[mt]),St=reactExports.useCallback((Bt,Ft)=>{if(clearTimeout(kt.current),(Bt==null?void 0:Bt.type)==="touchend"&&pt.current){pt.current(),pt.current=null,kt.current=setTimeout(()=>{St(Bt,Ft)});return}pt.current=null,ut(Dt=>Dt.length>0?Dt.slice(1):Dt),bt.current=Ft},[]);return reactExports.useImperativeHandle(rt,()=>({pulsate:wt,start:mt,stop:St}),[wt,mt,St]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends({className:clsx$2(touchRippleClasses$1.root,st.root,at),ref:yt},ot,{children:jsxRuntimeExports.jsx(TransitionGroup$1,{component:null,exit:!0,children:lt})}))}),TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(et){return generateUtilityClass("MuiButtonBase",et)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),buttonBaseClasses$1=buttonBaseClasses,_excluded$3=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$2=et=>{const{disabled:tt,focusVisible:rt,focusVisibleClassName:nt,classes:it}=et,at=composeClasses({root:["root",tt&&"disabled",rt&&"focusVisible"]},getButtonBaseUtilityClass,it);return rt&&nt&&(at.root+=` ${nt}`),at},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiButtonBase"}),{action:it,centerRipple:st=!1,children:at,className:ot,component:lt="button",disabled:ut=!1,disableRipple:dt=!1,disableTouchRipple:bt=!1,focusRipple:gt=!1,LinkComponent:kt="a",onBlur:pt,onClick:yt,onContextMenu:$t,onDragLeave:mt,onFocus:wt,onFocusVisible:St,onKeyDown:Bt,onKeyUp:Ft,onMouseDown:Dt,onMouseLeave:zt,onMouseUp:Ht,onTouchEnd:Wt,onTouchMove:lr,onTouchStart:qt,tabIndex:Ot=0,TouchRippleProps:Mt,touchRippleRef:ht,type:Et}=nt,Tt=_objectWithoutPropertiesLoose(nt,_excluded$3),Rt=reactExports.useRef(null),At=reactExports.useRef(null),Pt=useForkRef(At,ht),{isFocusVisibleRef:It,onFocus:Ct,onBlur:xt,ref:Lt}=useIsFocusVisible(),[tr,pr]=reactExports.useState(!1);ut&&tr&&pr(!1),reactExports.useImperativeHandle(it,()=>({focusVisible:()=>{pr(!0),Rt.current.focus()}}),[]);const[Kt,Qt]=reactExports.useState(!1);reactExports.useEffect(()=>{Qt(!0)},[]);const Zt=Kt&&!dt&&!ut;reactExports.useEffect(()=>{tr&>&&!dt&&Kt&&At.current.pulsate()},[dt,gt,tr,Kt]);function ur(Vt,ir,kr=bt){return useEventCallback($r=>(ir&&ir($r),!kr&&At.current&&At.current[Vt]($r),!0))}const _r=ur("start",Dt),er=ur("stop",$t),Jt=ur("stop",mt),Ar=ur("stop",Ht),Er=ur("stop",Vt=>{tr&&Vt.preventDefault(),zt&&zt(Vt)}),Dr=ur("start",qt),Xr=ur("stop",Wt),Vr=ur("stop",lr),wr=ur("stop",Vt=>{xt(Vt),It.current===!1&&pr(!1),pt&&pt(Vt)},!1),br=useEventCallback(Vt=>{Rt.current||(Rt.current=Vt.currentTarget),Ct(Vt),It.current===!0&&(pr(!0),St&&St(Vt)),wt&&wt(Vt)}),or=()=>{const Vt=Rt.current;return lt&<!=="button"&&!(Vt.tagName==="A"&&Vt.href)},xr=reactExports.useRef(!1),Pr=useEventCallback(Vt=>{gt&&!xr.current&&tr&&At.current&&Vt.key===" "&&(xr.current=!0,At.current.stop(Vt,()=>{At.current.start(Vt)})),Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&Vt.preventDefault(),Bt&&Bt(Vt),Vt.target===Vt.currentTarget&&or()&&Vt.key==="Enter"&&!ut&&(Vt.preventDefault(),yt&&yt(Vt))}),Or=useEventCallback(Vt=>{gt&&Vt.key===" "&&At.current&&tr&&!Vt.defaultPrevented&&(xr.current=!1,At.current.stop(Vt,()=>{At.current.pulsate(Vt)})),Ft&&Ft(Vt),yt&&Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&!Vt.defaultPrevented&&yt(Vt)});let rr=lt;rr==="button"&&(Tt.href||Tt.to)&&(rr=kt);const gr={};rr==="button"?(gr.type=Et===void 0?"button":Et,gr.disabled=ut):(!Tt.href&&!Tt.to&&(gr.role="button"),ut&&(gr["aria-disabled"]=ut));const Ir=useForkRef(rt,Lt,Rt),Yt=_extends({},nt,{centerRipple:st,component:lt,disabled:ut,disableRipple:dt,disableTouchRipple:bt,focusRipple:gt,tabIndex:Ot,focusVisible:tr}),Ut=useUtilityClasses$2(Yt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends({as:rr,className:clsx$2(Ut.root,ot),ownerState:Yt,onBlur:wr,onClick:yt,onContextMenu:er,onFocus:br,onKeyDown:Pr,onKeyUp:Or,onMouseDown:_r,onMouseLeave:Er,onMouseUp:Ar,onDragLeave:Jt,onTouchEnd:Xr,onTouchMove:Vr,onTouchStart:Dr,ref:Ir,tabIndex:ut?-1:Ot,type:Et},gr,Tt,{children:[at,Zt?jsxRuntimeExports.jsx(TouchRipple$1,_extends({ref:Pt,center:st},Mt)):null]}))}),ButtonBase$1=ButtonBase;function getButtonUtilityClass(et){return generateUtilityClass("MuiButton",et)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),buttonClasses$1=buttonClasses,ButtonGroupContext=reactExports.createContext({}),ButtonGroupContext$1=ButtonGroupContext,ButtonGroupButtonContext=reactExports.createContext(void 0),ButtonGroupButtonContext$1=ButtonGroupButtonContext,_excluded$2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$1=et=>{const{color:tt,disableElevation:rt,fullWidth:nt,size:it,variant:st,classes:at}=et,ot={root:["root",st,`${st}${capitalize(tt)}`,`size${capitalize(it)}`,`${st}Size${capitalize(it)}`,tt==="inherit"&&"colorInherit",rt&&"disableElevation",nt&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize(it)}`],endIcon:["endIcon",`iconSize${capitalize(it)}`]},lt=composeClasses(ot,getButtonUtilityClass,at);return _extends({},at,lt)},commonIconStyles=et=>_extends({},et.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},et.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},et.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:et=>rootShouldForwardProp(et)||et==="classes",name:"MuiButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize(rt.color)}`],tt[`size${capitalize(rt.size)}`],tt[`${rt.variant}Size${capitalize(rt.size)}`],rt.color==="inherit"&&tt.colorInherit,rt.disableElevation&&tt.disableElevation,rt.fullWidth&&tt.fullWidth]}})(({theme:et,ownerState:tt})=>{var rt,nt;const it=et.palette.mode==="light"?et.palette.grey[300]:et.palette.grey[800],st=et.palette.mode==="light"?et.palette.grey.A100:et.palette.grey[700];return _extends({},et.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create(["background-color","box-shadow","border-color","color"],{duration:et.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="text"&&tt.color!=="inherit"&&{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="outlined"&&tt.color!=="inherit"&&{border:`1px solid ${(et.vars||et).palette[tt.color].main}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="contained"&&{backgroundColor:et.vars?et.vars.palette.Button.inheritContainedHoverBg:st,boxShadow:(et.vars||et).shadows[4],"@media (hover: none)":{boxShadow:(et.vars||et).shadows[2],backgroundColor:(et.vars||et).palette.grey[300]}},tt.variant==="contained"&&tt.color!=="inherit"&&{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}}),"&:active":_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(et.vars||et).palette.action.disabled},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},tt.variant==="contained"&&{color:(et.vars||et).palette.action.disabled,boxShadow:(et.vars||et).shadows[0],backgroundColor:(et.vars||et).palette.action.disabledBackground})},tt.variant==="text"&&{padding:"6px 8px"},tt.variant==="text"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main},tt.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},tt.variant==="outlined"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main,border:et.vars?`1px solid rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:`1px solid ${alpha(et.palette[tt.color].main,.5)}`},tt.variant==="contained"&&{color:et.vars?et.vars.palette.text.primary:(rt=(nt=et.palette).getContrastText)==null?void 0:rt.call(nt,et.palette.grey[300]),backgroundColor:et.vars?et.vars.palette.Button.inheritContainedBg:it,boxShadow:(et.vars||et).shadows[2]},tt.variant==="contained"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main},tt.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},tt.size==="small"&&tt.variant==="text"&&{padding:"4px 5px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="text"&&{padding:"8px 11px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="outlined"&&{padding:"3px 9px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="outlined"&&{padding:"7px 21px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="contained"&&{padding:"4px 10px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="contained"&&{padding:"8px 22px",fontSize:et.typography.pxToRem(15)},tt.fullWidth&&{width:"100%"})},({ownerState:et})=>et.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.startIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},et.size==="small"&&{marginLeft:-2},commonIconStyles(et))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.endIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},et.size==="small"&&{marginRight:-2},commonIconStyles(et))),Button=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext$1),it=reactExports.useContext(ButtonGroupButtonContext$1),st=resolveProps(nt,tt),at=useThemeProps({props:st,name:"MuiButton"}),{children:ot,color:lt="primary",component:ut="button",className:dt,disabled:bt=!1,disableElevation:gt=!1,disableFocusRipple:kt=!1,endIcon:pt,focusVisibleClassName:yt,fullWidth:$t=!1,size:mt="medium",startIcon:wt,type:St,variant:Bt="text"}=at,Ft=_objectWithoutPropertiesLoose(at,_excluded$2),Dt=_extends({},at,{color:lt,component:ut,disabled:bt,disableElevation:gt,disableFocusRipple:kt,fullWidth:$t,size:mt,type:St,variant:Bt}),zt=useUtilityClasses$1(Dt),Ht=wt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:zt.startIcon,ownerState:Dt,children:wt}),Wt=pt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:zt.endIcon,ownerState:Dt,children:pt}),lr=it||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends({ownerState:Dt,className:clsx$2(nt.className,zt.root,dt,lr),component:ut,disabled:bt,focusRipple:!kt,focusVisibleClassName:clsx$2(zt.focusVisible,yt),ref:rt,type:St},Ft,{classes:zt,children:[Ht,ot,Wt]}))}),Button$1=Button;function getLinearProgressUtilityClass(et){return generateUtilityClass("MuiLinearProgress",et)}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$1=["className","color","value","valueBuffer","variant"];let _$1=et=>et,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_$1` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),indeterminate2Keyframe=keyframes(_t2||(_t2=_$1` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),bufferKeyframe=keyframes(_t3||(_t3=_$1` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),useUtilityClasses=et=>{const{classes:tt,variant:rt,color:nt}=et,it={root:["root",`color${capitalize(nt)}`,rt],dashed:["dashed",`dashedColor${capitalize(nt)}`],bar1:["bar",`barColor${capitalize(nt)}`,(rt==="indeterminate"||rt==="query")&&"bar1Indeterminate",rt==="determinate"&&"bar1Determinate",rt==="buffer"&&"bar1Buffer"],bar2:["bar",rt!=="buffer"&&`barColor${capitalize(nt)}`,rt==="buffer"&&`color${capitalize(nt)}`,(rt==="indeterminate"||rt==="query")&&"bar2Indeterminate",rt==="buffer"&&"bar2Buffer"]};return composeClasses(it,getLinearProgressUtilityClass,tt)},getColorShade=(et,tt)=>tt==="inherit"?"currentColor":et.vars?et.vars.palette.LinearProgress[`${tt}Bg`]:et.palette.mode==="light"?lighten(et.palette[tt].main,.62):darken(et.palette[tt].main,.5),LinearProgressRoot=styled$1("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[`color${capitalize(rt.color)}`],tt[rt.variant]]}})(({ownerState:et,theme:tt})=>_extends({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:getColorShade(tt,et.color)},et.color==="inherit"&&et.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},et.variant==="buffer"&&{backgroundColor:"transparent"},et.variant==="query"&&{transform:"rotate(180deg)"})),LinearProgressDashed=styled$1("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.dashed,tt[`dashedColor${capitalize(rt.color)}`]]}})(({ownerState:et,theme:tt})=>{const rt=getColorShade(tt,et.color);return _extends({position:"absolute",marginTop:0,height:"100%",width:"100%"},et.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${rt} 0%, ${rt} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},css(_t4||(_t4=_$1` + animation: ${0} 3s infinite linear; + `),bufferKeyframe)),LinearProgressBar1=styled$1("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.bar,tt[`barColor${capitalize(rt.color)}`],(rt.variant==="indeterminate"||rt.variant==="query")&&tt.bar1Indeterminate,rt.variant==="determinate"&&tt.bar1Determinate,rt.variant==="buffer"&&tt.bar1Buffer]}})(({ownerState:et,theme:tt})=>_extends({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:et.color==="inherit"?"currentColor":(tt.vars||tt).palette[et.color].main},et.variant==="determinate"&&{transition:`transform .${TRANSITION_DURATION}s linear`},et.variant==="buffer"&&{zIndex:1,transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:et})=>(et.variant==="indeterminate"||et.variant==="query")&&css(_t5||(_t5=_$1` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),indeterminate1Keyframe)),LinearProgressBar2=styled$1("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.bar,tt[`barColor${capitalize(rt.color)}`],(rt.variant==="indeterminate"||rt.variant==="query")&&tt.bar2Indeterminate,rt.variant==="buffer"&&tt.bar2Buffer]}})(({ownerState:et,theme:tt})=>_extends({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},et.variant!=="buffer"&&{backgroundColor:et.color==="inherit"?"currentColor":(tt.vars||tt).palette[et.color].main},et.color==="inherit"&&{opacity:.3},et.variant==="buffer"&&{backgroundColor:getColorShade(tt,et.color),transition:`transform .${TRANSITION_DURATION}s linear`}),({ownerState:et})=>(et.variant==="indeterminate"||et.variant==="query")&&css(_t6||(_t6=_$1` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),indeterminate2Keyframe)),LinearProgress=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiLinearProgress"}),{className:it,color:st="primary",value:at,valueBuffer:ot,variant:lt="indeterminate"}=nt,ut=_objectWithoutPropertiesLoose(nt,_excluded$1),dt=_extends({},nt,{color:st,variant:lt}),bt=useUtilityClasses(dt),gt=useTheme(),kt={},pt={bar1:{},bar2:{}};if((lt==="determinate"||lt==="buffer")&&at!==void 0){kt["aria-valuenow"]=Math.round(at),kt["aria-valuemin"]=0,kt["aria-valuemax"]=100;let yt=at-100;gt.direction==="rtl"&&(yt=-yt),pt.bar1.transform=`translateX(${yt}%)`}if(lt==="buffer"&&ot!==void 0){let yt=(ot||0)-100;gt.direction==="rtl"&&(yt=-yt),pt.bar2.transform=`translateX(${yt}%)`}return jsxRuntimeExports.jsxs(LinearProgressRoot,_extends({className:clsx$2(bt.root,it),ownerState:dt,role:"progressbar"},kt,{ref:rt},ut,{children:[lt==="buffer"?jsxRuntimeExports.jsx(LinearProgressDashed,{className:bt.dashed,ownerState:dt}):null,jsxRuntimeExports.jsx(LinearProgressBar1,{className:bt.bar1,ownerState:dt,style:pt.bar1}),lt==="determinate"?null:jsxRuntimeExports.jsx(LinearProgressBar2,{className:bt.bar2,ownerState:dt,style:pt.bar2})]}))}),LinearProgress$1=LinearProgress,formatNumberWithCommas=(et,tt="en-US")=>{try{return new Intl.NumberFormat(tt).format(et)}catch(rt){return console.error("Error formatting number:",rt),et.toString()}};let signingPromise=null;async function getSignedMessageFromRelay(){let et="";const tt=localStorage.getItem("signature");if(tt){const rt=JSON.parse(tt);return{signature:rt.signature,message:rt.message}}try{et=btoa(`${window.crypto.randomUUID()}${new Date().getTime()}`)}catch{return{message:"",signature:""}}return isSphinx()?(signingPromise||(isE2E?signingPromise=sphinxBridge.signMessage(et).then(rt=>{signingPromise=null;const nt={message:et,signature:rt.response.sig};return storeSignatureInLocalStorage({...nt}),{...nt}}).catch(rt=>(signingPromise=null,console.error(rt),{message:"",signature:""})):signingPromise=distExports$1.signMessage(et).then(rt=>{if(signingPromise=null,!rt)return{message:"",signature:""};const nt={message:et,signature:(rt==null?void 0:rt.signature)||""};return storeSignatureInLocalStorage({...nt}),{...nt}}).catch(rt=>(signingPromise=null,console.error(rt),{message:"",signature:""}))),signingPromise):Promise.resolve({message:"",signature:""})}function storeSignatureInLocalStorage(et){localStorage.setItem("signature",JSON.stringify({...et}))}const initialMessageData=[{label:"New Content",key:"numDaily",dataKey:"num_daily",value:null},{label:"Audio Clips",key:"numAudio",dataKey:"num_audio",value:null},{label:"Posts",key:"numTwitterSpace",dataKey:"num_twitter_space",value:null}],formatStatsResponse=et=>Object.keys(et).filter(it=>!it.startsWith("num_")).map(it=>({key:it,value:et[it]})).sort((it,st)=>st.value-it.value).slice(0,5).reduce((it,{key:st,value:at})=>(it[st]=at,it),{}),formatSplashMessage=et=>initialMessageData.map(({dataKey:tt,...rt})=>({...rt,value:formatNumberWithCommas(et[tt]??0)})),_excluded=["localeText"],MuiPickersAdapterContext=reactExports.createContext(null),LocalizationProvider=function(tt){var rt;const{localeText:nt}=tt,it=_objectWithoutPropertiesLoose(tt,_excluded),{utils:st,localeText:at}=(rt=reactExports.useContext(MuiPickersAdapterContext))!=null?rt:{utils:void 0,localeText:void 0},ot=useThemeProps({props:it,name:"MuiLocalizationProvider"}),{children:lt,dateAdapter:ut,dateFormats:dt,dateLibInstance:bt,adapterLocale:gt,localeText:kt}=ot,pt=reactExports.useMemo(()=>_extends({},kt,at,nt),[kt,at,nt]),yt=reactExports.useMemo(()=>{if(!ut)return st||null;const wt=new ut({locale:gt,formats:dt,instance:bt});if(!wt.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return wt},[ut,gt,dt,bt,st]),$t=reactExports.useMemo(()=>yt?{minDate:yt.date("1900-01-01T00:00:00.000"),maxDate:yt.date("2099-12-31T00:00:00.000")}:null,[yt]),mt=reactExports.useMemo(()=>({utils:yt,defaultDates:$t,localeText:pt}),[$t,yt,pt]);return jsxRuntimeExports.jsx(MuiPickersAdapterContext.Provider,{value:mt,children:lt})},formatTokenMap={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},defaultFormats={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},MISSING_TIMEZONE_PLUGIN=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(` +`);class AdapterMoment{constructor({locale:tt,formats:rt,instance:nt}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=formatTokenMap,this.setLocaleToValue=it=>{const st=this.getCurrentLocaleCode();return st===it.locale()?it:it.locale(st)},this.syncMomentLocale=it=>{var st;const at=hooks.locale(),ot=(st=this.locale)!=null?st:"en-us";if(at!==ot){hooks.locale(ot);const lt=it();return hooks.locale(at),lt}return it()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=it=>{const st=this.moment(it).local();return this.locale===void 0?st:st.locale(this.locale)},this.createUTCDate=it=>{const st=this.moment.utc(it);return this.locale===void 0?st:st.locale(this.locale)},this.createTZDate=(it,st)=>{if(!this.hasTimezonePlugin())throw new Error(MISSING_TIMEZONE_PLUGIN);const at=st==="default"?this.moment(it):this.moment.tz(it,st);return this.locale===void 0?at:at.locale(this.locale)},this.date=it=>{if(it===null)return null;const st=this.moment(it);return st.locale(this.getCurrentLocaleCode()),st},this.dateWithTimezone=(it,st)=>it===null?null:st==="UTC"?this.createUTCDate(it):st==="system"||st==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(it):this.createTZDate(it,st),this.getTimezone=it=>{var st,at,ot;const lt=(st=it._z)==null?void 0:st.name,ut=it.isUTC()?"UTC":"system";return(at=lt??((ot=this.moment.defaultZone)==null?void 0:ot.name))!=null?at:ut},this.setTimezone=(it,st)=>{var at,ot;if(this.getTimezone(it)===st)return it;if(st==="UTC")return it.clone().utc();if(st==="system")return it.clone().local();if(!this.hasTimezonePlugin()){if(st!=="default")throw new Error(MISSING_TIMEZONE_PLUGIN);return it}const lt=st==="default"?(at=(ot=this.moment.defaultZone)==null?void 0:ot.name)!=null?at:"system":st;if(lt==="system")return it.clone().local();const ut=it.clone();return ut.tz(lt),ut},this.toJsDate=it=>it.toDate(),this.parseISO=it=>this.moment(it,!0),this.toISO=it=>it.toISOString(),this.parse=(it,st)=>it===""?null:this.locale?this.moment(it,st,this.locale,!0):this.moment(it,st,!0),this.getCurrentLocaleCode=()=>this.locale||hooks.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(hooks.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=it=>{const st=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return it.match(st).map(at=>{const ot=at[0];return ot==="L"||ot===";"?hooks.localeData(this.getCurrentLocaleCode()).longDateFormat(at):at}).join("")},this.getFormatHelperText=it=>this.expandFormat(it).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=it=>it===null,this.isValid=it=>this.moment(it).isValid(),this.format=(it,st)=>this.formatByString(it,this.formats[st]),this.formatByString=(it,st)=>{const at=it.clone();return at.locale(this.getCurrentLocaleCode()),at.format(st)},this.formatNumber=it=>it,this.getDiff=(it,st,at)=>it.diff(st,at),this.isEqual=(it,st)=>it===null&&st===null?!0:this.moment(it).isSame(st),this.isSameYear=(it,st)=>it.isSame(st,"year"),this.isSameMonth=(it,st)=>it.isSame(st,"month"),this.isSameDay=(it,st)=>it.isSame(st,"day"),this.isSameHour=(it,st)=>it.isSame(st,"hour"),this.isAfter=(it,st)=>it.isAfter(st),this.isAfterYear=(it,st)=>it.isAfter(st,"year"),this.isAfterDay=(it,st)=>it.isAfter(st,"day"),this.isBefore=(it,st)=>it.isBefore(st),this.isBeforeYear=(it,st)=>it.isBefore(st,"year"),this.isBeforeDay=(it,st)=>it.isBefore(st,"day"),this.isWithinRange=(it,[st,at])=>it.isBetween(st,at,null,"[]"),this.startOfYear=it=>it.clone().startOf("year"),this.startOfMonth=it=>it.clone().startOf("month"),this.startOfWeek=it=>it.clone().startOf("week"),this.startOfDay=it=>it.clone().startOf("day"),this.endOfYear=it=>it.clone().endOf("year"),this.endOfMonth=it=>it.clone().endOf("month"),this.endOfWeek=it=>it.clone().endOf("week"),this.endOfDay=it=>it.clone().endOf("day"),this.addYears=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"years"):it.clone().add(st,"years"),this.addMonths=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"months"):it.clone().add(st,"months"),this.addWeeks=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"weeks"):it.clone().add(st,"weeks"),this.addDays=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"days"):it.clone().add(st,"days"),this.addHours=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"hours"):it.clone().add(st,"hours"),this.addMinutes=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"minutes"):it.clone().add(st,"minutes"),this.addSeconds=(it,st)=>st<0?it.clone().subtract(Math.abs(st),"seconds"):it.clone().add(st,"seconds"),this.getYear=it=>it.get("year"),this.getMonth=it=>it.get("month"),this.getDate=it=>it.get("date"),this.getHours=it=>it.get("hours"),this.getMinutes=it=>it.get("minutes"),this.getSeconds=it=>it.get("seconds"),this.getMilliseconds=it=>it.get("milliseconds"),this.setYear=(it,st)=>it.clone().year(st),this.setMonth=(it,st)=>it.clone().month(st),this.setDate=(it,st)=>it.clone().date(st),this.setHours=(it,st)=>it.clone().hours(st),this.setMinutes=(it,st)=>it.clone().minutes(st),this.setSeconds=(it,st)=>it.clone().seconds(st),this.setMilliseconds=(it,st)=>it.clone().milliseconds(st),this.getDaysInMonth=it=>it.daysInMonth(),this.getNextMonth=it=>it.clone().add(1,"month"),this.getPreviousMonth=it=>it.clone().subtract(1,"month"),this.getMonthArray=it=>{const at=[this.startOfYear(it)];for(;at.length<12;){const ot=at[at.length-1];at.push(this.getNextMonth(ot))}return at},this.mergeDateAndTime=(it,st)=>it.clone().hour(st.hour()).minute(st.minute()).second(st.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>hooks.weekdaysShort(!0)),this.getWeekArray=it=>{const st=this.setLocaleToValue(it),at=st.clone().startOf("month").startOf("week"),ot=st.clone().endOf("month").endOf("week");let lt=0,ut=at;const dt=[];for(;ut.isBefore(ot);){const bt=Math.floor(lt/7);dt[bt]=dt[bt]||[],dt[bt].push(ut),ut=ut.clone().add(1,"day"),lt+=1}return dt},this.getWeekNumber=it=>it.week(),this.getYearRange=(it,st)=>{const at=this.moment(it).startOf("year"),ot=this.moment(st).endOf("year"),lt=[];let ut=at;for(;ut.isBefore(ot);)lt.push(ut),ut=ut.clone().add(1,"year");return lt},this.getMeridiemText=it=>this.is12HourCycleInCurrentLocale()?hooks.localeData(this.getCurrentLocaleCode()).meridiem(it==="am"?0:13,0,!1):it==="am"?"AM":"PM",this.moment=nt||hooks,this.locale=tt,this.formats=_extends({},defaultFormats,rt)}}const MuiButton={defaultProps:{disableElevation:!0,disableRipple:!0},styleOverrides:{root:{display:"inline-flex",padding:"12px 20px",justifyContent:"center",alignItems:"center",gap:"10px",borderRadius:"200px",background:colors.BUTTON1,color:"var(--Primary-Text, #fff)",fontFamily:"Barlow",fontSize:"12px",fontStyle:"normal",fontWeight:"400",lineHeight:"8px",cursor:"pointer",columnGap:"6px","&:hover":{background:colors.BUTTON1_HOVER,color:colors.GRAY3,outline:"none",boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&:active":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500,height:"28px"},"&.MuiButton-sizeMedium":{height:"32px",fontSize:"13px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"1.2rem",height:"40px"},"&.MuiButton-outlined":{}},textPrimary:{"& .MuiButton-endIcon":{color:colors.GRAY6},"& .MuiButton-startIcon":{color:colors.GRAY6}},outlined:{borderColor:colors.BUTTON1,borderWidth:"1px",backgroundColor:"transparent","&:hover":{borderColor:colors.BUTTON1_HOVER,backgroundColor:"transparent",color:colors.GRAY3},"&:active":{backgroundColor:colors.BUTTON1_PRESS,color:colors.GRAY6}},containedSecondary:{backgroundColor:colors.PRIMARY_BLUE,borderRadius:"6px",color:"white","&:hover":{backgroundColor:colors.PRIMARY_BLUE_BORDER,color:colors.white},"&:active":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&:focus":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"14px",maxHeight:"40px",fontWeight:600,lineHeight:"16px"},"&.Mui-disabled":{background:"rgba(48, 51, 66, 0.50)",color:"rgba(82, 86, 110, 1)"}},textSecondary:{color:"purple","&:hover":{color:"darkpurple"}},startIcon:{fontSize:"20px",marginRight:0,"& > *:nth-of-type(1)":{fontSize:"20px"}},endIcon:{fontSize:"20px","& > *:nth-of-type(1)":{fontSize:"20px"}}}},PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(et=>{PACKET_TYPES_REVERSE[PACKET_TYPES[et]]=et});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=et=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et&&et.buffer instanceof ArrayBuffer,encodePacket=({type:et,data:tt},rt,nt)=>withNativeBlob$1&&tt instanceof Blob?rt?nt(tt):encodeBlobAsBase64(tt,nt):withNativeArrayBuffer$2&&(tt instanceof ArrayBuffer||isView$1(tt))?rt?nt(tt):encodeBlobAsBase64(new Blob([tt]),nt):nt(PACKET_TYPES[et]+(tt||"")),encodeBlobAsBase64=(et,tt)=>{const rt=new FileReader;return rt.onload=function(){const nt=rt.result.split(",")[1];tt("b"+(nt||""))},rt.readAsDataURL(et)};function toArray(et){return et instanceof Uint8Array?et:et instanceof ArrayBuffer?new Uint8Array(et):new Uint8Array(et.buffer,et.byteOffset,et.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(et,tt){if(withNativeBlob$1&&et.data instanceof Blob)return et.data.arrayBuffer().then(toArray).then(tt);if(withNativeArrayBuffer$2&&(et.data instanceof ArrayBuffer||isView$1(et.data)))return tt(toArray(et.data));encodePacket(et,!1,rt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),tt(TEXT_ENCODER.encode(rt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let et=0;et{let tt=et.length*.75,rt=et.length,nt,it=0,st,at,ot,lt;et[et.length-1]==="="&&(tt--,et[et.length-2]==="="&&tt--);const ut=new ArrayBuffer(tt),dt=new Uint8Array(ut);for(nt=0;nt>4,dt[it++]=(at&15)<<4|ot>>2,dt[it++]=(ot&3)<<6|lt&63;return ut},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(et,tt)=>{if(typeof et!="string")return{type:"message",data:mapBinary(et,tt)};const rt=et.charAt(0);return rt==="b"?{type:"message",data:decodeBase64Packet(et.substring(1),tt)}:PACKET_TYPES_REVERSE[rt]?et.length>1?{type:PACKET_TYPES_REVERSE[rt],data:et.substring(1)}:{type:PACKET_TYPES_REVERSE[rt]}:ERROR_PACKET},decodeBase64Packet=(et,tt)=>{if(withNativeArrayBuffer$1){const rt=decode$1(et);return mapBinary(rt,tt)}else return{base64:!0,data:et}},mapBinary=(et,tt)=>{switch(tt){case"blob":return et instanceof Blob?et:new Blob([et]);case"arraybuffer":default:return et instanceof ArrayBuffer?et:et.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(et,tt)=>{const rt=et.length,nt=new Array(rt);let it=0;et.forEach((st,at)=>{encodePacket(st,!1,ot=>{nt[at]=ot,++it===rt&&tt(nt.join(SEPARATOR))})})},decodePayload=(et,tt)=>{const rt=et.split(SEPARATOR),nt=[];for(let it=0;it{const nt=rt.length;let it;if(nt<126)it=new Uint8Array(1),new DataView(it.buffer).setUint8(0,nt);else if(nt<65536){it=new Uint8Array(3);const st=new DataView(it.buffer);st.setUint8(0,126),st.setUint16(1,nt)}else{it=new Uint8Array(9);const st=new DataView(it.buffer);st.setUint8(0,127),st.setBigUint64(1,BigInt(nt))}et.data&&typeof et.data!="string"&&(it[0]|=128),tt.enqueue(it),tt.enqueue(rt)})}})}let TEXT_DECODER;function totalLength(et){return et.reduce((tt,rt)=>tt+rt.length,0)}function concatChunks(et,tt){if(et[0].length===tt)return et.shift();const rt=new Uint8Array(tt);let nt=0;for(let it=0;itMath.pow(2,53-32)-1){ot.enqueue(ERROR_PACKET);break}it=dt*Math.pow(2,32)+ut.getUint32(4),nt=3}else{if(totalLength(rt)et){ot.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(et){if(et)return mixin(et)}function mixin(et){for(var tt in Emitter.prototype)et[tt]=Emitter.prototype[tt];return et}Emitter.prototype.on=Emitter.prototype.addEventListener=function(et,tt){return this._callbacks=this._callbacks||{},(this._callbacks["$"+et]=this._callbacks["$"+et]||[]).push(tt),this};Emitter.prototype.once=function(et,tt){function rt(){this.off(et,rt),tt.apply(this,arguments)}return rt.fn=tt,this.on(et,rt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(et,tt){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var rt=this._callbacks["$"+et];if(!rt)return this;if(arguments.length==1)return delete this._callbacks["$"+et],this;for(var nt,it=0;ittypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(et,...tt){return tt.reduce((rt,nt)=>(et.hasOwnProperty(nt)&&(rt[nt]=et[nt]),rt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(et,tt){tt.useNativeTimers?(et.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),et.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(et.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),et.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(et){return typeof et=="string"?utf8Length(et):Math.ceil((et.byteLength||et.size)*BASE64_OVERHEAD)}function utf8Length(et){let tt=0,rt=0;for(let nt=0,it=et.length;nt=57344?rt+=3:(nt++,rt+=4);return rt}function encode$1(et){let tt="";for(let rt in et)et.hasOwnProperty(rt)&&(tt.length&&(tt+="&"),tt+=encodeURIComponent(rt)+"="+encodeURIComponent(et[rt]));return tt}function decode(et){let tt={},rt=et.split("&");for(let nt=0,it=rt.length;nt0);return tt}function yeast(){const et=encode(+new Date);return et!==prev?(seed=0,prev=et):et+"."+encode(seed++)}for(;i$1{this.readyState="paused",tt()};if(this.polling||!this.writable){let nt=0;this.polling&&(nt++,this.once("pollComplete",function(){--nt||rt()})),this.writable||(nt++,this.once("drain",function(){--nt||rt()}))}else rt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(tt){const rt=nt=>{if(this.readyState==="opening"&&nt.type==="open"&&this.onOpen(),nt.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(nt)};decodePayload(tt,this.socket.binaryType).forEach(rt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const tt=()=>{this.write([{type:"close"}])};this.readyState==="open"?tt():this.once("open",tt)}write(tt){this.writable=!1,encodePayload(tt,rt=>{this.doWrite(rt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const tt=this.opts.secure?"https":"http",rt=this.query||{};return this.opts.timestampRequests!==!1&&(rt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!rt.sid&&(rt.b64=1),this.createUri(tt,rt)}request(tt={}){return Object.assign(tt,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request$1(this.uri(),tt)}doWrite(tt,rt){const nt=this.request({method:"POST",data:tt});nt.on("success",rt),nt.on("error",(it,st)=>{this.onError("xhr post error",it,st)})}doPoll(){const tt=this.request();tt.on("data",this.onData.bind(this)),tt.on("error",(rt,nt)=>{this.onError("xhr poll error",rt,nt)}),this.pollXhr=tt}}let Request$1=class Y0 extends Emitter{constructor(tt,rt){super(),installTimerFunctions(this,rt),this.opts=rt,this.method=rt.method||"GET",this.uri=tt,this.data=rt.data!==void 0?rt.data:null,this.create()}create(){var tt;const rt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");rt.xdomain=!!this.opts.xd;const nt=this.xhr=new XHR(rt);try{nt.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){nt.setDisableHeaderCheck&&nt.setDisableHeaderCheck(!0);for(let it in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(it)&&nt.setRequestHeader(it,this.opts.extraHeaders[it])}}catch{}if(this.method==="POST")try{nt.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{nt.setRequestHeader("Accept","*/*")}catch{}(tt=this.opts.cookieJar)===null||tt===void 0||tt.addCookies(nt),"withCredentials"in nt&&(nt.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(nt.timeout=this.opts.requestTimeout),nt.onreadystatechange=()=>{var it;nt.readyState===3&&((it=this.opts.cookieJar)===null||it===void 0||it.parseCookies(nt)),nt.readyState===4&&(nt.status===200||nt.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof nt.status=="number"?nt.status:0)},0))},nt.send(this.data)}catch(it){this.setTimeoutFn(()=>{this.onError(it)},0);return}typeof document<"u"&&(this.index=Y0.requestsCount++,Y0.requests[this.index]=this)}onError(tt){this.emitReserved("error",tt,this.xhr),this.cleanup(!0)}cleanup(tt){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,tt)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Y0.requests[this.index],this.xhr=null}}onLoad(){const tt=this.xhr.responseText;tt!==null&&(this.emitReserved("data",tt),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Request$1.requestsCount=0;Request$1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const et="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(et,unloadHandler,!1)}}function unloadHandler(){for(let et in Request$1.requests)Request$1.requests.hasOwnProperty(et)&&Request$1.requests[et].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?tt=>Promise.resolve().then(tt):(tt,rt)=>rt(tt,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(tt){super(tt),this.supportsBinary=!tt.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const tt=this.uri(),rt=this.opts.protocols,nt=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(nt.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?rt?new WebSocket(tt,rt):new WebSocket(tt):new WebSocket(tt,rt,nt)}catch(it){return this.emitReserved("error",it)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=tt=>this.onClose({description:"websocket connection closed",context:tt}),this.ws.onmessage=tt=>this.onData(tt.data),this.ws.onerror=tt=>this.onError("websocket error",tt)}write(tt){this.writable=!1;for(let rt=0;rt{const at={};try{usingBrowserWebSocket&&this.ws.send(st)}catch{}it&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const tt=this.opts.secure?"wss":"ws",rt=this.query||{};return this.opts.timestampRequests&&(rt[this.opts.timestampParam]=yeast()),this.supportsBinary||(rt.b64=1),this.createUri(tt,rt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(tt=>{this.onError("webtransport error",tt)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(tt=>{const rt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),nt=tt.readable.pipeThrough(rt).getReader(),it=createPacketEncoderStream();it.readable.pipeTo(tt.writable),this.writer=it.writable.getWriter();const st=()=>{nt.read().then(({done:ot,value:lt})=>{ot||(this.onPacket(lt),st())}).catch(ot=>{})};st();const at={type:"open"};this.query.sid&&(at.data=`{"sid":"${this.query.sid}"}`),this.writer.write(at).then(()=>this.onOpen())})}))}write(tt){this.writable=!1;for(let rt=0;rt{it&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var tt;(tt=this.transport)===null||tt===void 0||tt.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(et){if(et.length>2e3)throw"URI too long";const tt=et,rt=et.indexOf("["),nt=et.indexOf("]");rt!=-1&&nt!=-1&&(et=et.substring(0,rt)+et.substring(rt,nt).replace(/:/g,";")+et.substring(nt,et.length));let it=re.exec(et||""),st={},at=14;for(;at--;)st[parts[at]]=it[at]||"";return rt!=-1&&nt!=-1&&(st.source=tt,st.host=st.host.substring(1,st.host.length-1).replace(/;/g,":"),st.authority=st.authority.replace("[","").replace("]","").replace(/;/g,":"),st.ipv6uri=!0),st.pathNames=pathNames(st,st.path),st.queryKey=queryKey(st,st.query),st}function pathNames(et,tt){const rt=/\/{2,9}/g,nt=tt.replace(rt,"/").split("/");return(tt.slice(0,1)=="/"||tt.length===0)&&nt.splice(0,1),tt.slice(-1)=="/"&&nt.splice(nt.length-1,1),nt}function queryKey(et,tt){const rt={};return tt.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(nt,it,st){it&&(rt[it]=st)}),rt}let Socket$1=class Ko extends Emitter{constructor(tt,rt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],tt&&typeof tt=="object"&&(rt=tt,tt=null),tt?(tt=parse(tt),rt.hostname=tt.host,rt.secure=tt.protocol==="https"||tt.protocol==="wss",rt.port=tt.port,tt.query&&(rt.query=tt.query)):rt.host&&(rt.hostname=parse(rt.host).host),installTimerFunctions(this,rt),this.secure=rt.secure!=null?rt.secure:typeof location<"u"&&location.protocol==="https:",rt.hostname&&!rt.port&&(rt.port=this.secure?"443":"80"),this.hostname=rt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=rt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=rt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},rt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(tt){const rt=Object.assign({},this.opts.query);rt.EIO=protocol$1,rt.transport=tt,this.id&&(rt.sid=this.id);const nt=Object.assign({},this.opts,{query:rt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[tt]);return new transports[tt](nt)}open(){let tt;if(this.opts.rememberUpgrade&&Ko.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)tt="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else tt=this.transports[0];this.readyState="opening";try{tt=this.createTransport(tt)}catch{this.transports.shift(),this.open();return}tt.open(),this.setTransport(tt)}setTransport(tt){this.transport&&this.transport.removeAllListeners(),this.transport=tt,tt.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",rt=>this.onClose("transport close",rt))}probe(tt){let rt=this.createTransport(tt),nt=!1;Ko.priorWebsocketSuccess=!1;const it=()=>{nt||(rt.send([{type:"ping",data:"probe"}]),rt.once("packet",bt=>{if(!nt)if(bt.type==="pong"&&bt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",rt),!rt)return;Ko.priorWebsocketSuccess=rt.name==="websocket",this.transport.pause(()=>{nt||this.readyState!=="closed"&&(dt(),this.setTransport(rt),rt.send([{type:"upgrade"}]),this.emitReserved("upgrade",rt),rt=null,this.upgrading=!1,this.flush())})}else{const gt=new Error("probe error");gt.transport=rt.name,this.emitReserved("upgradeError",gt)}}))};function st(){nt||(nt=!0,dt(),rt.close(),rt=null)}const at=bt=>{const gt=new Error("probe error: "+bt);gt.transport=rt.name,st(),this.emitReserved("upgradeError",gt)};function ot(){at("transport closed")}function lt(){at("socket closed")}function ut(bt){rt&&bt.name!==rt.name&&st()}const dt=()=>{rt.removeListener("open",it),rt.removeListener("error",at),rt.removeListener("close",ot),this.off("close",lt),this.off("upgrading",ut)};rt.once("open",it),rt.once("error",at),rt.once("close",ot),this.once("close",lt),this.once("upgrading",ut),this.upgrades.indexOf("webtransport")!==-1&&tt!=="webtransport"?this.setTimeoutFn(()=>{nt||rt.open()},200):rt.open()}onOpen(){if(this.readyState="open",Ko.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let tt=0;const rt=this.upgrades.length;for(;tt{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const tt=this.getWritablePackets();this.transport.send(tt),this.prevBufferLen=tt.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let rt=1;for(let nt=0;nt0&&rt>this.maxPayload)return this.writeBuffer.slice(0,nt);rt+=2}return this.writeBuffer}write(tt,rt,nt){return this.sendPacket("message",tt,rt,nt),this}send(tt,rt,nt){return this.sendPacket("message",tt,rt,nt),this}sendPacket(tt,rt,nt,it){if(typeof rt=="function"&&(it=rt,rt=void 0),typeof nt=="function"&&(it=nt,nt=null),this.readyState==="closing"||this.readyState==="closed")return;nt=nt||{},nt.compress=nt.compress!==!1;const st={type:tt,data:rt,options:nt};this.emitReserved("packetCreate",st),this.writeBuffer.push(st),it&&this.once("flush",it),this.flush()}close(){const tt=()=>{this.onClose("forced close"),this.transport.close()},rt=()=>{this.off("upgrade",rt),this.off("upgradeError",rt),tt()},nt=()=>{this.once("upgrade",rt),this.once("upgradeError",rt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?nt():tt()}):this.upgrading?nt():tt()),this}onError(tt){Ko.priorWebsocketSuccess=!1,this.emitReserved("error",tt),this.onClose("transport error",tt)}onClose(tt,rt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",tt,rt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(tt){const rt=[];let nt=0;const it=tt.length;for(;nttypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(et){return withNativeArrayBuffer&&(et instanceof ArrayBuffer||isView(et))||withNativeBlob&&et instanceof Blob||withNativeFile&&et instanceof File}function hasBinary(et,tt){if(!et||typeof et!="object")return!1;if(Array.isArray(et)){for(let rt=0,nt=et.length;rt=0&&et.num{delete this.acks[tt];for(let at=0;at{this.io.clearTimeoutFn(st),rt.apply(this,[null,...at])}}emitWithAck(tt,...rt){const nt=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((it,st)=>{rt.push((at,ot)=>nt?at?st(at):it(ot):it(at)),this.emit(tt,...rt)})}_addToQueue(tt){let rt;typeof tt[tt.length-1]=="function"&&(rt=tt.pop());const nt={id:this._queueSeq++,tryCount:0,pending:!1,args:tt,flags:Object.assign({fromQueue:!0},this.flags)};tt.push((it,...st)=>nt!==this._queue[0]?void 0:(it!==null?nt.tryCount>this._opts.retries&&(this._queue.shift(),rt&&rt(it)):(this._queue.shift(),rt&&rt(null,...st)),nt.pending=!1,this._drainQueue())),this._queue.push(nt),this._drainQueue()}_drainQueue(tt=!1){if(!this.connected||this._queue.length===0)return;const rt=this._queue[0];rt.pending&&!tt||(rt.pending=!0,rt.tryCount++,this.flags=rt.flags,this.emit.apply(this,rt.args))}packet(tt){tt.nsp=this.nsp,this.io._packet(tt)}onopen(){typeof this.auth=="function"?this.auth(tt=>{this._sendConnectPacket(tt)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(tt){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},tt):tt})}onerror(tt){this.connected||this.emitReserved("connect_error",tt)}onclose(tt,rt){this.connected=!1,delete this.id,this.emitReserved("disconnect",tt,rt)}onpacket(tt){if(tt.nsp===this.nsp)switch(tt.type){case PacketType.CONNECT:tt.data&&tt.data.sid?this.onconnect(tt.data.sid,tt.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(tt);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(tt);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const nt=new Error(tt.data.message);nt.data=tt.data.data,this.emitReserved("connect_error",nt);break}}onevent(tt){const rt=tt.data||[];tt.id!=null&&rt.push(this.ack(tt.id)),this.connected?this.emitEvent(rt):this.receiveBuffer.push(Object.freeze(rt))}emitEvent(tt){if(this._anyListeners&&this._anyListeners.length){const rt=this._anyListeners.slice();for(const nt of rt)nt.apply(this,tt)}super.emit.apply(this,tt),this._pid&&tt.length&&typeof tt[tt.length-1]=="string"&&(this._lastOffset=tt[tt.length-1])}ack(tt){const rt=this;let nt=!1;return function(...it){nt||(nt=!0,rt.packet({type:PacketType.ACK,id:tt,data:it}))}}onack(tt){const rt=this.acks[tt.id];typeof rt=="function"&&(rt.apply(this,tt.data),delete this.acks[tt.id])}onconnect(tt,rt){this.id=tt,this.recovered=rt&&this._pid===rt,this._pid=rt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(tt=>this.emitEvent(tt)),this.receiveBuffer=[],this.sendBuffer.forEach(tt=>{this.notifyOutgoingListeners(tt),this.packet(tt)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(tt=>tt()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(tt){return this.flags.compress=tt,this}get volatile(){return this.flags.volatile=!0,this}timeout(tt){return this.flags.timeout=tt,this}onAny(tt){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(tt),this}prependAny(tt){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(tt),this}offAny(tt){if(!this._anyListeners)return this;if(tt){const rt=this._anyListeners;for(let nt=0;nt0&&et.jitter<=1?et.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var et=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var tt=Math.random(),rt=Math.floor(tt*this.jitter*et);et=Math.floor(tt*10)&1?et+rt:et-rt}return Math.min(et,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(et){this.ms=et};Backoff.prototype.setMax=function(et){this.max=et};Backoff.prototype.setJitter=function(et){this.jitter=et};class Manager extends Emitter{constructor(tt,rt){var nt;super(),this.nsps={},this.subs=[],tt&&typeof tt=="object"&&(rt=tt,tt=void 0),rt=rt||{},rt.path=rt.path||"/socket.io",this.opts=rt,installTimerFunctions(this,rt),this.reconnection(rt.reconnection!==!1),this.reconnectionAttempts(rt.reconnectionAttempts||1/0),this.reconnectionDelay(rt.reconnectionDelay||1e3),this.reconnectionDelayMax(rt.reconnectionDelayMax||5e3),this.randomizationFactor((nt=rt.randomizationFactor)!==null&&nt!==void 0?nt:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(rt.timeout==null?2e4:rt.timeout),this._readyState="closed",this.uri=tt;const it=rt.parser||parser;this.encoder=new it.Encoder,this.decoder=new it.Decoder,this._autoConnect=rt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(tt){return arguments.length?(this._reconnection=!!tt,this):this._reconnection}reconnectionAttempts(tt){return tt===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=tt,this)}reconnectionDelay(tt){var rt;return tt===void 0?this._reconnectionDelay:(this._reconnectionDelay=tt,(rt=this.backoff)===null||rt===void 0||rt.setMin(tt),this)}randomizationFactor(tt){var rt;return tt===void 0?this._randomizationFactor:(this._randomizationFactor=tt,(rt=this.backoff)===null||rt===void 0||rt.setJitter(tt),this)}reconnectionDelayMax(tt){var rt;return tt===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=tt,(rt=this.backoff)===null||rt===void 0||rt.setMax(tt),this)}timeout(tt){return arguments.length?(this._timeout=tt,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(tt){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const rt=this.engine,nt=this;this._readyState="opening",this.skipReconnect=!1;const it=on(rt,"open",function(){nt.onopen(),tt&&tt()}),st=ot=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",ot),tt?tt(ot):this.maybeReconnectOnOpen()},at=on(rt,"error",st);if(this._timeout!==!1){const ot=this._timeout,lt=this.setTimeoutFn(()=>{it(),st(new Error("timeout")),rt.close()},ot);this.opts.autoUnref&<.unref(),this.subs.push(()=>{this.clearTimeoutFn(lt)})}return this.subs.push(it),this.subs.push(at),this}connect(tt){return this.open(tt)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const tt=this.engine;this.subs.push(on(tt,"ping",this.onping.bind(this)),on(tt,"data",this.ondata.bind(this)),on(tt,"error",this.onerror.bind(this)),on(tt,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(tt){try{this.decoder.add(tt)}catch(rt){this.onclose("parse error",rt)}}ondecoded(tt){nextTick(()=>{this.emitReserved("packet",tt)},this.setTimeoutFn)}onerror(tt){this.emitReserved("error",tt)}socket(tt,rt){let nt=this.nsps[tt];return nt?this._autoConnect&&!nt.active&&nt.connect():(nt=new Socket(this,tt,rt),this.nsps[tt]=nt),nt}_destroy(tt){const rt=Object.keys(this.nsps);for(const nt of rt)if(this.nsps[nt].active)return;this._close()}_packet(tt){const rt=this.encoder.encode(tt);for(let nt=0;nttt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(tt,rt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",tt,rt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const tt=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const rt=this.backoff.duration();this._reconnecting=!0;const nt=this.setTimeoutFn(()=>{tt.skipReconnect||(this.emitReserved("reconnect_attempt",tt.backoff.attempts),!tt.skipReconnect&&tt.open(it=>{it?(tt._reconnecting=!1,tt.reconnect(),this.emitReserved("reconnect_error",it)):tt.onreconnect()}))},rt);this.opts.autoUnref&&nt.unref(),this.subs.push(()=>{this.clearTimeoutFn(nt)})}}onreconnect(){const tt=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",tt)}}const cache={};function lookup(et,tt){typeof et=="object"&&(tt=et,et=void 0),tt=tt||{};const rt=url(et,tt.path||"/socket.io"),nt=rt.source,it=rt.id,st=rt.path,at=cache[it]&&st in cache[it].nsps,ot=tt.forceNew||tt["force new connection"]||tt.multiplex===!1||at;let lt;return ot?lt=new Manager(nt,tt):(cache[it]||(cache[it]=new Manager(nt,tt)),lt=cache[it]),rt.query&&!tt.query&&(tt.query=rt.queryKey),lt.socket(rt.path,tt)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const SocketContext=reactExports.createContext(void 0),contextValue={socket:lookup(removeApi(API_URL),{autoConnect:!1})},SocketProvider=({children:et})=>jsxRuntimeExports.jsx(SocketContext.Provider,{value:contextValue,children:et}),palette=createPalette({mode:"dark",primary:{main:colors.primaryButton}}),appTheme=createTheme({palette,components:{MuiButton,MuiPopover:{styleOverrides:{root:{zIndex:99999}}}},typography:{button:{textTransform:"none",whiteSpace:"nowrap"}},breakpoints:{values:{xs:breakpoints.small,sm:breakpoints.medium,md:breakpoints.large,lg:1200,xl:1500}}}),AppProviders=({children:et})=>jsxRuntimeExports.jsxs(ThemeProvider,{theme:appTheme,children:[jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0}),jsxRuntimeExports.jsx(Fe,{theme:appTheme,children:jsxRuntimeExports.jsx(LocalizationProvider,{dateAdapter:AdapterMoment,children:jsxRuntimeExports.jsx(SocketProvider,{children:et})})})]}),background=Ce` + ${({background:et})=>et&&`background-color: ${colors[et]};`} +`,switchProp$3=(et,tt)=>{switch(et){case"borderColor":return`border-color: ${tt};`;case"borderRadius":return`border-radius: ${tt}px;`;case"borderRadiusBottomLeft":return`border-bottom-left-radius: ${tt}px;`;case"borderRadiusBottomRight":return`border-bottom-right-radius: ${tt}px;`;case"borderRadiusTopLeft":return`border-top-left-radius: ${tt}px;`;case"borderRadiusTopRight":return`border-top-right-radius: ${tt}px;`;case"borderSize":return` + border-style: solid; + border-width: ${tt}px; + `;default:return""}},getPropStyle$3=(et,tt)=>tt===void 0?"":switchProp$3(et,tt),getOverflowHidden=({borderRadius:et,borderRadiusBottomLeft:tt,borderRadiusBottomRight:rt,borderRadiusTopLeft:nt,borderRadiusTopRight:it})=>[et,tt,rt,nt,it].every(st=>st===void 0)?"":"overflow: hidden;",border=Ce` + ${({borderColor:et,borderRadius:tt,borderRadiusBottomLeft:rt,borderRadiusBottomRight:nt,borderRadiusTopLeft:it,borderRadiusTopRight:st,borderSize:at})=>` + ${getOverflowHidden({borderRadius:tt,borderRadiusBottomLeft:rt,borderRadiusBottomRight:nt,borderRadiusTopLeft:it,borderRadiusTopRight:st})} + ${getPropStyle$3("borderColor",et)} + ${getPropStyle$3("borderRadius",tt)} + ${getPropStyle$3("borderRadiusBottomLeft",rt)} + ${getPropStyle$3("borderRadiusBottomRight",nt)} + ${getPropStyle$3("borderRadiusTopLeft",it)} + ${getPropStyle$3("borderRadiusTopRight",st)} + ${getPropStyle$3("borderSize",at)} + `} +`,switchProp$2=(et,tt)=>{switch(et){case"align":return`align-items: ${tt};`;case"justify":return`justify-content: ${tt};`;case"basis":case"direction":case"grow":case"shrink":case"wrap":return`flex-${et}: ${tt};`;case"opacity":return`opacity: ${tt}`;default:return assertNever(et)}},getPropStyle$2=(et,tt)=>tt===void 0?"":switchProp$2(et,tt),flexbox=Ce` + display: flex; + min-height: 0; + min-width: 0; + + ${({align:et,basis:tt,direction:rt,grow:nt,justify:it,shrink:st,wrap:at})=>` + ${getPropStyle$2("align",et)} + ${getPropStyle$2("basis",tt)} + ${getPropStyle$2("direction",rt)} + ${getPropStyle$2("grow",nt)} + ${getPropStyle$2("justify",it)} + ${getPropStyle$2("shrink",st)} + ${getPropStyle$2("wrap",at)} + `} +`,switchProp$1=(et,tt)=>{switch(et){case"m":return`margin: ${tt}px;`;case"mb":return`margin-bottom: ${tt}px;`;case"ml":return`margin-left: ${tt}px;`;case"mr":return`margin-right: ${tt}px;`;case"mt":return`margin-top: ${tt}px;`;case"mx":return` + margin-left: ${tt}px; + margin-right: ${tt}px; + `;case"my":return` + margin-bottom: ${tt}px; + margin-top: ${tt}px; + `;default:return assertNever(et)}},getPropStyle$1=(et,tt)=>tt===void 0?"":switchProp$1(et,tt),margin=Ce` + ${({m:et,mb:tt,ml:rt,mr:nt,mt:it,mx:st,my:at})=>` + ${getPropStyle$1("m",et)} + ${getPropStyle$1("mx",st)} + ${getPropStyle$1("my",at)} + ${getPropStyle$1("mb",tt)} + ${getPropStyle$1("ml",rt)} + ${getPropStyle$1("mr",nt)} + ${getPropStyle$1("mt",it)} + `} +`,switchProp=(et,tt)=>{switch(et){case"p":return`padding: ${tt}px;`;case"pb":return`padding-bottom: ${tt}px;`;case"pl":return`padding-left: ${tt}px;`;case"pr":return`padding-right: ${tt}px;`;case"pt":return`padding-top: ${tt}px;`;case"px":return` + padding-left: ${tt}px; + padding-right: ${tt}px; + `;case"py":return` + padding-bottom: ${tt}px; + padding-top: ${tt}px; + `;default:return assertNever(et)}},getPropStyle=(et,tt)=>tt===void 0?"":switchProp(et,tt),padding=Ce` + ${({p:et,pb:tt,pl:rt,pr:nt,pt:it,px:st,py:at})=>` + ${getPropStyle("p",et)} + ${getPropStyle("px",st)} + ${getPropStyle("py",at)} + ${getPropStyle("pb",tt)} + ${getPropStyle("pl",rt)} + ${getPropStyle("pr",nt)} + ${getPropStyle("pt",it)} + `} +`,defaultProps$1={align:"stretch",basis:"auto",direction:"column",grow:0,justify:"flex-start",opacity:1,shrink:0,wrap:"nowrap"},Flex=styled$3.div.withConfig({shouldForwardProp:(et,tt)=>!["direction","wrap"].includes(et)&&tt(et)}).attrs(et=>({...defaultProps$1,...et}))` + ${background} + ${border} + ${flexbox} + ${padding} + ${margin} +`,fontSizes={bigHeading:30,bigHeadingBold:30,heading:24,headingBold:24,hugeHeading:40,hugeHeadingBold:40,medium:16,mediumBold:16,regular:14,regularBold:14,tiny:12,tinyBold:12},fontSizesMobile={bigHeading:24,bigHeadingBold:24,heading:18,headingBold:18,hugeHeading:32,hugeHeadingBold:32,medium:16,mediumBold:16,regular:14,regularBold:14,tiny:12,tinyBold:12},fontWeights={bigHeading:400,bigHeadingBold:700,heading:400,headingBold:700,hugeHeading:400,hugeHeadingBold:700,medium:500,mediumBold:600,regular:500,regularBold:600,tiny:300,tinyBold:500},style=Ce` + ${({kind:et="regular"})=>Ce` + font-size: ${fontSizes[et]}px; + font-weight: ${fontWeights[et]}; + ${media.smallOnly` + font-size: ${fontSizesMobile[et]}px; + `} + `} +`,Text=styled$3.span.withConfig({shouldForwardProp:(et,tt)=>!["kind"].includes(et)&&tt(et)})` + ${style} + + ${({color:et="primaryText1"})=>`color: ${colors[et]};`} +`;var isCheckBoxInput=et=>et.type==="checkbox",isDateObject=et=>et instanceof Date,isNullOrUndefined=et=>et==null;const isObjectType=et=>typeof et=="object";var isObject=et=>!isNullOrUndefined(et)&&!Array.isArray(et)&&isObjectType(et)&&!isDateObject(et),getEventValue=et=>isObject(et)&&et.target?isCheckBoxInput(et.target)?et.target.checked:et.target.value:et,getNodeParentName=et=>et.substring(0,et.search(/\.\d+(\.|$)/))||et,isNameInFieldArray=(et,tt)=>et.has(getNodeParentName(tt)),isPlainObject=et=>{const tt=et.constructor&&et.constructor.prototype;return isObject(tt)&&tt.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(et){let tt;const rt=Array.isArray(et);if(et instanceof Date)tt=new Date(et);else if(et instanceof Set)tt=new Set(et);else if(!(isWeb&&(et instanceof Blob||et instanceof FileList))&&(rt||isObject(et)))if(tt=rt?[]:{},!rt&&!isPlainObject(et))tt=et;else for(const nt in et)et.hasOwnProperty(nt)&&(tt[nt]=cloneObject(et[nt]));else return et;return tt}var compact=et=>Array.isArray(et)?et.filter(Boolean):[],isUndefined=et=>et===void 0,get=(et,tt,rt)=>{if(!tt||!isObject(et))return rt;const nt=compact(tt.split(/[,[\].]+?/)).reduce((it,st)=>isNullOrUndefined(it)?it:it[st],et);return isUndefined(nt)||nt===et?isUndefined(et[tt])?rt:et[tt]:nt},isBoolean=et=>typeof et=="boolean";const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React.createContext(null),useFormContext=()=>React.useContext(HookFormContext),FormProvider=et=>{const{children:tt,...rt}=et;return React.createElement(HookFormContext.Provider,{value:rt},tt)};var getProxyFormState=(et,tt,rt,nt=!0)=>{const it={defaultValues:tt._defaultValues};for(const st in et)Object.defineProperty(it,st,{get:()=>{const at=st;return tt._proxyFormState[at]!==VALIDATION_MODE.all&&(tt._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),et[at]}});return it},isEmptyObject=et=>isObject(et)&&!Object.keys(et).length,shouldRenderFormState=(et,tt,rt,nt)=>{rt(et);const{name:it,...st}=et;return isEmptyObject(st)||Object.keys(st).length>=Object.keys(tt).length||Object.keys(st).find(at=>tt[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=et=>Array.isArray(et)?et:[et],shouldSubscribeByName=(et,tt,rt)=>!et||!tt||et===tt||convertToArrayPayload(et).some(nt=>nt&&(rt?nt===tt:nt.startsWith(tt)||tt.startsWith(nt)));function useSubscribe(et){const tt=React.useRef(et);tt.current=et,React.useEffect(()=>{const rt=!et.disabled&&tt.current.subject&&tt.current.subject.subscribe({next:tt.current.next});return()=>{rt&&rt.unsubscribe()}},[et.disabled])}function useFormState(et){const tt=useFormContext(),{control:rt=tt.control,disabled:nt,name:it,exact:st}=et||{},[at,ot]=React.useState(rt._formState),lt=React.useRef(!0),ut=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React.useRef(it);return dt.current=it,useSubscribe({disabled:nt,next:bt=>lt.current&&shouldSubscribeByName(dt.current,bt.name,st)&&shouldRenderFormState(bt,ut.current,rt._updateFormState)&&ot({...rt._formState,...bt}),subject:rt._subjects.state}),React.useEffect(()=>(lt.current=!0,ut.current.isValid&&rt._updateValid(!0),()=>{lt.current=!1}),[rt]),getProxyFormState(at,rt,ut.current,!1)}var isString=et=>typeof et=="string",generateWatchOutput=(et,tt,rt,nt,it)=>isString(et)?(nt&&tt.watch.add(et),get(rt,et,it)):Array.isArray(et)?et.map(st=>(nt&&tt.watch.add(st),get(rt,st))):(nt&&(tt.watchAll=!0),rt);function useWatch(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,defaultValue:it,disabled:st,exact:at}=et||{},ot=React.useRef(nt);ot.current=nt,useSubscribe({disabled:st,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(ot.current,dt.name,at)&&ut(cloneObject(generateWatchOutput(ot.current,rt._names,dt.values||rt._formValues,!1,it)))}});const[lt,ut]=React.useState(rt._getWatch(nt,it));return React.useEffect(()=>rt._removeUnmounted()),lt}var isKey=et=>/^\w*$/.test(et),stringToPath=et=>compact(et.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(et,tt,rt)=>{let nt=-1;const it=isKey(tt)?[tt]:stringToPath(tt),st=it.length,at=st-1;for(;++nt{const dt=it._options.shouldUnregister||st,bt=(gt,kt)=>{const pt=get(it._fields,gt);pt&&(pt._f.mount=kt)};if(bt(rt,!0),dt){const gt=cloneObject(get(it._options.defaultValues,rt));set(it._defaultValues,rt,gt),isUndefined(get(it._formValues,rt))&&set(it._formValues,rt,gt)}return()=>{(at?dt&&!it._state.action:dt)?it.unregister(rt):bt(rt,!1)}},[rt,it,at,st]),React.useEffect(()=>{get(it._fields,rt)&&it._updateDisabledField({disabled:nt,fields:it._fields,name:rt,value:get(it._fields,rt)._f.value})},[nt,rt,it]),{field:{name:rt,value:ot,...isBoolean(nt)||isBoolean(lt.disabled)?{disabled:lt.disabled||nt}:{},onChange:React.useCallback(dt=>ut.current.onChange({target:{value:getEventValue(dt),name:rt},type:EVENTS.CHANGE}),[rt]),onBlur:React.useCallback(()=>ut.current.onBlur({target:{value:get(it._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,it]),ref:dt=>{const bt=get(it._fields,rt);bt&&dt&&(bt._f.ref={focus:()=>dt.focus(),select:()=>dt.select(),setCustomValidity:gt=>dt.setCustomValidity(gt),reportValidity:()=>dt.reportValidity()})}},formState:lt,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(lt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get(lt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get(lt.touchedFields,rt)},error:{enumerable:!0,get:()=>get(lt.errors,rt)}})}}const Controller=et=>et.render(useController(et));var appendErrors=(et,tt,rt,nt,it)=>tt?{...rt[et],types:{...rt[et]&&rt[et].types?rt[et].types:{},[nt]:it||!0}}:{},generateId=()=>{const et=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,tt=>{const rt=(Math.random()*16+et)%16|0;return(tt=="x"?rt:rt&3|8).toString(16)})},getFocusFieldName=(et,tt,rt={})=>rt.shouldFocus||isUndefined(rt.shouldFocus)?rt.focusName||`${et}.${isUndefined(rt.focusIndex)?tt:rt.focusIndex}.`:"",getValidationModes=et=>({isOnSubmit:!et||et===VALIDATION_MODE.onSubmit,isOnBlur:et===VALIDATION_MODE.onBlur,isOnChange:et===VALIDATION_MODE.onChange,isOnAll:et===VALIDATION_MODE.all,isOnTouch:et===VALIDATION_MODE.onTouched}),isWatched=(et,tt,rt)=>!rt&&(tt.watchAll||tt.watch.has(et)||[...tt.watch].some(nt=>et.startsWith(nt)&&/^\.\w+/.test(et.slice(nt.length))));const iterateFieldsByAction=(et,tt,rt,nt)=>{for(const it of rt||Object.keys(et)){const st=get(et,it);if(st){const{_f:at,...ot}=st;if(at){if(at.refs&&at.refs[0]&&tt(at.refs[0],it)&&!nt)break;if(at.ref&&tt(at.ref,at.name)&&!nt)break;iterateFieldsByAction(ot,tt)}else isObject(ot)&&iterateFieldsByAction(ot,tt)}}};var updateFieldArrayRootError=(et,tt,rt)=>{const nt=compact(get(et,rt));return set(nt,"root",tt[rt]),set(et,rt,nt),et},isFileInput=et=>et.type==="file",isFunction=et=>typeof et=="function",isHTMLElement=et=>{if(!isWeb)return!1;const tt=et?et.ownerDocument:0;return et instanceof(tt&&tt.defaultView?tt.defaultView.HTMLElement:HTMLElement)},isMessage=et=>isString(et),isRadioInput=et=>et.type==="radio",isRegex=et=>et instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=et=>{if(Array.isArray(et)){if(et.length>1){const tt=et.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:tt,isValid:!!tt.length}}return et[0].checked&&!et[0].disabled?et[0].attributes&&!isUndefined(et[0].attributes.value)?isUndefined(et[0].value)||et[0].value===""?validResult:{value:et[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=et=>Array.isArray(et)?et.reduce((tt,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:tt,defaultReturn):defaultReturn;function getValidateError(et,tt,rt="validate"){if(isMessage(et)||Array.isArray(et)&&et.every(isMessage)||isBoolean(et)&&!et)return{type:rt,message:isMessage(et)?et:"",ref:tt}}var getValueAndMessage=et=>isObject(et)&&!isRegex(et)?et:{value:et,message:""},validateField=async(et,tt,rt,nt,it)=>{const{ref:st,refs:at,required:ot,maxLength:lt,minLength:ut,min:dt,max:bt,pattern:gt,validate:kt,name:pt,valueAsNumber:yt,mount:$t,disabled:mt}=et._f,wt=get(tt,pt);if(!$t||mt)return{};const St=at?at[0]:st,Bt=Ot=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean(Ot)?"":Ot||""),St.reportValidity())},Ft={},Dt=isRadioInput(st),zt=isCheckBoxInput(st),Ht=Dt||zt,Wt=(yt||isFileInput(st))&&isUndefined(st.value)&&isUndefined(wt)||isHTMLElement(st)&&st.value===""||wt===""||Array.isArray(wt)&&!wt.length,lr=appendErrors.bind(null,pt,rt,Ft),qt=(Ot,Mt,ht,Et=INPUT_VALIDATION_RULES.maxLength,Tt=INPUT_VALIDATION_RULES.minLength)=>{const Rt=Ot?Mt:ht;Ft[pt]={type:Ot?Et:Tt,message:Rt,ref:st,...lr(Ot?Et:Tt,Rt)}};if(it?!Array.isArray(wt)||!wt.length:ot&&(!Ht&&(Wt||isNullOrUndefined(wt))||isBoolean(wt)&&!wt||zt&&!getCheckboxValue(at).isValid||Dt&&!getRadioValue(at).isValid)){const{value:Ot,message:Mt}=isMessage(ot)?{value:!!ot,message:ot}:getValueAndMessage(ot);if(Ot&&(Ft[pt]={type:INPUT_VALIDATION_RULES.required,message:Mt,ref:St,...lr(INPUT_VALIDATION_RULES.required,Mt)},!rt))return Bt(Mt),Ft}if(!Wt&&(!isNullOrUndefined(dt)||!isNullOrUndefined(bt))){let Ot,Mt;const ht=getValueAndMessage(bt),Et=getValueAndMessage(dt);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Tt=st.valueAsNumber||wt&&+wt;isNullOrUndefined(ht.value)||(Ot=Tt>ht.value),isNullOrUndefined(Et.value)||(Mt=Ttnew Date(new Date().toDateString()+" "+It),At=st.type=="time",Pt=st.type=="week";isString(ht.value)&&wt&&(Ot=At?Rt(wt)>Rt(ht.value):Pt?wt>ht.value:Tt>new Date(ht.value)),isString(Et.value)&&wt&&(Mt=At?Rt(wt)+Ot.value,Et=!isNullOrUndefined(Mt.value)&&wt.length<+Mt.value;if((ht||Et)&&(qt(ht,Ot.message,Mt.message),!rt))return Bt(Ft[pt].message),Ft}if(gt&&!Wt&&isString(wt)){const{value:Ot,message:Mt}=getValueAndMessage(gt);if(isRegex(Ot)&&!wt.match(Ot)&&(Ft[pt]={type:INPUT_VALIDATION_RULES.pattern,message:Mt,ref:st,...lr(INPUT_VALIDATION_RULES.pattern,Mt)},!rt))return Bt(Mt),Ft}if(kt){if(isFunction(kt)){const Ot=await kt(wt,tt),Mt=getValidateError(Ot,St);if(Mt&&(Ft[pt]={...Mt,...lr(INPUT_VALIDATION_RULES.validate,Mt.message)},!rt))return Bt(Mt.message),Ft}else if(isObject(kt)){let Ot={};for(const Mt in kt){if(!isEmptyObject(Ot)&&!rt)break;const ht=getValidateError(await kt[Mt](wt,tt),St,Mt);ht&&(Ot={...ht,...lr(Mt,ht.message)},Bt(ht.message),rt&&(Ft[pt]=Ot))}if(!isEmptyObject(Ot)&&(Ft[pt]={ref:St,...Ot},!rt))return Ft}}return Bt(!0),Ft},appendAt=(et,tt)=>[...et,...convertToArrayPayload(tt)],fillEmptyArray=et=>Array.isArray(et)?et.map(()=>{}):void 0;function insert(et,tt,rt){return[...et.slice(0,tt),...convertToArrayPayload(rt),...et.slice(tt)]}var moveArrayAt=(et,tt,rt)=>Array.isArray(et)?(isUndefined(et[rt])&&(et[rt]=void 0),et.splice(rt,0,et.splice(tt,1)[0]),et):[],prependAt=(et,tt)=>[...convertToArrayPayload(tt),...convertToArrayPayload(et)];function removeAtIndexes(et,tt){let rt=0;const nt=[...et];for(const it of tt)nt.splice(it-rt,1),rt++;return compact(nt).length?nt:[]}var removeArrayAt=(et,tt)=>isUndefined(tt)?[]:removeAtIndexes(et,convertToArrayPayload(tt).sort((rt,nt)=>rt-nt)),swapArrayAt=(et,tt,rt)=>{[et[tt],et[rt]]=[et[rt],et[tt]]};function baseGet(et,tt){const rt=tt.slice(0,-1).length;let nt=0;for(;nt(et[tt]=rt,et);function useFieldArray(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,keyName:it="id",shouldUnregister:st}=et,[at,ot]=React.useState(rt._getFieldArray(nt)),lt=React.useRef(rt._getFieldArray(nt).map(generateId)),ut=React.useRef(at),dt=React.useRef(nt),bt=React.useRef(!1);dt.current=nt,ut.current=at,rt._names.array.add(nt),et.rules&&rt.register(nt,et.rules),useSubscribe({next:({values:Ft,name:Dt})=>{if(Dt===dt.current||!Dt){const zt=get(Ft,dt.current);Array.isArray(zt)&&(ot(zt),lt.current=zt.map(generateId))}},subject:rt._subjects.array});const gt=React.useCallback(Ft=>{bt.current=!0,rt._updateFieldArray(nt,Ft)},[rt,nt]),kt=(Ft,Dt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=appendAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,Ht.length-1,Dt),lt.current=appendAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,appendAt,{argA:fillEmptyArray(Ft)})},pt=(Ft,Dt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=prependAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,0,Dt),lt.current=prependAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,prependAt,{argA:fillEmptyArray(Ft)})},yt=Ft=>{const Dt=removeArrayAt(rt._getFieldArray(nt),Ft);lt.current=removeArrayAt(lt.current,Ft),gt(Dt),ot(Dt),rt._updateFieldArray(nt,Dt,removeArrayAt,{argA:Ft})},$t=(Ft,Dt,zt)=>{const Ht=convertToArrayPayload(cloneObject(Dt)),Wt=insert(rt._getFieldArray(nt),Ft,Ht);rt._names.focus=getFocusFieldName(nt,Ft,zt),lt.current=insert(lt.current,Ft,Ht.map(generateId)),gt(Wt),ot(Wt),rt._updateFieldArray(nt,Wt,insert,{argA:Ft,argB:fillEmptyArray(Dt)})},mt=(Ft,Dt)=>{const zt=rt._getFieldArray(nt);swapArrayAt(zt,Ft,Dt),swapArrayAt(lt.current,Ft,Dt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,swapArrayAt,{argA:Ft,argB:Dt},!1)},wt=(Ft,Dt)=>{const zt=rt._getFieldArray(nt);moveArrayAt(zt,Ft,Dt),moveArrayAt(lt.current,Ft,Dt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,moveArrayAt,{argA:Ft,argB:Dt},!1)},St=(Ft,Dt)=>{const zt=cloneObject(Dt),Ht=updateAt(rt._getFieldArray(nt),Ft,zt);lt.current=[...Ht].map((Wt,lr)=>!Wt||lr===Ft?generateId():lt.current[lr]),gt(Ht),ot([...Ht]),rt._updateFieldArray(nt,Ht,updateAt,{argA:Ft,argB:zt},!0,!1)},Bt=Ft=>{const Dt=convertToArrayPayload(cloneObject(Ft));lt.current=Dt.map(generateId),gt([...Dt]),ot([...Dt]),rt._updateFieldArray(nt,[...Dt],zt=>zt,{},!0,!1)};return React.useEffect(()=>{if(rt._state.action=!1,isWatched(nt,rt._names)&&rt._subjects.state.next({...rt._formState}),bt.current&&(!getValidationModes(rt._options.mode).isOnSubmit||rt._formState.isSubmitted))if(rt._options.resolver)rt._executeSchema([nt]).then(Ft=>{const Dt=get(Ft.errors,nt),zt=get(rt._formState.errors,nt);(zt?!Dt&&zt.type||Dt&&(zt.type!==Dt.type||zt.message!==Dt.message):Dt&&Dt.type)&&(Dt?set(rt._formState.errors,nt,Dt):unset(rt._formState.errors,nt),rt._subjects.state.next({errors:rt._formState.errors}))});else{const Ft=get(rt._fields,nt);Ft&&Ft._f&&validateField(Ft,rt._formValues,rt._options.criteriaMode===VALIDATION_MODE.all,rt._options.shouldUseNativeValidation,!0).then(Dt=>!isEmptyObject(Dt)&&rt._subjects.state.next({errors:updateFieldArrayRootError(rt._formState.errors,Dt,nt)}))}rt._subjects.values.next({name:nt,values:{...rt._formValues}}),rt._names.focus&&iterateFieldsByAction(rt._fields,(Ft,Dt)=>{if(rt._names.focus&&Dt.startsWith(rt._names.focus)&&Ft.focus)return Ft.focus(),1}),rt._names.focus="",rt._updateValid(),bt.current=!1},[at,nt,rt]),React.useEffect(()=>(!get(rt._formValues,nt)&&rt._updateFieldArray(nt),()=>{(rt._options.shouldUnregister||st)&&rt.unregister(nt)}),[nt,rt,it,st]),{swap:React.useCallback(mt,[gt,nt,rt]),move:React.useCallback(wt,[gt,nt,rt]),prepend:React.useCallback(pt,[gt,nt,rt]),append:React.useCallback(kt,[gt,nt,rt]),remove:React.useCallback(yt,[gt,nt,rt]),insert:React.useCallback($t,[gt,nt,rt]),update:React.useCallback(St,[gt,nt,rt]),replace:React.useCallback(Bt,[gt,nt,rt]),fields:React.useMemo(()=>at.map((Ft,Dt)=>({...Ft,[it]:lt.current[Dt]||generateId()})),[at,it])}}var createSubject=()=>{let et=[];return{get observers(){return et},next:it=>{for(const st of et)st.next&&st.next(it)},subscribe:it=>(et.push(it),{unsubscribe:()=>{et=et.filter(st=>st!==it)}}),unsubscribe:()=>{et=[]}}},isPrimitive=et=>isNullOrUndefined(et)||!isObjectType(et);function deepEqual(et,tt){if(isPrimitive(et)||isPrimitive(tt))return et===tt;if(isDateObject(et)&&isDateObject(tt))return et.getTime()===tt.getTime();const rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(const it of rt){const st=et[it];if(!nt.includes(it))return!1;if(it!=="ref"){const at=tt[it];if(isDateObject(st)&&isDateObject(at)||isObject(st)&&isObject(at)||Array.isArray(st)&&Array.isArray(at)?!deepEqual(st,at):st!==at)return!1}}return!0}var isMultipleSelect=et=>et.type==="select-multiple",isRadioOrCheckbox=et=>isRadioInput(et)||isCheckBoxInput(et),live=et=>isHTMLElement(et)&&et.isConnected,objectHasFunction=et=>{for(const tt in et)if(isFunction(et[tt]))return!0;return!1};function markFieldsDirty(et,tt={}){const rt=Array.isArray(et);if(isObject(et)||rt)for(const nt in et)Array.isArray(et[nt])||isObject(et[nt])&&!objectHasFunction(et[nt])?(tt[nt]=Array.isArray(et[nt])?[]:{},markFieldsDirty(et[nt],tt[nt])):isNullOrUndefined(et[nt])||(tt[nt]=!0);return tt}function getDirtyFieldsFromDefaultValues(et,tt,rt){const nt=Array.isArray(et);if(isObject(et)||nt)for(const it in et)Array.isArray(et[it])||isObject(et[it])&&!objectHasFunction(et[it])?isUndefined(tt)||isPrimitive(rt[it])?rt[it]=Array.isArray(et[it])?markFieldsDirty(et[it],[]):{...markFieldsDirty(et[it])}:getDirtyFieldsFromDefaultValues(et[it],isNullOrUndefined(tt)?{}:tt[it],rt[it]):rt[it]=!deepEqual(et[it],tt[it]);return rt}var getDirtyFields=(et,tt)=>getDirtyFieldsFromDefaultValues(et,tt,markFieldsDirty(tt)),getFieldValueAs=(et,{valueAsNumber:tt,valueAsDate:rt,setValueAs:nt})=>isUndefined(et)?et:tt?et===""?NaN:et&&+et:rt&&isString(et)?new Date(et):nt?nt(et):et;function getFieldValue(et){const tt=et.ref;if(!(et.refs?et.refs.every(rt=>rt.disabled):tt.disabled))return isFileInput(tt)?tt.files:isRadioInput(tt)?getRadioValue(et.refs).value:isMultipleSelect(tt)?[...tt.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(tt)?getCheckboxValue(et.refs).value:getFieldValueAs(isUndefined(tt.value)?et.ref.value:tt.value,et)}var getResolverOptions=(et,tt,rt,nt)=>{const it={};for(const st of et){const at=get(tt,st);at&&set(it,st,at._f)}return{criteriaMode:rt,names:[...et],fields:it,shouldUseNativeValidation:nt}},getRuleValue=et=>isUndefined(et)?et:isRegex(et)?et.source:isObject(et)?isRegex(et.value)?et.value.source:et.value:et,hasValidation=et=>et.mount&&(et.required||et.min||et.max||et.maxLength||et.minLength||et.pattern||et.validate);function schemaErrorLookup(et,tt,rt){const nt=get(et,rt);if(nt||isKey(rt))return{error:nt,name:rt};const it=rt.split(".");for(;it.length;){const st=it.join("."),at=get(tt,st),ot=get(et,st);if(at&&!Array.isArray(at)&&rt!==st)return{name:rt};if(ot&&ot.type)return{name:st,error:ot};it.pop()}return{name:rt}}var skipValidation=(et,tt,rt,nt,it)=>it.isOnAll?!1:!rt&&it.isOnTouch?!(tt||et):(rt?nt.isOnBlur:it.isOnBlur)?!et:(rt?nt.isOnChange:it.isOnChange)?et:!0,unsetEmptyArray=(et,tt)=>!compact(get(et,tt)).length&&unset(et,tt);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(et={},tt){let rt={...defaultOptions,...et},nt={submitCount:0,isDirty:!1,isLoading:isFunction(rt.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:rt.errors||{},disabled:!1},it={},st=isObject(rt.defaultValues)||isObject(rt.values)?cloneObject(rt.defaultValues||rt.values)||{}:{},at=rt.shouldUnregister?{}:cloneObject(st),ot={action:!1,mount:!1,watch:!1},lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ut,dt=0;const bt={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},gt={values:createSubject(),array:createSubject(),state:createSubject()},kt=et.resetOptions&&et.resetOptions.keepDirtyValues,pt=getValidationModes(rt.mode),yt=getValidationModes(rt.reValidateMode),$t=rt.criteriaMode===VALIDATION_MODE.all,mt=or=>xr=>{clearTimeout(dt),dt=setTimeout(or,xr)},wt=async or=>{if(bt.isValid||or){const xr=rt.resolver?isEmptyObject((await lr()).errors):await Ot(it,!0);xr!==nt.isValid&>.state.next({isValid:xr})}},St=or=>bt.isValidating&>.state.next({isValidating:or}),Bt=(or,xr=[],Pr,Or,rr=!0,gr=!0)=>{if(Or&&Pr){if(ot.action=!0,gr&&Array.isArray(get(it,or))){const Ir=Pr(get(it,or),Or.argA,Or.argB);rr&&set(it,or,Ir)}if(gr&&Array.isArray(get(nt.errors,or))){const Ir=Pr(get(nt.errors,or),Or.argA,Or.argB);rr&&set(nt.errors,or,Ir),unsetEmptyArray(nt.errors,or)}if(bt.touchedFields&&gr&&Array.isArray(get(nt.touchedFields,or))){const Ir=Pr(get(nt.touchedFields,or),Or.argA,Or.argB);rr&&set(nt.touchedFields,or,Ir)}bt.dirtyFields&&(nt.dirtyFields=getDirtyFields(st,at)),gt.state.next({name:or,isDirty:ht(or,xr),dirtyFields:nt.dirtyFields,errors:nt.errors,isValid:nt.isValid})}else set(at,or,xr)},Ft=(or,xr)=>{set(nt.errors,or,xr),gt.state.next({errors:nt.errors})},Dt=or=>{nt.errors=or,gt.state.next({errors:nt.errors,isValid:!1})},zt=(or,xr,Pr,Or)=>{const rr=get(it,or);if(rr){const gr=get(at,or,isUndefined(Pr)?get(st,or):Pr);isUndefined(gr)||Or&&Or.defaultChecked||xr?set(at,or,xr?gr:getFieldValue(rr._f)):Rt(or,gr),ot.mount&&wt()}},Ht=(or,xr,Pr,Or,rr)=>{let gr=!1,Ir=!1;const Yt={name:or},Ut=!!(get(it,or)&&get(it,or)._f.disabled);if(!Pr||Or){bt.isDirty&&(Ir=nt.isDirty,nt.isDirty=Yt.isDirty=ht(),gr=Ir!==Yt.isDirty);const Vt=Ut||deepEqual(get(st,or),xr);Ir=!!(!Ut&&get(nt.dirtyFields,or)),Vt||Ut?unset(nt.dirtyFields,or):set(nt.dirtyFields,or,!0),Yt.dirtyFields=nt.dirtyFields,gr=gr||bt.dirtyFields&&Ir!==!Vt}if(Pr){const Vt=get(nt.touchedFields,or);Vt||(set(nt.touchedFields,or,Pr),Yt.touchedFields=nt.touchedFields,gr=gr||bt.touchedFields&&Vt!==Pr)}return gr&&rr&>.state.next(Yt),gr?Yt:{}},Wt=(or,xr,Pr,Or)=>{const rr=get(nt.errors,or),gr=bt.isValid&&isBoolean(xr)&&nt.isValid!==xr;if(et.delayError&&Pr?(ut=mt(()=>Ft(or,Pr)),ut(et.delayError)):(clearTimeout(dt),ut=null,Pr?set(nt.errors,or,Pr):unset(nt.errors,or)),(Pr?!deepEqual(rr,Pr):rr)||!isEmptyObject(Or)||gr){const Ir={...Or,...gr&&isBoolean(xr)?{isValid:xr}:{},errors:nt.errors,name:or};nt={...nt,...Ir},gt.state.next(Ir)}St(!1)},lr=async or=>rt.resolver(at,rt.context,getResolverOptions(or||lt.mount,it,rt.criteriaMode,rt.shouldUseNativeValidation)),qt=async or=>{const{errors:xr}=await lr(or);if(or)for(const Pr of or){const Or=get(xr,Pr);Or?set(nt.errors,Pr,Or):unset(nt.errors,Pr)}else nt.errors=xr;return xr},Ot=async(or,xr,Pr={valid:!0})=>{for(const Or in or){const rr=or[Or];if(rr){const{_f:gr,...Ir}=rr;if(gr){const Yt=lt.array.has(gr.name),Ut=await validateField(rr,at,$t,rt.shouldUseNativeValidation&&!xr,Yt);if(Ut[gr.name]&&(Pr.valid=!1,xr))break;!xr&&(get(Ut,gr.name)?Yt?updateFieldArrayRootError(nt.errors,Ut,gr.name):set(nt.errors,gr.name,Ut[gr.name]):unset(nt.errors,gr.name))}Ir&&await Ot(Ir,xr,Pr)}}return Pr.valid},Mt=()=>{for(const or of lt.unMount){const xr=get(it,or);xr&&(xr._f.refs?xr._f.refs.every(Pr=>!live(Pr)):!live(xr._f.ref))&&Zt(or)}lt.unMount=new Set},ht=(or,xr)=>(or&&xr&&set(at,or,xr),!deepEqual(Lt(),st)),Et=(or,xr,Pr)=>generateWatchOutput(or,lt,{...ot.mount?at:isUndefined(xr)?st:isString(or)?{[or]:xr}:xr},Pr,xr),Tt=or=>compact(get(ot.mount?at:st,or,et.shouldUnregister?get(st,or,[]):[])),Rt=(or,xr,Pr={})=>{const Or=get(it,or);let rr=xr;if(Or){const gr=Or._f;gr&&(!gr.disabled&&set(at,or,getFieldValueAs(xr,gr)),rr=isHTMLElement(gr.ref)&&isNullOrUndefined(xr)?"":xr,isMultipleSelect(gr.ref)?[...gr.ref.options].forEach(Ir=>Ir.selected=rr.includes(Ir.value)):gr.refs?isCheckBoxInput(gr.ref)?gr.refs.length>1?gr.refs.forEach(Ir=>(!Ir.defaultChecked||!Ir.disabled)&&(Ir.checked=Array.isArray(rr)?!!rr.find(Yt=>Yt===Ir.value):rr===Ir.value)):gr.refs[0]&&(gr.refs[0].checked=!!rr):gr.refs.forEach(Ir=>Ir.checked=Ir.value===rr):isFileInput(gr.ref)?gr.ref.value="":(gr.ref.value=rr,gr.ref.type||gt.values.next({name:or,values:{...at}})))}(Pr.shouldDirty||Pr.shouldTouch)&&Ht(or,rr,Pr.shouldTouch,Pr.shouldDirty,!0),Pr.shouldValidate&&xt(or)},At=(or,xr,Pr)=>{for(const Or in xr){const rr=xr[Or],gr=`${or}.${Or}`,Ir=get(it,gr);(lt.array.has(or)||!isPrimitive(rr)||Ir&&!Ir._f)&&!isDateObject(rr)?At(gr,rr,Pr):Rt(gr,rr,Pr)}},Pt=(or,xr,Pr={})=>{const Or=get(it,or),rr=lt.array.has(or),gr=cloneObject(xr);set(at,or,gr),rr?(gt.array.next({name:or,values:{...at}}),(bt.isDirty||bt.dirtyFields)&&Pr.shouldDirty&>.state.next({name:or,dirtyFields:getDirtyFields(st,at),isDirty:ht(or,gr)})):Or&&!Or._f&&!isNullOrUndefined(gr)?At(or,gr,Pr):Rt(or,gr,Pr),isWatched(or,lt)&>.state.next({...nt}),gt.values.next({name:or,values:{...at}}),!ot.mount&&tt()},It=async or=>{const xr=or.target;let Pr=xr.name,Or=!0;const rr=get(it,Pr),gr=()=>xr.type?getFieldValue(rr._f):getEventValue(or),Ir=Yt=>{Or=Number.isNaN(Yt)||Yt===get(at,Pr,Yt)};if(rr){let Yt,Ut;const Vt=gr(),ir=or.type===EVENTS.BLUR||or.type===EVENTS.FOCUS_OUT,kr=!hasValidation(rr._f)&&!rt.resolver&&!get(nt.errors,Pr)&&!rr._f.deps||skipValidation(ir,get(nt.touchedFields,Pr),nt.isSubmitted,yt,pt),$r=isWatched(Pr,lt,ir);set(at,Pr,Vt),ir?(rr._f.onBlur&&rr._f.onBlur(or),ut&&ut(0)):rr._f.onChange&&rr._f.onChange(or);const Br=Ht(Pr,Vt,ir,!1),an=!isEmptyObject(Br)||$r;if(!ir&>.values.next({name:Pr,type:or.type,values:{...at}}),kr)return bt.isValid&&wt(),an&>.state.next({name:Pr,...$r?{}:Br});if(!ir&&$r&>.state.next({...nt}),St(!0),rt.resolver){const{errors:ln}=await lr([Pr]);if(Ir(Vt),Or){const rn=schemaErrorLookup(nt.errors,it,Pr),kn=schemaErrorLookup(ln,it,rn.name||Pr);Yt=kn.error,Pr=kn.name,Ut=isEmptyObject(ln)}}else Yt=(await validateField(rr,at,$t,rt.shouldUseNativeValidation))[Pr],Ir(Vt),Or&&(Yt?Ut=!1:bt.isValid&&(Ut=await Ot(it,!0)));Or&&(rr._f.deps&&xt(rr._f.deps),Wt(Pr,Ut,Yt,Br))}},Ct=(or,xr)=>{if(get(nt.errors,xr)&&or.focus)return or.focus(),1},xt=async(or,xr={})=>{let Pr,Or;const rr=convertToArrayPayload(or);if(St(!0),rt.resolver){const gr=await qt(isUndefined(or)?or:rr);Pr=isEmptyObject(gr),Or=or?!rr.some(Ir=>get(gr,Ir)):Pr}else or?(Or=(await Promise.all(rr.map(async gr=>{const Ir=get(it,gr);return await Ot(Ir&&Ir._f?{[gr]:Ir}:Ir)}))).every(Boolean),!(!Or&&!nt.isValid)&&wt()):Or=Pr=await Ot(it);return gt.state.next({...!isString(or)||bt.isValid&&Pr!==nt.isValid?{}:{name:or},...rt.resolver||!or?{isValid:Pr}:{},errors:nt.errors,isValidating:!1}),xr.shouldFocus&&!Or&&iterateFieldsByAction(it,Ct,or?rr:lt.mount),Or},Lt=or=>{const xr={...st,...ot.mount?at:{}};return isUndefined(or)?xr:isString(or)?get(xr,or):or.map(Pr=>get(xr,Pr))},tr=(or,xr)=>({invalid:!!get((xr||nt).errors,or),isDirty:!!get((xr||nt).dirtyFields,or),isTouched:!!get((xr||nt).touchedFields,or),error:get((xr||nt).errors,or)}),pr=or=>{or&&convertToArrayPayload(or).forEach(xr=>unset(nt.errors,xr)),gt.state.next({errors:or?nt.errors:{}})},Kt=(or,xr,Pr)=>{const Or=(get(it,or,{_f:{}})._f||{}).ref;set(nt.errors,or,{...xr,ref:Or}),gt.state.next({name:or,errors:nt.errors,isValid:!1}),Pr&&Pr.shouldFocus&&Or&&Or.focus&&Or.focus()},Qt=(or,xr)=>isFunction(or)?gt.values.subscribe({next:Pr=>or(Et(void 0,xr),Pr)}):Et(or,xr,!0),Zt=(or,xr={})=>{for(const Pr of or?convertToArrayPayload(or):lt.mount)lt.mount.delete(Pr),lt.array.delete(Pr),xr.keepValue||(unset(it,Pr),unset(at,Pr)),!xr.keepError&&unset(nt.errors,Pr),!xr.keepDirty&&unset(nt.dirtyFields,Pr),!xr.keepTouched&&unset(nt.touchedFields,Pr),!rt.shouldUnregister&&!xr.keepDefaultValue&&unset(st,Pr);gt.values.next({values:{...at}}),gt.state.next({...nt,...xr.keepDirty?{isDirty:ht()}:{}}),!xr.keepIsValid&&wt()},ur=({disabled:or,name:xr,field:Pr,fields:Or,value:rr})=>{if(isBoolean(or)){const gr=or?void 0:isUndefined(rr)?getFieldValue(Pr?Pr._f:get(Or,xr)._f):rr;set(at,xr,gr),Ht(xr,gr,!1,!1,!0)}},_r=(or,xr={})=>{let Pr=get(it,or);const Or=isBoolean(xr.disabled);return set(it,or,{...Pr||{},_f:{...Pr&&Pr._f?Pr._f:{ref:{name:or}},name:or,mount:!0,...xr}}),lt.mount.add(or),Pr?ur({field:Pr,disabled:xr.disabled,name:or,value:xr.value}):zt(or,!0,xr.value),{...Or?{disabled:xr.disabled}:{},...rt.progressive?{required:!!xr.required,min:getRuleValue(xr.min),max:getRuleValue(xr.max),minLength:getRuleValue(xr.minLength),maxLength:getRuleValue(xr.maxLength),pattern:getRuleValue(xr.pattern)}:{},name:or,onChange:It,onBlur:It,ref:rr=>{if(rr){_r(or,xr),Pr=get(it,or);const gr=isUndefined(rr.value)&&rr.querySelectorAll&&rr.querySelectorAll("input,select,textarea")[0]||rr,Ir=isRadioOrCheckbox(gr),Yt=Pr._f.refs||[];if(Ir?Yt.find(Ut=>Ut===gr):gr===Pr._f.ref)return;set(it,or,{_f:{...Pr._f,...Ir?{refs:[...Yt.filter(live),gr,...Array.isArray(get(st,or))?[{}]:[]],ref:{type:gr.type,name:or}}:{ref:gr}}}),zt(or,!1,void 0,gr)}else Pr=get(it,or,{}),Pr._f&&(Pr._f.mount=!1),(rt.shouldUnregister||xr.shouldUnregister)&&!(isNameInFieldArray(lt.array,or)&&ot.action)&<.unMount.add(or)}}},er=()=>rt.shouldFocusError&&iterateFieldsByAction(it,Ct,lt.mount),Jt=or=>{isBoolean(or)&&(gt.state.next({disabled:or}),iterateFieldsByAction(it,(xr,Pr)=>{let Or=or;const rr=get(it,Pr);rr&&isBoolean(rr._f.disabled)&&(Or||(Or=rr._f.disabled)),xr.disabled=Or},0,!1))},Ar=(or,xr)=>async Pr=>{Pr&&(Pr.preventDefault&&Pr.preventDefault(),Pr.persist&&Pr.persist());let Or=cloneObject(at);if(gt.state.next({isSubmitting:!0}),rt.resolver){const{errors:rr,values:gr}=await lr();nt.errors=rr,Or=gr}else await Ot(it);unset(nt.errors,"root"),isEmptyObject(nt.errors)?(gt.state.next({errors:{}}),await or(Or,Pr)):(xr&&await xr({...nt.errors},Pr),er(),setTimeout(er)),gt.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(nt.errors),submitCount:nt.submitCount+1,errors:nt.errors})},Er=(or,xr={})=>{get(it,or)&&(isUndefined(xr.defaultValue)?Pt(or,get(st,or)):(Pt(or,xr.defaultValue),set(st,or,xr.defaultValue)),xr.keepTouched||unset(nt.touchedFields,or),xr.keepDirty||(unset(nt.dirtyFields,or),nt.isDirty=xr.defaultValue?ht(or,get(st,or)):ht()),xr.keepError||(unset(nt.errors,or),bt.isValid&&wt()),gt.state.next({...nt}))},Dr=(or,xr={})=>{const Pr=or?cloneObject(or):st,Or=cloneObject(Pr),rr=or&&!isEmptyObject(or)?Or:st;if(xr.keepDefaultValues||(st=Pr),!xr.keepValues){if(xr.keepDirtyValues||kt)for(const gr of lt.mount)get(nt.dirtyFields,gr)?set(rr,gr,get(at,gr)):Pt(gr,get(rr,gr));else{if(isWeb&&isUndefined(or))for(const gr of lt.mount){const Ir=get(it,gr);if(Ir&&Ir._f){const Yt=Array.isArray(Ir._f.refs)?Ir._f.refs[0]:Ir._f.ref;if(isHTMLElement(Yt)){const Ut=Yt.closest("form");if(Ut){Ut.reset();break}}}}it={}}at=et.shouldUnregister?xr.keepDefaultValues?cloneObject(st):{}:cloneObject(rr),gt.array.next({values:{...rr}}),gt.values.next({values:{...rr}})}lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!ot.mount&&tt(),ot.mount=!bt.isValid||!!xr.keepIsValid,ot.watch=!!et.shouldUnregister,gt.state.next({submitCount:xr.keepSubmitCount?nt.submitCount:0,isDirty:xr.keepDirty?nt.isDirty:!!(xr.keepDefaultValues&&!deepEqual(or,st)),isSubmitted:xr.keepIsSubmitted?nt.isSubmitted:!1,dirtyFields:xr.keepDirtyValues?nt.dirtyFields:xr.keepDefaultValues&&or?getDirtyFields(st,or):{},touchedFields:xr.keepTouched?nt.touchedFields:{},errors:xr.keepErrors?nt.errors:{},isSubmitSuccessful:xr.keepIsSubmitSuccessful?nt.isSubmitSuccessful:!1,isSubmitting:!1})},Xr=(or,xr)=>Dr(isFunction(or)?or(at):or,xr);return{control:{register:_r,unregister:Zt,getFieldState:tr,handleSubmit:Ar,setError:Kt,_executeSchema:lr,_getWatch:Et,_getDirty:ht,_updateValid:wt,_removeUnmounted:Mt,_updateFieldArray:Bt,_updateDisabledField:ur,_getFieldArray:Tt,_reset:Dr,_resetDefaultValues:()=>isFunction(rt.defaultValues)&&rt.defaultValues().then(or=>{Xr(or,rt.resetOptions),gt.state.next({isLoading:!1})}),_updateFormState:or=>{nt={...nt,...or}},_disableForm:Jt,_subjects:gt,_proxyFormState:bt,_setErrors:Dt,get _fields(){return it},get _formValues(){return at},get _state(){return ot},set _state(or){ot=or},get _defaultValues(){return st},get _names(){return lt},set _names(or){lt=or},get _formState(){return nt},set _formState(or){nt=or},get _options(){return rt},set _options(or){rt={...rt,...or}}},trigger:xt,register:_r,handleSubmit:Ar,watch:Qt,setValue:Pt,getValues:Lt,reset:Xr,resetField:Er,clearErrors:pr,unregister:Zt,setError:Kt,setFocus:(or,xr={})=>{const Pr=get(it,or),Or=Pr&&Pr._f;if(Or){const rr=Or.refs?Or.refs[0]:Or.ref;rr.focus&&(rr.focus(),xr.shouldSelect&&rr.select())}},getFieldState:tr}}function useForm(et={}){const tt=React.useRef(),rt=React.useRef(),[nt,it]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(et.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:et.errors||{},disabled:!1,defaultValues:isFunction(et.defaultValues)?void 0:et.defaultValues});tt.current||(tt.current={...createFormControl(et,()=>it(at=>({...at}))),formState:nt});const st=tt.current.control;return st._options=et,useSubscribe({subject:st._subjects.state,next:at=>{shouldRenderFormState(at,st._proxyFormState,st._updateFormState,!0)&&it({...st._formState})}}),React.useEffect(()=>st._disableForm(et.disabled),[st,et.disabled]),React.useEffect(()=>{if(st._proxyFormState.isDirty){const at=st._getDirty();at!==nt.isDirty&&st._subjects.state.next({isDirty:at})}},[st,nt.isDirty]),React.useEffect(()=>{et.values&&!deepEqual(et.values,rt.current)?(st._reset(et.values,st._options.resetOptions),rt.current=et.values,it(at=>({...at}))):st._resetDefaultValues()},[et.values,st]),React.useEffect(()=>{et.errors&&st._setErrors(et.errors)},[et.errors,st]),React.useEffect(()=>{st._state.mount||(st._updateValid(),st._state.mount=!0),st._state.watch&&(st._state.watch=!1,st._subjects.state.next({...st._formState})),st._removeUnmounted()}),tt.current.formState=getProxyFormState(nt,st),tt.current}var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rttypeof et=="number"&&!isNaN(et),d$1=et=>typeof et=="string",u$1=et=>typeof et=="function",p$1=et=>d$1(et)||u$1(et)?et:null,m$1=et=>reactExports.isValidElement(et)||d$1(et)||u$1(et)||c$1(et);function f$1(et,tt,rt){rt===void 0&&(rt=300);const{scrollHeight:nt,style:it}=et;requestAnimationFrame(()=>{it.minHeight="initial",it.height=nt+"px",it.transition=`all ${rt}ms`,requestAnimationFrame(()=>{it.height="0",it.padding="0",it.margin="0",setTimeout(tt,rt)})})}function g$1(et){let{enter:tt,exit:rt,appendPosition:nt=!1,collapse:it=!0,collapseDuration:st=300}=et;return function(at){let{children:ot,position:lt,preventExitTransition:ut,done:dt,nodeRef:bt,isIn:gt,playToast:kt}=at;const pt=nt?`${tt}--${lt}`:tt,yt=nt?`${rt}--${lt}`:rt,$t=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const mt=bt.current,wt=pt.split(" "),St=Bt=>{Bt.target===bt.current&&(kt(),mt.removeEventListener("animationend",St),mt.removeEventListener("animationcancel",St),$t.current===0&&Bt.type!=="animationcancel"&&mt.classList.remove(...wt))};mt.classList.add(...wt),mt.addEventListener("animationend",St),mt.addEventListener("animationcancel",St)},[]),reactExports.useEffect(()=>{const mt=bt.current,wt=()=>{mt.removeEventListener("animationend",wt),it?f$1(mt,dt,st):dt()};gt||(ut?wt():($t.current=1,mt.className+=` ${yt}`,mt.addEventListener("animationend",wt)))},[gt]),React.createElement(React.Fragment,null,ot)}}function y(et,tt){return et!=null?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:tt}:{}}const v$2=new Map;let h$2=[];const T=new Set,E=et=>T.forEach(tt=>tt(et)),b$1=()=>v$2.size>0;function I(et,tt){var rt;if(tt)return!((rt=v$2.get(tt))==null||!rt.isToastActive(et));let nt=!1;return v$2.forEach(it=>{it.isToastActive(et)&&(nt=!0)}),nt}function _(et,tt){m$1(et)&&(b$1()||h$2.push({content:et,options:tt}),v$2.forEach(rt=>{rt.buildToast(et,tt)}))}function C(et,tt){v$2.forEach(rt=>{tt!=null&&tt!=null&&tt.containerId?(tt==null?void 0:tt.containerId)===rt.id&&rt.toggle(et,tt==null?void 0:tt.id):rt.toggle(et,tt==null?void 0:tt.id)})}function L(et){const{subscribe:tt,getSnapshot:rt,setProps:nt}=reactExports.useRef(function(st){const at=st.containerId||1;return{subscribe(ot){const lt=function(dt,bt,gt){let kt=1,pt=0,yt=[],$t=[],mt=[],wt=bt;const St=new Map,Bt=new Set,Ft=()=>{mt=Array.from(St.values()),Bt.forEach(Ht=>Ht())},Dt=Ht=>{$t=Ht==null?[]:$t.filter(Wt=>Wt!==Ht),Ft()},zt=Ht=>{const{toastId:Wt,onOpen:lr,updateId:qt,children:Ot}=Ht.props,Mt=qt==null;Ht.staleId&&St.delete(Ht.staleId),St.set(Wt,Ht),$t=[...$t,Ht.props.toastId].filter(ht=>ht!==Ht.staleId),Ft(),gt(y(Ht,Mt?"added":"updated")),Mt&&u$1(lr)&&lr(reactExports.isValidElement(Ot)&&Ot.props)};return{id:dt,props:wt,observe:Ht=>(Bt.add(Ht),()=>Bt.delete(Ht)),toggle:(Ht,Wt)=>{St.forEach(lr=>{Wt!=null&&Wt!==lr.props.toastId||u$1(lr.toggle)&&lr.toggle(Ht)})},removeToast:Dt,toasts:St,clearQueue:()=>{pt-=yt.length,yt=[]},buildToast:(Ht,Wt)=>{if((xt=>{let{containerId:Lt,toastId:tr,updateId:pr}=xt;const Kt=Lt?Lt!==dt:dt!==1,Qt=St.has(tr)&&pr==null;return Kt||Qt})(Wt))return;const{toastId:lr,updateId:qt,data:Ot,staleId:Mt,delay:ht}=Wt,Et=()=>{Dt(lr)},Tt=qt==null;Tt&&pt++;const Rt={...wt,style:wt.toastStyle,key:kt++,...Object.fromEntries(Object.entries(Wt).filter(xt=>{let[Lt,tr]=xt;return tr!=null})),toastId:lr,updateId:qt,data:Ot,closeToast:Et,isIn:!1,className:p$1(Wt.className||wt.toastClassName),bodyClassName:p$1(Wt.bodyClassName||wt.bodyClassName),progressClassName:p$1(Wt.progressClassName||wt.progressClassName),autoClose:!Wt.isLoading&&(At=Wt.autoClose,Pt=wt.autoClose,At===!1||c$1(At)&&At>0?At:Pt),deleteToast(){const xt=St.get(lr),{onClose:Lt,children:tr}=xt.props;u$1(Lt)&&Lt(reactExports.isValidElement(tr)&&tr.props),gt(y(xt,"removed")),St.delete(lr),pt--,pt<0&&(pt=0),yt.length>0?zt(yt.shift()):Ft()}};var At,Pt;Rt.closeButton=wt.closeButton,Wt.closeButton===!1||m$1(Wt.closeButton)?Rt.closeButton=Wt.closeButton:Wt.closeButton===!0&&(Rt.closeButton=!m$1(wt.closeButton)||wt.closeButton);let It=Ht;reactExports.isValidElement(Ht)&&!d$1(Ht.type)?It=reactExports.cloneElement(Ht,{closeToast:Et,toastProps:Rt,data:Ot}):u$1(Ht)&&(It=Ht({closeToast:Et,toastProps:Rt,data:Ot}));const Ct={content:It,props:Rt,staleId:Mt};wt.limit&&wt.limit>0&&pt>wt.limit&&Tt?yt.push(Ct):c$1(ht)?setTimeout(()=>{zt(Ct)},ht):zt(Ct)},setProps(Ht){wt=Ht},setToggle:(Ht,Wt)=>{St.get(Ht).toggle=Wt},isToastActive:Ht=>$t.some(Wt=>Wt===Ht),getSnapshot:()=>wt.newestOnTop?mt.reverse():mt}}(at,st,E);v$2.set(at,lt);const ut=lt.observe(ot);return h$2.forEach(dt=>_(dt.content,dt.options)),h$2=[],()=>{ut(),v$2.delete(at)}},setProps(ot){var lt;(lt=v$2.get(at))==null||lt.setProps(ot)},getSnapshot(){var ot;return(ot=v$2.get(at))==null?void 0:ot.getSnapshot()}}}(et)).current;nt(et);const it=reactExports.useSyncExternalStore(tt,rt,rt);return{getToastToRender:function(st){if(!it)return[];const at=new Map;return it.forEach(ot=>{const{position:lt}=ot.props;at.has(lt)||at.set(lt,[]),at.get(lt).push(ot)}),Array.from(at,ot=>st(ot[0],ot[1]))},isToastActive:I,count:it==null?void 0:it.length}}function N(et){const[tt,rt]=reactExports.useState(!1),[nt,it]=reactExports.useState(!1),st=reactExports.useRef(null),at=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:ot,pauseOnHover:lt,closeToast:ut,onClick:dt,closeOnClick:bt}=et;var gt,kt;function pt(){rt(!0)}function yt(){rt(!1)}function $t(St){const Bt=st.current;at.canDrag&&Bt&&(at.didMove=!0,tt&&yt(),at.delta=et.draggableDirection==="x"?St.clientX-at.start:St.clientY-at.start,at.start!==St.clientX&&(at.canCloseOnClick=!1),Bt.style.transform=`translate3d(${et.draggableDirection==="x"?`${at.delta}px, var(--y)`:`0, calc(${at.delta}px + var(--y))`},0)`,Bt.style.opacity=""+(1-Math.abs(at.delta/at.removalDistance)))}function mt(){document.removeEventListener("pointermove",$t),document.removeEventListener("pointerup",mt);const St=st.current;if(at.canDrag&&at.didMove&&St){if(at.canDrag=!1,Math.abs(at.delta)>at.removalDistance)return it(!0),et.closeToast(),void et.collapseAll();St.style.transition="transform 0.2s, opacity 0.2s",St.style.removeProperty("transform"),St.style.removeProperty("opacity")}}(kt=v$2.get((gt={id:et.toastId,containerId:et.containerId,fn:rt}).containerId||1))==null||kt.setToggle(gt.id,gt.fn),reactExports.useEffect(()=>{if(et.pauseOnFocusLoss)return document.hasFocus()||yt(),window.addEventListener("focus",pt),window.addEventListener("blur",yt),()=>{window.removeEventListener("focus",pt),window.removeEventListener("blur",yt)}},[et.pauseOnFocusLoss]);const wt={onPointerDown:function(St){if(et.draggable===!0||et.draggable===St.pointerType){at.didMove=!1,document.addEventListener("pointermove",$t),document.addEventListener("pointerup",mt);const Bt=st.current;at.canCloseOnClick=!0,at.canDrag=!0,Bt.style.transition="none",et.draggableDirection==="x"?(at.start=St.clientX,at.removalDistance=Bt.offsetWidth*(et.draggablePercent/100)):(at.start=St.clientY,at.removalDistance=Bt.offsetHeight*(et.draggablePercent===80?1.5*et.draggablePercent:et.draggablePercent)/100)}},onPointerUp:function(St){const{top:Bt,bottom:Ft,left:Dt,right:zt}=st.current.getBoundingClientRect();St.nativeEvent.type!=="touchend"&&et.pauseOnHover&&St.clientX>=Dt&&St.clientX<=zt&&St.clientY>=Bt&&St.clientY<=Ft?yt():pt()}};return ot&<&&(wt.onMouseEnter=yt,et.stacked||(wt.onMouseLeave=pt)),bt&&(wt.onClick=St=>{dt&&dt(St),at.canCloseOnClick&&ut()}),{playToast:pt,pauseToast:yt,isRunning:tt,preventExitTransition:nt,toastRef:st,eventHandlers:wt}}function $(et){let{delay:tt,isRunning:rt,closeToast:nt,type:it="default",hide:st,className:at,style:ot,controlledProgress:lt,progress:ut,rtl:dt,isIn:bt,theme:gt}=et;const kt=st||lt&&ut===0,pt={...ot,animationDuration:`${tt}ms`,animationPlayState:rt?"running":"paused"};lt&&(pt.transform=`scaleX(${ut})`);const yt=clsx$1("Toastify__progress-bar",lt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${gt}`,`Toastify__progress-bar--${it}`,{"Toastify__progress-bar--rtl":dt}),$t=u$1(at)?at({rtl:dt,type:it,defaultClassName:yt}):clsx$1(yt,at),mt={[lt&&ut>=1?"onTransitionEnd":"onAnimationEnd"]:lt&&ut<1?null:()=>{bt&&nt()}};return React.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":kt},React.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${gt} Toastify__progress-bar--${it}`}),React.createElement("div",{role:"progressbar","aria-hidden":kt?"true":"false","aria-label":"notification timer",className:$t,style:pt,...mt}))}let w$1=1;const k$1=()=>""+w$1++;function P$1(et){return et&&(d$1(et.toastId)||c$1(et.toastId))?et.toastId:k$1()}function M(et,tt){return _(et,tt),tt.toastId}function x(et,tt){return{...tt,type:tt&&tt.type||et,toastId:P$1(tt)}}function A(et){return(tt,rt)=>M(tt,x(et,rt))}function B(et,tt){return M(et,x("default",tt))}B.loading=(et,tt)=>M(et,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...tt})),B.promise=function(et,tt,rt){let nt,{pending:it,error:st,success:at}=tt;it&&(nt=d$1(it)?B.loading(it,rt):B.loading(it.render,{...rt,...it}));const ot={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},lt=(dt,bt,gt)=>{if(bt==null)return void B.dismiss(nt);const kt={type:dt,...ot,...rt,data:gt},pt=d$1(bt)?{render:bt}:bt;return nt?B.update(nt,{...kt,...pt}):B(pt.render,{...kt,...pt}),gt},ut=u$1(et)?et():et;return ut.then(dt=>lt("success",at,dt)).catch(dt=>lt("error",st,dt)),ut},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(et,tt)=>M(et,x("default",{theme:"dark",...tt})),B.dismiss=function(et){(function(tt){var rt;if(b$1()){if(tt==null||d$1(rt=tt)||c$1(rt))v$2.forEach(it=>{it.removeToast(tt)});else if(tt&&("containerId"in tt||"id"in tt)){var nt;(nt=v$2.get(tt.containerId))!=null&&nt.removeToast(tt.id)||v$2.forEach(it=>{it.removeToast(tt.id)})}}else h$2=h$2.filter(it=>tt!=null&&it.options.toastId!==tt)})(et)},B.clearWaitingQueue=function(et){et===void 0&&(et={}),v$2.forEach(tt=>{!tt.props.limit||et.containerId&&tt.id!==et.containerId||tt.clearQueue()})},B.isActive=I,B.update=function(et,tt){tt===void 0&&(tt={});const rt=((nt,it)=>{var st;let{containerId:at}=it;return(st=v$2.get(at||1))==null?void 0:st.toasts.get(nt)})(et,tt);if(rt){const{props:nt,content:it}=rt,st={delay:100,...nt,...tt,toastId:tt.toastId||et,updateId:k$1()};st.toastId!==et&&(st.staleId=et);const at=st.render||it;delete st.render,M(at,st)}},B.done=et=>{B.update(et,{progress:1})},B.onChange=function(et){return T.add(et),()=>{T.delete(et)}},B.play=et=>C(!0,et),B.pause=et=>C(!1,et);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=et=>{let{theme:tt,type:rt,isLoading:nt,...it}=et;return React.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:tt==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...it})},z={info:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(et){return React.createElement(D,{...et},React.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return React.createElement("div",{className:"Toastify__spinner"})}},R=et=>{const{isRunning:tt,preventExitTransition:rt,toastRef:nt,eventHandlers:it,playToast:st}=N(et),{closeButton:at,children:ot,autoClose:lt,onClick:ut,type:dt,hideProgressBar:bt,closeToast:gt,transition:kt,position:pt,className:yt,style:$t,bodyClassName:mt,bodyStyle:wt,progressClassName:St,progressStyle:Bt,updateId:Ft,role:Dt,progress:zt,rtl:Ht,toastId:Wt,deleteToast:lr,isIn:qt,isLoading:Ot,closeOnClick:Mt,theme:ht}=et,Et=clsx$1("Toastify__toast",`Toastify__toast-theme--${ht}`,`Toastify__toast--${dt}`,{"Toastify__toast--rtl":Ht},{"Toastify__toast--close-on-click":Mt}),Tt=u$1(yt)?yt({rtl:Ht,position:pt,type:dt,defaultClassName:Et}):clsx$1(Et,yt),Rt=function(Ct){let{theme:xt,type:Lt,isLoading:tr,icon:pr}=Ct,Kt=null;const Qt={theme:xt,type:Lt};return pr===!1||(u$1(pr)?Kt=pr({...Qt,isLoading:tr}):reactExports.isValidElement(pr)?Kt=reactExports.cloneElement(pr,Qt):tr?Kt=z.spinner():(Zt=>Zt in z)(Lt)&&(Kt=z[Lt](Qt))),Kt}(et),At=!!zt||!lt,Pt={closeToast:gt,type:dt,theme:ht};let It=null;return at===!1||(It=u$1(at)?at(Pt):reactExports.isValidElement(at)?reactExports.cloneElement(at,Pt):function(Ct){let{closeToast:xt,theme:Lt,ariaLabel:tr="close"}=Ct;return React.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Lt}`,type:"button",onClick:pr=>{pr.stopPropagation(),xt(pr)},"aria-label":tr},React.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Pt)),React.createElement(kt,{isIn:qt,done:lr,position:pt,preventExitTransition:rt,nodeRef:nt,playToast:st},React.createElement("div",{id:Wt,onClick:ut,"data-in":qt,className:Tt,...it,style:$t,ref:nt},React.createElement("div",{...qt&&{role:Dt},className:u$1(mt)?mt({type:dt}):clsx$1("Toastify__toast-body",mt),style:wt},Rt!=null&&React.createElement("div",{className:clsx$1("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ot})},Rt),React.createElement("div",null,ot)),It,React.createElement($,{...Ft&&!At?{key:`pb-${Ft}`}:{},rtl:Ht,theme:ht,delay:lt,isRunning:tt,isIn:qt,closeToast:gt,hide:bt,type:dt,style:Bt,className:St,controlledProgress:At,progress:zt||0})))},S=function(et,tt){return tt===void 0&&(tt=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:tt}},H=g$1(S("bounce",!0));g$1(S("slide",!0));g$1(S("zoom"));g$1(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(et){let tt={...q,...et};const rt=et.stacked,[nt,it]=reactExports.useState(!0),st=reactExports.useRef(null),{getToastToRender:at,isToastActive:ot,count:lt}=L(tt),{className:ut,style:dt,rtl:bt,containerId:gt}=tt;function kt(yt){const $t=clsx$1("Toastify__toast-container",`Toastify__toast-container--${yt}`,{"Toastify__toast-container--rtl":bt});return u$1(ut)?ut({position:yt,rtl:bt,defaultClassName:$t}):clsx$1($t,p$1(ut))}function pt(){rt&&(it(!0),B.play())}return O(()=>{if(rt){var yt;const $t=st.current.querySelectorAll('[data-in="true"]'),mt=12,wt=(yt=tt.position)==null?void 0:yt.includes("top");let St=0,Bt=0;Array.from($t).reverse().forEach((Ft,Dt)=>{const zt=Ft;zt.classList.add("Toastify__toast--stacked"),Dt>0&&(zt.dataset.collapsed=`${nt}`),zt.dataset.pos||(zt.dataset.pos=wt?"top":"bot");const Ht=St*(nt?.2:1)+(nt?0:mt*Dt);zt.style.setProperty("--y",`${wt?Ht:-1*Ht}px`),zt.style.setProperty("--g",`${mt}`),zt.style.setProperty("--s",""+(1-(nt?Bt:0))),St+=zt.offsetHeight,Bt+=.025})}},[nt,lt,rt]),React.createElement("div",{ref:st,className:"Toastify",id:gt,onMouseEnter:()=>{rt&&(it(!1),B.pause())},onMouseLeave:pt},at((yt,$t)=>{const mt=$t.length?{...dt}:{...dt,pointerEvents:"none"};return React.createElement("div",{className:kt(yt),style:mt,key:`container-${yt}`},$t.map(wt=>{let{content:St,props:Bt}=wt;return React.createElement(R,{...Bt,stacked:rt,collapseAll:pt,isIn:ot(Bt.toastId,Bt.containerId),style:Bt.style,key:`toast-${Bt.key}`},St)}))}))}const ReactToastify="",StyledDiv=styled$3.div` + display: Flex; + justify-content: center; + align-items: center; + gap: 5px; +`,SuccessNotify=et=>{const tt=et||"Success",rt="uniqueToastId";B.isActive(rt)||B.success(jsxRuntimeExports.jsxs(StyledDiv,{children:[jsxRuntimeExports.jsx(MdCheckCircle,{color:colors.white,fontSize:24}),tt]}),{toastId:rt,autoClose:5e3,icon:!1,closeButton:!1})},defaultData$5={addNodeModalData:null,currentModals:{budgetExplanation:!1,sourcesTable:!1,addItem:!1,addType:!1,addContent:!1,editTopic:!1,addEdge:!1,addSource:!1,settings:!1,mergeTopic:!1,briefDescription:!1,editNodeName:!1,removeNode:!1,mergeToNode:!1,removeNodeType:!1,addEdgeToNode:!1,blueprintGraph:!1,changeNodeType:!1,feedback:!1,createBounty:!1,onboardingFlow:!1}},useModalStore=create(et=>({...defaultData$5,close:tt=>{et(rt=>({addNodeModalData:null,currentModals:{...rt.currentModals,[tt]:!1}}))},open:tt=>{et(rt=>({currentModals:{...rt.currentModals,[tt]:!0}}))}})),useModal=et=>{const{open:tt,close:rt,currentModals:nt}=useModalStore();return{close:()=>rt(et),open:()=>tt(et),visible:nt[et]}},ClearIcon=et=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("g",{id:"Property 1=press",children:jsxRuntimeExports.jsx("path",{id:"close",d:"M16 17.2833L11.5083 21.775C11.3403 21.943 11.1264 22.0271 10.8667 22.0271C10.6069 22.0271 10.393 21.943 10.225 21.775C10.0569 21.6069 9.9729 21.393 9.9729 21.1333C9.9729 20.8736 10.0569 20.6597 10.225 20.4917L14.7167 16L10.225 11.5083C10.0569 11.3403 9.9729 11.1264 9.9729 10.8667C9.9729 10.6069 10.0569 10.393 10.225 10.225C10.393 10.0569 10.6069 9.9729 10.8667 9.9729C11.1264 9.9729 11.3403 10.0569 11.5083 10.225L16 14.7167L20.4917 10.225C20.6597 10.0569 20.8736 9.9729 21.1333 9.9729C21.393 9.9729 21.6069 10.0569 21.775 10.225C21.943 10.393 22.0271 10.6069 22.0271 10.8667C22.0271 11.1264 21.943 11.3403 21.775 11.5083L17.2833 16L21.775 20.4917C21.943 20.6597 22.0271 20.8736 22.0271 21.1333C22.0271 21.393 21.943 21.6069 21.775 21.775C21.6069 21.943 21.393 22.0271 21.1333 22.0271C20.8736 22.0271 20.6597 21.943 20.4917 21.775L16 17.2833Z",fill:"currentColor"})})}),scaleAnimation=Ue` + 0% { + transform: scale(0.8); + } + + 100% { + transform: scale(1); + } +`,getModalKindStyles=({kind:et="regular"})=>{switch(et){case"small":return Ce` + width: 370px; + `;case"large":return Ce` + width: 709px; + `;case"full":return Ce` + width: 100%; + height: 100%; + `;default:return Ce` + width: 520px; + `}},ModalContainer=styled$3(Flex)` + z-index: 2000; + margin: 0 auto; + animation: ${scaleAnimation} 0.2s ease-in-out; + position: relative; + max-width: 100%; + overflow: visible; + background: ${colors}; + ${getModalKindStyles}; + + @media (max-width: 1024px) { + height: auto; + max-height: 80%; + } + + @media (max-width: 768px) { + height: auto; + max-height: 80%; + } + + @media (max-width: 480px) { + height: auto; + max-height: 80%; + } +`,fadeAnimation=Ue` + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +`,Bg=styled$3(Flex)` + position: fixed; + width: 100%; + height: 100vh; + left: 0; + right: 0; + bottom: 0; + top: 0; + transition: all; + z-index: 1500; + animation: ${fadeAnimation} 0.2s ease-in-out; + padding: 1rem; + + ${({hideBg:et})=>!et&&Ce` + background-color: ${colors.modalWhiteOverlayBg}; + `} +`,CloseButton=styled$3(Flex)` + position: absolute; + top: 16px; + right: 16px; + font-size: 20px; + color: ${colors.GRAY6}; + cursor: pointer; + z-index: 1; +`,BaseModal=({background:et="modalBg",children:tt,id:rt,hideBg:nt,kind:it,preventOutsideClose:st,noWrap:at=!1,onClose:ot})=>{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=bt=>{bt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getTotalProcessing=async()=>{const et="/node/content";return await api$1.get(et)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,mt=yt.selectionEnd;return{start:$t,end:mt,length:mt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(mt,wt,St){St===void 0&&(St=wt),mt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),bt=e.useCallback(function(){at.current=lt()},[lt]),gt=(rt=bt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=gt[0],pt=gt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(bt,gt){var kt=g(bt),pt=e.useRef(gt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(bt){var gt=bt.value,kt=bt.selection;dt(gt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!gt?"":bt=st?dt:gt?ot?ot[bt]:"":lt[bt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),bt=ot&&dt?nt===ot[dt]:null,gt=rt.slice(0,it);return!lt&&ut||(rt=gt+(lt?nt:at[it])),lt||ut||bt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(bt,gt){return tt.insertCharacterAtPosition(bt,gt,bt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(bt,gt){return tt.isPositionEditable(it+gt)}).reduce(function(bt,gt){var kt=tt.getRightEditablePosition(bt.length);return kt===null?bt:(tt.isPositionEditable(bt.length)||(bt+=at.slice(bt.length,kt).join("")),tt.insertCharacterAtPosition(bt,gt,bt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,bt=nt.selection,gt=lt,kt="",pt=0,yt=0,$t=Math.min(bt.start,ut.start);return ut.end>bt.start?(kt=gt.slice(bt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?bt.length:0):gt.length=st.length?$t=st.length:$t=at.length&&$tcolors[et]}; + background: transparent; + border: none; + color: ${({colorName:et})=>colors[et]}; + cursor: ${({disabled:et})=>et?"default":"text"}; + margin: 0; + opacity: ${({disabled:et})=>et?.5:1}; + outline: 0; + padding: 0; + text-align: ${({textAlign:et})=>et}; + + &:focus { + border: none; + box-shadow: none; + outline: none; + } + + &[type='number'] { + appearance: textfield; + -webkit-appearance: textfield; + + &::-webkit-outer-spin-button, + &::-webkit-inner-spin-button { + appearance: none; + -webkit-appearance: none; + } + } + + &::placeholder { + -webkit-text-fill-color: ${({placeholderTextColor:et})=>colors[et]}; + color: ${({placeholderTextColor:et})=>colors[et]}; + } +`;WebTextInput.displayName="WebTextInput";const BaseTextInput=reactExports.forwardRef(({autoComplete:et=defaultProps.autoComplete,autoFocus:tt,className:rt,colorName:nt=defaultProps.colorName,dataTestId:it,defaultValue:st,disabled:at=defaultProps.disabled,id:ot,maxLength:lt=defaultProps.maxLength,name:ut,onBlur:dt,onChange:bt,onFocus:gt,onKeyDown:kt,placeholder:pt=defaultProps.placeholder,placeholderTextColor:yt=defaultProps.placeholderTextColor,textAlign:$t=defaultProps.textAlign,type:mt=defaultProps.type,value:wt},St)=>{const Bt=reactExports.useCallback(Ft=>{bt&&bt(Ft.target.value)},[bt]);return jsxRuntimeExports.jsx(WebTextInput,{ref:St,autoComplete:et,autoFocus:tt,className:rt,colorName:nt,"data-testid":it,defaultValue:st,disabled:at,id:ot,maxLength:lt,name:ut,onBlur:dt,onChange:Bt,onFocus:gt,onKeyDown:kt,placeholder:pt,placeholderTextColor:yt,spellCheck:!1,textAlign:$t,type:mt,value:wt})});BaseTextInput.displayName="BaseTextInput";const InfoIcon=et=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"info",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_2682_970)",children:jsxRuntimeExports.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})}),getBorderColor=et=>et.hasError?colors.primaryRed:et.hasContent||et.isFocused||et.isHovered?colors.primaryBlue:"transparent",Wrapper$1=styled$3(Flex)` + background: ${colors.inputBg2}; + border-radius: 8px; + border: 1px solid ${getBorderColor}; + padding: 12px 8px; +`,QuestionIcon=styled$3(Flex)` + cursor: default; + margin: 0 0 6px 6px; + position: relative; + color: ${colors.placeholderText}; + + .tooltip { + position: absolute; + background-color: ${colors.dashboardHeader}; + border: 1px solid ${colors.secondaryText4}; + border-radius: 4px; + color: ${colors.white}; + top: 22px; + padding: 4px 8px; + font-size: 13px; + visibility: hidden; + width: auto; + white-space: nowrap; + z-index: 1; + } + + ${et=>et.name==="endTime"&&` + .tooltip { + left: -68px; + } + `} + + &:hover .tooltip { + visibility: visible; + } + + &:focus .tooltip { + visibility: visible; + } +`,Label=styled$3.label` + color: ${colors.lightGray}; + font-size: 12px; + font-weight: 600; + margin-bottom: 6px; +`,StyledTextArea=styled$3.textarea` + width: 100%; + height: 100px; + border: none; + background: transparent; + color: ${colors.white}; + font-size: 14px; + font-weight: 400; + resize: none; + font-family: 'Barlow'; + white-space: pre-wrap; + overflow-wrap: break-word; + box-sizing: border-box; + outline: none; + line-height: 20px; + letter-spacing: 0.01em; + text-align: left; +`,TextInput=({id:et,dataTestId:tt,label:rt,mask:nt="",message:it,name:st,rules:at,showMask:ot=!1,maskPlaceholder:lt=null,isTextArea:ut=!1,placeholder:dt="",maxLength:bt,...gt})=>{const{register:kt,control:pt,formState:{errors:yt},getValues:$t}=useFormContext()||{},mt=get(yt,st),wt=$t(st),[St,Bt]=reactExports.useState(!1),[Ft,Dt]=reactExports.useState(!1);return reactExports.useEffect(()=>{const zt=document.getElementById(et);zt&&zt.focus()},[et]),jsxRuntimeExports.jsxs(Flex,{shrink:1,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",children:[rt&&jsxRuntimeExports.jsx(Label,{htmlFor:et,children:rt}),it&&jsxRuntimeExports.jsxs(QuestionIcon,{name:st,role:"tooltip",children:[jsxRuntimeExports.jsx(InfoIcon,{}),jsxRuntimeExports.jsx("div",{className:"tooltip",children:it})]})]}),jsxRuntimeExports.jsx(Wrapper$1,{hasContent:!!wt,hasError:!!mt,isFocused:St,isHovered:Ft,onMouseEnter:()=>Dt(!0),onMouseLeave:()=>Dt(!1),children:jsxRuntimeExports.jsx(Controller,{control:pt,...kt(st),render:({field:{onBlur:zt,onChange:Ht,value:Wt,ref:lr}})=>{const{disabled:qt=defaultProps.disabled,textAlign:Ot=defaultProps.textAlign}=gt;return ut?jsxRuntimeExports.jsx(StyledTextArea,{ref:lr,"data-testid":tt,disabled:qt,id:et,maxLength:bt,onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,value:Wt||""}):nt?jsxRuntimeExports.jsx(InputMask,{alwaysShowMask:ot,disabled:!1,inputRef:lr,mask:nt,...kt(st),maskPlaceholder:lt,onBlur:zt,onChange:Ht,value:Wt,children:jsxRuntimeExports.jsx(WebTextInput,{colorName:"white","data-testid":tt,disabled:qt,...kt(st),id:et,onBlur:()=>Bt(!1),onFocus:()=>Bt(!0),placeholderTextColor:"inputPlaceholder",textAlign:Ot})}):jsxRuntimeExports.jsx(BaseTextInput,{...gt,colorName:"white",dataTestId:tt,id:et,...kt(st),onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,placeholderTextColor:"inputPlaceholder",value:Wt||""})},rules:at})}),mt&&jsxRuntimeExports.jsx(Flex,{pl:4,pt:8,shrink:1,tabIndex:0,children:jsxRuntimeExports.jsx(Text,{color:"primaryRed",kind:"regularBold",children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",shrink:1,children:[jsxRuntimeExports.jsx(MdError,{fontSize:18}),jsxRuntimeExports.jsx(Flex,{pl:4,shrink:1,children:mt.message!==""?mt.message:"Please enter a valid URL"})]})})})]})},GraphDetailsStep=({onSubmit:et,error:tt})=>{const{formState:{isSubmitting:rt},watch:nt}=useFormContext(),it=nt("title"),st=nt("description"),at=!!(it!=null&&it.trim())&&!!(st!=null&&st.trim());return reactExports.useEffect(()=>{const ot=document.getElementById("graph-title");ot&&ot.focus()},[]),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",justify:"space-between",children:[jsxRuntimeExports.jsx(StyledText$1,{children:"Welcome to SecondBrain"}),jsxRuntimeExports.jsx(StyledSubText,{children:"Set a name and short description for your graph."})]}),jsxRuntimeExports.jsx(StyledWrapper,{children:jsxRuntimeExports.jsxs(Flex,{className:"input__wrapper",children:[jsxRuntimeExports.jsx(TextInput,{id:"graph-title",label:"Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}}),jsxRuntimeExports.jsx(TextInput,{id:"graph-description",label:"Description",maxLength:100,name:"description",placeholder:"Type graph description here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}})]})}),jsxRuntimeExports.jsx(Flex,{mt:10,children:jsxRuntimeExports.jsx(Button$1,{color:"secondary",disabled:rt||!!tt||!at,onClick:et,size:"large",variant:"contained",children:"Confirm"})}),tt?jsxRuntimeExports.jsx(StyledError,{children:jsxRuntimeExports.jsxs(StyledErrorText,{children:[jsxRuntimeExports.jsx(MdError,{className:"errorIcon"}),jsxRuntimeExports.jsx("span",{children:tt})]})}):null]})},StyledText$1=styled$3(Text)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 10px; +`,StyledSubText=styled$3(Text)` + font-size: 14px; + font-family: 'Barlow'; + margin-bottom: 20px; +`,StyledWrapper=styled$3(Flex)` + width: 100%; + display: flex; + justify-content: center; + gap: 10px; + margin: 0 0 15px 0; + + .input__wrapper { + display: flex; + gap: 23px; + max-height: 225px; + overflow-y: auto; + padding-right: 20px; + width: calc(100% + 20px); + } +`,StyledErrorText=styled$3(Flex)` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 2px; + + .errorIcon { + display: block; + font-size: 13px; + min-height: 13px; + min-width: 13px; + } + + span { + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; + white-space: normal; + letter-spacing: 0.2px; + padding-left: 4px; + font-size: 13px; + font-family: Barlow; + line-height: 18px; + } +`,StyledError=styled$3(Flex)` + display: flex; + align-items: center; + color: ${colors.primaryRed}; + position: relative; + margin-top: 20px; +`,OnboardingModal=()=>{const{close:et,visible:tt}=useModal("onboardingFlow"),rt=useForm({mode:"onChange"}),{reset:nt}=rt,[it,st]=reactExports.useState("");reactExports.useEffect(()=>{tt||(nt(),st(""))},[tt,nt]);const at=async(lt,ut,dt)=>{try{(await postAboutData(lt)).status==="success"&&(SuccessNotify("Graph details saved"),ut())}catch(bt){let gt=NODE_ADD_ERROR;if((bt==null?void 0:bt.status)===400){const kt=await bt.json();gt=kt.errorCode||(kt==null?void 0:kt.status)||NODE_ADD_ERROR}else bt instanceof Error&&(gt=bt.message);dt(String(gt))}},ot=rt.handleSubmit(async lt=>{await at(lt,()=>{et()},st)});return jsxRuntimeExports.jsx(BaseModal,{id:"onboardingFlow",kind:"small",onClose:et,preventOutsideClose:!0,children:jsxRuntimeExports.jsx(FormProvider,{...rt,children:jsxRuntimeExports.jsx("form",{id:"onboardingFlow-form",onSubmit:ot,children:jsxRuntimeExports.jsx(GraphDetailsStep,{error:it,onSubmit:ot})})})})},index$1=Object.freeze(Object.defineProperty({__proto__:null,OnboardingModal},Symbol.toStringTag,{value:"Module"}));async function getIsAdmin(){return api$1.get("/isAdmin")}const trackedConnections=new Map,getTrackedConnectionState=et=>{const tt=trackedConnections.get(et);return tt?Object.fromEntries(Object.entries(tt.stores).map(([rt,nt])=>[rt,nt.getState()])):{}},extractConnectionInformation=(et,tt,rt)=>{if(et===void 0)return{type:"untracked",connection:tt.connect(rt)};const nt=trackedConnections.get(rt.name);if(nt)return{type:"tracked",store:et,...nt};const it={connection:tt.connect(rt),stores:{}};return trackedConnections.set(rt.name,it),{type:"tracked",store:et,...it}},devtoolsImpl=(et,tt={})=>(rt,nt,it)=>{const{enabled:st,anonymousActionType:at,store:ot,...lt}=tt;let ut;try{ut=(st??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!ut)return et(rt,nt,it);const{connection:dt,...bt}=extractConnectionInformation(ot,ut,lt);let gt=!0;it.setState=(yt,$t,mt)=>{const wt=rt(yt,$t);if(!gt)return wt;const St=mt===void 0?{type:at||"anonymous"}:typeof mt=="string"?{type:mt}:mt;return ot===void 0?(dt==null||dt.send(St,nt()),wt):(dt==null||dt.send({...St,type:`${ot}/${St.type}`},{...getTrackedConnectionState(lt.name),[ot]:it.getState()}),wt)};const kt=(...yt)=>{const $t=gt;gt=!1,rt(...yt),gt=$t},pt=et(it.setState,nt,it);if(bt.type==="untracked"?dt==null||dt.init(pt):(bt.stores[bt.store]=it,dt==null||dt.init(Object.fromEntries(Object.entries(bt.stores).map(([yt,$t])=>[yt,yt===bt.store?pt:$t.getState()])))),it.dispatchFromDevtools&&typeof it.dispatch=="function"){let yt=!1;const $t=it.dispatch;it.dispatch=(...mt)=>{$t(...mt)}}return dt.subscribe(yt=>{var $t;switch(yt.type){case"ACTION":if(typeof yt.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return parseJsonThen(yt.payload,mt=>{if(mt.type==="__setState"){if(ot===void 0){kt(mt.state);return}Object.keys(mt.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt)=>{try{return await api$1.get(`/prediction/graph/edges/${et}?skip=${tt}&limit=5&sort_by="edge_count&include_properties=true&includeContent=true"`)}catch(rt){return console.error(rt),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$4,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$3,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),deduplicateByRefId=et=>{const tt=new Map;return et.forEach(rt=>{tt.has(rt.ref_id)||tt.set(rt.ref_id,rt)}),Array.from(tt.values())},defaultData$2={categoryFilter:null,dataInitial:null,currentPage:0,itemsPerPage:300,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"date_added_to_graph",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:""};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ft,Dt,zt,Ht;const{dataInitial:st,filters:at}=tt(),ot=at.skip,lt=at.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState();let kt={ai_summary:String(!!it)};it||et(ot?{isLoadingNew:!0}:{isFetching:!0}),it&&(kt={...kt,ai_summary:String(!0)},bt({question:it,answerLoading:!0})),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=at,wt=it||ut,St=lodashExports.isEqual(at,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{}};try{const Wt=await fetchGraphData(rt,Bt,St,yt,nt);if(!(Wt!=null&&Wt.nodes))return;if((Ft=Wt==null?void 0:Wt.query_data)!=null&&Ft.ref_id){useAiSummaryStore.setState({aiRefId:(Dt=Wt==null?void 0:Wt.query_data)==null?void 0:Dt.ref_id});const{aiSummaryAnswers:xt}=useAiSummaryStore.getState(),{answer:Lt}=xt[(zt=Wt==null?void 0:Wt.query_data)==null?void 0:zt.ref_id]||{};dt((Ht=Wt==null?void 0:Wt.query_data)==null?void 0:Ht.ref_id,{question:it,answer:Lt||"",answerLoading:!Lt,sourcesLoading:!Lt,shouldRender:!0}),bt(null)}const lr=ot===0&&!gt?[]:[...(st==null?void 0:st.nodes)||[]],qt=ot===0&&!gt?[]:[...(st==null?void 0:st.links)||[]],Ot=((Wt==null?void 0:Wt.nodes)||[]).filter(xt=>!lr.some(Lt=>Lt.ref_id===xt.ref_id));lr.push(...Ot);const Mt=((Wt==null?void 0:Wt.edges)||[]).filter(xt=>!qt.some(Lt=>Lt.ref_id===xt.ref_id)).filter(xt=>{const{target:Lt,source:tr}=xt;return lr.some(pr=>pr.ref_id===Lt)&&lr.some(pr=>pr.ref_id===tr)});qt.push(...Mt);const ht=[...new Set(lr.map(xt=>xt.node_type))],Et=["all",...ht.map(xt=>xt.toLowerCase())],Tt=Et.map(xt=>({name:xt,count:lr.filter(Lt=>{var tr;return xt==="all"||((tr=Lt.node_type)==null?void 0:tr.toLowerCase())===xt}).length})),Rt=1,At=4,Pt=Math.min(...lr.map(xt=>xt.edge_count)),It=Math.max(...lr.map(xt=>xt.edge_count)),Ct=lr.map(xt=>{const{edge_count:Lt}=xt,pr=Math.round(((Lt||1)-Pt)/(It-Pt)*(At-Rt)+Rt);return{...xt,scale:pr}});et({dataInitial:{nodes:Ct,links:qt},dataNew:{nodes:Ot,links:Mt},isFetching:!1,isLoadingNew:!1,splashDataLoading:!1,nodeTypes:ht,sidebarFilters:Et,sidebarFilterCounts:Tt})}catch(Wt){console.log(Wt),Wt!=="abort"&&et({isLoadingNew:!1,isFetching:!1})}},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData()},resetData:()=>{et({dataNew:{nodes:[],links:[]},dataInitial:{nodes:[],links:[]},nodeTypes:[]})},setPage:rt=>et({currentPage:rt}),nextPage:()=>{const{filters:rt,fetchData:nt}=tt();et({filters:{...rt,skip:rt.skip+1}}),nt()},resetDataNew:()=>null,setFilters:rt=>{et(nt=>({filters:{...nt.filters,...rt,skip:0}})),tt().fetchData(tt().setBudget,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{console.log(rt)},addNewNode:rt=>{const{dataInitial:nt,filters:it}=tt();if(!(rt!=null&&rt.nodes))return;const st=it.node_type.length?rt.nodes.filter(St=>it.node_type.some(Bt=>Bt===St.node_type)):rt.nodes,at=deduplicateByRefId(st||[]),ot=deduplicateByRefId(rt.edges||[]),lt=nt!=null&&nt.nodes?[...nt.nodes]:[],ut=nt!=null&&nt.links?[...nt.links]:[],dt=new Set(lt.map(St=>St.ref_id)),bt=new Set(ut.map(St=>St.ref_id)),gt=at.filter(St=>!dt.has(St.ref_id)),kt=[...lt,...gt];gt.forEach(St=>dt.add(St.ref_id));const pt=ot.filter(St=>!bt.has(St.ref_id)).filter(St=>{const{source:Bt,target:Ft}=St;return dt.has(Bt)&&dt.has(Ft)}),yt=[...ut,...pt],$t=[...new Set(kt.map(St=>St.node_type))],mt=["all",...$t.map(St=>St.toLowerCase())],wt=mt.map(St=>({name:St,count:kt.filter(Bt=>{var Ft;return St==="all"||((Ft=Bt.node_type)==null?void 0:Ft.toLowerCase())===St}).length}));et({dataInitial:{nodes:kt,links:yt},dataNew:{nodes:gt,links:pt},nodeTypes:$t,sidebarFilters:mt,sidebarFilterCounts:wt})},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` + height: 16px; + display: flex; + justify-content: space-between; + align-items: center; + + .loading { + color: var(--Main-bottom-icons, #909baa); + font-family: Barlow; + font-size: 15px; + font-style: normal; + font-weight: 500; + line-height: normal; + letter-spacing: 1.5px; + text-transform: uppercase; + margin-left: 4px; + } + + .value-wrapper { + position: relative; + height: 18px; + + .value { + position: absolute; + top: -50%; + left: 50%; + transform: translate(-50%, 50%); + opacity: 0; + transition: opacity 0.4s ease-in-out, visibility 0.2s ease-in-out; + + &.show { + opacity: 1; + visibility: visible; + } + } + + color: var(--Text-2, #fff); + font-family: Barlow; + font-size: 15px; + font-style: normal; + font-weight: 500; + line-height: normal; + } + + .label-wrapper { + height: 0; + overflow: hidden; + transition: height 0.5s linear; + align-items: flex-end; + gap: 10px; + + &.show { + height: 18px; + } + + .label { + width: 104px; + } + + color: var(--Text-2, #fff); + font-family: Barlow; + font-size: 15px; + font-style: normal; + font-weight: 500; + line-height: normal; + } +`;var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(et,tt){module.exports=tt()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(tt){_useWebWorker=!!tt},getWebWorker=function(){return _useWebWorker},setLocationHref=function(tt){locationHref=tt},getLocationHref=function(){return locationHref};function createTag(et){return document.createElement(et)}function extendPrototype(et,tt){var rt,nt=et.length,it;for(rt=0;rt1?rt[1]=1:rt[1]<=0&&(rt[1]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addBrightnessToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[2]+=tt,rt[2]>1?rt[2]=1:rt[2]<0&&(rt[2]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addHueToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[0]+=tt/360,rt[0]>1?rt[0]-=1:rt[0]<0&&(rt[0]+=1),HSVtoRGB(rt[0],rt[1],rt[2])}var rgbToHex=function(){var et=[],tt,rt;for(tt=0;tt<256;tt+=1)rt=tt.toString(16),et[tt]=rt.length===1?"0"+rt:rt;return function(nt,it,st){return nt<0&&(nt=0),it<0&&(it=0),st<0&&(st=0),"#"+et[nt]+et[it]+et[st]}}(),setSubframeEnabled=function(tt){subframeEnabled=!!tt},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(tt){expressionsPlugin=tt},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(tt){expressionsInterfaces=tt},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(tt){defaultCurveSegments=tt},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(tt){idPrefix$1=tt};function createNS(et){return document.createElementNS(svgNS,et)}function _typeof$5(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(rt){return typeof rt}:_typeof$5=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$5(et)}var dataManager=function(){var et=1,tt=[],rt,nt,it={onmessage:function(){},postMessage:function(kt){rt({data:kt})}},st={postMessage:function(kt){it.onmessage({data:kt})}};function at(gt){if(window.Worker&&window.Blob&&getWebWorker()){var kt=new Blob(["var _workerSelf = self; self.onmessage = ",gt.toString()],{type:"text/javascript"}),pt=URL.createObjectURL(kt);return new Worker(pt)}return rt=gt,it}function ot(){nt||(nt=at(function(kt){function pt(){function $t(Et,Tt){var Rt,At,Pt=Et.length,It,Ct,xt,Lt;for(At=0;At=0;Tt-=1)if(Et[Tt].ty==="sh")if(Et[Tt].ks.k.i)Ft(Et[Tt].ks.k);else for(Pt=Et[Tt].ks.k.length,At=0;AtRt[0]?!0:Rt[0]>Et[0]?!1:Et[1]>Rt[1]?!0:Rt[1]>Et[1]?!1:Et[2]>Rt[2]?!0:Rt[2]>Et[2]?!1:null}var zt=function(){var Et=[4,4,14];function Tt(At){var Pt=At.t.d;At.t.d={k:[{s:Pt,t:0}]}}function Rt(At){var Pt,It=At.length;for(Pt=0;Pt=0;Pt-=1)if(At[Pt].ty==="sh")if(At[Pt].ks.k.i)At[Pt].ks.k.c=At[Pt].closed;else for(xt=At[Pt].ks.k.length,Ct=0;Ct500)&&(this._imageLoaded(),clearInterval(St)),wt+=1}).bind(this),50)}function st(mt){var wt=nt(mt,this.assetsPath,this.path),St=createNS("image");isSafari?this.testImageLoaded(St):St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.setAttributeNS("http://www.w3.org/1999/xlink","href",wt),this._elementHelper.append?this._elementHelper.append(St):this._elementHelper.appendChild(St);var Bt={img:St,assetData:mt};return Bt}function at(mt){var wt=nt(mt,this.assetsPath,this.path),St=createTag("img");St.crossOrigin="anonymous",St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.src=wt;var Bt={img:St,assetData:mt};return Bt}function ot(mt){var wt={assetData:mt},St=nt(mt,this.assetsPath,this.path);return dataManager.loadData(St,(function(Bt){wt.img=Bt,this._footageLoaded()}).bind(this),(function(){wt.img={},this._footageLoaded()}).bind(this)),wt}function lt(mt,wt){this.imagesLoadedCb=wt;var St,Bt=mt.length;for(St=0;Stthis.animationData.op&&(this.animationData.op=et.op,this.totalFrames=Math.floor(et.op-this.animationData.ip));var tt=this.animationData.layers,rt,nt=tt.length,it=et.layers,st,at=it.length;for(st=0;stthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(et){this.triggerRenderFrameError(et)}},AnimationItem.prototype.play=function(et){et&&this.name!==et||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(et){et&&this.name!==et||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(et){et&&this.name!==et||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(et){et&&this.name!==et||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(et){for(var tt,rt=0;rt=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(tt>this.totalFrames?tt%this.totalFrames:0)||(rt=!0,tt=this.totalFrames-1):tt>=this.totalFrames?(this.playCount+=1,this.checkSegments(tt%this.totalFrames)||(this.setCurrentRawFrameValue(tt%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(tt):tt<0?this.checkSegments(tt%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+tt%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(rt=!0,tt=0)):this.setCurrentRawFrameValue(tt),rt&&(this.setCurrentRawFrameValue(tt),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(et,tt){this.playCount=0,et[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=et[0]-et[1],this.timeCompleted=this.totalFrames,this.firstFrame=et[1],this.setCurrentRawFrameValue(this.totalFrames-.001-tt)):et[1]>et[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=et[1]-et[0],this.timeCompleted=this.totalFrames,this.firstFrame=et[0],this.setCurrentRawFrameValue(.001+tt)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(et,tt){var rt=-1;this.isPaused&&(this.currentRawFrame+this.firstFramett&&(rt=tt-et)),this.firstFrame=et,this.totalFrames=tt-et,this.timeCompleted=this.totalFrames,rt!==-1&&this.goToAndStop(rt,!0)},AnimationItem.prototype.playSegments=function(et,tt){if(tt&&(this.segments.length=0),_typeof$4(et[0])==="object"){var rt,nt=et.length;for(rt=0;rt=0;Rt-=1)tt[Rt].animation.destroy(Tt)}function Ht(Tt,Rt,At){var Pt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),It,Ct=Pt.length;for(It=0;It0?Bt=Ht:St=Ht;while(Math.abs(zt)>st&&++Wt=it?$t(St,qt,Bt,Ft):Ot===0?qt:yt(St,zt,zt+lt,Bt,Ft)}},et}(),pooling=function(){function et(tt){return tt.concat(createSizedArray(tt.length))}return{double:et}}(),poolFactory=function(){return function(et,tt,rt){var nt=0,it=et,st=createSizedArray(it),at={newElement:ot,release:lt};function ot(){var ut;return nt?(nt-=1,ut=st[nt]):ut=tt(),ut}function lt(ut){nt===it&&(st=pooling.double(st),it*=2),rt&&rt(ut),st[nt]=ut,nt+=1}return at}}(),bezierLengthPool=function(){function et(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,et)}(),segmentsLengthPool=function(){function et(){return{lengths:[],totalLength:0}}function tt(rt){var nt,it=rt.lengths.length;for(nt=0;nt-.001&&wt<.001}function rt(gt,kt,pt,yt,$t,mt,wt,St,Bt){if(pt===0&&mt===0&&Bt===0)return tt(gt,kt,yt,$t,wt,St);var Ft=et.sqrt(et.pow(yt-gt,2)+et.pow($t-kt,2)+et.pow(mt-pt,2)),Dt=et.sqrt(et.pow(wt-gt,2)+et.pow(St-kt,2)+et.pow(Bt-pt,2)),zt=et.sqrt(et.pow(wt-yt,2)+et.pow(St-$t,2)+et.pow(Bt-mt,2)),Ht;return Ft>Dt?Ft>zt?Ht=Ft-Dt-zt:Ht=zt-Dt-Ft:zt>Dt?Ht=zt-Dt-Ft:Ht=Dt-Ft-zt,Ht>-1e-4&&Ht<1e-4}var nt=function(){return function(gt,kt,pt,yt){var $t=getDefaultCurveSegments(),mt,wt,St,Bt,Ft,Dt=0,zt,Ht=[],Wt=[],lr=bezierLengthPool.newElement();for(St=pt.length,mt=0;mt<$t;mt+=1){for(Ft=mt/($t-1),zt=0,wt=0;wtwt?-1:1,Ft=!0;Ft;)if(yt[mt]<=wt&&yt[mt+1]>wt?(St=(wt-yt[mt])/(yt[mt+1]-yt[mt]),Ft=!1):mt+=Bt,mt<0||mt>=$t-1){if(mt===$t-1)return pt[mt];Ft=!1}return pt[mt]+(pt[mt+1]-pt[mt])*St}function ut(gt,kt,pt,yt,$t,mt){var wt=lt($t,mt),St=1-wt,Bt=et.round((St*St*St*gt[0]+(wt*St*St+St*wt*St+St*St*wt)*pt[0]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[0]+wt*wt*wt*kt[0])*1e3)/1e3,Ft=et.round((St*St*St*gt[1]+(wt*St*St+St*wt*St+St*St*wt)*pt[1]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[1]+wt*wt*wt*kt[1])*1e3)/1e3;return[Bt,Ft]}var dt=createTypedArray("float32",8);function bt(gt,kt,pt,yt,$t,mt,wt){$t<0?$t=0:$t>1&&($t=1);var St=lt($t,wt);mt=mt>1?1:mt;var Bt=lt(mt,wt),Ft,Dt=gt.length,zt=1-St,Ht=1-Bt,Wt=zt*zt*zt,lr=St*zt*zt*3,qt=St*St*zt*3,Ot=St*St*St,Mt=zt*zt*Ht,ht=St*zt*Ht+zt*St*Ht+zt*zt*Bt,Et=St*St*Ht+zt*St*Bt+St*zt*Bt,Tt=St*St*Bt,Rt=zt*Ht*Ht,At=St*Ht*Ht+zt*Bt*Ht+zt*Ht*Bt,Pt=St*Bt*Ht+zt*Bt*Bt+St*Ht*Bt,It=St*Bt*Bt,Ct=Ht*Ht*Ht,xt=Bt*Ht*Ht+Ht*Bt*Ht+Ht*Ht*Bt,Lt=Bt*Bt*Ht+Ht*Bt*Bt+Bt*Ht*Bt,tr=Bt*Bt*Bt;for(Ft=0;Ft=ut.t-rt){lt.h&&(lt=ut),it=0;break}if(ut.t-rt>et){it=st;break}st=mt||et=mt?Bt.points.length-1:0;for(gt=Bt.points[Ft].point.length,bt=0;bt=Ht&&Dt=mt)nt[0]=St[0],nt[1]=St[1],nt[2]=St[2];else if(et<=wt)nt[0]=lt.s[0],nt[1]=lt.s[1],nt[2]=lt.s[2];else{var ht=createQuaternion(lt.s),Et=createQuaternion(St),Tt=(et-wt)/(mt-wt);quaternionToEuler(nt,slerp(ht,Et,Tt))}else for(st=0;st=mt?kt=1:et1e-6?(gt=Math.acos(kt),pt=Math.sin(gt),yt=Math.sin((1-rt)*gt)/pt,$t=Math.sin(rt*gt)/pt):(yt=1-rt,$t=rt),nt[0]=yt*it+$t*lt,nt[1]=yt*st+$t*ut,nt[2]=yt*at+$t*dt,nt[3]=yt*ot+$t*bt,nt}function quaternionToEuler(et,tt){var rt=tt[0],nt=tt[1],it=tt[2],st=tt[3],at=Math.atan2(2*nt*st-2*rt*it,1-2*nt*nt-2*it*it),ot=Math.asin(2*rt*nt+2*it*st),lt=Math.atan2(2*rt*st-2*nt*it,1-2*rt*rt-2*it*it);et[0]=at/degToRads,et[1]=ot/degToRads,et[2]=lt/degToRads}function createQuaternion(et){var tt=et[0]*degToRads,rt=et[1]*degToRads,nt=et[2]*degToRads,it=Math.cos(tt/2),st=Math.cos(rt/2),at=Math.cos(nt/2),ot=Math.sin(tt/2),lt=Math.sin(rt/2),ut=Math.sin(nt/2),dt=it*st*at-ot*lt*ut,bt=ot*lt*at+it*st*ut,gt=ot*st*at+it*lt*ut,kt=it*lt*at-ot*st*ut;return[bt,gt,kt,dt]}function getValueAtCurrentTime(){var et=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,rt=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(et===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=rt&&et>=rt||this._caching.lastFrame=et&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var nt=this.interpolateValue(et,this._caching);this.pv=nt}return this._caching.lastFrame=et,this.pv}function setVValue(et){var tt;if(this.propType==="unidimensional")tt=et*this.mult,mathAbs(this.v-tt)>1e-5&&(this.v=tt,this._mdf=!0);else for(var rt=0,nt=this.v.length;rt1e-5&&(this.v[rt]=tt,this._mdf=!0),rt+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var et,tt=this.effectsSequence.length,rt=this.kf?this.pv:this.data.k;for(et=0;et=this._maxLength&&this.doubleArrayLength(),rt){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[];break}(!st[nt]||st[nt]&&!it)&&(st[nt]=pointPool.newElement()),st[nt][0]=et,st[nt][1]=tt},ShapePath.prototype.setTripleAt=function(et,tt,rt,nt,it,st,at,ot){this.setXYAt(et,tt,"v",at,ot),this.setXYAt(rt,nt,"o",at,ot),this.setXYAt(it,st,"i",at,ot)},ShapePath.prototype.reverse=function(){var et=new ShapePath;et.setPathData(this.c,this._length);var tt=this.v,rt=this.o,nt=this.i,it=0;this.c&&(et.setTripleAt(tt[0][0],tt[0][1],nt[0][0],nt[0][1],rt[0][0],rt[0][1],0,!1),it=1);var st=this._length-1,at=this._length,ot;for(ot=it;ot=ht[ht.length-1].t-this.offsetTime)Ft=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],zt=!0;else{for(var Et=Bt,Tt=ht.length-1,Rt=!0,At,Pt,It;Rt&&(At=ht[Et],Pt=ht[Et+1],!(Pt.t-this.offsetTime>mt));)Et=Pt.t-this.offsetTime)Ot=1;else if(mtSt&&mt>St)||(this._caching.lastIndex=Bt0||At>-1e-6&&At<0?nt(At*Pt)/Pt:At}function Rt(){var At=this.props,Pt=Tt(At[0]),It=Tt(At[1]),Ct=Tt(At[4]),xt=Tt(At[5]),Lt=Tt(At[12]),tr=Tt(At[13]);return"matrix("+Pt+","+It+","+Ct+","+xt+","+Lt+","+tr+")"}return function(){this.reset=it,this.rotate=st,this.rotateX=at,this.rotateY=ot,this.rotateZ=lt,this.skew=dt,this.skewFromAxis=bt,this.shear=ut,this.scale=gt,this.setTransform=kt,this.translate=pt,this.transform=yt,this.multiply=$t,this.applyToPoint=Ft,this.applyToX=Dt,this.applyToY=zt,this.applyToZ=Ht,this.applyToPointArray=Mt,this.applyToTriplePoints=Ot,this.applyToPointStringified=ht,this.toCSS=Et,this.to2dCSS=Rt,this.clone=St,this.cloneFromProps=Bt,this.equals=wt,this.inversePoints=qt,this.inversePoint=lr,this.getInverseMatrix=Wt,this._t=this.transform,this.isIdentity=mt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(rt){return typeof rt}:_typeof$3=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$3(et)}var lottie={};function setLocation(et){setLocationHref(et)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(et){setSubframeEnabled(et)}function setPrefix(et){setIdPrefix(et)}function loadAnimation(et){return animationManager.loadAnimation(et)}function setQuality(et){if(typeof et=="string")switch(et){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(et)&&et>1&&setDefaultCurveSegments(et)}function inBrowser(){return typeof navigator<"u"}function installPlugin(et,tt){et==="expressions"&&setExpressionsPlugin(tt)}function getFactory(et){switch(et){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(et){for(var tt=queryString.split("&"),rt=0;rt=1?st.push({s:et-1,e:tt-1}):(st.push({s:et,e:1}),st.push({s:0,e:tt-1}));var at=[],ot,lt=st.length,ut;for(ot=0;otnt+rt)){var dt,bt;ut.s*it<=nt?dt=0:dt=(ut.s*it-nt)/rt,ut.e*it>=nt+rt?bt=1:bt=(ut.e*it-nt)/rt,at.push([dt,bt])}return at.length||at.push([0,0]),at},TrimModifier.prototype.releasePathsData=function(et){var tt,rt=et.length;for(tt=0;tt1?tt=1+nt:this.s.v<0?tt=0+nt:tt=this.s.v+nt,this.e.v>1?rt=1+nt:this.e.v<0?rt=0+nt:rt=this.e.v+nt,tt>rt){var it=tt;tt=rt,rt=it}tt=Math.round(tt*1e4)*1e-4,rt=Math.round(rt*1e4)*1e-4,this.sValue=tt,this.eValue=rt}else tt=this.sValue,rt=this.eValue;var st,at,ot=this.shapes.length,lt,ut,dt,bt,gt,kt=0;if(rt===tt)for(at=0;at=0;at-=1)if(yt=this.shapes[at],yt.shape._mdf){for($t=yt.localShapeCollection,$t.releaseShapes(),this.m===2&&ot>1?(Bt=this.calculateShapeEdges(tt,rt,yt.totalShapeLength,St,kt),St+=yt.totalShapeLength):Bt=[[mt,wt]],ut=Bt.length,lt=0;lt=1?pt.push({s:yt.totalShapeLength*(mt-1),e:yt.totalShapeLength*(wt-1)}):(pt.push({s:yt.totalShapeLength*mt,e:yt.totalShapeLength}),pt.push({s:0,e:yt.totalShapeLength*(wt-1)}));var Ft=this.addShapes(yt,pt[0]);if(pt[0].s!==pt[0].e){if(pt.length>1){var Dt=yt.shape.paths.shapes[yt.shape.paths._length-1];if(Dt.c){var zt=Ft.pop();this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1],zt)}else this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1])}this.addPaths(Ft,$t)}}yt.shape.paths=$t}}},TrimModifier.prototype.addPaths=function(et,tt){var rt,nt=et.length;for(rt=0;rttt.e){rt.c=!1;break}else tt.s<=ut&&tt.e>=ut+dt.addedLength?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[ot],it[st].v[ot],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[ot],it[st].o[ot-1],it[st].i[ot],(tt.s-ut)/dt.addedLength,(tt.e-ut)/dt.addedLength,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1),ut+=dt.addedLength,bt+=1;if(it[st].c&>.length){if(dt=gt[ot-1],ut<=tt.e){var mt=gt[ot-1].addedLength;tt.s<=ut&&tt.e>=ut+mt?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[0],it[st].v[0],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[0],it[st].o[ot-1],it[st].i[0],(tt.s-ut)/mt,(tt.e-ut)/mt,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1)}else rt.c=!1;ut+=dt.addedLength,bt+=1}if(rt._length&&(rt.setXYAt(rt.v[yt][0],rt.v[yt][1],"i",yt),rt.setXYAt(rt.v[rt._length-1][0],rt.v[rt._length-1][1],"o",rt._length-1)),ut>tt.e)break;st=this.p.keyframes[this.p.keyframes.length-1].t?(dt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ut,0),bt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ut,0)):(dt=this.p.pv,bt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ut,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){dt=[],bt=[];var gt=this.px,kt=this.py;gt._caching.lastFrame+gt.offsetTime<=gt.keyframes[0].t?(dt[0]=gt.getValueAtTime((gt.keyframes[0].t+.01)/ut,0),dt[1]=kt.getValueAtTime((kt.keyframes[0].t+.01)/ut,0),bt[0]=gt.getValueAtTime(gt.keyframes[0].t/ut,0),bt[1]=kt.getValueAtTime(kt.keyframes[0].t/ut,0)):gt._caching.lastFrame+gt.offsetTime>=gt.keyframes[gt.keyframes.length-1].t?(dt[0]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/ut,0),dt[1]=kt.getValueAtTime(kt.keyframes[kt.keyframes.length-1].t/ut,0),bt[0]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/ut,0),bt[1]=kt.getValueAtTime((kt.keyframes[kt.keyframes.length-1].t-.01)/ut,0)):(dt=[gt.pv,kt.pv],bt[0]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/ut,gt.offsetTime),bt[1]=kt.getValueAtTime((kt._caching.lastFrame+kt.offsetTime-.01)/ut,kt.offsetTime))}else bt=et,dt=bt;this.v.rotate(-Math.atan2(dt[1]-bt[1],dt[0]-bt[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function nt(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function it(){}function st(lt){this._addDynamicProperty(lt),this.elem.addDynamicProperty(lt),this._isDirty=!0}function at(lt,ut,dt){if(this.elem=lt,this.frameId=-1,this.propType="transform",this.data=ut,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(dt||lt),ut.p&&ut.p.s?(this.px=PropertyFactory.getProp(lt,ut.p.x,0,0,this),this.py=PropertyFactory.getProp(lt,ut.p.y,0,0,this),ut.p.z&&(this.pz=PropertyFactory.getProp(lt,ut.p.z,0,0,this))):this.p=PropertyFactory.getProp(lt,ut.p||{k:[0,0,0]},1,0,this),ut.rx){if(this.rx=PropertyFactory.getProp(lt,ut.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(lt,ut.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(lt,ut.rz,0,degToRads,this),ut.or.k[0].ti){var bt,gt=ut.or.k.length;for(bt=0;bt0;)rt-=1,this._elements.unshift(tt[rt]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(et){var tt,rt=et.length;for(tt=0;tt0?Math.floor(gt):Math.ceil(gt),yt=this.pMatrix.props,$t=this.rMatrix.props,mt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var wt=0;if(gt>0){for(;wtpt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),wt-=1;kt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-kt,!0),wt-=kt)}nt=this.data.m===1?0:this._currentCopies-1,it=this.data.m===1?1:-1,st=this._currentCopies;for(var St,Bt;st;){if(tt=this.elemsData[nt].it,rt=tt[tt.length-1].transform.mProps.v.props,Bt=rt.length,tt[tt.length-1].transform.mProps._mdf=!0,tt[tt.length-1].transform.op._mdf=!0,tt[tt.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(nt/(this._currentCopies-1)),wt!==0){for((nt!==0&&it===1||nt!==this._currentCopies-1&&it===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],$t[8],$t[9],$t[10],$t[11],$t[12],$t[13],$t[14],$t[15]),this.matrix.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),St=0;St0&&nt<1?[tt]:[]:[tt-nt,tt+nt].filter(function(it){return it>0&&it<1})},PolynomialBezier.prototype.split=function(et){if(et<=0)return[singlePoint(this.points[0]),this];if(et>=1)return[this,singlePoint(this.points[this.points.length-1])];var tt=lerpPoint(this.points[0],this.points[1],et),rt=lerpPoint(this.points[1],this.points[2],et),nt=lerpPoint(this.points[2],this.points[3],et),it=lerpPoint(tt,rt,et),st=lerpPoint(rt,nt,et),at=lerpPoint(it,st,et);return[new PolynomialBezier(this.points[0],tt,it,at,!0),new PolynomialBezier(at,st,nt,this.points[3],!0)]};function extrema(et,tt){var rt=et.points[0][tt],nt=et.points[et.points.length-1][tt];if(rt>nt){var it=nt;nt=rt,rt=it}for(var st=quadRoots(3*et.a[tt],2*et.b[tt],et.c[tt]),at=0;at0&&st[at]<1){var ot=et.point(st[at])[tt];otnt&&(nt=ot)}return{min:rt,max:nt}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var et=this.bounds();return{left:et.x.min,right:et.x.max,top:et.y.min,bottom:et.y.max,width:et.x.max-et.x.min,height:et.y.max-et.y.min,cx:(et.x.max+et.x.min)/2,cy:(et.y.max+et.y.min)/2}};function intersectData(et,tt,rt){var nt=et.boundingBox();return{cx:nt.cx,cy:nt.cy,width:nt.width,height:nt.height,bez:et,t:(tt+rt)/2,t1:tt,t2:rt}}function splitData(et){var tt=et.bez.split(.5);return[intersectData(tt[0],et.t1,et.t),intersectData(tt[1],et.t,et.t2)]}function boxIntersect(et,tt){return Math.abs(et.cx-tt.cx)*2=st||et.width<=nt&&et.height<=nt&&tt.width<=nt&&tt.height<=nt){it.push([et.t,tt.t]);return}var at=splitData(et),ot=splitData(tt);intersectsImpl(at[0],ot[0],rt+1,nt,it,st),intersectsImpl(at[0],ot[1],rt+1,nt,it,st),intersectsImpl(at[1],ot[0],rt+1,nt,it,st),intersectsImpl(at[1],ot[1],rt+1,nt,it,st)}}PolynomialBezier.prototype.intersections=function(et,tt,rt){tt===void 0&&(tt=2),rt===void 0&&(rt=7);var nt=[];return intersectsImpl(intersectData(this,0,1),intersectData(et,0,1),0,tt,nt,rt),nt},PolynomialBezier.shapeSegment=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[tt],et.o[tt],et.i[rt],et.v[rt],!0)},PolynomialBezier.shapeSegmentInverted=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[rt],et.i[rt],et.o[tt],et.v[tt],!0)};function crossProduct(et,tt){return[et[1]*tt[2]-et[2]*tt[1],et[2]*tt[0]-et[0]*tt[2],et[0]*tt[1]-et[1]*tt[0]]}function lineIntersection(et,tt,rt,nt){var it=[et[0],et[1],1],st=[tt[0],tt[1],1],at=[rt[0],rt[1],1],ot=[nt[0],nt[1],1],lt=crossProduct(crossProduct(it,st),crossProduct(at,ot));return floatZero(lt[2])?null:[lt[0]/lt[2],lt[1]/lt[2]]}function polarOffset(et,tt,rt){return[et[0]+Math.cos(tt)*rt,et[1]-Math.sin(tt)*rt]}function pointDistance(et,tt){return Math.hypot(et[0]-tt[0],et[1]-tt[1])}function pointEqual(et,tt){return floatEqual(et[0],tt[0])&&floatEqual(et[1],tt[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(et,tt.s,0,null,this),this.frequency=PropertyFactory.getProp(et,tt.r,0,null,this),this.pointsType=PropertyFactory.getProp(et,tt.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(et,tt,rt,nt,it,st,at){var ot=rt-Math.PI/2,lt=rt+Math.PI/2,ut=tt[0]+Math.cos(rt)*nt*it,dt=tt[1]-Math.sin(rt)*nt*it;et.setTripleAt(ut,dt,ut+Math.cos(ot)*st,dt-Math.sin(ot)*st,ut+Math.cos(lt)*at,dt-Math.sin(lt)*at,et.length())}function getPerpendicularVector(et,tt){var rt=[tt[0]-et[0],tt[1]-et[1]],nt=-Math.PI*.5,it=[Math.cos(nt)*rt[0]-Math.sin(nt)*rt[1],Math.sin(nt)*rt[0]+Math.cos(nt)*rt[1]];return it}function getProjectingAngle(et,tt){var rt=tt===0?et.length()-1:tt-1,nt=(tt+1)%et.length(),it=et.v[rt],st=et.v[nt],at=getPerpendicularVector(it,st);return Math.atan2(0,1)-Math.atan2(at[1],at[0])}function zigZagCorner(et,tt,rt,nt,it,st,at){var ot=getProjectingAngle(tt,rt),lt=tt.v[rt%tt._length],ut=tt.v[rt===0?tt._length-1:rt-1],dt=tt.v[(rt+1)%tt._length],bt=st===2?Math.sqrt(Math.pow(lt[0]-ut[0],2)+Math.pow(lt[1]-ut[1],2)):0,gt=st===2?Math.sqrt(Math.pow(lt[0]-dt[0],2)+Math.pow(lt[1]-dt[1],2)):0;setPoint(et,tt.v[rt%tt._length],ot,at,nt,gt/((it+1)*2),bt/((it+1)*2))}function zigZagSegment(et,tt,rt,nt,it,st){for(var at=0;at1&&tt.length>1&&(it=getIntersection(et[0],tt[tt.length-1]),it)?[[et[0].split(it[0])[0]],[tt[tt.length-1].split(it[1])[1]]]:[rt,nt]}function pruneIntersections(et){for(var tt,rt=1;rt1&&(tt=pruneSegmentIntersection(et[et.length-1],et[0]),et[et.length-1]=tt[0],et[0]=tt[1]),et}function offsetSegmentSplit(et,tt){var rt=et.inflectionPoints(),nt,it,st,at;if(rt.length===0)return[offsetSegment(et,tt)];if(rt.length===1||floatEqual(rt[1],1))return st=et.split(rt[0]),nt=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(it,tt)];st=et.split(rt[0]),nt=st[0];var ot=(rt[1]-rt[0])/(1-rt[0]);return st=st[1].split(ot),at=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(at,tt),offsetSegment(it,tt)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(et,tt.a,0,null,this),this.miterLimit=PropertyFactory.getProp(et,tt.ml,0,null,this),this.lineJoin=tt.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(et,tt,rt,nt){var it=shapePool.newElement();it.c=et.c;var st=et.length();et.c||(st-=1);var at,ot,lt,ut=[];for(at=0;at=0;at-=1)lt=PolynomialBezier.shapeSegmentInverted(et,at),ut.push(offsetSegmentSplit(lt,tt));ut=pruneIntersections(ut);var dt=null,bt=null;for(at=0;at0&&(xt=!1),xt){var pr=createTag("style");pr.setAttribute("f-forigin",At[Pt].fOrigin),pr.setAttribute("f-origin",At[Pt].origin),pr.setAttribute("f-family",At[Pt].fFamily),pr.type="text/css",pr.innerText="@font-face {font-family: "+At[Pt].fFamily+"; font-style: normal; src: url('"+At[Pt].fPath+"');}",Rt.appendChild(pr)}}else if(At[Pt].fOrigin==="g"||At[Pt].origin===1){for(Lt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),tr=0;tr=55296&&At<=56319){var Pt=Tt.charCodeAt(1);Pt>=56320&&Pt<=57343&&(Rt=(At-55296)*1024+Pt-56320+65536)}return Rt}function Dt(Tt,Rt){var At=Tt.toString(16)+Rt.toString(16);return bt.indexOf(At)!==-1}function zt(Tt){return Tt===lt}function Ht(Tt){return Tt===ot}function Wt(Tt){var Rt=Ft(Tt);return Rt>=ut&&Rt<=dt}function lr(Tt){return Wt(Tt.substr(0,2))&&Wt(Tt.substr(2,2))}function qt(Tt){return rt.indexOf(Tt)!==-1}function Ot(Tt,Rt){var At=Ft(Tt.substr(Rt,2));if(At!==nt)return!1;var Pt=0;for(Rt+=2;Pt<5;){if(At=Ft(Tt.substr(Rt,2)),Atat)return!1;Pt+=1,Rt+=2}return Ft(Tt.substr(Rt,2))===it}function Mt(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=Dt,ht.isZeroWidthJoiner=zt,ht.isFlagEmoji=lr,ht.isRegionalCode=Wt,ht.isCombinedCharacter=qt,ht.isRegionalFlag=Ot,ht.isVariationSelector=Ht,ht.BLACK_FLAG_CODE_POINT=nt;var Et={addChars:mt,addFonts:$t,getCharData:wt,getFontByName:Bt,measureText:St,checkLoadedFonts:pt,setIsLoaded:Mt};return ht.prototype=Et,ht}();function SlotManager(et){this.animationData=et}SlotManager.prototype.getProp=function(et){return this.animationData.slots&&this.animationData.slots[et.sid]?Object.assign(et,this.animationData.slots[et.sid].p):et};function slotFactory(et){return new SlotManager(et)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)===-1&&this.renderableComponents.push(tt)},removeRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(tt),1)},prepareRenderableFrame:function(tt){this.checkLayerLimits(tt)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(tt){this.data.ip-this.data.st<=tt&&this.data.op-this.data.st>tt?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var tt,rt=this.renderableComponents.length;for(tt=0;tt.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(et){this.audio.rate(et)},AudioElement.prototype.volume=function(et){this._volumeMultiplier=et,this._previousVolume=et*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(et){var tt,rt=this.layers.length,nt;for(this.completeLayers=!0,tt=rt-1;tt>=0;tt-=1)this.elements[tt]||(nt=this.layers[tt],nt.ip-nt.st<=et-this.layers[tt].st&&nt.op-nt.st>et-this.layers[tt].st&&this.buildItem(tt)),this.completeLayers=this.elements[tt]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(et){switch(et.ty){case 2:return this.createImage(et);case 0:return this.createComp(et);case 1:return this.createSolid(et);case 3:return this.createNull(et);case 4:return this.createShape(et);case 5:return this.createText(et);case 6:return this.createAudio(et);case 13:return this.createCamera(et);case 15:return this.createFootage(et);default:return this.createNull(et)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(et){return new AudioElement(et,this.globalData,this)},BaseRenderer.prototype.createFootage=function(et){return new FootageElement(et,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var et,tt=this.layers.length;for(et=0;et0&&(this.maskElement.setAttribute("id",gt),this.element.maskedElement.setAttribute(wt,"url("+getLocationHref()+"#"+gt+")"),nt.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(et){return this.viewData[et].prop},MaskElement.prototype.renderFrame=function(et){var tt=this.element.finalTransform.mat,rt,nt=this.masksProperties.length;for(rt=0;rt1&&(nt+=" C"+tt.o[it-1][0]+","+tt.o[it-1][1]+" "+tt.i[0][0]+","+tt.i[0][1]+" "+tt.v[0][0]+","+tt.v[0][1]),rt.lastPath!==nt){var at="";rt.elem&&(tt.c&&(at=et.inv?this.solidPath+nt:nt),rt.elem.setAttribute("d",at)),rt.lastPath=nt}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var et={};et.createFilter=tt,et.createAlphaToLuminanceFilter=rt;function tt(nt,it){var st=createNS("filter");return st.setAttribute("id",nt),it!==!0&&(st.setAttribute("filterUnits","objectBoundingBox"),st.setAttribute("x","0%"),st.setAttribute("y","0%"),st.setAttribute("width","100%"),st.setAttribute("height","100%")),st}function rt(){var nt=createNS("feColorMatrix");return nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","sRGB"),nt.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),nt}return et}(),featureSupport=function(){var et={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(et.maskType=!1),/firefox/i.test(navigator.userAgent)&&(et.svgLumaHidden=!1),et}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(et){var tt,rt="SourceGraphic",nt=et.data.ef?et.data.ef.length:0,it=createElementID(),st=filtersFactory.createFilter(it,!0),at=0;this.filters=[];var ot;for(tt=0;tt=0&&(nt=this.shapeModifiers[tt].processShapes(this._isFirstFrame),!nt);tt-=1);}},searchProcessedElement:function(tt){for(var rt=this.processedElements,nt=0,it=rt.length;nt.01)return!1;rt+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var et=0,tt=this.data.k.k.length;et0;)mt=gt.transformers[Wt].mProps._mdf||mt,Ht-=1,Wt-=1;if(mt)for(Ht=Ft-gt.styles[St].lvl,Wt=gt.transformers.length-1;Ht>0;)zt.multiply(gt.transformers[Wt].mProps.v),Ht-=1,Wt-=1}else zt=et;if(Dt=gt.sh.paths,yt=Dt._length,mt){for($t="",pt=0;pt=1?Mt=.99:Mt<=-1&&(Mt=-.99);var ht=qt*Mt,Et=Math.cos(Ot+gt.a.v)*ht+$t[0],Tt=Math.sin(Ot+gt.a.v)*ht+$t[1];pt.setAttribute("fx",Et),pt.setAttribute("fy",Tt),yt&&!gt.g._collapsable&&(gt.of.setAttribute("fx",Et),gt.of.setAttribute("fy",Tt))}}}function dt(bt,gt,kt){var pt=gt.style,yt=gt.d;yt&&(yt._mdf||kt)&&yt.dashStr&&(pt.pElem.setAttribute("stroke-dasharray",yt.dashStr),pt.pElem.setAttribute("stroke-dashoffset",yt.dashoffset[0])),gt.c&&(gt.c._mdf||kt)&&pt.pElem.setAttribute("stroke","rgb("+bmFloor(gt.c.v[0])+","+bmFloor(gt.c.v[1])+","+bmFloor(gt.c.v[2])+")"),(gt.o._mdf||kt)&&pt.pElem.setAttribute("stroke-opacity",gt.o.v),(gt.w._mdf||kt)&&(pt.pElem.setAttribute("stroke-width",gt.w.v),pt.msElem&&pt.msElem.setAttribute("stroke-width",gt.w.v))}return rt}();function SVGShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(et,tt,rt),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var et,tt=this.shapes.length,rt,nt,it=this.stylesList.length,st,at=[],ot=!1;for(nt=0;nt1&&ot&&this.setShapesAsAnimated(at)}},SVGShapeElement.prototype.setShapesAsAnimated=function(et){var tt,rt=et.length;for(tt=0;tt=0;lt-=1){if($t=this.searchProcessedElement(et[lt]),$t?tt[lt]=rt[$t-1]:et[lt]._render=at,et[lt].ty==="fl"||et[lt].ty==="st"||et[lt].ty==="gf"||et[lt].ty==="gs"||et[lt].ty==="no")$t?tt[lt].style.closed=!1:tt[lt]=this.createStyleElement(et[lt],it),et[lt]._render&&tt[lt].style.pElem.parentNode!==nt&&nt.appendChild(tt[lt].style.pElem),gt.push(tt[lt].style);else if(et[lt].ty==="gr"){if(!$t)tt[lt]=this.createGroupElement(et[lt]);else for(bt=tt[lt].it.length,dt=0;dt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(et){this.effectsSequence.push(et),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(et){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!et)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var tt=this.currentData,rt=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var nt,it=this.effectsSequence.length,st=et||this.data.d.k[this.keysIndex].s;for(nt=0;nttt);)rt+=1;return this.keysIndex!==rt&&(this.keysIndex=rt),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(et){for(var tt=[],rt=0,nt=et.length,it,st,at=!1,ot=!1,lt="";rt=55296&&it<=56319?FontManager.isRegionalFlag(et,rt)?lt=et.substr(rt,14):(st=et.charCodeAt(rt+1),st>=56320&&st<=57343&&(FontManager.isModifier(it,st)?(lt=et.substr(rt,2),at=!0):FontManager.isFlagEmoji(et.substr(rt,4))?lt=et.substr(rt,4):lt=et.substr(rt,2))):it>56319?(st=et.charCodeAt(rt+1),FontManager.isVariationSelector(it)&&(at=!0)):FontManager.isZeroWidthJoiner(it)&&(at=!0,ot=!0),at?(tt[tt.length-1]+=lt,at=!1):tt.push(lt),rt+=lt.length;return tt},TextProperty.prototype.completeTextData=function(et){et.__complete=!0;var tt=this.elem.globalData.fontManager,rt=this.data,nt=[],it,st,at,ot=0,lt,ut=rt.m.g,dt=0,bt=0,gt=0,kt=[],pt=0,yt=0,$t,mt,wt=tt.getFontByName(et.f),St,Bt=0,Ft=getFontProperties(wt);et.fWeight=Ft.weight,et.fStyle=Ft.style,et.finalSize=et.s,et.finalText=this.buildFinalText(et.t),st=et.finalText.length,et.finalLineHeight=et.lh;var Dt=et.tr/1e3*et.finalSize,zt;if(et.sz)for(var Ht=!0,Wt=et.sz[0],lr=et.sz[1],qt,Ot;Ht;){Ot=this.buildFinalText(et.t),qt=0,pt=0,st=Ot.length,Dt=et.tr/1e3*et.finalSize;var Mt=-1;for(it=0;itWt&&Ot[it]!==" "?(Mt===-1?st+=1:it=Mt,qt+=et.finalLineHeight||et.finalSize*1.2,Ot.splice(it,Mt===it?1:0,"\r"),Mt=-1,pt=0):(pt+=Bt,pt+=Dt);qt+=wt.ascent*et.finalSize/100,this.canResize&&et.finalSize>this.minimumFontSize&&lryt?pt:yt,pt=-2*Dt,lt="",at=!0,gt+=1):lt=Et,tt.chars?(St=tt.getCharData(Et,wt.fStyle,tt.getFontByName(et.f).fFamily),Bt=at?0:St.w*et.finalSize/100):Bt=tt.measureText(lt,et.f,et.finalSize),Et===" "?ht+=Bt+Dt:(pt+=Bt+Dt+ht,ht=0),nt.push({l:Bt,an:Bt,add:dt,n:at,anIndexes:[],val:lt,line:gt,animatorJustifyOffset:0}),ut==2){if(dt+=Bt,lt===""||lt===" "||it===st-1){for((lt===""||lt===" ")&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;ot+=1,dt=0}}else if(ut==3){if(dt+=Bt,lt===""||it===st-1){for(lt===""&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;dt=0,ot+=1}}else nt[ot].ind=ot,nt[ot].extra=0,ot+=1;if(et.l=nt,yt=pt>yt?pt:yt,kt.push(pt),et.sz)et.boxWidth=et.sz[0],et.justifyOffset=0;else switch(et.boxWidth=yt,et.j){case 1:et.justifyOffset=-et.boxWidth;break;case 2:et.justifyOffset=-et.boxWidth/2;break;default:et.justifyOffset=0}et.lineWidths=kt;var Tt=rt.a,Rt,At;mt=Tt.length;var Pt,It,Ct=[];for($t=0;$t0?ot=this.ne.v/100:lt=-this.ne.v/100,this.xe.v>0?ut=1-this.xe.v/100:dt=1+this.xe.v/100;var bt=BezierFactory.getBezierEasing(ot,lt,ut,dt).get,gt=0,kt=this.finalS,pt=this.finalE,yt=this.data.sh;if(yt===2)pt===kt?gt=at>=pt?1:0:gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===3)pt===kt?gt=at>=pt?0:1:gt=1-et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===4)pt===kt?gt=0:(gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt<.5?gt*=2:gt=1-2*(gt-.5)),gt=bt(gt);else if(yt===5){if(pt===kt)gt=0;else{var $t=pt-kt;at=tt(et(0,at+.5-kt),pt-kt);var mt=-$t/2+at,wt=$t/2;gt=Math.sqrt(1-mt*mt/(wt*wt))}gt=bt(gt)}else yt===6?(pt===kt?gt=0:(at=tt(et(0,at+.5-kt),pt-kt),gt=(1+Math.cos(Math.PI+Math.PI*2*at/(pt-kt)))/2),gt=bt(gt)):(at>=rt(kt)&&(at-kt<0?gt=et(0,tt(tt(pt,1)-(kt-at),1)):gt=et(0,tt(pt-at,1))),gt=bt(gt));if(this.sm.v!==100){var St=this.sm.v*.01;St===0&&(St=1e-8);var Bt=.5-St*.5;gt1&&(gt=1))}return gt*this.a.v},getValue:function(at){this.iterateDynamicProperties(),this._mdf=at||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,at&&this.data.r===2&&(this.e.v=this._currentTextLength);var ot=this.data.r===2?1:100/this.data.totalChars,lt=this.o.v/ot,ut=this.s.v/ot+lt,dt=this.e.v/ot+lt;if(ut>dt){var bt=ut;ut=dt,dt=bt}this.finalS=ut,this.finalE=dt}},extendPrototype([DynamicPropertyContainer],nt);function it(st,at,ot){return new nt(st,at)}return{getTextSelectorProp:it}}();function TextAnimatorDataProperty(et,tt,rt){var nt={propType:!1},it=PropertyFactory.getProp,st=tt.a;this.a={r:st.r?it(et,st.r,0,degToRads,rt):nt,rx:st.rx?it(et,st.rx,0,degToRads,rt):nt,ry:st.ry?it(et,st.ry,0,degToRads,rt):nt,sk:st.sk?it(et,st.sk,0,degToRads,rt):nt,sa:st.sa?it(et,st.sa,0,degToRads,rt):nt,s:st.s?it(et,st.s,1,.01,rt):nt,a:st.a?it(et,st.a,1,0,rt):nt,o:st.o?it(et,st.o,0,.01,rt):nt,p:st.p?it(et,st.p,1,0,rt):nt,sw:st.sw?it(et,st.sw,0,0,rt):nt,sc:st.sc?it(et,st.sc,1,0,rt):nt,fc:st.fc?it(et,st.fc,1,0,rt):nt,fh:st.fh?it(et,st.fh,0,0,rt):nt,fs:st.fs?it(et,st.fs,0,.01,rt):nt,fb:st.fb?it(et,st.fb,0,.01,rt):nt,t:st.t?it(et,st.t,0,0,rt):nt},this.s=TextSelectorProp.getTextSelectorProp(et,tt.s,rt),this.s.t=tt.s.t}function TextAnimatorProperty(et,tt,rt){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=et,this._renderType=tt,this._elem=rt,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(rt)}TextAnimatorProperty.prototype.searchProperties=function(){var et,tt=this._textData.a.length,rt,nt=PropertyFactory.getProp;for(et=0;et=pt+Ir||!Ft?(Wt=(pt+Ir-$t)/yt.partialLength,tr=Bt.point[0]+(yt.point[0]-Bt.point[0])*Wt,pr=Bt.point[1]+(yt.point[1]-Bt.point[1])*Wt,st.translate(-rt[0]*gt[dt].an*.005,-(rt[1]*ht)*.01),mt=!1):Ft&&($t+=yt.partialLength,wt+=1,wt>=Ft.length&&(wt=0,St+=1,Dt[St]?Ft=Dt[St].points:qt.v.c?(wt=0,St=0,Ft=Dt[St].points):($t-=yt.partialLength,Ft=null)),Ft&&(Bt=yt,yt=Ft[wt],zt=yt.partialLength));Lt=gt[dt].an/2-gt[dt].add,st.translate(-Lt,0,0)}else Lt=gt[dt].an/2-gt[dt].add,st.translate(-Lt,0,0),st.translate(-rt[0]*gt[dt].an*.005,-rt[1]*ht*.01,0);for(At=0;Atet?this.textSpans[et].span:createNS(ot?"g":"text"),St<=et){if(lt.setAttribute("stroke-linecap","butt"),lt.setAttribute("stroke-linejoin","round"),lt.setAttribute("stroke-miterlimit","4"),this.textSpans[et].span=lt,ot){var Ft=createNS("g");lt.appendChild(Ft),this.textSpans[et].childSpan=Ft}this.textSpans[et].span=lt,this.layerElement.appendChild(lt)}lt.style.display="inherit"}if(ut.reset(),bt&&(at[et].n&&(gt=-yt,kt+=rt.yOffset,kt+=pt?1:0,pt=!1),this.applyTextPropertiesToMatrix(rt,ut,at[et].line,gt,kt),gt+=at[et].l||0,gt+=yt),ot){Bt=this.globalData.fontManager.getCharData(rt.finalText[et],nt.fStyle,this.globalData.fontManager.getFontByName(rt.f).fFamily);var Dt;if(Bt.t===1)Dt=new SVGCompElement(Bt.data,this.globalData,this);else{var zt=emptyShapeData;Bt.data&&Bt.data.shapes&&(zt=this.buildShapeData(Bt.data,rt.finalSize)),Dt=new SVGShapeElement(zt,this.globalData,this)}if(this.textSpans[et].glyph){var Ht=this.textSpans[et].glyph;this.textSpans[et].childSpan.removeChild(Ht.layerElement),Ht.destroy()}this.textSpans[et].glyph=Dt,Dt._debug=!0,Dt.prepareFrame(0),Dt.renderFrame(),this.textSpans[et].childSpan.appendChild(Dt.layerElement),Bt.t===1&&this.textSpans[et].childSpan.setAttribute("transform","scale("+rt.finalSize/100+","+rt.finalSize/100+")")}else bt&<.setAttribute("transform","translate("+ut.props[12]+","+ut.props[13]+")"),lt.textContent=at[et].val,lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}bt&<&<.setAttribute("d",dt)}for(;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].prepareFrame(et-this.layers[tt].st);if(this.globalData._mdf)for(tt=0;tt=0;rt-=1)(this.completeLayers||this.elements[rt])&&(this.elements[rt].prepareFrame(this.renderedFrame-this.layers[rt].st),this.elements[rt]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var et,tt=this.layers.length;for(et=0;et=0;nt-=1)tt.finalTransform.multiply(tt.transforms[nt].transform.mProps.v);tt._mdf=st},processSequences:function(tt){var rt,nt=this.sequenceList.length;for(rt=0;rt=1){this.buffers=[];var tt=this.globalData.canvasContext,rt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(rt);var nt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(nt),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var tt=this.globalData;if(tt.blendMode!==this.data.bm){tt.blendMode=this.data.bm;var rt=getBlendMode(this.data.bm);tt.canvasContext.globalCompositeOperation=rt}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(tt){tt.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var tt=this.buffers[0],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var tt=this.buffers[1],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var nt=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(nt.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var it=assetLoader.getLumaCanvas(this.canvasContext.canvas),st=it.getContext("2d");st.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(it,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(tt,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(tt){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!tt)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var rt=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(rt),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(rt),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(et,tt,rt,nt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var it=4;tt.ty==="rc"?it=5:tt.ty==="el"?it=6:tt.ty==="sr"&&(it=7),this.sh=ShapePropertyFactory.getShapeProp(et,tt,it,et);var st,at=rt.length,ot;for(st=0;st=0;st-=1){if(bt=this.searchProcessedElement(et[st]),bt?tt[st]=rt[bt-1]:et[st]._shouldRender=nt,et[st].ty==="fl"||et[st].ty==="st"||et[st].ty==="gf"||et[st].ty==="gs")bt?tt[st].style.closed=!1:tt[st]=this.createStyleElement(et[st],pt),ut.push(tt[st].style);else if(et[st].ty==="gr"){if(!bt)tt[st]=this.createGroupElement(et[st]);else for(lt=tt[st].it.length,ot=0;ot=0;it-=1)tt[it].ty==="tr"?(at=rt[it].transform,this.renderShapeTransform(et,at)):tt[it].ty==="sh"||tt[it].ty==="el"||tt[it].ty==="rc"||tt[it].ty==="sr"?this.renderPath(tt[it],rt[it]):tt[it].ty==="fl"?this.renderFill(tt[it],rt[it],at):tt[it].ty==="st"?this.renderStroke(tt[it],rt[it],at):tt[it].ty==="gf"||tt[it].ty==="gs"?this.renderGradientFill(tt[it],rt[it],at):tt[it].ty==="gr"?this.renderShape(at,tt[it].it,rt[it].it):tt[it].ty;nt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(et,tt){if(this._isFirstFrame||tt._mdf||et.transforms._mdf){var rt=et.trNodes,nt=tt.paths,it,st,at,ot=nt._length;rt.length=0;var lt=et.transforms.finalTransform;for(at=0;at=1?dt=.99:dt<=-1&&(dt=-.99);var bt=lt*dt,gt=Math.cos(ut+tt.a.v)*bt+at[0],kt=Math.sin(ut+tt.a.v)*bt+at[1];it=st.createRadialGradient(gt,kt,0,at[0],at[1],lt)}var pt,yt=et.g.p,$t=tt.g.c,mt=1;for(pt=0;ptst&<==="xMidYMid slice"||itit&&ot==="meet"||stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))/2*this.renderConfig.dpr:ut==="xMax"&&(stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,dt==="YMid"&&(st>it&&ot==="meet"||stit&&ot==="meet"||st=0;et-=1)this.elements[et]&&this.elements[et].destroy&&this.elements[et].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(et,tt){if(!(this.renderedFrame===et&&this.renderConfig.clearCanvas===!0&&!tt||this.destroyed||et===-1)){this.renderedFrame=et,this.globalData.frameNum=et-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||tt,this.globalData.projectInterface.currentFrame=et;var rt,nt=this.layers.length;for(this.completeLayers||this.checkLayers(et),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].prepareFrame(et-this.layers[rt].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(et){var tt=this.elements;if(!(tt[et]||this.layers[et].ty===99)){var rt=this.createItem(this.layers[et],this,this.globalData);tt[et]=rt,rt.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var et=this.pendingElements.pop();et.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var et,tt=15;for(et=0;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},CVCompElement.prototype.destroy=function(){var et,tt=this.layers.length;for(et=tt-1;et>=0;et-=1)this.elements[et]&&this.elements[et].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function CanvasRenderer(et,tt){this.animationItem=et,this.renderConfig={clearCanvas:tt&&tt.clearCanvas!==void 0?tt.clearCanvas:!0,context:tt&&tt.context||null,progressiveLoad:tt&&tt.progressiveLoad||!1,preserveAspectRatio:tt&&tt.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:tt&&tt.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:tt&&tt.contentVisibility||"visible",className:tt&&tt.className||"",id:tt&&tt.id||"",runExpressions:!tt||tt.runExpressions===void 0||tt.runExpressions},this.renderConfig.dpr=tt&&tt.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=tt&&tt.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var tt=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var rt=this.finalTransform.mat.toCSS();tt.transform=rt,tt.webkitTransform=rt}this.finalTransform._opMdf&&(tt.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(et,tt,rt){this.initElement(et,tt,rt)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var et;this.data.hasMask?(et=createNS("rect"),et.setAttribute("width",this.data.sw),et.setAttribute("height",this.data.sh),et.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(et=createTag("div"),et.style.width=this.data.sw+"px",et.style.height=this.data.sh+"px",et.style.backgroundColor=this.data.sc),this.layerElement.appendChild(et)};function HShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(et,tt,rt),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var et;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),et=this.svgElement;else{et=createNS("svg");var tt=this.comp.data?this.comp.data:this.globalData.compSize;et.setAttribute("width",tt.w),et.setAttribute("height",tt.h),et.appendChild(this.shapesContainer),this.layerElement.appendChild(et)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=et},HShapeElement.prototype.getTransformedPoint=function(et,tt){var rt,nt=et.length;for(rt=0;rt0&<<1&&it[gt].push(this.calculateF(lt,et,tt,rt,nt,gt))):(ut=at*at-4*ot*st,ut>=0&&(dt=(-at+bmSqrt(ut))/(2*st),dt>0&&dt<1&&it[gt].push(this.calculateF(dt,et,tt,rt,nt,gt)),bt=(-at-bmSqrt(ut))/(2*st),bt>0&&bt<1&&it[gt].push(this.calculateF(bt,et,tt,rt,nt,gt)))));this.shapeBoundingBox.left=bmMin.apply(null,it[0]),this.shapeBoundingBox.top=bmMin.apply(null,it[1]),this.shapeBoundingBox.right=bmMax.apply(null,it[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,it[1])},HShapeElement.prototype.calculateF=function(et,tt,rt,nt,it,st){return bmPow(1-et,3)*tt[st]+3*bmPow(1-et,2)*et*rt[st]+3*(1-et)*bmPow(et,2)*nt[st]+bmPow(et,3)*it[st]},HShapeElement.prototype.calculateBoundingBox=function(et,tt){var rt,nt=et.length;for(rt=0;rtrt&&(rt=it)}rt*=et.mult}else rt=et.v*et.mult;tt.x-=rt,tt.xMax+=rt,tt.y-=rt,tt.yMax+=rt},HShapeElement.prototype.currentBoxContains=function(et){return this.currentBBox.x<=et.x&&this.currentBBox.y<=et.y&&this.currentBBox.width+this.currentBBox.x>=et.x+et.width&&this.currentBBox.height+this.currentBBox.y>=et.y+et.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.tempBoundingBox,tt=999999;if(et.x=tt,et.xMax=-tt,et.y=tt,et.yMax=-tt,this.calculateBoundingBox(this.itemsData,et),et.width=et.xMax=0;tt-=1){var nt=this.hierarchy[tt].finalTransform.mProp;this.mat.translate(-nt.p.v[0],-nt.p.v[1],nt.p.v[2]),this.mat.rotateX(-nt.or.v[0]).rotateY(-nt.or.v[1]).rotateZ(nt.or.v[2]),this.mat.rotateX(-nt.rx.v).rotateY(-nt.ry.v).rotateZ(nt.rz.v),this.mat.scale(1/nt.s.v[0],1/nt.s.v[1],1/nt.s.v[2]),this.mat.translate(nt.a.v[0],nt.a.v[1],nt.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var it;this.p?it=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:it=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var st=Math.sqrt(Math.pow(it[0],2)+Math.pow(it[1],2)+Math.pow(it[2],2)),at=[it[0]/st,it[1]/st,it[2]/st],ot=Math.sqrt(at[2]*at[2]+at[0]*at[0]),lt=Math.atan2(at[1],ot),ut=Math.atan2(at[0],-at[2]);this.mat.rotateY(ut).rotateX(-lt)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var dt=!this._prevMat.equals(this.mat);if((dt||this.pe._mdf)&&this.comp.threeDElements){rt=this.comp.threeDElements.length;var bt,gt,kt;for(tt=0;tt=et)return this.threeDElements[tt].perspectiveElem;tt+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(et,tt){var rt=createTag("div"),nt,it;styleDiv(rt);var st=createTag("div");if(styleDiv(st),tt==="3d"){nt=rt.style,nt.width=this.globalData.compSize.w+"px",nt.height=this.globalData.compSize.h+"px";var at="50% 50%";nt.webkitTransformOrigin=at,nt.mozTransformOrigin=at,nt.transformOrigin=at,it=st.style;var ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";it.transform=ot,it.webkitTransform=ot}rt.appendChild(st);var lt={container:st,perspectiveElem:rt,startPos:et,endPos:et,type:tt};return this.threeDElements.push(lt),lt},HybridRendererBase.prototype.build3dContainers=function(){var et,tt=this.layers.length,rt,nt="";for(et=0;et=0;et-=1)this.resizerElem.appendChild(this.threeDElements[et].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(et,tt){for(var rt=0,nt=this.threeDElements.length;rtrt?(it=et/this.globalData.compSize.w,st=et/this.globalData.compSize.w,at=0,ot=(tt-this.globalData.compSize.h*(et/this.globalData.compSize.w))/2):(it=tt/this.globalData.compSize.h,st=tt/this.globalData.compSize.h,at=(et-this.globalData.compSize.w*(tt/this.globalData.compSize.h))/2,ot=0);var lt=this.resizerElem.style;lt.webkitTransform="matrix3d("+it+",0,0,0,0,"+st+",0,0,0,0,1,0,"+at+","+ot+",0,1)",lt.transform=lt.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var et=this.globalData.compSize.w,tt=this.globalData.compSize.h,rt,nt=this.threeDElements.length;for(rt=0;rt=ut;)qt/=2,Ot/=2,Mt>>>=1;return(qt+Mt)/Ot};return Wt.int32=function(){return Ht.g(4)|0},Wt.quick=function(){return Ht.g(4)/4294967296},Wt.double=Wt,$t(wt(Ht.S),et),(Bt.pass||Ft||function(lr,qt,Ot,Mt){return Mt&&(Mt.S&&pt(Mt,Ht),lr.state=function(){return pt(Ht,{})}),Ot?(tt[at]=lr,qt):lr})(Wt,zt,"global"in Bt?Bt.global:this==tt,Bt.state)}tt["seed"+at]=gt;function kt(St){var Bt,Ft=St.length,Dt=this,zt=0,Ht=Dt.i=Dt.j=0,Wt=Dt.S=[];for(Ft||(St=[Ft++]);ztrt){var nt=rt;rt=tt,tt=nt}return Math.min(Math.max(et,tt),rt)}function radiansToDegrees(et){return et/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(et){return et*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(et,tt){if(typeof et=="number"||et instanceof Number)return tt=tt||0,Math.abs(et-tt);tt||(tt=helperLengthArray);var rt,nt=Math.min(et.length,tt.length),it=0;for(rt=0;rt.5?ut/(2-it-st):ut/(it+st),it){case tt:at=(rt-nt)/ut+(rt1&&(rt-=1),rt<1/6?et+(tt-et)*6*rt:rt<1/2?tt:rt<2/3?et+(tt-et)*(2/3-rt)*6:et}function hslToRgb(et){var tt=et[0],rt=et[1],nt=et[2],it,st,at;if(rt===0)it=nt,at=nt,st=nt;else{var ot=nt<.5?nt*(1+rt):nt+rt-nt*rt,lt=2*nt-ot;it=hue2rgb(lt,ot,tt+1/3),st=hue2rgb(lt,ot,tt),at=hue2rgb(lt,ot,tt-1/3)}return[it,st,at,et[3]]}function linear(et,tt,rt,nt,it){if((nt===void 0||it===void 0)&&(nt=tt,it=rt,tt=0,rt=1),rt=rt)return it;var at=rt===tt?0:(et-tt)/(rt-tt);if(!nt.length)return nt+(it-nt)*at;var ot,lt=nt.length,ut=createTypedArray("float32",lt);for(ot=0;ot1){for(it=0;it1?tt=1:tt<0&&(tt=0);var at=et(tt);if($bm_isInstanceOfArray(it)){var ot,lt=it.length,ut=createTypedArray("float32",lt);for(ot=0;otdata.k[tt].t&&etdata.k[tt+1].t-et?(nt=tt+2,it=data.k[tt+1].t):(nt=tt+1,it=data.k[tt].t);break}nt===-1&&(nt=tt+1,it=data.k[tt].t)}var st={};return st.index=nt,st.time=it/elem.comp.globalData.frameRate,st}function key(et){var tt,rt,nt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+et);et-=1,tt={time:data.k[et].t/elem.comp.globalData.frameRate,value:[]};var it=Object.prototype.hasOwnProperty.call(data.k[et],"s")?data.k[et].s:data.k[et-1].e;for(nt=it.length,rt=0;rt$t.length-1)&&(kt=$t.length-1),St=$t[$t.length-1-kt].t,wt=mt-St);var Bt,Ft,Dt;if(gt==="pingpong"){var zt=Math.floor((yt-St)/wt);if(zt%2!==0)return this.getValueAtTime((wt-(yt-St)%wt+St)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),lr=this.getValueAtTime(((yt-St)%wt+St)/this.comp.globalData.frameRate,0),qt=Math.floor((yt-St)/wt);if(this.pv.length){for(Dt=new Array(Ht.length),Ft=Dt.length,Bt=0;Bt=mt)return this.pv;var wt,St;pt?(kt?wt=Math.abs(this.elem.comp.globalData.frameRate*kt):wt=Math.max(0,this.elem.data.op-mt),St=mt+wt):((!kt||kt>$t.length-1)&&(kt=$t.length-1),St=$t[kt].t,wt=St-mt);var Bt,Ft,Dt;if(gt==="pingpong"){var zt=Math.floor((mt-yt)/wt);if(zt%2===0)return this.getValueAtTime(((mt-yt)%wt+mt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),lr=this.getValueAtTime((wt-(mt-yt)%wt+mt)/this.comp.globalData.frameRate,0),qt=Math.floor((mt-yt)/wt)+1;if(this.pv.length){for(Dt=new Array(Ht.length),Ft=Dt.length,Bt=0;Bt1?($t-yt)/(kt-1):1,wt=0,St=0,Bt;this.pv.length?Bt=createTypedArray("float32",this.pv.length):Bt=0;for(var Ft;wtwt){var zt=St,Ht=yt.c&&St===Bt-1?0:St+1,Wt=(wt-Ft)/mt[St].addedLength;Dt=bez.getPointInSegment(yt.v[zt],yt.v[Ht],yt.o[zt],yt.i[Ht],Wt,mt[St]);break}else Ft+=mt[St].addedLength;St+=1}return Dt||(Dt=yt.c?[yt.v[0][0],yt.v[0][1]]:[yt.v[yt._length-1][0],yt.v[yt._length-1][1]]),Dt},vectorOnPath:function(kt,pt,yt){kt==1?kt=this.v.c:kt==0&&(kt=.999);var $t=this.pointOnPath(kt,pt),mt=this.pointOnPath(kt+.001,pt),wt=mt[0]-$t[0],St=mt[1]-$t[1],Bt=Math.sqrt(Math.pow(wt,2)+Math.pow(St,2));if(Bt===0)return[0,0];var Ft=yt==="tangent"?[wt/Bt,St/Bt]:[-St/Bt,wt/Bt];return Ft},tangentOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"tangent")},normalOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([dt],lt),extendPrototype([dt],ut),ut.prototype.getValueAtTime=ot,ut.prototype.initiateExpression=ExpressionManager.initiateExpression;var bt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(gt,kt,pt,yt,$t){var mt=bt(gt,kt,pt,yt,$t);return mt.propertyIndex=kt.ix,mt.lock=!1,pt===3?expressionHelpers.searchExpressions(gt,kt.pt,mt):pt===4&&expressionHelpers.searchExpressions(gt,kt.ks,mt),mt.k&>.addDynamicProperty(mt),mt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function et(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(tt,rt){var nt=this.calculateExpression(rt);if(tt.t!==nt){var it={};return this.copyData(it,tt),it.t=nt.toString(),it.__complete=!1,it}return tt},TextProperty.prototype.searchProperty=function(){var tt=this.searchKeyframes(),rt=this.searchExpressions();return this.kf=tt||rt,this.kf},TextProperty.prototype.searchExpressions=et}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function et(tt,rt){var nt=createNS("feMerge");nt.setAttribute("result",tt);var it,st;for(st=0;st=ut?bt=pt<0?nt:it:bt=nt+kt*Math.pow((ot-et)/pt,1/rt),dt[gt]=bt,gt+=1,st+=256/(at-1);return dt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){var tt,rt=this.filterManager.effectElements;this.feFuncRComposed&&(et||rt[3].p._mdf||rt[4].p._mdf||rt[5].p._mdf||rt[6].p._mdf||rt[7].p._mdf)&&(tt=this.getTableValue(rt[3].p.v,rt[4].p.v,rt[5].p.v,rt[6].p.v,rt[7].p.v),this.feFuncRComposed.setAttribute("tableValues",tt),this.feFuncGComposed.setAttribute("tableValues",tt),this.feFuncBComposed.setAttribute("tableValues",tt)),this.feFuncR&&(et||rt[10].p._mdf||rt[11].p._mdf||rt[12].p._mdf||rt[13].p._mdf||rt[14].p._mdf)&&(tt=this.getTableValue(rt[10].p.v,rt[11].p.v,rt[12].p.v,rt[13].p.v,rt[14].p.v),this.feFuncR.setAttribute("tableValues",tt)),this.feFuncG&&(et||rt[17].p._mdf||rt[18].p._mdf||rt[19].p._mdf||rt[20].p._mdf||rt[21].p._mdf)&&(tt=this.getTableValue(rt[17].p.v,rt[18].p.v,rt[19].p.v,rt[20].p.v,rt[21].p.v),this.feFuncG.setAttribute("tableValues",tt)),this.feFuncB&&(et||rt[24].p._mdf||rt[25].p._mdf||rt[26].p._mdf||rt[27].p._mdf||rt[28].p._mdf)&&(tt=this.getTableValue(rt[24].p.v,rt[25].p.v,rt[26].p.v,rt[27].p.v,rt[28].p.v),this.feFuncB.setAttribute("tableValues",tt)),this.feFuncA&&(et||rt[31].p._mdf||rt[32].p._mdf||rt[33].p._mdf||rt[34].p._mdf||rt[35].p._mdf)&&(tt=this.getTableValue(rt[31].p.v,rt[32].p.v,rt[33].p.v,rt[34].p.v,rt[35].p.v),this.feFuncA.setAttribute("tableValues",tt))}};function SVGDropShadowEffect(et,tt,rt,nt,it){var st=tt.container.globalData.renderConfig.filterSize,at=tt.data.fs||st;et.setAttribute("x",at.x||st.x),et.setAttribute("y",at.y||st.y),et.setAttribute("width",at.width||st.width),et.setAttribute("height",at.height||st.height),this.filterManager=tt;var ot=createNS("feGaussianBlur");ot.setAttribute("in","SourceAlpha"),ot.setAttribute("result",nt+"_drop_shadow_1"),ot.setAttribute("stdDeviation","0"),this.feGaussianBlur=ot,et.appendChild(ot);var lt=createNS("feOffset");lt.setAttribute("dx","25"),lt.setAttribute("dy","0"),lt.setAttribute("in",nt+"_drop_shadow_1"),lt.setAttribute("result",nt+"_drop_shadow_2"),this.feOffset=lt,et.appendChild(lt);var ut=createNS("feFlood");ut.setAttribute("flood-color","#00ff00"),ut.setAttribute("flood-opacity","1"),ut.setAttribute("result",nt+"_drop_shadow_3"),this.feFlood=ut,et.appendChild(ut);var dt=createNS("feComposite");dt.setAttribute("in",nt+"_drop_shadow_3"),dt.setAttribute("in2",nt+"_drop_shadow_2"),dt.setAttribute("operator","in"),dt.setAttribute("result",nt+"_drop_shadow_4"),et.appendChild(dt);var bt=this.createMergeNode(nt,[nt+"_drop_shadow_4",it]);et.appendChild(bt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){if((et||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),et||this.filterManager.effectElements[0].p._mdf){var tt=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(tt[0]*255),Math.round(tt[1]*255),Math.round(tt[2]*255)))}if((et||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),et||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var rt=this.filterManager.effectElements[3].p.v,nt=(this.filterManager.effectElements[2].p.v-90)*degToRads,it=rt*Math.cos(nt),st=rt*Math.sin(nt);this.feOffset.setAttribute("dx",it),this.feOffset.setAttribute("dy",st)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(et,tt,rt){this.initialized=!1,this.filterManager=tt,this.filterElem=et,this.elem=rt,rt.matteElement=createNS("g"),rt.matteElement.appendChild(rt.layerElement),rt.matteElement.appendChild(rt.transformedElement),rt.baseElement=rt.matteElement}SVGMatte3Effect.prototype.findSymbol=function(et){for(var tt=0,rt=_svgMatteSymbols.length;tt{const et=reactExports.useRef(null);return reactExports.useEffect(()=>{const tt=document.getElementById("lottie-sphere-animation");return tt&&(et.current=lottie.loadAnimation({container:tt,animationData:preloadData,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})),()=>{et.current&&et.current.destroy()}},[]),jsxRuntimeExports.jsx(Flex,{id:"lottie-sphere-animation",style:{width:"167px",height:"167px",opacity:.5}})},Splash=()=>{const[et,tt]=reactExports.useState(initialMessageData),[rt,nt]=reactExports.useState(0),{appMetaData:it,setAppMetaData:st}=useAppStore(kt=>kt),{stats:at,setStats:ot,setSeedQuestions:lt}=useDataStore(kt=>kt),{schemas:ut,setSchemas:dt}=useSchemaStore(kt=>kt),[bt,gt]=reactExports.useState(!1);return reactExports.useEffect(()=>{!it&&!at&&!bt&&(async()=>{gt(!0);try{if(!it){const pt=await getAboutData();st(pt),pt.seed_questions&<(pt.seed_questions)}if(!at){const pt=await getStats(),yt=formatStatsResponse(pt);ot(yt);const $t=formatSplashMessage(pt);tt($t)}if(!ut.length){const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}}finally{gt(!1)}})()},[it,bt,ut.length,st,dt,lt,ot,at]),reactExports.useEffect(()=>{const kt=async()=>{try{const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}catch(pt){console.error(pt)}};ut.length||kt()},[ut.length,dt]),reactExports.useEffect(()=>{let kt;return et&&it&&(nt(pt=>pt||50),kt=setInterval(()=>{nt(pt=>pt>=100?100:pt+Math.floor(Math.random()*4))},100)),()=>{kt&&clearInterval(kt)}},[et,it]),jsxRuntimeExports.jsx(SplashWrapper,{children:jsxRuntimeExports.jsxs(Wrapper,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(SphereAnimation,{}),jsxRuntimeExports.jsxs(Flex,{style:{color:colors.white},children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"title",children:it==null?void 0:it.title}),jsxRuntimeExports.jsx(Text,{className:"subtitle",children:"Second Brain"})]}),jsxRuntimeExports.jsx(LinearProgress$1,{color:"inherit",sx:{my:1.75,height:"2px"},value:rt,variant:"determinate"}),jsxRuntimeExports.jsx(AnimatedTextContent,{message:et})]})]})})},TitleWrapper=styled$3.div` + display: flex; + flex-direction: column; + + .title, + .subtitle { + font-family: Barlow; + font-size: 40px; + font-style: normal; + line-height: 40px; + text-align: left; + width: fit-content; + } + + .title { + color: var(--Primary-Text, #fff); + font-weight: 700; + } + + .subtitle { + color: ${colors.GRAY6}; + font-weight: 400; + } +`,SplashWrapper=styled$3(Flex)` + height: 100vh; + width: 100%; + display: flex; + justify-content: center; + align-items: center; + position: fixed; + top: 0; + background: ${colors.black}; +`,Wrapper=styled$3(Flex)` + width: 442.879px; + margin: 0 auto; + gap: 27px; +`,AuthGuard=({children:et})=>{const[tt,rt]=reactExports.useState(!1),{setBudget:nt,setIsAdmin:it,setPubKey:st,setIsAuthenticated:at,setSwarmUiUrl:ot}=useUserStore(Dt=>Dt),{splashDataLoading:lt}=useDataStore(Dt=>Dt),[ut,dt]=reactExports.useState(!1),[bt,gt]=reactExports.useState(!1),{setTrendingTopicsFeatureFlag:kt,setQueuedSourcesFeatureFlag:pt,setCustomSchemaFeatureFlag:yt,setRealtimeGraphFeatureFlag:$t,setChatInterfaceFeatureFlag:mt,setFastFiltersFeatureFlag:wt}=useFeatureFlagStore(Dt=>Dt),St=reactExports.useCallback(async()=>{localStorage.removeItem("admin"),localStorage.removeItem("signature");let Dt;try{isE2E?Dt=await sphinxBridge.enable():Dt=await distExports$1.enable(),sessionStorage.setItem("isSphinx",Dt?"true":"false"),st(Dt==null?void 0:Dt.pubkey)}catch{st("")}(isE2E||isDevelopment)&&at(!0)},[st,at]),Bt=reactExports.useCallback(async()=>{try{const Dt=await getIsAdmin();if(Dt.data){const zt=!!Dt.data.isAdmin;localStorage.setItem("admin",JSON.stringify({isAdmin:zt})),zt&&Dt.data.swarmUiUrl&&ot(Dt.data.swarmUiUrl),it(zt),kt(Dt.data.trendingTopics),pt(Dt.data.queuedSources),yt(Dt.data.customSchema),$t(Dt.data.realtimeGraph||!1),mt(Dt.data.chatInterface||!1),wt(Dt.data.fastFilters||!1),zt&&!Dt.data.title&>(!0)}at(!0),dt(!0)}catch{rt(!0)}},[at,it,kt,pt,yt,$t,mt,wt,ot]);reactExports.useEffect(()=>{(async()=>{if(isWebView()||isE2E||isAndroid())try{isAndroid()&&await new Promise(zt=>setTimeout(zt,5e3)),await St()}catch(zt){console.log(zt)}await updateBudget(nt),await Bt()})()},[St,Bt,nt]);const Ft="This is a private Graph, Contact Admin";return tt?jsxRuntimeExports.jsx(StyledFlex,{children:jsxRuntimeExports.jsx(StyledText,{children:Ft})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt&&jsxRuntimeExports.jsx(OnboardingModal,{}),lt&&jsxRuntimeExports.jsx(Splash,{}),ut&&et]})},StyledText=styled$3(Text)` + font-size: 5rem; + font-weight: 600; + font-family: 'Barlow'; + text-align: center; +`,StyledFlex=styled$3(Flex)` + justify-content: center; + align-items: center; + width: 100%; + height: 100%; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-5c574277.js").then(et=>et.a$),[]).then(({App:et})=>({default:et}))),AppContainer=()=>{const et=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:et,path:"/"}),jsxRuntimeExports.jsx(Route,{element:et,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:et,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,devtools as A,ButtonBase$1 as B,ClearIcon as C,useAppStore as D,useUserStore as E,Flex as F,useSchemaStore as G,Text as H,__vitePreload as I,InfoIcon as J,lottie as K,LinearProgress$1 as L,useModal as M,getTotalProcessing as N,getStats as O,formatStatsResponse as P,lodashExports as Q,ReactDOM as R,SocketContext as S,TransitionGroupContext as T,media as U,useAiSummaryStore as V,We as W,useNavigate as X,Q as Y,useSearchParams as Z,_inheritsLoose as _,_objectWithoutPropertiesLoose as a,GITHUB_REPOSITORY as a$,useFeatureFlagStore as a0,useForm as a1,isDevelopment as a2,FormProvider as a3,updateBudget as a4,isSphinx as a5,useNodeTypes as a6,NODE_RELATIVE_HIGHLIGHT_COLORS as a7,fetchNodeEdges as a8,MdViewInAr as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,getAugmentedNamespace as aQ,useHasAiChats as aR,postAboutData as aS,SuccessNotify as aT,NODE_ADD_ERROR as aU,TextInput as aV,requiredRule as aW,MdError as aX,TWITTER_HANDLE as aY,YOUTUBE_CHANNEL as aZ,RSS as a_,MdClose as aa,addToGlobalForE2e as ab,api$1 as ac,distExports$1 as ad,executeIfProd as ae,useIsFocusVisible as af,rootShouldForwardProp as ag,lighten as ah,darken as ai,slotShouldForwardProp as aj,Ce as ak,useFormContext as al,useHasAiChatsResponseLoading as am,Ue as an,hooks as ao,commonjsGlobal as ap,commonjsRequire as aq,getSchemaAll as ar,useFilteredNodes as as,BaseModal as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,React as b,THEME_ID as b$,LINK as b0,TWITTER_SOURCE as b1,WEB_PAGE as b2,DOCUMENT as b3,getPriceData as b4,isE2E as b5,sphinxBridge as b6,getLSat as b7,payLsat as b8,noSpacePattern as b9,postBluePrintType as bA,deleteEdgeType as bB,cloneDeep_1 as bC,useFieldArray as bD,OptionTypes as bE,NoParent as bF,editNodeSchemaUpdate as bG,createRoot as bH,react as bI,GRAPH_GROUND_COLOR as bJ,GRAPH_LIGHT_INTENSITY as bK,GRAPH_FOG_COLOR as bL,_getPrototype as bM,_MapCache as bN,_Uint8Array as bO,_getAllKeys as bP,_Stack as bQ,_getTag as bR,isBufferExports as bS,isTypedArray_1 as bT,isLength_1 as bU,request as bV,buffer$2 as bW,sphinx$1 as bX,Global as bY,useTheme$2 as bZ,defaultTheme$1 as b_,getNodeType as ba,getNodeSchemaTypes as bb,OPTIONS as bc,initialValue as bd,getNodeContent as be,MdCheckCircle as bf,MdCancel as bg,approveRadarData as bh,deleteRadarData as bi,getRadarData as bj,BaseTextInput as bk,MdCheck as bl,putRadarData as bm,getEdgeTypes as bn,getEdges as bo,postEdgeType as bp,putNodeData as bq,postMergeTopics as br,getTopicsData as bs,deleteNode as bt,keyframes as bu,css as bv,changeNodeType as bw,resolveBreakpointValues as bx,handleBreakpoints as by,updateEdgeType as bz,generateUtilityClass as c,formatMuiErrorMessage as c0,deepmerge as c1,defaultSxConfig$1 as c2,isPlainObject$1 as c3,createStyled as c4,createTheme$1 as c5,useThemeProps$1 as c6,createUnarySpacing as c7,mergeBreakpointsInOrder as c8,getValue as c9,useTheme$3 as ca,index$1 as cb,generateUtilityClasses as d,_extends as e,alpha as f,getDefaultExportFromCjs as g,clsx$2 as h,composeClasses as i,jsxRuntimeExports as j,capitalize as k,useForkRef as l,useEnhancedEffect$1 as m,setRef as n,reactDomExports as o,useEventCallback as p,useTheme as q,reactExports as r,styled$1 as s,create as t,useThemeProps as u,useDataStore as v,styled$3 as w,colors as x,clsx as y,Button$1 as z}; diff --git a/build/assets/index-69075348.js b/build/assets/index-bf769610.js similarity index 88% rename from build/assets/index-69075348.js rename to build/assets/index-bf769610.js index fba46e474..8730f5c35 100644 --- a/build/assets/index-69075348.js +++ b/build/assets/index-bf769610.js @@ -1,4 +1,4 @@ -import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as Pe,_ as ae,f as ne,h as Ie,e as Re,bs as Ot,bt as wt,bu as st,k as it,b0 as ct,n as Xe,bv as To,m as Lt,a4 as Mt,t as Ft,v as je,F as Tt}from"./index-b416b1a9.js";import{G as xo,b6 as At,y as lo,b4 as Uo,z as dt,W as Ho,aw as ut,aO as pt,b7 as Nt,J as Fo,t as zt,b8 as Dt,X as Vo,T as Et}from"./index-1f5ac1eb.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-34a19487.js";import{c as zo}from"./createSvgIcon-23cd916d.js";import{T as _t}from"./TextareaAutosize-2d5341b4.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Zt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Jt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Z,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,J]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Je?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{At(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Z&&Z(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),Le&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:J,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Z=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Z),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Z},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Z,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Ot,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${w(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=L("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=L("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Z,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),J=so(),H=io({props:s,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=J?J.focused:be,u.useEffect(()=>{!J&&$&&be&&(Me(!1),q&&q())},[J,$,be,q]);const ze=J&&J.onFilled,_e=J&&J.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);dt(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),J&&J.onFocus?J.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),J&&J.onBlur?J.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(st(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{J&&J.setAdornedStart(!!ie)},[J,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:J,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Je=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Je,a({},De,!Ho(Je)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Z,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),we=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Jo;const wn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Ln=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${w(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=L("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${w(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=L(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Z=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:J=Jo||(Jo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,wn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Je,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Zt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Z||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return wo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Je(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:J})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Z&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Zo,Qo,et;const Ze=44,Gn=it(Yo||(Yo=So` +import{r as u,j as f,bY as kt,bZ as Rt,p as xo,n as Ot,e as a,c as ye,d as $e,s as L,k as w,u as Pe,a as ae,h as ne,i as Ie,f as Re,l as lo,B as Uo,b_ as wt,b$ as Lt,m as st,c0 as it,bu as ct,bv as dt,ag as Xe,c1 as To,q as Mt,aj as Ft,w as Tt,x as je,F as At}from"./index-bde6e5ef.js";import{Q as Ho,ap as ut,aG as pt,aY as Nt,y as Fo,v as zt,aZ as Dt,U as Vo,T as Et}from"./index-5c574277.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-06c1211e.js";import{c as zo}from"./createSvgIcon-016a2106.js";import{T as _t}from"./TextareaAutosize-f9a84af0.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Qt(e){const{unstable_isActiveElementInListbox:o=Zt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Yt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Q,onClose:G,onHighlightChange:se,onInputChange:J,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ze=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{Ot(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Q&&Q(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),J&&J(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),J&&J(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function Jt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Jt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Q=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Q),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let J=null;R&&(J=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Q},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Q,children:$}),J]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:wt,themeId:Lt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${w(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=L("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=L("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Q,placeholder:G,readOnly:se,renderSuffix:J,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ye=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Q,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,J?J(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Je=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),we=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Yo;const wn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Ln=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${w(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=L("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${w(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Je.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Je.root}.${Oe.sizeSmall}`]:{[`& .${Je.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=L(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Q=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:J,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:Y=Yo||(Yo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,wn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=Qt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Q||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=J||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return wo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Ye(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Q&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Zo,Qo,Jo,et;const Qe=44,Gn=ct(Zo||(Zo=So` 0% { transform: rotate(0deg); } @@ -6,7 +6,7 @@ import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as 100% { transform: rotate(360deg); } -`)),Xn=it(Zo||(Zo=So` +`)),Xn=ct(Qo||(Qo=So` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -21,11 +21,11 @@ import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Jn=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${w(r)}`],svg:["svg"],circle:["circle",`circle${w(t)}`,s&&"circleDisableShrink"]};return Ie(c,Kn,o)},Yn=L("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${w(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ct(Qo||(Qo=So` +`)),Yn=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${w(r)}`],svg:["svg"],circle:["circle",`circle${w(t)}`,s&&"circleDisableShrink"]};return Ie(c,Kn,o)},Zn=L("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${w(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&dt(Jo||(Jo=So` animation: ${0} 1.4s linear infinite; - `),Gn)),Zn=L("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Qn=L("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${w(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ct(et||(et=So` + `),Gn)),Qn=L("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),Jn=L("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${w(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&dt(et||(et=So` animation: ${0} 1.4s ease-in-out infinite; - `),Xn)),er=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,$=ae(r,qn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=Jn(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Ze-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(Yn,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,$,{children:f.jsx(Zn,{className:R.svg,ownerState:v,viewBox:`${Ze/2} ${Ze/2} ${Ze} ${Ze}`,children:f.jsx(Qn,{className:R.circle,style:M,ownerState:v,cx:Ze,cy:Ze,r:(Ze-p)/2,fill:"none",strokeWidth:p})})}))}),or=er,tr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nr=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},rr=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${we.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${we.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${we.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${we.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${we.disabled}, .${we.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${we.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ar=L(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),mt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:$=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,tr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:$,type:M}),k=nr(i),C={root:{ownerState:O},input:{ownerState:O}},I=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:rr,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:ar;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:I,fullWidth:m,inputComponent:h,multiline:$,ref:t,type:M},P,{classes:k}))});mt.muiName="Input";const ht=mt;function lr(e){return ye("MuiFormHelperText",e)}const sr=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ot=sr;var tt;const ir=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${w(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return Ie(p,lr,o)},dr=L("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${w(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ot.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),ur=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,ir),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=cr(m);return f.jsx(dr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?tt||(tt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),pr=ur;function fr(e){return ye("MuiFormLabel",e)}const br=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=br,gr=["children","className","color","component","disabled","error","filled","focused","required"],mr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${w(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return Ie(b,fr,o)},hr=L("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),vr=L("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),xr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,gr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=mr(m);return f.jsxs(hr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(vr,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Cr=xr,yr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$r=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},yn,o);return a({},o,s)},Ir=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sr=L(Io,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:$="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,yr),k=$r(i),I={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,I):I,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Ir,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Sr;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:$,multiline:v,ref:t,type:P},O,{classes:k}))});vt.muiName="Input";const xt=vt;function Pr(e){return ye("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kr=["disableAnimation","margin","shrink","variant","className"],Rr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${w(r)}`,d],asterisk:[i&&"asterisk"]},p=Ie(b,Pr,o);return a({},o,p)},Or=L(Cr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),wr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,kr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Rr(h);return f.jsx(Or,a({"data-shrink":p,ownerState:h,ref:t,className:ne($.root,d)},i,{classes:$}))}),Lr=wr,Mr=u.createContext({}),Fr=Mr;function Tr(e){return ye("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ar=["children","className","component","dense","disablePadding","subheader"],Nr=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return Ie({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Tr,o)},zr=L("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Dr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Ar),h=u.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),v=Nr($);return f.jsx(Fr.Provider,{value:h,children:f.jsxs(zr,a({as:d,className:ne(v.root,c),ref:t,ownerState:$},m,{children:[p,s]}))})}),Er=Dr,Br=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function nt(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function Ct(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!Ct(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const jr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,$=ae(o,Br),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dt(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,I)=>{const E=!v.current.style.width;if(C.clientHeight{const I=v.current,E=C.key,N=Fo(I).activeElement;if(E==="ArrowDown")C.preventDefault(),uo(I,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo(I,N,p,b,nt);else if(E==="Home")C.preventDefault(),uo(I,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo(I,null,p,b,nt);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&Ct(N,F);F.previousKeyMatched&&(de||uo(I,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,I)=>{if(!u.isValidElement(C)){O===I&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=I),O===I&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,I)=>{if(I===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(Er,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},$,{children:k}))}),Wr=jr;function _r(e){return ye("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Ur=["onEntering"],Hr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vr={vertical:"top",horizontal:"right"},Kr={vertical:"top",horizontal:"left"},qr=e=>{const{classes:o}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_r,o)},Gr=L(zt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Xr=L(Dt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jr=L(Wr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),Yr=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:$,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,I=ae(c.TransitionProps,Ur),E=ae(c,Hr),N=Lt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:I,variant:O}),le=qr(q),de=d&&!p&&$,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},Z=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Xr,Q=(s=C.paper)!=null?s:v,re=Vo({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Gr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Vr:Kr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},I),ownerState:q},E,{classes:R,children:f.jsx(Jr,a({onKeyDown:Z,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),Zr=Yr;function Qr(e){return ye("MuiNativeSelect",e)}const ea=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ea,oa=["className","disabled","error","IconComponent","inputRef","variant"],ta=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"]};return Ie(i,Qr,o)},yt=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),na=L("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})(yt),$t=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ra=L("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})($t),aa=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,oa),m=a({},o,{disabled:s,variant:b,error:c}),h=ta(m);return f.jsxs(u.Fragment,{children:[f.jsx(na,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ra,{as:d,ownerState:m,className:h.icon})]})}),la=aa;var rt;const sa=["children","classes","className","label","notched"],ia=L("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ca=L("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function da(e){const{className:o,label:t,notched:r}=e,s=ae(e,sa),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(ia,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(ca,{ownerState:d,children:c?f.jsx("span",{children:t}):rt||(rt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ua=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pa=e=>{const{classes:o}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},In,o);return a({},o,r)},fa=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),ba=L(da,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ga=L(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),It=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:$,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ua),k=pa(b),C=so(),I=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:C,fullWidth:m,hiddenLabel:I.hiddenLabel,multiline:v,size:I.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:fa,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:ga;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(ba,{ownerState:E,className:k.notchedOutline,label:$!=null&&$!==""&&I.required?i||(i=f.jsxs(u.Fragment,{children:[$," ","*"]})):$,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});It.muiName="Input";const St=It;function ma(e){return ye("MuiSelect",e)}const ha=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ha;var at;const va=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xa=L("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})(yt,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ca=L("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})($t),ya=L("input",{shouldForwardProp:e=>Mt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lt(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function $a(e){return e==null||typeof e=="string"&&!e.trim()}const Ia=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(i,ma,o)},Sa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:$,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:I,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:Z={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,va),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),Le=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Y]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),J=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:Le.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Y(i?null:J.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Y(i?null:J.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ye=new ke.constructor(ke.type,ke);Object.defineProperty(Ye,"target",{writable:!0,value:{value:X,name:I}}),N(Ye,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:I}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(ft({value:U})||v)&&(T?ce=T(U):Ae=!0);const Je=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(st(2));B=U.some(X=>lt(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=lt(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},wa=L(xt,Bo)(""),La=L(St,Bo)(""),Ma=L(ht,Bo)(""),Pt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=gt,id:h,input:$,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,ka),de=k?la:Pa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),Z=T.variant||q,G=a({},r,{variant:Z,classes:d}),se=Oa(G),Q=ae(se,Ra),re=$||{standard:f.jsx(wa,{ownerState:G}),outlined:f.jsx(La,{label:R,ownerState:G}),filled:f.jsx(Ma,{ownerState:G})}[Z],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:Z,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},$?$.props.inputProps:{})},O&&k&&Z==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:Z},le))})});Pt.muiName="Select";const Fa=Pt;function Ta(e){return ye("MuiTextField",e)}$e("MuiTextField",["root"]);const Aa=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Na={standard:xt,filled:ht,outlined:St},za=e=>{const{classes:o}=e;return Ie({root:["root"]},Ta,o)},Da=L(jt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ea=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:$,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:I,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:Z=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Aa),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:Z,select:se,variant:A}),Le=za(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=I),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=Ao(M),ee=R&&W?`${W}-helper-text`:void 0,fe=I&&W?`${W}-label`:void 0,We=Na[A],Y=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Da,a({className:ne(Le.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:Z,color:b,variant:A,ownerState:Se},ie,{children:[I!=null&&I!==""&&f.jsx(Lr,a({htmlFor:W,id:fe},P,{children:I})),se?f.jsx(Fa,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Y},Q,{children:d})):Y,R&&f.jsx(pr,a({id:ee},$,{children:R}))]}))}),Ba=Ea,ja={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},qa=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[$,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Wt,{flexGrow:1,spacing:1,children:f.jsx(Vn,{...ja,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:$,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(No,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Wa,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(or,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(Tt,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Et,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Wa=Ft(Ba)` + `),Xn)),er=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,$=ae(r,qn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=Yn(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Qe-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(Zn,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,$,{children:f.jsx(Qn,{className:R.svg,ownerState:v,viewBox:`${Qe/2} ${Qe/2} ${Qe} ${Qe}`,children:f.jsx(Jn,{className:R.circle,style:M,ownerState:v,cx:Qe,cy:Qe,r:(Qe-p)/2,fill:"none",strokeWidth:p})})}))}),or=er,tr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nr=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},rr=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${we.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${we.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${we.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${we.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${we.disabled}, .${we.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${we.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ar=L(Io,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),mt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:$=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,tr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:$,type:M}),k=nr(i),C={root:{ownerState:O},input:{ownerState:O}},I=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:rr,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:ar;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:I,fullWidth:m,inputComponent:h,multiline:$,ref:t,type:M},P,{classes:k}))});mt.muiName="Input";const ht=mt;function lr(e){return ye("MuiFormHelperText",e)}const sr=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ot=sr;var tt;const ir=["children","className","component","disabled","error","filled","focused","margin","required","variant"],cr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${w(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return Ie(p,lr,o)},dr=L("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${w(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ot.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ot.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),ur=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,ir),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=cr(m);return f.jsx(dr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?tt||(tt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),pr=ur;function fr(e){return ye("MuiFormLabel",e)}const br=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=br,gr=["children","className","color","component","disabled","error","filled","focused","required"],mr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${w(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return Ie(b,fr,o)},hr=L("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),vr=L("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),xr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,gr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=mr(m);return f.jsxs(hr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(vr,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Cr=xr,yr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$r=e=>{const{classes:o,disableUnderline:t}=e,s=Ie({root:["root",!t&&"underline"],input:["input"]},yn,o);return a({},o,s)},Ir=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Je.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Je.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Je.disabled}, .${Je.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Je.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sr=L(Io,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:$="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,yr),k=$r(i),I={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,I):I,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Ir,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Sr;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:$,multiline:v,ref:t,type:P},O,{classes:k}))});vt.muiName="Input";const xt=vt;function Pr(e){return ye("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kr=["disableAnimation","margin","shrink","variant","className"],Rr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${w(r)}`,d],asterisk:[i&&"asterisk"]},p=Ie(b,Pr,o);return a({},o,p)},Or=L(Cr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),wr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,kr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Rr(h);return f.jsx(Or,a({"data-shrink":p,ownerState:h,ref:t,className:ne($.root,d)},i,{classes:$}))}),Lr=wr,Mr=u.createContext({}),Fr=Mr;function Tr(e){return ye("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ar=["children","className","component","dense","disablePadding","subheader"],Nr=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return Ie({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Tr,o)},zr=L("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Dr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Ar),h=u.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),v=Nr($);return f.jsx(Fr.Provider,{value:h,children:f.jsxs(zr,a({as:d,className:ne(v.root,c),ref:t,ownerState:$},m,{children:[p,s]}))})}),Er=Dr,Br=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function nt(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function Ct(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!Ct(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const jr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,$=ae(o,Br),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});st(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,I)=>{const E=!v.current.style.width;if(C.clientHeight{const I=v.current,E=C.key,N=Fo(I).activeElement;if(E==="ArrowDown")C.preventDefault(),uo(I,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo(I,N,p,b,nt);else if(E==="Home")C.preventDefault(),uo(I,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo(I,null,p,b,nt);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&Ct(N,F);F.previousKeyMatched&&(de||uo(I,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,I)=>{if(!u.isValidElement(C)){O===I&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=I),O===I&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,I)=>{if(I===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(Er,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},$,{children:k}))}),Wr=jr;function _r(e){return ye("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const Ur=["onEntering"],Hr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vr={vertical:"top",horizontal:"right"},Kr={vertical:"top",horizontal:"left"},qr=e=>{const{classes:o}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},_r,o)},Gr=L(zt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Xr=L(Dt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yr=L(Wr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),Zr=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:$,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,I=ae(c.TransitionProps,Ur),E=ae(c,Hr),N=Mt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:I,variant:O}),le=qr(q),de=d&&!p&&$,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},Q=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Xr,J=(s=C.paper)!=null?s:v,re=Vo({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:J,ownerState:q,className:le.paper});return f.jsx(Gr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Vr:Kr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},I),ownerState:q},E,{classes:R,children:f.jsx(Yr,a({onKeyDown:Q,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),Qr=Zr;function Jr(e){return ye("MuiNativeSelect",e)}const ea=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ea,oa=["className","disabled","error","IconComponent","inputRef","variant"],ta=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"]};return Ie(i,Jr,o)},yt=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),na=L("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})(yt),$t=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ra=L("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})($t),aa=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,oa),m=a({},o,{disabled:s,variant:b,error:c}),h=ta(m);return f.jsxs(u.Fragment,{children:[f.jsx(na,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ra,{as:d,ownerState:m,className:h.icon})]})}),la=aa;var rt;const sa=["children","classes","className","label","notched"],ia=L("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ca=L("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function da(e){const{className:o,label:t,notched:r}=e,s=ae(e,sa),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(ia,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(ca,{ownerState:d,children:c?f.jsx("span",{children:t}):rt||(rt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ua=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pa=e=>{const{classes:o}=e,r=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},In,o);return a({},o,r)},fa=L($o,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),ba=L(da,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),ga=L(Io,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),It=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:$,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ua),k=pa(b),C=so(),I=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:C,fullWidth:m,hiddenLabel:I.hiddenLabel,multiline:v,size:I.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:fa,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:ga;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(ba,{ownerState:E,className:k.notchedOutline,label:$!=null&&$!==""&&I.required?i||(i=f.jsxs(u.Fragment,{children:[$," ","*"]})):$,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});It.muiName="Input";const St=It;function ma(e){return ye("MuiSelect",e)}const ha=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ha;var at;const va=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xa=L("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})(yt,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ca=L("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})($t),ya=L("input",{shouldForwardProp:e=>Ft(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lt(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function $a(e){return e==null||typeof e=="string"&&!e.trim()}const Ia=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ie(i,ma,o)},Sa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:$,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:I,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:Q={},tabIndex:G,value:se,variant:J="standard"}=o,re=ae(o,va),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),Le=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:Le.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:I}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:I}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(ft({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(it(2));B=U.some(X=>lt(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=lt(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},wa=L(xt,Bo)(""),La=L(St,Bo)(""),Ma=L(ht,Bo)(""),Pt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=gt,id:h,input:$,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,ka),de=k?la:Pa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),Q=T.variant||q,G=a({},r,{variant:Q,classes:d}),se=Oa(G),J=ae(se,Ra),re=$||{standard:f.jsx(wa,{ownerState:G}),outlined:f.jsx(La,{label:R,ownerState:G}),filled:f.jsx(Ma,{ownerState:G})}[Q],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:Q,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:I,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(J,v.classes):J},$?$.props.inputProps:{})},O&&k&&Q==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:Q},le))})});Pt.muiName="Select";const Fa=Pt;function Ta(e){return ye("MuiTextField",e)}$e("MuiTextField",["root"]);const Aa=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Na={standard:xt,filled:ht,outlined:St},za=e=>{const{classes:o}=e;return Ie({root:["root"]},Ta,o)},Da=L(jt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ea=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:$,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:I,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:Q=!1,rows:G,select:se=!1,SelectProps:J,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Aa),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:Q,select:se,variant:A}),Le=za(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=I),se&&((!J||!J.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=Ao(M),ee=R&&W?`${W}-helper-text`:void 0,fe=I&&W?`${W}-label`:void 0,We=Na[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Da,a({className:ne(Le.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:Q,color:b,variant:A,ownerState:Se},ie,{children:[I!=null&&I!==""&&f.jsx(Lr,a({htmlFor:W,id:fe},P,{children:I})),se?f.jsx(Fa,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},J,{children:d})):Z,R&&f.jsx(pr,a({id:ee},$,{children:R}))]}))}),Ba=Ea,ja={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},qa=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[$,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Wt,{flexGrow:1,spacing:1,children:f.jsx(Vn,{...ja,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:$,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(No,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Wa,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(or,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(At,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Et,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Wa=Tt(Ba)` && { z-index: 2; width: 100%; diff --git a/build/assets/index-c99ee90f.js b/build/assets/index-c99ee90f.js new file mode 100644 index 000000000..eebedc69a --- /dev/null +++ b/build/assets/index-c99ee90f.js @@ -0,0 +1,133 @@ +import{aY as j,aZ as E,a_ as b,a$ as R,b0 as A,b1 as U,b2 as D,b3 as O,w as x,x as u,E as Z,r as f,j as e,F as r,z as C,aX as J,H as z,b4 as K,aV as X,aW as Q,M as ee,v as te,a1 as se,aT as ne,aU as m,at as oe,a3 as re,b5 as ae,ad as ie,b6 as ce,b7 as le,ac as de,a4 as ue,b8 as xe}from"./index-bde6e5ef.js";import{aD as pe,ab as he}from"./index-5c574277.js";import{C as fe}from"./ClipLoader-2c26140d.js";const B=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?A:ve.test(t)?E:B.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?B:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,p]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);p(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[pe(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Ae=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + width: 141px; + height: 61px; + border: 1px solid ${u.GRAY7}; + border-radius: 6px; + padding: 16px; + .title { + font-family: Barlow; + color: ${u.secondaryText4}; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + color: ${u.white}; + font-size: 18px; + font-style: normal; + font-weight: 500; + } +`,Be=x(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + color: ${u.secondaryText4}; + .title { + font-family: Barlow; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + font-size: 14px; + font-style: normal; + font-weight: 400; + } +`,ke=x(z)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,Ne=x(r)` + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 2px; + + .errorIcon { + display: block; + font-size: 13px; + min-height: 13px; + min-width: 13px; + } + + span { + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; + white-space: normal; + letter-spacing: 0.2px; + cursor: pointer; + padding-left: 4px; + font-size: 13px; + font-family: Barlow; + line-height: 18px; + } +`,Pe=x(r)` + display: flex; + align-items: center; + color: ${u.primaryRed}; + position: relative; + margin-top: 20px; +`,L=x.span` + display: inline-flex; + align-items: center; + justify-content: center; + margin-top: 2px; + + svg { + width: 16px; + height: 16px; + } +`,Ie=/^(https?:\/\/)/g,Le=/(www\.)?/g,Ue=/[\w-]+(\.[\w-]+)*/g,De=/(?:\.[a-zA-Z0-9][a-zA-Z0-9-]{0,61})[a-zA-Z0-9](?:\.[a-zA-Z]{2,})/g,Oe=/(\/[^\s?]*)?/g,Ze=/(\?[^\s]*)?/g,G=new RegExp(`${Ie.source}${Le.source}${Ue.source}${De.source}?${Oe.source}${Ze.source}$`,"i"),M=t=>{if(t==null?void 0:t.match(G)){const o=new URL(t).hostname;return o!=null&&o.startsWith("www.")?((o==null?void 0:o.match(/\./g))||[]).length>=2:((o==null?void 0:o.match(/\./g))||[]).length>=1}return!1},Ge=({type:t,onNextStep:s,allowNextStep:n})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(Me,{children:"Add Content"})})}),e.jsx(r,{mb:12,children:e.jsx(X,{id:"cy-youtube-channel-id",maxLength:250,name:"source",placeholder:"Paste your url here...",rules:{...Q,...t!==A?{pattern:{message:"Please enter a valid URL",value:G},validate:{source:M}}:{}}})}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"add-content-btn",disabled:!n,onClick:s,size:"large",variant:"contained",children:"Next"})})]}),Me=x(z)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,T={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[b]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},He=({onNextStep:t,onPrevStep:s,type:n,value:o})=>e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(We,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(Ve,{children:[e.jsx("img",{alt:T[n].label,className:"badge__img",src:T[n].img}),e.jsx(Ye,{children:T[n].label})]}),e.jsx(Fe,{children:$e(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(qe,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(C,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),Fe=x(r)` + font-family: Barlow; + font-size: 14px; + font-weight: 400; + line-height: 16px; + letter-spacing: 0em; + text-align: left; + margin-top: 15px; + color: ${u.GRAY3}; + max-width: 300px; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: break-word; +`,We=x(z)` + font-family: Barlow; + font-size: 14px; + font-weight: 500; + line-height: 17px; + letter-spacing: 0px; + text-align: left; +`,Ye=x(z)` + font-family: Barlow; + font-size: 20px; + font-weight: 600; + line-height: 16px; + letter-spacing: 0em; + text-align: left; + color: ${u.white}; +`,Ve=x(r)` + display: flex; + flex-direction: row; + align-items: center; + gap: 12px; +`,qe=x(C)` + && { + background: ${u.white}; + color: ${u.BG2}; + + &:active, + &:hover, + &:focus { + background: ${u.white}; + color: ${u.BG2}; + } + } +`,H=async(t,s,n,o)=>{const y=_(s)?"radar":"add_node",a={};if(s===A)a.media_url=t.source,a.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;a.tweet_id=S}}else a.tweet_id=t.source;a.content_type="tweet"}else if(s===D)a.content_type="webpage",a.web_page=t.source;else if(s===O)a.content_type="document",a.text=t.source;else if(s===j){const[,i]=(t.source||"").match(B)||[];if(i)a.source=i,a.source_type=s;else return}else(s===E||s===b||s===R)&&(a.source=t.source,a.source_type=s);t.latitude&&t.longitude&&(a.latitude=t.latitude,a.longitude=t.longitude);let p="",d;ae?d=await ce.enable():d=await ie.enable(),a.pubkey=d==null?void 0:d.pubkey,p=await le();try{const i=await de.post(`/${y}`,JSON.stringify(a),{Authorization:p});if(await ue(n),i.data.project_id&&o(i.data.project_id),i.error){const{message:c}=i.error;throw new Error(c)}}catch(i){if(i.status===402)await xe(n),await H(t,s,n,o);else{let c=m;if(i.status===400)try{const l=await i.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else i instanceof Error&&(c=i.message||m);throw new Error(c)}}},Qe=()=>{const[t,s]=f.useState(0),{close:n,visible:o}=ee("addContent"),{setBudget:y}=Z(g=>g),{setRunningProjectId:a}=te(g=>g),p=se({mode:"onChange"}),{watch:d,setValue:i,reset:c}=p,[l,S]=f.useState(!1),[F,k]=f.useState("");f.useEffect(()=>()=>{k(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),W=M(N);f.useEffect(()=>{(async()=>{const h=await ze(P);i("inputType",h)})()},[P,i]);const Y=()=>{n()},I=()=>{s(t===0?_(w)?1:2:t+1)},V=()=>{s(t-1)},q=p.handleSubmit(async g=>{S(!0);try{await H(g,w,y,a),ne("Content Added"),Y()}catch(h){let $=m;if((h==null?void 0:h.status)===400){const v=await h.json();$=v.errorCode||(v==null?void 0:v.status)||m}else h instanceof Error&&($=h.message);k(String($))}finally{S(!1)}});return e.jsx(oe,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(re,{...p,children:e.jsxs("form",{id:"add-node-form",onSubmit:q,children:[t===0&&e.jsx(Ge,{allowNextStep:W,onNextStep:I,type:w}),t===1&&_(w)&&e.jsx(He,{onNextStep:I,onPrevStep:V,type:w,value:N}),t===2&&e.jsx(Te,{error:F,loading:l,onClick:()=>null,type:w})]})})})};export{Qe as AddContentModal}; diff --git a/build/assets/index-d36a9cfa.js b/build/assets/index-d36a9cfa.js deleted file mode 100644 index 2c03595f4..000000000 --- a/build/assets/index-d36a9cfa.js +++ /dev/null @@ -1,50 +0,0 @@ -import{t as i,v as t,F as c,j as e,r as l,q as k,a_ as C,a$ as R}from"./index-b416b1a9.js";import{B as I}from"./index-8331965f.js";import{a_ as z,u as j,f as D,e as E,B as w}from"./index-1f5ac1eb.js";import{S as L}from"./Skeleton-0e0ce42e.js";import{C as T}from"./ClipLoader-a0a9ce2c.js";const _=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(M,{children:e.jsx(z,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` - color: ${t.white}; - font-family: 'Barlow'; - font-size: 20px; - font-weight: 400; - line-height: 30px; - letter-spacing: 0px; - text-align: center; - padding: 0 20px; - width: 100%; - word-wrap: break-word; -`,M=i(c)` - justify-content: center; - align-items: center; - font-size: 52px; - color: #23252f; - margin-bottom: 20px; - - path:nth-child(3) { - color: #6b7a8d; - } -`,A=()=>{const{close:p}=j("removeNode"),{close:h}=j("editNodeName"),[x,d]=l.useState(!1),[g]=D(s=>[s.setSelectedNode]),[v]=k(s=>[s.removeNode]),[N,y]=l.useState(!1),[r,S]=l.useState(),[a,B]=l.useState(),o=E(),f=()=>{p()};l.useEffect(()=>{(async()=>{if(o){y(!0);try{if(o.type==="topic"){const{data:n}=await C({search:o==null?void 0:o.name}),m=n.find(u=>u.name===o.name);B(m)}else S(o)}catch(n){console.log(n)}finally{y(!1)}}})()},[o]);const $=async()=>{d(!0);try{g(null),f(),h()}catch(s){console.warn(s)}finally{d(!1)}},b=async()=>{let s="";const n=r||a;if(!n)return;n!=null&&n.ref_id&&(s=n.ref_id),d(!0);const m=o==null?void 0:o.ref_id;try{await R(s),v(m),g(null),f(),h()}catch(u){console.warn(u)}finally{d(!1)}};return e.jsxs(W,{children:[e.jsx(_,{nodeName:(r==null?void 0:r.name)||(a==null?void 0:a.name)||""}),N?e.jsx(L,{}):e.jsxs(c,{direction:"row",mt:34,children:[e.jsx(F,{color:"secondary",onClick:f,size:"large",style:{flex:1,marginRight:20},variant:"contained",children:"Cancel"}),e.jsxs(q,{color:"secondary",disabled:x||!r&&!a,onClick:r||a?b:$,size:"large",style:{flex:1},variant:"contained",children:["Delete",x&&e.jsx(H,{children:e.jsx(T,{color:t.lightGray,size:12})})]})]})]})},W=i(c)` - padding: 4px 12px 16px; -`,F=i(w)` - && { - background: ${t.white}; - color: ${t.BG2}; - - &:active, - &:hover, - &:focus { - background: ${t.white}; - color: ${t.BG2}; - } - } -`,q=i(w)` - && { - color: ${t.white}; - background-color: ${t.primaryRed}; - - &:hover, - &:active, - &:focus { - color: ${t.white}; - background-color: ${t.primaryRed}; - } - } -`,H=i.span` - margin-top: 2px; -`,U=()=>e.jsx(I,{id:"removeNode",kind:"small",preventOutsideClose:!0,children:e.jsx(A,{})});export{U as RemoveNodeModal}; diff --git a/build/assets/index-da03d4e9.js b/build/assets/index-da03d4e9.js new file mode 100644 index 000000000..7bb6b5b26 --- /dev/null +++ b/build/assets/index-da03d4e9.js @@ -0,0 +1,77 @@ +import{w as v,x as B,H as z,F as r,r as f,al as U,j as e,aV as J,aW as K,b9 as Q,z as E,ba as $,a0 as X,bb as Z,M as D,a1 as N,aU as O,at as ee,a3 as te,bs as ne,bw as re}from"./index-bde6e5ef.js";import{p as V}from"./index-c0853f89.js";import{C as W}from"./ClipLoader-2c26140d.js";import{u as G}from"./index-5c574277.js";import{A as H}from"./index-bf769610.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-06c1211e.js";import"./createSvgIcon-016a2106.js";import"./TextareaAutosize-f9a84af0.js";const q=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],Y=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=U();f.useEffect(()=>{(async()=>{w(!0);const o=await $(x),T=V(o),A=Y(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{a(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(z,{children:s(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:Q}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(z)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ie=v(r)` + width: 100%; + display: flex; + justify-content: center; + gap: 10px; + margin: 0 0 15px 0; + + .input__wrapper { + display: flex; + gap: 15px; + max-height: 225px; + overflow-y: auto; + padding-right: 20px; + width: calc(100% + 20px); + } +`,ce=v(r)` + display: flex; + gap: 10px; + + #item-name { + color: ${B.GRAY7}; + -webkit-text-fill-color: ${B.GRAY7}; + } +`,le=({nodeType:a,onclose:l,selectedNodeType:x})=>e.jsxs(r,{children:[e.jsx(r,{mb:20,children:e.jsx(R,{children:"Confirm Type Change"})}),e.jsx(r,{mb:25,children:e.jsxs(R,{children:["From: ",x]})}),e.jsx(r,{mb:25,children:e.jsxs(R,{children:["To: ",a]})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:l,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),R=v(z)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,pe=({handleSelectType:a,skipToStep:l,selectedNodeType:x,nodeType:n,selectedValues:h,setSelectedValues:w})=>{const[m,C]=f.useState(!1),[j,t]=f.useState(),[s,i]=f.useState(),{watch:p}=U();f.useEffect(()=>{const d=async(u,y)=>{C(!0);const g=await $(u),F=V(g),_=Y(F);y(_),C(!1)};n&&d(n,t),x&&d(x,i)},[n,x,p]);const S=f.useMemo(()=>k(j),[j]),b=f.useMemo(()=>k(s),[s]),c=()=>{a(""),l("sourceType")};f.useEffect(()=>{if(j&&s){const d=s.reduce((u,y)=>{const g=j.find(F=>F.key===y.key);return u[y.key]=g?y.key:"none",u},{});w(d)}},[j,s,w]);const o=(d,u)=>{w(y=>({...y,[d]:u}))},T=()=>{const d=S.every(({key:u,required:y})=>!y||y&&h[u]&&h[u]!=="none");l(d?"createConfirmation":"requiredProperties")},A=f.useMemo(()=>b.map(({key:d})=>{const u=h[d]||"none",y=S.filter(g=>!Object.values(h).includes(g.key)||g.key===u).map(g=>({label:q(g.key),value:g.key}));return y.unshift({label:"None",value:"none"}),{key:d,autoCompleteOptions:y,selectedValue:u}}),[b,S,h]);return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(de,{children:"Map Properties"})})}),e.jsx(ue,{children:m?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.lightGray})}):e.jsxs(xe,{children:[e.jsxs(fe,{children:[e.jsx(I,{children:q(x)}),b.map(({key:d})=>e.jsx(he,{children:e.jsx(z,{children:q(d)})},d))]}),e.jsxs(me,{children:[e.jsx(I,{children:q(n)}),A.map(({key:d,autoCompleteOptions:u,selectedValue:y})=>e.jsx(r,{children:e.jsx(H,{isLoading:m,onSelect:g=>o(d,g?g.value:"none"),options:u,selectedValue:u.find(g=>g.value===y)})},d))]})]})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:c,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:m,onClick:T,size:"large",variant:"contained",children:"Next"})})]})]})},de=v(z)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ue=v(r)` + width: 100%; + display: flex; + justify-content: center; + gap: 10px; + margin: 0 0 15px 0; + + .input__wrapper { + display: flex; + gap: 15px; + max-height: 225px; + overflow-y: auto; + padding-right: 20px; + width: calc(100% + 20px); + } +`,xe=v.div` + display: flex; + justify-content: space-between; +`,fe=v.div` + flex: 1; + margin-right: 16px; +`,he=v.div` + display: flex; + gap: 16px; + margin-top: 38px; +`,me=v.div` + flex: 1; + display: flex; + flex-direction: column; + gap: 16px; +`,I=v.h3` + font-size: 16px; + font-weight: bold; + margin-bottom: 8px; + font-family: 'Barlow'; + color: white; + margin-bottom: 15px; +`,ye={label:"Not Selected",value:"Not Selected"},ge=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],je=({skipToStep:a,allowNextStep:l,onSelectType:x,selectedType:n})=>{const[h]=X(i=>[i.customSchemaFeatureFlag]),[w,m]=f.useState(null),[C,j]=f.useState(!1),t=G();f.useEffect(()=>{(async()=>{var p;if(h){j(!0);try{const S=await Z(),b=["about","schema",(p=t==null?void 0:t.node_type)==null?void 0:p.toLowerCase()],c=S.schemas.filter(o=>o.ref_id&&!b.includes(o.type.toLowerCase())&&!o.is_deleted).map(o=>({label:oe(o.type),value:o.type,action:()=>a("mapProperties")}));m(c)}catch(S){console.warn(S)}finally{j(!1)}}else m([...ge,ye])})()},[t==null?void 0:t.node_type,n,h,a]);const s=i=>{x((i==null?void 0:i.label)||"")};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(be,{children:"Select Type"})})}),e.jsx(r,{direction:"row",mb:20,children:e.jsx(H,{autoFocus:!0,isLoading:C,onSelect:s,options:w})}),e.jsx(r,{children:e.jsx(E,{color:"secondary",disabled:!l,onClick:()=>a("mapProperties"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},be=v(z)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,we=async(a,l,x,n)=>{const h={},w=[];Object.entries(x).forEach(([t,s])=>{s!=="none"&&(h[s]=t),t!==s&&w.push(t)});const m={};Object.keys(n||{}).forEach(t=>{const s=n==null?void 0:n[t];Object.entries(h).forEach(([i,p])=>{p===t&&(m[h[i]]=s)})}),Object.keys(a).forEach(t=>{t!=="nodeType"&&(m[t]=a[t])});const C=n?n.node_type.charAt(0).toUpperCase()+n.node_type.slice(1):void 0,j={node_type:l,node_data:m,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=n==null?void 0:n.ref_id;if((n==null?void 0:n.type)==="topic"){const{data:i}=await ne({search:n==null?void 0:n.name}),p=i.find(S=>S.name===n.name);t=p==null?void 0:p.ref_id}const s=t||(n==null?void 0:n.ref_id);s&&await re(s,j)}catch(t){console.error(t);let s=O;if(t.status===400)try{const i=await t.json();s=i.message||i.errorCode||(i==null?void 0:i.status)||O}catch{s=O}else t instanceof Error&&(s=t.message);throw new Error(s)}},Oe=()=>{const[a,l]=f.useState("sourceType"),{close:x,visible:n}=D("changeNodeType"),{open:h}=D("editNodeName"),{open:w}=D("addType"),m=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=m,[s,i]=f.useState(""),[p,S]=f.useState({});f.useEffect(()=>()=>{l("sourceType"),t()},[n,t]);const b=G(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{x()},A=_=>{l(_)},d=m.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let L=O;if(T(),(P==null?void 0:P.status)===400){const M=await P.json();L=M.errorCode||(M==null?void 0:M.status)||O}else P instanceof Error&&(L=P.message);i(String(L))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(ae,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=a==="mapProperties"?"regular":"small",F=()=>{x(),h()};return e.jsx(ee,{id:"changeNodeType",kind:g,onClose:F,preventOutsideClose:!0,children:e.jsx(te,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[a]})})})};export{Oe as ChangeNodeTypeModal}; diff --git a/build/assets/index-f63e96f7.js b/build/assets/index-e0614544.js similarity index 58% rename from build/assets/index-f63e96f7.js rename to build/assets/index-e0614544.js index 5c39566b6..049422c15 100644 --- a/build/assets/index-f63e96f7.js +++ b/build/assets/index-e0614544.js @@ -1,4 +1,4 @@ -import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az as y,aA as z}from"./index-b416b1a9.js";import{B as A}from"./index-8331965f.js";import{f as T,g as k,aI as M,aJ as D,C as R,an as E,aK as L,B as C,a0 as P,a1 as W,u as w}from"./index-1f5ac1eb.js";import{C as G}from"./ClipLoader-a0a9ce2c.js";import{e as F}from"./index.esm-258646ab.js";import{S as V}from"./index-17930aa1.js";import{T as j}from"./index-64813bbe.js";import{T as U,a as N}from"./Tabs-79411ac3.js";import"./createSvgIcon-23cd916d.js";const Y={split:e.jsx(D,{}),force:e.jsx(R,{}),sphere:e.jsx(E,{}),earth:e.jsx(L,{})},O=()=>{const[n,p]=T(k(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{p(t)};return e.jsx(_,{direction:"column",children:M.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},_=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` +import{w as a,x as r,F as i,j as e,y as I,H as S,r as b,z as v,a1 as A,D as $,E as C,aS as B,aT as z,aU as y,a3 as M,aV as w,aW as k,aX as D,M as j,at as E}from"./index-bde6e5ef.js";import{e as T,f as R,aA as L,aB as W,C as P,ag as V,aC as F}from"./index-5c574277.js";import{C as G}from"./ClipLoader-2c26140d.js";import{T as U,a as N}from"./Tabs-07181cd3.js";import"./createSvgIcon-016a2106.js";const Y={split:e.jsx(W,{}),force:e.jsx(P,{}),sphere:e.jsx(V,{}),earth:e.jsx(F,{})},H=()=>{const[n,c]=T(R(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{c(t)};return e.jsx(O,{direction:"column",children:L.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},O=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${r.appearanceBg}; @@ -28,16 +28,16 @@ import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az .icon + .icon { margin-left: 20px; } -`,H=({onClose:n})=>{const[p]=T(x=>[x.graphStyle]),[l,t]=b.useState(!1),c=()=>{t(!0),localStorage.setItem("graphStyle",p),t(!1),n()};return e.jsxs(K,{direction:"column",children:[e.jsx(q,{children:"Default graph view:"}),e.jsx(O,{}),e.jsx(i,{mt:308,py:8,children:e.jsx(C,{color:"secondary",disabled:l,id:"add-node-submit-cta",onClick:c,size:"large",startIcon:l&&e.jsx(J,{children:e.jsx(G,{color:r.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},K=a(i)` +`,_=({onClose:n})=>{const[c]=T(x=>[x.graphStyle]),[l,t]=b.useState(!1),p=()=>{t(!0),localStorage.setItem("graphStyle",c),t(!1),n()};return e.jsxs(q,{direction:"column",children:[e.jsx(K,{children:"Default graph view:"}),e.jsx(H,{}),e.jsx(i,{mt:308,py:8,children:e.jsx(v,{color:"secondary",disabled:l,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:l&&e.jsx(X,{children:e.jsx(G,{color:r.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},q=a(i)` display: flex; gap: 10px; padding: 36px; -`,q=a(S)` +`,K=a(S)` font-family: Barlow; font-size: 13px; font-weight: 400; color: ${r.lightGray}; -`,J=a.span` +`,X=a.span` display: inline-flex; align-items: center; justify-content: center; @@ -47,7 +47,7 @@ import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az width: 16px; height: 16px; } -`,Q=({initialValues:n,onClose:p})=>{const l=P({defaultValues:n,mode:"onSubmit"}),{isSubmitting:t}=l.formState,c=v(o=>o.setAppMetaData),{swarmUiUrl:x}=$(o=>o),[h,u]=b.useState(""),m=l.handleSubmit(async o=>{try{(await B(o)).status==="success"&&(V("Changes Saved"),c(o),p())}catch(d){let f=y;if((d==null?void 0:d.status)===400){const g=await d.json();f=g.errorCode||(g==null?void 0:g.status)||y}else d instanceof Error&&(f=d.message);u(String(f))}}),s=o=>{o.preventDefault(),m()};return e.jsx(W,{...l,children:e.jsx(X,{id:"add-node-form",onSubmit:s,children:e.jsxs(te,{children:[e.jsxs(i,{children:[x&&e.jsx(ee,{children:e.jsx(ae,{href:x,children:"View Swarm UI"})}),e.jsx(i,{pt:20,children:e.jsx(j,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...z}})}),e.jsx(i,{pt:20,children:e.jsx(j,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(i,{mt:210,py:h?0:24,children:[e.jsx(C,{color:"secondary",disabled:t,id:"add-node-submit-cta",size:"large",startIcon:t&&e.jsx(Z,{children:e.jsx(G,{color:r.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(ie,{children:e.jsxs(ne,{children:[e.jsx(F,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},X=a.form` +`,J=({initialValues:n,onClose:c})=>{const l=A({defaultValues:n,mode:"onSubmit"}),{isSubmitting:t}=l.formState,p=$(o=>o.setAppMetaData),{swarmUiUrl:x}=C(o=>o),[h,u]=b.useState(""),m=l.handleSubmit(async o=>{try{(await B(o)).status==="success"&&(z("Changes Saved"),p(o),c())}catch(d){let f=y;if((d==null?void 0:d.status)===400){const g=await d.json();f=g.errorCode||(g==null?void 0:g.status)||y}else d instanceof Error&&(f=d.message);u(String(f))}}),s=o=>{o.preventDefault(),m()};return e.jsx(M,{...l,children:e.jsx(Q,{id:"add-node-form",onSubmit:s,children:e.jsxs(te,{children:[e.jsxs(i,{children:[x&&e.jsx(ee,{children:e.jsx(ae,{href:x,children:"View Swarm UI"})}),e.jsx(i,{pt:20,children:e.jsx(w,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...k}})}),e.jsx(i,{pt:20,children:e.jsx(w,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(i,{mt:210,py:h?0:24,children:[e.jsx(v,{color:"secondary",disabled:t,id:"add-node-submit-cta",size:"large",startIcon:t&&e.jsx(Z,{children:e.jsx(G,{color:r.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),h?e.jsx(ie,{children:e.jsxs(ne,{children:[e.jsx(D,{className:"errorIcon"}),e.jsx("span",{children:h})]})}):null]})]})})})},Q=a.form` padding: 36px; height: 100%; `,Z=a.span` @@ -107,18 +107,18 @@ import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az font-family: Barlow; line-height: 18px; } -`,se=n=>{const{children:p,value:l,index:t,...c}=n;return l===t?e.jsx(de,{"aria-labelledby":`simple-tab-${t}`,hidden:l!==t,id:`simple-tabpanel-${t}`,role:"tabpanel",...c,children:p}):null};function oe(n){return{id:`simple-tab-${n}`,"aria-controls":`simple-tabpanel-${n}`}}const re=({onClose:n})=>{const[p,l]=b.useState(0),[t]=$(s=>[s.isAdmin,s.setPubKey]),c=v(s=>s.appMetaData),x=()=>t?"Admin Settings":"Settings",h=({children:s})=>e.jsxs(pe,{children:[e.jsx(i,{direction:"row",pt:3,children:e.jsx(he,{"data-testid":"setting-label",children:x()})}),s]}),u=(s,o)=>{l(o)},m=[...t?[{label:"General",component:Q}]:[],{label:"Appearance",component:H}];return e.jsxs(xe,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(h,{children:e.jsx(le,{"aria-label":"settings tabs",onChange:u,value:p,children:m.map((s,o)=>e.jsx(ce,{disableRipple:!0,label:s.label,...oe(o)},s.label))})}),m.map((s,o)=>e.jsx(se,{index:o,value:p,children:c&&e.jsx(s.component,{initialValues:c,onClose:n})},s.label))]})},le=a(U)` +`,se=n=>{const{children:c,value:l,index:t,...p}=n;return l===t?e.jsx(de,{"aria-labelledby":`simple-tab-${t}`,hidden:l!==t,id:`simple-tabpanel-${t}`,role:"tabpanel",...p,children:c}):null};function oe(n){return{id:`simple-tab-${n}`,"aria-controls":`simple-tabpanel-${n}`}}const re=({onClose:n})=>{const[c,l]=b.useState(0),[t]=C(s=>[s.isAdmin,s.setPubKey]),p=$(s=>s.appMetaData),x=()=>t?"Admin Settings":"Settings",h=({children:s})=>e.jsxs(ce,{children:[e.jsx(i,{direction:"row",pt:3,children:e.jsx(he,{"data-testid":"setting-label",children:x()})}),s]}),u=(s,o)=>{l(o)},m=[...t?[{label:"General",component:J}]:[],{label:"Appearance",component:_}];return e.jsxs(xe,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(h,{children:e.jsx(le,{"aria-label":"settings tabs",onChange:u,value:c,children:m.map((s,o)=>e.jsx(pe,{disableRipple:!0,label:s.label,...oe(o)},s.label))})}),m.map((s,o)=>e.jsx(se,{index:o,value:c,children:p&&e.jsx(s.component,{initialValues:p,onClose:n})},s.label))]})},le=a(U)` && { .MuiTabs-indicator { background: ${r.primaryBlue}; } padding-left: 34px; } -`,pe=a(i)` +`,ce=a(i)` border-radius: 9px 9px 0 0; background: rgb(22, 24, 30); padding: 40px 36px 0 0; -`,ce=a(N)` +`,pe=a(N)` && { min-width: 0; width: auto; @@ -182,4 +182,4 @@ import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az @media (max-width: 768px) { font-size: 18px; } -`,ve=()=>{const{close:n}=w("settings"),{visible:p}=w("addItem");return p?null:e.jsx(A,{background:"BG1",id:"settings",noWrap:!0,onClose:n,preventOutsideClose:!0,children:e.jsx(re,{onClose:n})})};export{ve as SettingsModal}; +`,ye=()=>{const{close:n}=j("settings"),{visible:c}=j("addItem");return c?null:e.jsx(E,{background:"BG1",id:"settings",noWrap:!0,onClose:n,preventOutsideClose:!0,children:e.jsx(re,{onClose:n})})};export{ye as SettingsModal}; diff --git a/build/assets/index-e8159074.js b/build/assets/index-e8159074.js deleted file mode 100644 index d448f3375..000000000 --- a/build/assets/index-e8159074.js +++ /dev/null @@ -1,123 +0,0 @@ -import{Z as X,t as g,v as b,F as t,T,z as V,r as y,j as e,aJ as ee,aA as L,aO as te,N as se,aP as ne,q as oe,az as I,a1 as re,a0 as ie,aM as ae}from"./index-b416b1a9.js";import{aL as ce,B as C,ah as le,$ as de,u as D,a0 as pe,f as me,a1 as xe}from"./index-1f5ac1eb.js";import{B as ue}from"./index-8331965f.js";import{S as he}from"./index-17930aa1.js";import{e as fe}from"./index.esm-258646ab.js";import{C as J}from"./ClipLoader-a0a9ce2c.js";import{n as B,O as ye,i as ge}from"./constants-b2a2fa82.js";import{p as q}from"./index-c0853f89.js";import{T as F}from"./index-64813bbe.js";import{A as je}from"./index-69075348.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const be=async(o,a,c="")=>await X.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await ee(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ce(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(J,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(fe,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - width: 141px; - height: 61px; - border: 1px solid ${b.GRAY7}; - border-radius: 6px; - padding: 16px; - .title { - font-family: Barlow; - color: ${b.secondaryText4}; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - color: ${b.white}; - font-size: 18px; - font-style: normal; - font-weight: 500; - } -`,Ce=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - color: ${b.secondaryText4}; - .title { - font-family: Barlow; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - font-size: 14px; - font-style: normal; - font-weight: 400; - } -`,ke=g(T)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ve=g(t)` - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - gap: 2px; - - .errorIcon { - display: block; - font-size: 13px; - min-height: 13px; - min-width: 13px; - } - - span { - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - overflow: hidden; - white-space: normal; - letter-spacing: 0.2px; - cursor: pointer; - padding-left: 4px; - font-size: 13px; - font-family: Barlow; - line-height: 18px; - } -`,ze=g(t)` - display: flex; - align-items: center; - color: ${b.primaryRed}; - position: relative; - margin-top: 20px; -`,R=g.span` - display: inline-flex; - align-items: center; - justify-content: center; - margin-top: 2px; - - svg { - width: 16px; - height: 16px; - } -`,Be=({type:o,onclose:a})=>e.jsxs(t,{children:[e.jsx(t,{mb:20,children:e.jsx(G,{children:"Comfirm New Type"})}),e.jsx(t,{mb:25,children:e.jsxs(G,{children:["Type: ",o]})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:a,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),G=g(T)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[x,d]=y.useState(!1),[r,m]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=de();y.useEffect(()=>{(async()=>{d(!0);const u=await te(c),A=(u.attributes&&typeof u.attributes=="object"?q(u.attributes):q(u)).filter(_=>_.key!=="node_key");m(A),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!x&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Ae,{children:"Set Attributes"})})}),e.jsx(_e,{children:x?e.jsx(t,{style:{margin:"auto"},children:e.jsx(J,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(F,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...L,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||x||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},Ae=g(T)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,_e=g(t)` - width: 100%; - display: flex; - justify-content: center; - gap: 10px; - margin: 0 0 15px 0; - - .input__wrapper { - display: flex; - gap: 15px; - max-height: 225px; - overflow-y: auto; - padding-right: 20px; - width: calc(100% + 20px); - } -`,Ee=g(t)` - display: flex; - gap: 10px; - - #item-name { - color: ${b.GRAY7}; - -webkit-text-fill-color: ${b.GRAY7}; - } -`,Le=({type:o,skipToStep:a,name:c,sourceLink:x})=>{const d=m=>B.test(m??""),r=o==="Image"?d(c)&&d(x):d(c);return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Fe,{children:"Enter details"})})}),e.jsx(t,{mb:4,children:e.jsxs(T,{children:[o," name"]})}),e.jsx(t,{mb:12,children:e.jsx(F,{id:"cy-item-name",maxLength:250,name:"typeName",placeholder:"Paste name here...",rules:{...L,pattern:{message:"No leading whitespace allowed",value:B}}})}),o==="Image"?e.jsxs(e.Fragment,{children:[e.jsx(t,{mb:4,children:e.jsx(T,{children:"Link"})}),e.jsx(t,{mb:12,children:e.jsx(F,{id:"cy-item-link",maxLength:250,name:"sourceLink",placeholder:"Paste link here...",rules:{...L,pattern:{message:"Please avoid special characters and spaces",value:B}}})})]}):null,e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:()=>a("sourceType"),size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!r,onClick:()=>a("setBudget"),size:"large",variant:"contained",children:"Next"})})]})]})},Fe=g(T)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,Me=({skipToStep:o,allowNextStep:a,onSelectType:c,selectedType:x})=>{const[d]=se(f=>[f.customSchemaFeatureFlag]),[r,m]=y.useState(null),[l,h]=y.useState(!1);y.useEffect(()=>{(async()=>{if(d){h(!0);try{const n=await ne(),j=["about","schema"],p=n.schemas.filter(s=>s.ref_id&&!j.includes(s.type)&&!s.is_deleted).map(s=>({label:we(s.type),value:s.type,action:()=>o("setAttribues")}));m(p)}catch(n){console.warn(n)}finally{h(!1)}}else m([...ye,ge])})()},[x,d,o]);const w=f=>{c((f==null?void 0:f.label)||"")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Oe,{children:"Select Type"})})}),e.jsx(t,{direction:"row",mb:20,children:e.jsx(je,{autoFocus:!0,isLoading:l,onSelect:w,options:r})}),e.jsx(t,{children:e.jsx(C,{color:"secondary",disabled:!a,onClick:()=>o("source"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},Oe=g(T)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,Pe=async(o,a,c)=>{var f;const x=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:m,...l}=x;let h="",w="";d!=="Create custom type"&&await re(async()=>{const n=await ie.enable();w=n==null?void 0:n.pubkey,h=await ae()});try{const n=await Se(d,l,m,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},et=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:x}=D("addItem"),{open:d}=D("addType"),{setBudget:r}=V(i=>i),m=pe({mode:"onChange"}),{watch:l,setValue:h,reset:w}=m,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=oe(i=>i),[u]=me(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[x,w]);const S=l("nodeType"),A=l("typeName"),_=l("sourceLink"),U=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},W=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),Z=Object.entries(i).reduce(($,[Q,z])=>(z!=null&&z!==""&&($[Q]=z),$),{}),P={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...Z}};s({nodes:[P],links:[]}),u(P)},Y=m.handleSubmit(async i=>{p(""),n(!0);try{await Pe(i,r,W),he("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),O=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:O,selectedType:S,skipToStep:E}),source:e.jsx(Le,{name:A,skipToStep:E,sourceLink:_||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:U}),setAttribues:e.jsx(Ie,{handleSelectType:O,nodeType:S,skipToStep:E})},K="small";return e.jsx(ue,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(xe,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:Y,children:H[o]})})})};export{et as AddItemModal}; diff --git a/build/assets/index-f2ef880b.js b/build/assets/index-f2ef880b.js deleted file mode 100644 index 250767c89..000000000 --- a/build/assets/index-f2ef880b.js +++ /dev/null @@ -1,18 +0,0 @@ -import{Z as F,bn as C,bo as m,bp as $,t as B,T as k,F as d,r as x,z,j as n,aA as M}from"./index-b416b1a9.js";import{$ as V,B as S,u as E,e as A,a0 as _,a1 as R}from"./index-1f5ac1eb.js";import{B as G}from"./index-8331965f.js";import{S as I}from"./index-17930aa1.js";import{A as K}from"./index-69075348.js";import{T as N}from"./index-64813bbe.js";import"./index.esm-258646ab.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const U="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),P=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),W=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await $.signMessage(r),a=L(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return v(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function v(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=V(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await P(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await W(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(Z,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(N,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...M,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` - font-size: 14px; - font-weight: 600; - font-family: 'Barlow'; - margin-bottom: 6px; -`,Z=B(k)` - font-size: 18px; - font-weight: 600; - font-family: 'Barlow'; - margin-bottom: 6px; -`,Q=B(d)` - font-size: 13px; - font-family: Barlow; - color: #ff8f80; - line-height: 0.2px; - margin-top: 12px; - padding-top: 20px; -`,X=()=>{const[e,t]=x.useState(""),{close:r}=E("createBounty"),s=A(),a=_({mode:"onChange"}),{handleSubmit:l,setValue:c}=a,u=()=>{c("budget",""),c("nodeType",""),c("workspaceUuid",""),r()},g=async f=>{const{budget:y,workspaceUuid:h}=f;try{const o=await q(),i={type:"code_generation",amount:Number(y),workspace_uuid:h||"ck9drb84nncjnaefo090",ref_id:s==null?void 0:s.ref_id,node_data:(s==null?void 0:s.properties)||{},jwt_token:o};await O(i),I("Bounty Created")}catch(o){t(o)}finally{c("budget",""),c("nodeType",""),c("workspaceUuid",""),u()}};return n.jsx(R,{...a,children:n.jsx("form",{id:"create-bounty-form",onSubmit:l(g),children:n.jsx(J,{errMessage:e,handleClose:u})})})},de=()=>{const{close:e}=E("createBounty"),t=_({mode:"onChange"}),{setValue:r}=t,s=()=>{r("budget",""),r("nodeType",""),e()},a="small";return n.jsx(G,{id:"createBounty",kind:a,onClose:s,preventOutsideClose:!0,children:n.jsx(X,{})})};export{de as CreateBountyModal}; diff --git a/build/assets/index.esm-258646ab.js b/build/assets/index.esm-258646ab.js deleted file mode 100644 index aefb2eda0..000000000 --- a/build/assets/index.esm-258646ab.js +++ /dev/null @@ -1 +0,0 @@ -import{R as c}from"./index-b416b1a9.js";var u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=c.createContext&&c.createContext(u),i=globalThis&&globalThis.__assign||function(){return i=Object.assign||function(t){for(var a,e=1,r=arguments.length;e{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=k,hr=T,vr=B,yr="[object String]";function _r(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var mr=_r;const os=z(mr);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Lr=wr;function Er(e){return e}var Ir=Er,Fr=k,Rr=He,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const ls=z(Ur);function Hr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${H(s)}`],input:["input"]};return be(t,ar,r)},sr=M(rr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ne})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:m,type:P,value:E}=r,A=ge(r,nr),[w,xe]=je({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=_=>{v&&v(_),C&&C.onFocus&&C.onFocus(_)},Be=_=>{b&&b(_),C&&C.onBlur&&C.onBlur(_)},qe=_=>{if(_.nativeEvent.defaultPrevented)return;const Q=_.target.checked;xe(Q),y&&y(_,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return L.jsxs(sr,S({component:"span",className:K(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:m,type:P},P==="checkbox"&&E===void 0?{}:{value:E},h)),w?t:f]}))}),is=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${H(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${H(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ge({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=Ve({props:t,muiFormControl:b,states:["error"]}),m=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(m),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:K(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:K(P.root,i),ownerState:m,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(er,{display:"block",children:[A,L.jsxs(pr,{ownerState:m,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),os=gr;var br=k,hr=T,vr=B,yr="[object String]";function mr(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var _r=mr;const ls=z(_r);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Er=wr;function Lr(e){return e}var Ir=Lr,Fr=k,Rr=Ue,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const us=z(Ur);function Kr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - - + +